/* NightFlo — Flowers of the Night */

:root {
  /* палитра бренда */
  --roast: #280B0F;
  --tamarind: #3B1319;
  --rubine: #8D3A3C;
  --boho: #7B694E;
  --camel: #C6B39A;
  /* производные */
  --night: #1C0709;
  --cream: #EADFCF;
  --rubine-hi: #A4494B;
  --line: rgba(198, 179, 154, .2);
  --muted: rgba(198, 179, 154, .74);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--roast);
  color: var(--camel);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; color: var(--cream); }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--camel); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.caps { font-family: var(--sans); font-size: 12px; font-weight: 500; line-height: 1.7; letter-spacing: .26em; text-transform: uppercase; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 60; background: var(--camel); color: var(--roast); padding: 10px 16px; border-radius: 2px; }
.skip:focus { top: 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 16px; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--rubine); color: var(--cream); }
.btn--ghost { border-color: rgba(198, 179, 154, .45); color: var(--camel); background: transparent; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--rubine-hi); }
  .btn--ghost:hover { border-color: var(--camel); color: var(--cream); }
}

/* ---------- интро ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--night);
  transition: transform 1100ms var(--ease-in-out);
  cursor: pointer;
}
.intro.is-leaving { transform: translateY(-100%); }
.intro.is-gone { display: none; }
.intro__inner { display: grid; justify-items: center; padding: 0 16px; text-align: center; }
.intro__mark { position: relative; width: 64px; height: 64px; margin-bottom: 18px; }
.intro__moon { width: 64px; height: 64px; overflow: visible; }
.intro__moon path { fill: none; stroke: var(--camel); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro__star { position: absolute; right: -14px; top: 10px; width: 14px; height: 14px; color: var(--cream); opacity: 0; transform: scale(.4) rotate(-45deg); }
.intro__brand { font-family: var(--serif); font-weight: 300; font-size: clamp(3.6rem, 10vw, 6.4rem); line-height: 1; color: var(--cream); opacity: 0; transform: translateY(14px); }
.intro__slogan { margin-top: 18px; font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.1; color: var(--camel); }
.intro__slogan .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; }
.intro__slogan .w > span { display: inline-block; transform: translateY(110%); }

.intro.is-open .intro__moon path { stroke-dashoffset: 0; transition: stroke-dashoffset 1300ms var(--ease-in-out) 100ms; }
.intro.is-open .intro__star { opacity: 1; transform: none; transition: opacity 400ms ease 1200ms, transform 700ms var(--ease-out) 1200ms; }
.intro.is-open .intro__brand { opacity: 1; transform: none; transition: opacity 900ms ease 500ms, transform 1100ms var(--ease-out) 500ms; }
.intro.is-open .w > span { transform: none; transition: transform 1000ms var(--ease-out); }
.intro.is-open .w:nth-child(1) > span { transition-delay: 1100ms; }
.intro.is-open .w:nth-child(2) > span { transition-delay: 1180ms; }
.intro.is-open .w:nth-child(3) > span { transition-delay: 1260ms; }

/* ---------- шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  transition: background-color 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(28, 7, 9, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header__row { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; color: var(--cream); text-decoration: none; }
.logo__moon { width: 20px; height: 20px; color: var(--camel); }
.logo--lg { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 300; }
.logo--lg .logo__moon { width: 30px; height: 30px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color 200ms ease; }
.nav a[aria-current="page"] { color: var(--cream); }
.cart-btn { text-decoration: none; color: var(--camel); }
.cart-btn[aria-current="page"] { border-color: var(--camel); color: var(--cream); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--cream); } }

.cart-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 8px 0 16px;
  border: 1px solid rgba(198, 179, 154, .4); border-radius: 999px; background: rgba(28, 7, 9, .3);
  font-size: 15px;
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
}
.cart-btn:active { transform: scale(0.97); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cart-btn__count {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--rubine); color: var(--cream); font-size: 13px; font-weight: 600;
}
.cart-btn__count[data-empty="true"] { background: rgba(198, 179, 154, .14); color: var(--muted); }
.cart-btn__count.bump { animation: bump 380ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.22); } }
@media (hover: hover) and (pointer: fine) { .cart-btn:hover { border-color: var(--camel); } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 760px);
  display: grid; place-items: center;
  padding: 112px var(--gutter) 64px;
  background: var(--night);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { position: absolute; top: 0; height: 100%; object-fit: cover; }
.hero__flowers {
  left: 0; width: 64%; object-position: 40% 50%;
  filter: brightness(.72) saturate(.95);
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 98%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 98%);
}
.hero__face {
  right: 0; width: 42%; object-position: 55% 25%;
  filter: brightness(.95) sepia(.2) saturate(.95);
  -webkit-mask-image: linear-gradient(270deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 45%, transparent 100%);
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 60% at 50% 52%, rgba(28, 7, 9, .78), rgba(28, 7, 9, .25) 100%),
    linear-gradient(180deg, rgba(28, 7, 9, .55) 0, rgba(28, 7, 9, 0) 22%, rgba(28, 7, 9, 0) 72%, var(--night) 100%);
}

.hero__tag {
  position: absolute; left: var(--gutter); top: 116px;
  font-size: 11px; color: var(--camel);
}
.hero__tag::after { content: ''; display: block; width: 56px; height: 1px; margin-top: 18px; background: var(--camel); opacity: .6; }

.hero__center { display: grid; justify-items: center; text-align: center; max-width: 760px; }
.hero__mark { position: relative; width: 50px; height: 50px; margin-bottom: 6px; color: var(--cream); }
.hero__moon { width: 50px; height: 50px; }
.hero__star { position: absolute; right: -16px; top: 12px; width: 13px; height: 13px; }
.brand {
  font-weight: 300; color: var(--cream);
  font-size: clamp(4.4rem, 12vw, 9.4rem); line-height: .92; letter-spacing: -.02em;
}
.hero__kind { margin-top: 14px; font-size: 12px; letter-spacing: .42em; color: var(--camel); }
.hero__slogan {
  margin-top: clamp(28px, 5vh, 52px);
  display: grid; justify-items: center;
  font-family: var(--serif); font-weight: 300; color: var(--cream);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02;
}
.hero__slogan > span { position: relative; }
.hero__slogan i { font-style: italic; }
.spark { position: absolute; width: .22em; height: .22em; color: var(--cream); }
.spark--a { right: -.3em; top: .08em; }
.spark--b { right: -.32em; top: -.05em; }
.rule { position: relative; width: min(520px, 86vw); height: 14px; margin: clamp(28px, 5vh, 44px) 0 24px; }
.rule::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(198, 179, 154, .55) 20%, rgba(198, 179, 154, .55) 80%, transparent); }
.rule svg { position: relative; width: 14px; height: 14px; margin: 0 auto; color: var(--camel); filter: drop-shadow(0 0 6px var(--night)); }
.hero__feats { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(20px, 5vw, 56px); }
.hero__feats li { display: flex; align-items: center; gap: 14px; text-align: left; }
.hero__feats svg { flex: none; width: 26px; height: 26px; color: var(--camel); }
.hero__feats .caps { font-size: 10.5px; letter-spacing: .22em; line-height: 1.6; color: var(--camel); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* единственный оркестрованный момент: появление hero после интро */
.hero__media img { transform: scale(1.06); }
.hero__center > *, .hero__tag { opacity: 0; transform: translateY(14px); }
body.is-ready .hero__media img { transform: none; transition: transform 2600ms var(--ease-out); }
body.is-ready .hero__center > *, body.is-ready .hero__tag { opacity: 1; transform: none; transition: opacity 900ms ease, transform 1100ms var(--ease-out); }
body.is-ready .hero__center > :nth-child(1) { transition-delay: 350ms; }
body.is-ready .hero__center > :nth-child(2) { transition-delay: 420ms; }
body.is-ready .hero__center > :nth-child(3) { transition-delay: 490ms; }
body.is-ready .hero__center > :nth-child(4) { transition-delay: 560ms; }
body.is-ready .hero__center > :nth-child(5) { transition-delay: 630ms; }
body.is-ready .hero__center > :nth-child(6) { transition-delay: 700ms; }
body.is-ready .hero__center > :nth-child(7) { transition-delay: 770ms; }
body.is-ready .hero__tag { transition-delay: 800ms; }

