:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-tint: #f2ece3;
  --text: #212a25;
  --muted: #5d6861;
  --accent: #2c4a3e;
  --accent-hover: #21392f;
  --rose: #b86f60;
  --border: rgba(44, 74, 62, 0.12);
  --shadow: 0 12px 30px rgba(33, 42, 37, 0.06);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.brand-city {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-link {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.header-link:hover {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: rgba(44, 74, 62, 0.35);
}

.btn-outline:hover {
  background: rgba(44, 74, 62, 0.06);
}

/* Hero */
.hero {
  padding: clamp(32px, 5vw, 68px) 0 clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose);
  background: rgba(184, 111, 96, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 18px;
}

.hero-lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 52ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}

.hero-facts strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 2px;
}

.hero-photo-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  aspect-ratio: 1 / 1;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.badge-price {
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
}

/* Sections */
.section {
  padding: clamp(44px, 6vw, 76px) 0;
}

.section-tinted {
  background: var(--surface-tint);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-head-simple {
  margin-bottom: 28px;
}

.section-kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rose);
  margin-bottom: 6px;
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.bouquet-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.bouquet-card[hidden] {
  display: none;
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-tint);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
}

.card-badge.is-popular {
  background: var(--accent);
  color: #fff;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.card-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.card-price {
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
  white-space: nowrap;
}

.card-desc {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.step-num {
  display: inline-block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.footer-meta {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Dialog */
.order-dialog {
  border: none;
  border-radius: 22px;
  padding: 0;
  width: min(460px, calc(100vw - 24px));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  background: var(--surface);
  color: var(--text);
}

.order-dialog::backdrop {
  background: rgba(24, 30, 27, 0.5);
  backdrop-filter: blur(3px);
}

.dialog-box {
  padding: 24px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dialog-head h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
}

.dialog-close {
  border: none;
  background: var(--surface-tint);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
}

.dialog-note {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.field-input,
.field-textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.field-textarea {
  resize: vertical;
  margin-bottom: 16px;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.copy-toast {
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .catalog-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .header-link {
    display: none;
  }
  .hero-facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .catalog-grid,
  .steps-grid,
  .dialog-actions {
    grid-template-columns: 1fr;
  }
}