/* ---------- общие заголовки секций ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; margin-bottom: 48px; }
.catalog h2, .season h2, .delivery h2, .faq h2, .budget h2 { font-weight: 300; font-size: clamp(2.9rem, 6vw, 4.8rem); line-height: .95; letter-spacing: -.01em; }
.section-lead { margin-top: 16px; max-width: 34em; color: var(--muted); }

/* ---------- каталог ---------- */
.catalog { background: var(--tamarind); padding: clamp(72px, 10vw, 128px) 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 15px;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.filters button:active { transform: scale(0.97); }
.filters button[aria-pressed="true"] { background: var(--camel); border-color: var(--camel); color: var(--roast); }
@media (hover: hover) and (pointer: fine) { .filters button[aria-pressed="false"]:hover { color: var(--cream); border-color: rgba(198, 179, 154, .45); } }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 24px; }
.card { display: flex; flex-direction: column; }
.card__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--roast);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card__media:hover img { transform: scale(1.04); } }
.card__kind {
  position: absolute; left: 10px; bottom: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(28, 7, 9, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 12px; color: var(--cream);
}
.card__body { display: flex; flex-direction: column; flex: 1; padding-top: 18px; }
.card__name { font-size: 30px; font-weight: 400; line-height: 1.1; }
.card__desc { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.care-mini { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; flex: 1; align-content: start; }
.care-mini li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--camel); }
.care-mini svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--camel); opacity: .8; }
.more { align-self: flex-start; margin-top: 10px; padding: 4px 0; border: 0; background: none; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(198, 179, 154, .4); transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .more:hover { color: var(--cream); } }

.card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.card__price { font-size: 19px; font-weight: 500; color: var(--cream); font-variant-numeric: tabular-nums; }

.add {
  height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(198, 179, 154, .45); background: transparent; font-size: 15px; font-weight: 500;
  transition: transform 160ms var(--ease-out), background-color 250ms ease, border-color 250ms ease, color 250ms ease;
}
.add:active { transform: scale(0.97); }
.add.is-added { background: var(--rubine); border-color: var(--rubine); color: var(--cream); }
.add__label { display: inline-block; }
.add.is-added .add__label { animation: swap 260ms ease; }
@keyframes swap { from { filter: blur(3px); opacity: .4; } }
@media (hover: hover) and (pointer: fine) { .add:not(.is-added):not(.btn):hover { border-color: var(--camel); color: var(--cream); } }
.add--big { height: 54px; margin-top: 28px; border: 0; }
.add--big.is-added { background: var(--rubine-hi); }

/* ---------- заявление ---------- */
.statement { padding: clamp(88px, 12vw, 168px) 0; background: var(--roast); }
.statement__row { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.statement__star { width: 22px; height: 22px; margin-top: .6em; color: var(--camel); }
.statement__text {
  max-width: 21em;
  font-family: var(--serif); font-weight: 300; color: var(--cream);
  font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.15;
}

/* ---------- сезон и тренды ---------- */
.season { background: var(--tamarind); padding: clamp(72px, 10vw, 128px) 0; }
.tabs { display: flex; gap: 4px 28px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.tabs button {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 0; border: 0; background: none;
  font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--muted);
  transition: color 200ms ease;
}
.tabs button::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--cream); transform: scaleX(0); transform-origin: left;
  transition: transform 300ms var(--ease-out);
}
.tabs button[aria-selected="true"] { color: var(--cream); }
.tabs button[aria-selected="true"]::after { transform: none; }
@media (hover: hover) and (pointer: fine) { .tabs button:hover { color: var(--cream); } }
.tabs__now { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--rubine); color: var(--cream); }

.bloom-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.season__panel:not([hidden]) .bloom { animation: rise 500ms var(--ease-out) both; }
.season__panel .bloom:nth-child(2) { animation-delay: 50ms; }
.season__panel .bloom:nth-child(3) { animation-delay: 100ms; }
.season__panel .bloom:nth-child(4) { animation-delay: 150ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.bloom__media { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; background: var(--roast); }
.bloom__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.92); }
.bloom__when { margin-top: 16px; font-size: 10.5px; letter-spacing: .2em; color: var(--camel); opacity: .8; }
.bloom__name { margin-top: 4px; font-size: 28px; line-height: 1.1; }
.bloom__note { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- доставка (светлая секция) ---------- */
.delivery { background: var(--camel); color: var(--tamarind); padding: clamp(72px, 10vw, 128px) 0; }
.delivery h2, .delivery h3 { color: var(--roast); }
.steps { list-style: none; counter-reset: s; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { counter-increment: s; padding-top: 20px; border-top: 1px solid rgba(40, 11, 15, .25); }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-weight: 300; font-size: 64px; line-height: 1; color: var(--rubine); margin-bottom: 16px; }
.steps h3 { font-size: 28px; line-height: 1.15; font-weight: 500; }
.steps p { margin-top: 10px; max-width: 30em; color: #4A2A26; }
.prices { margin: 72px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(40, 11, 15, .25); }
.prices div { padding: 20px 20px 4px 0; }
.prices dt { font-size: 15px; color: #4A2A26; }
.prices dd { margin: 4px 0 0; font-size: 24px; font-weight: 500; color: var(--roast); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(72px, 10vw, 128px) 0; }
.faq__wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 19px; color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 11px; height: 11px;
  border-right: 1.5px solid var(--camel); border-bottom: 1.5px solid var(--camel);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 250ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 0 26px; max-width: 38em; color: var(--muted); }
.faq details[open] p { animation: reveal 300ms var(--ease-out); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- футер ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--night); }
/* подвал: NightFlo во всю ширину, под ним — меню и контакты в две колонки */
.footer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer__row > :first-child { grid-column: 1 / -1; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
/* размер подобран так, чтобы месяц + NightFlo заняли всю ширину колонки (≈3.8 em) */
.footer .logo--lg { display: flex; width: 100%; font-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 3.8); line-height: .9; letter-spacing: -.02em; gap: .06em; }
.footer .logo--lg .logo__moon { width: .28em; height: .28em; align-self: flex-start; margin-top: .12em; }
.footer__slogan { margin-top: 12px; color: var(--camel); font-family: var(--serif); font-size: clamp(22px, 3vw, 34px); }
.footer__contacts { display: grid; gap: 8px; justify-items: start; }
.footer__contacts a { text-decoration: none; font-size: 18px; color: var(--cream); }
.footer__contacts p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .footer__contacts a:hover { color: var(--camel); } }
.footer__legal { margin-top: 56px; font-size: 14px; color: var(--boho); }

/* ---------- карточка букета ---------- */
.product {
  width: min(1060px, calc(100% - 32px)); max-width: none; max-height: calc(100svh - 48px);
  padding: 0; border: 1px solid var(--line); border-radius: 4px;
  background: var(--tamarind); color: var(--camel);
  overflow: hidden;
}
.product[open] { animation: dlg-in 280ms var(--ease-out); }
.product[open]::backdrop { animation: fade-in 280ms ease; }
.product.is-closing { animation: dlg-out 180ms ease forwards; }
.product.is-closing::backdrop { animation: fade-out 180ms ease forwards; }
.product::backdrop { background: rgba(15, 4, 6, .74); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes dlg-out { to { opacity: 0; transform: scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.product__inner { display: grid; grid-template-columns: 1fr 1fr; height: min(760px, calc(100svh - 50px)); }
.product__media { background: var(--roast); min-height: 0; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__body { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 44px clamp(24px, 4vw, 48px) 36px; }
.product__close { position: absolute; top: 12px; right: 12px; }
.product__kind { font-size: 11px; color: var(--camel); opacity: .85; }
.product__name { margin-top: 8px; font-size: clamp(2.6rem, 4.4vw, 3.6rem); font-weight: 300; line-height: 1; }
.product__desc { margin-top: 12px; color: var(--muted); }
.product__price { margin-top: 16px; font-size: 22px; font-weight: 500; color: var(--cream); }
.product__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 26px; font-weight: 500; }
.product__h span { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.product__comp { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.product__comp li::before { content: '—'; margin-right: 10px; color: var(--boho); }

.care { margin: 8px 0 0; display: grid; }
.care div { display: grid; grid-template-columns: 22px 1fr; column-gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.care svg { grid-row: span 2; width: 20px; height: 20px; margin-top: 2px; color: var(--camel); }
.care dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.care dd { margin: 2px 0 0; font-size: 15.5px; color: var(--cream); }
.tips { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.tips li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.tips svg { width: 10px; height: 10px; margin-top: 6px; color: var(--camel); }

/* ---------- внутренние страницы ---------- */
.page-head { padding: 140px 0 40px; background: var(--roast); }
.page-head h1 { font-weight: 300; font-size: clamp(3.4rem, 8vw, 6.4rem); line-height: .95; letter-spacing: -.01em; }
.page-head__kicker { font-size: 11px; color: var(--camel); margin-bottom: 14px; }
.catalog--page { padding-top: 48px; }
.catalog--page .filters { margin-bottom: 40px; }
.custom { margin-top: 80px; padding: 40px; border: 1px solid var(--line); border-radius: 4px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.custom__text { max-width: 26em; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; color: var(--cream); }

.btn__icon { width: 18px; height: 18px; margin-right: 10px; }
.product__ask { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.product__ask a { color: var(--cream); }
.faq details a { color: var(--cream); }

/* ---------- плавающая кнопка Telegram ---------- */
.tg-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--camel); color: var(--roast);
  font-size: 15px; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 30px rgba(10, 2, 4, .45);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.tg-float svg { width: 22px; height: 22px; }
.tg-float:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .tg-float:hover { background: var(--cream); } }

/* ---------- корзина (страница) ---------- */
.cart-page { padding: 8px 0 clamp(80px, 10vw, 128px); background: var(--roast); min-height: 50vh; }
.cart-empty { display: grid; justify-items: start; gap: 24px; padding: 24px 0 40px; font-size: 19px; color: var(--muted); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.lines { list-style: none; margin: 0 0 48px; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line__img { width: 96px; height: 120px; object-fit: cover; border-radius: 3px; background: var(--tamarind); }
.line__name { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.1; color: var(--cream); }
.line__meta { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.line__price { margin-top: 6px; font-size: 16px; font-weight: 500; color: var(--cream); }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 18px; border-radius: 50%; transition: transform 140ms var(--ease-out); }
.qty button:active { transform: scale(0.9); }
.qty output { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }

.summary { position: sticky; top: 96px; padding: 28px; border-radius: 4px; background: var(--tamarind); border: 1px solid var(--line); }
.summary__note { margin-top: 16px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.sum { margin: 0 0 16px; display: grid; gap: 8px; }
.sum div { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.sum .sum__total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--cream); font-size: 18px; }
.sum__total dd { font-size: 22px; font-weight: 600; }
.sum__hint { font-size: 14px; color: var(--camel); margin-bottom: 14px; }
.sum__hint:empty, .form-error:empty { display: none; }
.form-error { margin-bottom: 12px; padding: 10px 14px; border-radius: 3px; background: rgba(141, 58, 60, .35); color: var(--cream); font-size: 14px; }

/* форма */
.checkout { display: grid; gap: 32px; }
.checkout fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.checkout legend { padding: 0; margin-bottom: 14px; font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--cream); }
.checkout .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.checkout input:not([type="checkbox"]), .checkout select, .checkout textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: rgba(59, 19, 25, .7); color: var(--cream);
  border: 1px solid var(--line); border-radius: 3px; font-size: 16px;
  transition: border-color 200ms ease;
  color-scheme: dark;
}
.checkout textarea { resize: vertical; min-height: 96px; }
.checkout input::placeholder, .checkout textarea::placeholder { color: rgba(198, 179, 154, .4); }
.checkout input:focus, .checkout select:focus, .checkout textarea:focus { outline: none; border-color: var(--camel); }
.checkout [aria-invalid="true"] { border-color: #C9676A !important; }
.checkout .check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--camel); cursor: pointer; }
.checkout .check input { width: 18px; height: 18px; accent-color: var(--rubine); }

.done { display: grid; justify-items: start; gap: 18px; max-width: 640px; }
.done__mark { position: relative; width: 64px; height: 64px; color: var(--cream); }
.done__moon { width: 64px; height: 64px; }
.done__star { position: absolute; right: -16px; top: 12px; width: 15px; height: 15px; opacity: 0; transform: scale(.4) rotate(-45deg); }
.done__mark.is-on .done__star { opacity: 1; transform: none; transition: opacity 300ms ease 200ms, transform 600ms var(--ease-out) 200ms; }
.done h2 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 300; }
.done p { color: var(--muted); }
.done__order {
  width: 100%; margin: 4px 0 0; padding: 20px 22px;
  background: var(--tamarind); border: 1px solid var(--line); border-radius: 4px;
  font: 15px/1.65 var(--sans); color: var(--cream); white-space: pre-wrap;
}
.done__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.done__hint { font-size: 14px; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .grid, .bloom-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero { min-height: max(100svh, 700px); }
  .hero__flowers { width: 100%; -webkit-mask-image: none; mask-image: none; filter: brightness(.55) saturate(.95); }
  .hero__face { display: none; }
  .hero__tag { display: none; }
  .grid, .bloom-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 16px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .prices { grid-template-columns: 1fr 1fr; }
  .faq__wrap { grid-template-columns: 1fr; gap: 24px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .product__inner { grid-template-columns: 1fr; height: auto; max-height: calc(100svh - 34px); overflow-y: auto; }
  .product__media { height: 42svh; }
  .product__body { overflow: visible; }
  .product__close { position: fixed; top: 22px; right: 22px; background: rgba(28, 7, 9, .7); }
}
@media (max-width: 640px) {
  .header__row { flex-wrap: wrap; justify-content: space-between; height: auto; padding-top: 10px; gap: 6px 16px; }
  .nav { order: 3; width: 100%; margin: 0; gap: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
  .nav a { flex: none; font-size: 14px; }
  .hero { padding-top: 140px; }
  .cart-btn__label { display: none; }
  .cart-btn { padding: 0 6px 0 12px; }
  .hero__feats { flex-direction: column; align-items: center; gap: 14px; }
  .hero__feats li { width: 210px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .card__name { font-size: 24px; }
  .care-mini li { font-size: 12.5px; }
  .card__row { flex-direction: column; align-items: stretch; gap: 10px; }
  .add { width: 100%; }
  .tabs { gap: 0 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .tabs button { flex: none; font-size: 22px; }
  .bloom__name { font-size: 23px; }
  .bloom__note { font-size: 14px; }
  .prices { grid-template-columns: 1fr; }
  .product { width: 100%; max-height: 100svh; height: 100svh; border-radius: 0; border: 0; }
  .product__inner { max-height: 100svh; }
  .product__close { top: 12px; right: 12px; }
  .tg-float { right: 16px; bottom: 16px; width: 52px; padding: 0; justify-content: center; }
  .tg-float span { display: none; }
  .page-head { padding-top: 132px; }
  .checkout .row2 { grid-template-columns: 1fr; }
  .line { grid-template-columns: 72px 1fr; }
  .line__img { width: 72px; height: 90px; }
  .line .qty { grid-column: 2; justify-self: start; }
  .custom { padding: 24px; }
}
@media (max-width: 340px) {
  .grid, .bloom-grid { grid-template-columns: 1fr; }
}

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { transition: opacity 250ms ease; }
  .intro.is-leaving { transform: none; opacity: 0; }
  .intro__brand, .intro__star, .intro__slogan .w > span { transform: none; }
  .intro__moon path { stroke-dashoffset: 0; }
  .hero__media img, .hero__center > *, .hero__tag { transform: none !important; }
  .card__media img { transition: none; }
  .product[open], .product.is-closing, .season__panel:not([hidden]) .bloom,
  .cart-btn__count.bump, .faq details[open] p { animation: none; }
}

/* =====================================================================
   Новые блоки: поводы, промо, розы, бюджет, допы, зоны, отзывы, бизнес, документы
   ===================================================================== */

/* поводы */
.occasions { padding: clamp(56px, 8vw, 96px) 0; background: var(--tamarind); }
.occasions__title { font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; margin-bottom: 28px; }
.occasions__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
/* поводы: вертикальные плитки как у карточек букетов, название — поверх фото на затемнении */
.occ { position: relative; display: block; text-decoration: none; border-radius: 3px; overflow: hidden; }
.occ__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--roast); }
.occ__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); transition: transform 600ms var(--ease-out), filter 300ms ease; }
.occ::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(28, 7, 9, .9), rgba(28, 7, 9, 0)); pointer-events: none; }
.occ__name { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-family: var(--serif); font-size: 21px; line-height: 1.1; color: var(--cream); }
@media (hover: hover) and (pointer: fine) { .occ:hover .occ__media img { transform: scale(1.06); filter: brightness(1); } }

/* промо-блоки на главной */
.promo { padding: clamp(64px, 9vw, 112px) 0; background: var(--roast); }
.promo--alt { background: var(--tamarind); }
.promo__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.promo__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--night); }
.promo__media img { width: 100%; height: 100%; object-fit: cover; }
.promo__body h2 { font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: .98; }
.promo__body .btn { margin-top: 28px; }
.promo__kicker, .page-head__kicker { font-size: 11px; color: var(--camel); margin-bottom: 14px; }

/* букет недели: фото — кнопка «состав и уход», цена крупно, кнопки слева */
.weekly__media { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; }
.weekly__media img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) and (pointer: fine) { .weekly__media:hover img { transform: scale(1.03); } }
.weekly__price { margin-top: 22px; font-size: 26px; color: var(--cream); font-variant-numeric: tabular-nums; }
.weekly__price s { color: var(--camel); font-size: 18px; margin-right: 8px; }
.weekly .hero__actions { justify-content: flex-start; margin-top: 8px; }
/* ночная витрина: метка «Готов сейчас» акцентом */
.showcase .card__kind { background: var(--camel); color: var(--roast); }
/* корзина: выбор «интервал / точное время» */
.timing { margin-bottom: 16px; }
.timing em { font-style: normal; opacity: .75; margin-left: 4px; }

/* доставка: заметка о бесплатной */
.delivery__note { margin-top: 18px; color: #4A2A26; font-size: 15px; }

/* фильтры по поводу */
.filters--occ { margin-top: -28px; margin-bottom: 40px; }
.filters--occ button { height: 34px; font-size: 14px; padding: 0 14px; }
.grid-empty { margin: -12px 0 32px; color: var(--muted); }
.grid-empty a, .line-note a { color: var(--cream); }

/* «чипсы» — радиокнопки-варианты */
.opt { border: 0; margin: 0 0 22px; padding: 0; }
.opt legend { padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--camel);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.chip input:checked + span { background: var(--camel); border-color: var(--camel); color: var(--roast); font-weight: 500; }
.chip input:focus-visible + span { outline: 2px solid var(--camel); outline-offset: 3px; }
.chip:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip input:not(:checked):hover + span { border-color: rgba(198, 179, 154, .5); color: var(--cream); } }

/* конструктор роз */
.rose { padding: 128px 0 clamp(64px, 8vw, 96px); background: var(--roast); }
.rose__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.rose__media { position: sticky; top: 96px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--night); }
.rose__media img { width: 100%; height: 100%; object-fit: cover; }
.rose__body h1 { font-weight: 300; font-size: clamp(3.6rem, 8vw, 6rem); line-height: .95; }
.rose__body .section-lead { margin: 12px 0 32px; }
.rose__total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); }
.rose__total b { font-size: 30px; font-weight: 600; color: var(--cream); font-variant-numeric: tabular-nums; }
.rose__body .add--big { margin-top: 4px; }
.rose__body .care-mini { margin-top: 28px; }

.rose-table { padding: 0 0 clamp(80px, 10vw, 128px); background: var(--roast); }
.rose-table h2 { font-weight: 300; font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.rose-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rose-table th, .rose-table td { padding: 0; border-bottom: 1px solid var(--line); text-align: left; }
.rose-table thead th { padding: 14px 16px; font-size: 13px; font-weight: 500; color: var(--muted); background: var(--tamarind); }
.rose-table tbody th { padding: 0 16px; font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--cream); white-space: nowrap; }
.rose-table td button { width: 100%; padding: 14px 16px; border: 0; background: transparent; text-align: left; font-size: 15px; color: var(--camel); transition: background-color 200ms ease, color 200ms ease; }
.rose-table td button[aria-pressed="true"] { background: var(--rubine); color: var(--cream); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .rose-table td button:not([aria-pressed="true"]):hover { background: rgba(198, 179, 154, .08); color: var(--cream); } }
.rose-table tbody tr:last-child > * { border-bottom: 0; }

/* букет на свой бюджет */
.budget { padding: clamp(72px, 10vw, 128px) 0; background: var(--roast); }
.budget__form { display: grid; gap: 8px; }
.budget__examples { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.example { position: relative; cursor: pointer; }
.example input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.example__box { display: grid; gap: 4px; align-content: start; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 4px; transition: border-color 200ms ease, background-color 200ms ease; }
.example__box b { font-size: 20px; font-weight: 600; color: var(--cream); }
.example__title { font-family: var(--serif); font-size: 22px; color: var(--cream); }
.example__note { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.example input:checked + .example__box { border-color: var(--camel); background: rgba(198, 179, 154, .08); }
.example input:focus-visible + .example__box { outline: 2px solid var(--camel); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .example:hover .example__box { border-color: rgba(198, 179, 154, .45); } }
.budget__own { display: grid; gap: 6px; max-width: 320px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.budget__form input:not([type="radio"]), .budget__form select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: rgba(59, 19, 25, .7); color: var(--cream);
  border: 1px solid var(--line); border-radius: 3px; font-size: 16px; color-scheme: dark;
}
.budget__form input:focus, .budget__form select:focus { outline: none; border-color: var(--camel); }
.budget__form [aria-invalid="true"] { border-color: #C9676A; }
.budget__form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.budget__form .row2 label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.budget__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.budget__sum { color: var(--muted); }
.budget__sum b { font-size: 26px; font-weight: 600; color: var(--cream); }
.budget__foot .add { height: 52px; padding: 0 30px; border: 0; }

/* корзина: допы, зоны, позиции */
.addons { margin-bottom: 48px; }
.addons__title { font-size: 30px; font-weight: 400; margin-bottom: 16px; }
.addons__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.addon {
  width: 100%; height: 100%; display: grid; gap: 4px; justify-items: start; text-align: left;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: transparent;
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.addon:active { transform: scale(0.98); }
.addon__name { font-size: 15px; color: var(--cream); }
.addon__price { font-size: 13.5px; color: var(--muted); }
.addon.is-in { border-color: var(--camel); background: rgba(198, 179, 154, .08); }
.addon.is-in .addon__price { color: var(--camel); }
@media (hover: hover) and (pointer: fine) { .addon:not(.is-in):hover { border-color: rgba(198, 179, 154, .45); } }

.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zone { position: relative; cursor: pointer; }
.zone input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.zone span { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; transition: border-color 200ms ease, background-color 200ms ease; }
.zone b { font-weight: 500; font-size: 15px; color: var(--cream); }
.zone em { font-style: normal; font-size: 14px; color: var(--muted); white-space: nowrap; }
.zone input:checked + span { border-color: var(--camel); background: rgba(198, 179, 154, .08); }
.zone input:focus-visible + span { outline: 2px solid var(--camel); outline-offset: 3px; }

.line__img--icon { display: grid; place-items: center; color: var(--camel); }
.line__img--icon svg { width: 18px; height: 18px; }
.line--addon .line__img { height: 72px; }
.line-note { padding: 16px 0; color: var(--muted); font-size: 15px; }

.checkout .check--consent, .check--consent { align-items: flex-start; font-size: 14px; color: var(--muted); }
.check--consent input { margin-top: 2px; flex: none; }
.checkout .check--long { align-items: flex-start; line-height: 1.45; }
.check--long input { margin-top: 2px; flex: none; }
.check--consent a { color: var(--cream); }
.summary__note b { color: var(--cream); font-weight: 500; }

/* отзывы */
.reviews { padding: clamp(72px, 10vw, 112px) 0; background: var(--tamarind); border-top: 1px solid var(--line); }
.reviews__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.reviews h2 { font-weight: 300; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; margin-bottom: 16px; }
.reviews__stars { color: #D9B77E; letter-spacing: .1em; }
.reviews__avg { color: var(--muted); }
.reviews__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 20px; }
.review { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.review__text { margin-top: 6px; color: var(--cream); }
.review__who { margin-top: 6px; font-size: 14px; color: var(--muted); }

.review-form { display: grid; gap: 14px; }
.review-form label:not(.check) { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.review-form input:not([type="checkbox"]):not([type="radio"]), .review-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: rgba(28, 7, 9, .55); color: var(--cream);
  border: 1px solid var(--line); border-radius: 3px; font-size: 16px; color-scheme: dark; resize: vertical;
}
.review-form input:focus, .review-form textarea:focus { outline: none; border-color: var(--camel); }
.review-form [aria-invalid="true"] { border-color: #C9676A; }
.review-form .check { display: flex; gap: 10px; cursor: pointer; }
.review-form .btn { justify-self: start; }
.review-done { display: grid; gap: 14px; justify-items: start; }
.review-form .form-error:empty { display: none; }
.stars { border: 0; margin: 0; padding: 0; }
.stars legend { padding: 0; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.stars__row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars__row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars__row label { font-size: 34px; line-height: 1; color: rgba(198, 179, 154, .3); cursor: pointer; transition: color 150ms ease, transform 160ms var(--ease-out); }
.stars__row label:active { transform: scale(0.9); }
.stars__row input:checked ~ label { color: #D9B77E; }
.stars__row input:focus-visible + label { outline: 2px solid var(--camel); outline-offset: 2px; border-radius: 3px; }
@media (hover: hover) and (pointer: fine) {
  .stars__row label:hover, .stars__row label:hover ~ label { color: #E7CC9C; }
}
.done__review { width: 100%; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.done__subtitle { font-size: 30px; font-weight: 400; margin-bottom: 16px; }

/* для бизнеса */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.service__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--roast); }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service h3 { margin-top: 16px; font-size: 28px; line-height: 1.1; }
.service p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.biz { padding: clamp(72px, 10vw, 128px) 0; background: var(--roast); }
.biz__row { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.biz h2 { font-weight: 300; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.biz .checkout { gap: 16px; }
.biz .checkout .btn { justify-self: start; }

/* документы */
.legal { padding: 0 0 clamp(80px, 10vw, 128px); background: var(--roast); }
.legal__text { max-width: 820px; }
.legal__text h2 { margin: 40px 0 12px; font-size: 30px; font-weight: 500; }
.legal__text p, .legal__text li { color: var(--camel); line-height: 1.7; }
.legal__text p + p { margin-top: 10px; }
.legal__text ul { padding-left: 22px; }
.legal__text a { color: var(--cream); }
.draft-note { padding: 18px 20px; border: 1px solid rgba(201, 103, 106, .6); border-radius: 4px; background: rgba(141, 58, 60, .2); color: var(--cream); font-size: 15px; line-height: 1.6; }

/* подвал: ссылки */
.footer__nav { display: grid; gap: 8px; align-content: start; }
.footer__nav a { text-decoration: none; color: var(--muted); transition: color 200ms ease; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { color: var(--boho); }
@media (hover: hover) and (pointer: fine) { .footer__nav a:hover, .footer__legal a:hover { color: var(--cream); } }

/* адаптив новых блоков */
@media (max-width: 1100px) {
  /* поводы остаются в один ряд из шести — компактнее, название мельче */
  .occasions__list { gap: 12px; }
  .occ__name { font-size: 16px; left: 10px; right: 10px; bottom: 10px; }
  .budget__examples { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .occasions__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .promo__row, .rose__row, .reviews__row, .biz__row { grid-template-columns: 1fr; }
  .promo--alt .promo__media { order: -1; }
  .rose { padding-top: 132px; }
  .rose__media { position: static; aspect-ratio: 4 / 3; }
  .addons__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .occasions__list { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
  .occ__name { font-size: 15px; left: 8px; right: 8px; bottom: 8px; }
  .budget__examples { grid-template-columns: 1fr 1fr; }
  .budget__form .row2, .zones { grid-template-columns: 1fr; }
  .budget__foot { flex-direction: column; align-items: stretch; }
  .services { grid-template-columns: 1fr; }
  .filters--occ { margin-top: -24px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .filters--occ button { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .occ__media img { transition: none; }
}

/* основная кнопка «В корзину» в формах и окне букета */
.btn--primary.add { background: var(--rubine); color: var(--cream); border-color: var(--rubine); }
.btn--primary.add.is-added { background: var(--rubine-hi); border-color: var(--rubine-hi); }
@media (hover: hover) and (pointer: fine) { .btn--primary.add:not(.is-added):hover { background: var(--rubine-hi); } }

/* монобукеты: выбор цветка */
.flowers { list-style: none; margin: 0 0 40px; padding: 0 0 4px; display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.flower {
  width: 128px; display: grid; justify-items: center; gap: 6px; padding: 10px 8px 12px;
  border: 1px solid var(--line); border-radius: 4px; background: transparent; text-align: center;
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.flower:active { transform: scale(0.97); }
.flower__media { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--night); }
.flower__media img { width: 100%; height: 100%; object-fit: cover; }
.flower__name { font-family: var(--serif); font-size: 19px; line-height: 1.1; color: var(--cream); }
.flower__from { font-size: 12.5px; color: var(--muted); }
.flower.is-on { border-color: var(--camel); background: rgba(198, 179, 154, .08); }
@media (hover: hover) and (pointer: fine) { .flower:not(.is-on):hover { border-color: rgba(198, 179, 154, .45); } }
.sample-note { margin: -16px 0 24px; font-size: 13.5px; color: var(--camel); opacity: .85; }
.mono__wrap-note { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
.rose__body h1 { margin-top: 0; }

/* отзывы: защита от ботов и сообщение об отправке */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.review-sent { padding: 14px 16px; border: 1px solid var(--camel); border-radius: 4px; color: var(--cream); background: rgba(198, 179, 154, .08); }

/* корзина: способ связи */
.contact { display: grid; gap: 10px; margin-top: 6px; }
.contact__label { font-size: 14px; color: var(--muted); }
.contact__nick { max-width: 360px; }

/* ===== Карта NightFlo — программа лояльности ===== */
.loy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.loy-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.loy-note a { color: var(--cream); }

/* карта: пропорции банковской карты, фон и цвета — по уровню */
.loy-card {
  --bg: linear-gradient(135deg, #3B1319, #1C0709); --ink: var(--cream); --soft: var(--camel); --chip: linear-gradient(135deg, #E6CFB8, #9C8466);
  position: relative; display: block; aspect-ratio: 1.586; border-radius: 14px; padding: 7% 8%; overflow: hidden;
  background: var(--bg); color: var(--ink); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08);
  font-family: var(--serif); container-type: inline-size;
}
.loy-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .14) 48%, transparent 60%); pointer-events: none; }
.loy-card__brand { position: absolute; left: 8%; top: 9%; display: flex; align-items: center; gap: .25em; font-size: 9cqi; line-height: 1; }
.loy-card__brand svg { width: .62em; height: .62em; color: var(--soft); }
.loy-card__chip { position: absolute; left: 8%; top: 40%; width: 13%; aspect-ratio: 1.3; border-radius: 4px; background: var(--chip); opacity: .9; }
.loy-card__tier { position: absolute; right: 8%; top: 9%; font-family: 'Golos Text', sans-serif; font-size: 4.2cqi; letter-spacing: .28em; text-transform: uppercase; color: var(--soft); }
.loy-card__pct { position: absolute; right: 8%; bottom: 9%; font-size: 17cqi; font-weight: 300; line-height: .8; }
.loy-card__num { position: absolute; left: 8%; bottom: 10%; font-family: 'Golos Text', sans-serif; font-size: 4.4cqi; letter-spacing: .14em; color: var(--soft); }

.loy-card--start    { --bg: linear-gradient(135deg, #D8C7AF, #B49C7E); --ink: #2A0B10; --soft: #5A3E30; --chip: linear-gradient(135deg, #F3E6D4, #CDB596); }
.loy-card--silver   { --bg: linear-gradient(135deg, #E4E4E6, #A6A8AE 60%, #D2D3D6); --ink: #23262C; --soft: #4A4E57; --chip: linear-gradient(135deg, #fff, #B8BAC0); }
.loy-card--gold     { --bg: linear-gradient(135deg, #E9CF8E, #B98B3E 55%, #E3C27A); --ink: #2E1A06; --soft: #5C3D12; --chip: linear-gradient(135deg, #FFF0C8, #C9A055); }
.loy-card--platinum { --bg: linear-gradient(135deg, #DCE3E8, #9AA7B1 55%, #C9D2D8); --ink: #1C252C; --soft: #3F4C56; --chip: linear-gradient(135deg, #fff, #A9B5BE); }
.loy-card--diamond  { --bg: linear-gradient(135deg, #CFE6EE, #7FA6B8 55%, #BCD8E3); --ink: #10242C; --soft: #2E4C59; --chip: linear-gradient(135deg, #F2FBFF, #9CC2D1); }
.loy-card--elite    { --bg: linear-gradient(135deg, #8D3A3C, #5A1E27 60%, #7A2D33); }
.loy-card--prestige { --bg: linear-gradient(135deg, #3B1319, #1C0709 60%, #4A1820); --soft: #D9B97A; --chip: linear-gradient(135deg, #F3D9A4, #A9823F); }
.loy-card--royal    { --bg: linear-gradient(135deg, #4A1838, #26091C 60%, #5A2244); --soft: #E3C27A; --chip: linear-gradient(135deg, #FFE7B0, #B98B3E); }
/* Black — чёрная премиальная: матовая, тонкая золотая рамка и надпись */
.loy-card--black {
  --bg: radial-gradient(120% 90% at 20% 0%, #2A2A2A 0%, #0B0B0B 55%, #000 100%); --ink: #E9D5A6; --soft: #B99A5C;
  --chip: linear-gradient(135deg, #F3DCA8, #8E6C2F); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(233, 213, 166, .35);
}
.loy-card--black::before { content: ''; position: absolute; inset: 4.5%; border: 1px solid rgba(233, 213, 166, .22); border-radius: 9px; pointer-events: none; }

.loy-cards { padding: 0 0 clamp(64px, 9vw, 112px); background: var(--roast); }
.loy-cards__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.loy-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 10px; vertical-align: -1px; background: var(--camel); }
.loy-dot--start { background: #C9B597; } .loy-dot--silver { background: #BFC1C6; } .loy-dot--gold { background: #D3AE5F; }
.loy-dot--platinum { background: #B3BEC6; } .loy-dot--diamond { background: #9CC2D1; } .loy-dot--elite { background: #8D3A3C; }
.loy-dot--prestige { background: #D9B97A; } .loy-dot--royal { background: #7A2D5A; } .loy-dot--black { background: #000; box-shadow: 0 0 0 1px #B99A5C; }
.loy-levels table small, .loy-legal-table small { display: block; font-size: 12px; color: var(--muted); }
.loy-levels h2 { font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; }
.loy-legal-table { margin: 14px 0 18px; }
.loy-legal-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.loy-legal-table th, .loy-legal-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); color: var(--camel); font-weight: 400; }
.loy-legal-table thead th { color: var(--cream); font-size: 14px; }

.loy-keep { padding: clamp(64px, 9vw, 112px) 0; background: var(--tamarind); }
.loy-keep__row { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 88px); }
.loy-keep h2, .loy-black h2, .loy-join h2 { font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: .98; }
.loy-keep__text > p { color: var(--camel); line-height: 1.7; }
.loy-rules { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.loy-rules li { position: relative; padding-left: 26px; color: var(--camel); line-height: 1.6; }
.loy-rules li::before { content: '✦'; position: absolute; left: 0; top: 0; color: var(--cream); font-size: 13px; }
.loy-rules b { color: var(--cream); font-weight: 500; }

.loy-black { padding: clamp(64px, 9vw, 112px) 0; background: #0B0B0B; }
.loy-black__row { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.loy-black .promo__kicker { color: #B99A5C; }
.loy-black h2 { color: #E9D5A6; }

.loy-join__box { max-width: 760px; }
.loy-teaser__card { max-width: 440px; justify-self: center; width: 100%; transform: rotate(-4deg); }

@media (max-width: 900px) {
  .loy-cards__list { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .loy-keep__row, .loy-black__row { grid-template-columns: 1fr; }
  .loy-black__card { max-width: 420px; }
  .loy-teaser__card { order: -1; max-width: 320px; margin: 8px auto 0; transform: rotate(-2deg); }
}
@media (max-width: 640px) {
  /* карты уровней — горизонтальная лента со снапом */
  .loy-cards__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scrollbar-width: none; }
  .loy-cards__list::-webkit-scrollbar { display: none; }
  .loy-cards__list li { flex: 0 0 78%; scroll-snap-align: center; }
  .loy-actions .btn { flex: 1 1 100%; }
}

/* шапка: вход в личный кабинет «Карта NightFlo» рядом с корзиной */
.acc-btn { padding: 0 16px; margin-right: -18px; }
@media (max-width: 640px) {
  .acc-btn { margin-left: auto; margin-right: -8px; padding: 0 12px; }
}
.legend-note { font-size: .7em; color: var(--muted); font-weight: 400; }
.loy-status { margin: 6px 0 4px; padding: 12px 14px; border: 1px solid rgba(198, 179, 154, .3); border-radius: 6px; color: var(--cream); font-size: 15px; line-height: 1.5; background: rgba(141, 58, 60, .18); }
.done__track { display: grid; gap: 14px; justify-items: start; margin: 24px 0 28px; }
.done__track .btn { min-width: min(100%, 340px); justify-content: center; }
.done__track .done__hint { margin: 2px 0 0; }
@media (max-width: 640px) { .done__track { justify-items: stretch; } .done__track .btn { min-width: 0; } }
#certOther { margin-top: 14px; }

/* ссылка на квиз «Подберём букет за 30 секунд» (главная, каталог) */
.quiz-link { margin-top: 18px; font-size: 15px; }
.quiz-link a { color: var(--camel); text-underline-offset: 4px; }
.quiz-link a:hover { color: var(--cream); }

/* ---------- шапка на телефоне: две строки главных разделов + ☰ со всем остальным ----------
   (другие варианты меню сохранены в brand/nav-variants.html) */
.nav__m, .menu-btn, .drawer { display: none; }
@media (max-width: 640px) {
  .nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px 0;
    overflow: visible; margin-top: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
  .nav a { font-size: 14.5px; }
  .nav__d { display: none; }
  .nav__m { display: inline; }
  .nav a[aria-current="page"] { position: relative; }
  .nav a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--camel); }
  .menu-btn { display: inline-flex; justify-content: center; width: 44px; padding: 0; margin-left: auto; margin-right: -8px; cursor: pointer; color: var(--camel); }
  .menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
  .menu-btn__close, .menu-open .menu-btn__open { display: none; }
  .menu-open .menu-btn__close { display: inline; }
  .acc-btn { margin-left: 0; }
  /* панель «Все разделы»: под строкой логотипа, поверх страницы; строки меню на это время прячутся */
  .drawer { position: fixed; inset: 0 0 auto; z-index: -1; display: block; max-height: 100svh; overflow-y: auto;
    padding: calc(var(--hdr-row, 64px) + 22px) var(--gutter) 28px; background: rgba(22, 5, 7, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-104%); transition: transform 450ms var(--ease-drawer), visibility 0s linear 450ms; visibility: hidden; }
  .drawer[hidden] { display: none; }
  .menu-open .drawer { transform: none; visibility: visible; transition: transform 450ms var(--ease-drawer); }
  .menu-open .nav { visibility: hidden; }
  .drawer a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line);
    color: var(--cream); text-decoration: none; font: 400 26px/1.1 var(--serif); }
  .drawer a span { font: 400 13px var(--sans); color: var(--camel); white-space: nowrap; }
  .drawer a[aria-current="page"] { color: var(--camel); }
  .drawer .drawer__tg { border: 0; margin-top: 10px; font: 500 15px var(--sans); color: var(--camel); }
  .hero { padding-top: 168px; }
  .page-head { padding-top: 160px; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .drawer, .menu-open .drawer { transition: none; } }

/* Праздничный режим в корзине: подсказка под датой (занятые интервалы недоступны) */
.holiday-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.45; }
.holiday-note b { color: var(--ink, #EADFCF); font-weight: 600; }

/* SEO-страницы (доставка ночью, 24/7, срочно…): спокойный текст, шаги, зоны, вопросы */
.seo { padding: 8px 0 72px; }
.seo__wrap { max-width: 760px; }
.seo h2 { margin: 40px 0 12px; font-size: clamp(22px, 3vw, 28px); }
.seo p { color: var(--muted); line-height: 1.65; margin: 0 0 12px; }
.seo-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.seo-cta--end { margin-top: 36px; }
.seo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.seo-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 2px 14px; align-items: start; }
.seo-steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--camel); }
.seo-steps span { color: var(--muted); line-height: 1.55; }
.seo-zones { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.seo-zones li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.seo-zones b { white-space: nowrap; font-weight: 500; }
.seo-note { font-size: 14px; margin-top: 10px; }
.seo-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.seo-faq summary { cursor: pointer; font-weight: 500; }
.seo-faq details p { margin: 10px 0 0; }
.seo-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 36px; font-size: 14px; }
.seo-links a, .footer__seo a { color: var(--muted); }
.footer__seo { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; padding: 14px 0 4px; border-top: 1px solid var(--line); }
