/* Billionaire Parfums: ночной парфюмерный бутик.
   Mobile-first. Одна тёмная тема. Один радиус: 2px. */

:root {
  --bg: #000000;          /* ровно как фон кадров */
  --card: #12100E;
  --gold: #C9A86A;
  --gold-hi: #E8D5A8;
  --text: #F3EDE3;
  --text-2: #B5AEA3;      /* текст абзацев: светлее --muted, чтобы читался */
  --muted: #8C857B;
  --line: rgba(201, 168, 106, .22);
  --line-strong: #7A7166;
  --err: #F0A38E;

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r: 2px;
  --gutter: 20px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --header-h: 60px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* z-index: кадры 0, искры 1, свечение 2, текст 3, флакон-кнопка 4, шапка 20, меню 30, cookie 40 */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--sat) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-hi); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: var(--r); }
::selection { background: var(--gold); color: #000; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--gold); color: #000; padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: calc(12px + var(--sat)); }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: calc(var(--gutter) + var(--sal));
  padding-right: calc(var(--gutter) + var(--sar));
}
.wrap--menu { max-width: 920px; }
.wrap--narrow { max-width: 840px; }

/* ---------- Типографика ---------- */
.h2 {
  font: 500 clamp(38px, 10vw, 64px)/1.05 var(--serif);
  letter-spacing: -.01em;
  margin: 0 0 16px;
  max-width: 16ch;
  text-wrap: balance;
}
.lead { color: var(--text-2); max-width: 52ch; margin: 0 0 40px; }

.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.link:hover { color: var(--gold-hi); }

/* ---------- Кнопки ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--h); padding: 0 22px;
  border-radius: var(--r); border: 1px solid transparent;
  font: 600 15px/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn--gold { background: var(--gold); color: #000; }
.btn--gold:hover { background: var(--gold-hi); color: #000; }
.btn--ghost {
  background: rgba(0, 0, 0, .55); color: var(--text);
  border-color: rgba(201, 168, 106, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.btn--sm { --h: 44px; padding: 0 16px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  padding-top: var(--sat);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-solid { background: rgba(0, 0, 0, .86); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header__in {
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  max-width: 1320px; margin: 0 auto;
  padding: 0 calc(var(--gutter) + var(--sar)) 0 calc(var(--gutter) + var(--sal));
}
.logo { color: var(--text); text-decoration: none; font: 500 22px/1 var(--serif); letter-spacing: .01em; white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo__b { font-style: italic; }
.logo__p { color: var(--gold); }
.nav { display: none; }
.header__cta { display: none; }
.menu-toggle {
  margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 4px;
  background: none; border: 0; cursor: pointer; color: var(--text);
  font: 600 14px/1 var(--sans); letter-spacing: .02em;
}
.menu {
  position: fixed; inset: calc(var(--header-h) + var(--sat)) 0 0; z-index: 30;
  background: var(--bg); padding: 24px calc(var(--gutter) + var(--sar)) calc(24px + var(--sab)) calc(var(--gutter) + var(--sal));
  overflow-y: auto;
}
.menu nav { display: grid; }
.menu a {
  display: block; padding: 14px 0; color: var(--text); text-decoration: none;
  font: 500 34px/1.1 var(--serif); border-bottom: 1px solid var(--line);
}
.menu a:hover { color: var(--gold-hi); }
body.menu-open { overflow: hidden; }

/* ---------- Первый экран ---------- */
.hero { position: relative; background: var(--bg); }
.hero__stage {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
}
/* Кадр 1 как фон до того, как нарисуется canvas. Позиция совпадает с hero.js */
.hero__stage::before {
  content: ''; position: absolute; inset: 0;
  background: var(--bg) url('../frames/desktop/0001.webp') 15% 50% / cover no-repeat;
}
.hero.is-drawn .hero__stage::before { display: none; }
@media (orientation: portrait) and (max-width: 899px) {
  .hero__stage::before { background-image: url('../frames/mobile/0001.webp'); background-position: 50% 50%; }
}
.hero__frames, .hero__sparks { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__frames { z-index: 0; }
.hero__sparks { z-index: 1; pointer-events: none; }

/* Подсказка «нажми сюда»: два тонких кольца расходятся от распылителя. Центр ставит hero.js */
.hero__glow {
  position: absolute; z-index: 2; pointer-events: none;
  left: 0; top: 0; width: 0; height: 0;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.hero__glow::before, .hero__glow::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid var(--gold-hi); border-radius: 50%;
  opacity: 0;
}
.hero.is-idle .hero__glow { opacity: 1; }
.hero.is-idle .hero__glow::before, .hero.is-idle .hero__glow::after { animation: ring 2.4s linear infinite; }
.hero.is-idle .hero__glow::after { animation-delay: .45s; }
@keyframes ring {
  0% { transform: scale(.3); opacity: 0; animation-timing-function: ease-out; }
  10% { transform: scale(.42); opacity: .95; animation-timing-function: cubic-bezier(.3, .5, .4, 1); }
  70% { transform: scale(1); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.hero__bottle {
  position: absolute; z-index: 4;
  left: 0; top: 0; width: 0; height: 0;
  background: transparent; border: 0; padding: 0; margin: 0;
  cursor: pointer; border-radius: 40% 40% 12% 12%;
  -webkit-tap-highlight-color: transparent;
}
.hero__bottle:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 6px; }
.hero:not(.is-idle) .hero__bottle { cursor: default; }

.hero__content {
  position: absolute; inset: 0; z-index: 3;
  display: grid; grid-template-rows: auto auto 1fr;
  padding: calc(var(--header-h) + var(--sat) + 12px) calc(var(--gutter) + var(--sar)) calc(20px + var(--sab)) calc(var(--gutter) + var(--sal));
  pointer-events: none;
}
.hero__top { grid-row: 1; }
.hero__title {
  margin: 0;
  font: 500 clamp(44px, 12.6vw, 60px)/1.02 var(--serif);
  letter-spacing: -.012em;
  color: var(--text);
}
.hero__line { display: block; padding-bottom: .04em; will-change: filter, opacity; text-shadow: 0 2px 24px rgba(0, 0, 0, .7); }
.hero__sub {
  margin: 14px 0 0; max-width: 32ch;
  color: var(--text); font-size: 16px; line-height: 1.5;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8);
}
/* На телефоне флакон стоит внизу кадра: кнопки сразу под текстом, в тёмной зоне над ним */
.hero__cta {
  grid-row: 2; margin-top: 22px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px;
}
.hero__cta .btn--ghost { background: rgba(0, 0, 0, .78); }
.hero__cta .btn { padding: 0 10px; font-size: 14px; min-width: 0; }
.hero__cta a { pointer-events: auto; }

.hero__hint {
  position: absolute; z-index: 3; left: 0; right: 0;
  bottom: calc(34px + var(--sab));
  margin: 0; text-align: center; pointer-events: none;
  font-size: 14px; color: var(--text-2); letter-spacing: .02em;
  text-shadow: 0 0 10px #000, 0 0 18px #000, 0 0 2px #000;
  opacity: 0; transition: opacity .5s var(--ease);
}
.hero.is-idle .hero__hint { opacity: 1; }

/* Скрытые до проявления элементы (только когда JS работает и анимация включена) */
.js .hero:not(.is-static) .hero__line { opacity: 0; }
.js .hero:not(.is-static) [data-reveal] { opacity: 0; visibility: hidden; }

/* Статичный режим: reduced motion или GSAP не загрузился */
.hero.is-static .hero__hint, .hero.is-static .hero__glow { display: none; }
.hero.is-static .hero__bottle { display: none; }

/* ---------- Лоадер (первый заход за сессию) ----------
   Уход в три слоя (класс is-done): надпись растворяется за .8 с, облако расползается и тает (js/loader.js),
   чёрный фон уходит с задержкой .3 с за 1,4 с, а первый экран в это время выходит из полутьмы. */
.loader { display: none; }
.is-loading .loader, .loader.is-on {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 0 var(--gutter);
  background-color: var(--bg);
  transition: background-color 1.4s cubic-bezier(.45, 0, .25, 1) .3s;
}
html.is-loading { overflow: hidden; }
.loader__mist { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loader__word {
  position: relative; margin: 0; text-align: center;
  font: italic 500 clamp(40px, 11vw, 80px)/1.1 var(--serif);
  letter-spacing: .005em; color: var(--text);
  text-shadow: 0 0 2px rgba(0, 0, 0, .9), 0 0 18px #000, 0 0 36px rgba(0, 0, 0, .9);
  transition: opacity .8s var(--ease), filter .8s var(--ease), transform 1.2s var(--ease);
}
.loader__w { display: inline-block; white-space: nowrap; }
.loader__w--gold { color: var(--gold-hi); }
.loader__word span span { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.14em); }
.loader.is-go .loader__word span span {
  animation: letter .65s var(--ease) forwards;
  animation-delay: calc(var(--i) * 55ms + 120ms);
}
@keyframes letter { to { opacity: 1; filter: blur(0); transform: none; } }
.loader.is-done { background-color: rgba(0, 0, 0, 0); pointer-events: none; }
.loader.is-done .loader__word { opacity: 0; filter: blur(8px); transform: translateY(-10px) scale(1.03); }

/* Первый экран под лоадером приглушён и чуть крупнее, после ухода лоадера плавно встаёт на место.
   Переходы висят только на время ухода (класс is-intro снимает loader.js): постоянный transition
   на стадии с canvas лишний раз нагружает композитинг при прокрутке. */
html.is-loading .hero__stage { transform: scale(1.06); filter: brightness(.35); }
html.is-loading .header { opacity: 0; }
html.is-intro .hero__stage { transition: transform 2s var(--ease), filter 1.6s ease-out; }
html.is-intro .header { transition: opacity 1s var(--ease) .9s; }

/* ---------- Секции ---------- */
.section { padding: 96px 0; position: relative; }

/* 2. Как это работает: лестница из трёх шагов */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; counter-reset: s; }
.step { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: baseline; }
.step__n { grid-row: span 2; font: italic 500 56px/.8 var(--serif); color: var(--gold); }
.step__t { margin: 0 0 6px; font: 500 26px/1.15 var(--serif); }
.step p { margin: 0; color: var(--text-2); max-width: 34ch; grid-column: 2; }

/* 3. Барная карта */
.aromas { background: var(--bg); }
.filters {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter)) 28px; padding: 2px var(--gutter) 6px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  min-height: 44px; padding: 0 16px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r);
  color: var(--text); font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.chip:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #000; }

.menu-list { list-style: none; margin: 0; padding: 0; }
.dish { padding: 24px 0; border-top: 1px solid var(--line); }
.dish:last-child { border-bottom: 1px solid var(--line); }
.dish[hidden] { display: none; }
.dish__house { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.dish__month { color: var(--gold); font: italic 500 17px/1 var(--serif); }
.dish__row { display: flex; align-items: baseline; gap: 10px; }
.dish__name {
  font: 500 28px/1.1 var(--serif); color: var(--text); text-decoration: none;
  min-width: 0;
}
a.dish__name:hover { color: var(--gold-hi); }
.dish__dots { flex: 1 1 24px; min-width: 24px; border-bottom: 1px dotted rgba(201, 168, 106, .55); transform: translateY(-6px); }
.dish__price { font: 500 24px/1 var(--serif); color: var(--gold); white-space: nowrap; }
.dish__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.dish__for { font-style: italic; font-family: var(--serif); font-size: 18px; color: var(--text); }
.dish--month { position: relative; }
.dish--month::before { content: ''; position: absolute; left: -14px; top: 24px; bottom: 24px; width: 2px; background: var(--gold); }
.menu-empty { color: var(--muted); }

/* 4. Точки */
.points__grid { display: grid; gap: 28px; }
.points__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.point { background: var(--card); padding: 22px 20px; border: 1px solid transparent; border-radius: var(--r); transition: border-color .25s var(--ease); }
.point.is-active { border-color: rgba(201, 168, 106, .55); }
.point__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.point__name { font: 500 26px/1.1 var(--serif); margin: 0; }
.point__note { color: var(--gold); font: italic 500 18px/1 var(--serif); }
.point dl { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.point dt { color: var(--muted); }
.point dd { margin: 0; }
.point__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.map {
  position: relative; min-height: 360px; background: var(--card); border-radius: var(--r); overflow: hidden;
}
.map__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }
.map__fallback p { max-width: 30ch; margin: 0; }
/* Тёмная карта: инвертируем только подложку, метки остаются золотыми */
.map [class*="ground-pane"] { filter: grayscale(1) invert(1) brightness(.78) contrast(.92); }
.map [class*="copyrights-pane"] { opacity: .6; }

/* 5. Оригиналы: асимметричный коллаж */
.orig { display: grid; gap: 16px; }
.orig figure { margin: 0; }
.orig__main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.orig figcaption { margin-top: 10px; font-size: 15px; color: var(--text-2); max-width: 40ch; }
.ph {
  aspect-ratio: 1 / 1; background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--r);
  display: grid; place-content: center; text-align: center; gap: 8px; padding: 16px;
  color: var(--text); font: 500 22px/1.2 var(--serif);
}
.ph small { font: 400 13px/1 var(--sans); color: var(--muted); }
.orig__ph { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.orig__ph .ph { font-size: 14px; padding: 8px; }
.orig__ph .ph small { display: none; }
.orig__ph figcaption { margin: 0; }
.orig__text { margin-top: 24px; }
.facts { margin: 0; display: grid; gap: 28px; }
.facts dt { font: 500 24px/1.15 var(--serif); margin-bottom: 6px; color: var(--gold); }
.facts dd { margin: 0; color: var(--text-2); max-width: 44ch; }

/* 6. Отливанты */
.decants__grid { display: grid; gap: 28px; }
.decants__copy .lead { margin-bottom: 0; }
.form { background: var(--card); padding: 24px 20px; border-radius: var(--r); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input[type="text"], .field select {
  width: 100%; min-height: 52px; padding: 0 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r);
  font: 400 16px/1.2 var(--sans);
  transition: border-color .2s var(--ease);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.field input:hover, .field select:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 1px; border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field__help { margin: 0; font-size: 13px; color: var(--muted); }
.field__err { margin: 0; font-size: 13px; color: var(--err); min-height: 0; }
.field__err:empty { display: none; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field--check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--gold); cursor: pointer; }
.field--check label { font-weight: 400; color: var(--text-2); line-height: 1.45; cursor: pointer; }
.field--check .field__err { grid-column: 2; }
.form { position: relative; }
.form__status { margin: 0; font-size: 14px; color: var(--muted); }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--gold-hi); font: 400 22px/1.3 var(--serif); }
.form__status.is-err { color: var(--err); }

/* 7. Партнёры: одна крупная строка */
.partners { padding: 96px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners__t { font: italic 500 clamp(40px, 11vw, 112px)/1.02 var(--serif); margin: 0 0 20px; letter-spacing: -.015em; max-width: 14ch; padding-bottom: .06em; }
.partners .lead { margin-bottom: 28px; }
.partners__links { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.partners__links .btn { white-space: normal; text-align: center; }

/* 8. FAQ */
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 500 23px/1.25 var(--serif); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 500 30px/1 var(--serif); color: var(--gold); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--gold-hi); }
.faq details p { margin: 0 0 24px; color: var(--text-2); max-width: 60ch; }

/* Подвал */
.footer { padding: 64px 0 calc(40px + var(--sab)); background: var(--bg); }
.footer__grid { display: grid; gap: 32px; }
.footer__brand p { color: var(--muted); margin: 10px 0 0; }
.footer__h { font: 600 14px/1 var(--sans); color: var(--muted); margin: 0 0 12px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer__list a, .footer__list .link { display: inline-flex; min-height: 36px; align-items: center; color: var(--text); text-decoration: none; }
.footer__list a:hover, .footer__list .link:hover { color: var(--gold-hi); }
.footer__legal, .footer__copy { margin: 0; font-size: 13px; color: var(--muted); max-width: 70ch; }
.footer__legal { padding-top: 24px; border-top: 1px solid var(--line); }

/* Cookie */
.cookie {
  position: fixed; z-index: 40;
  left: calc(12px + var(--sal)); right: calc(12px + var(--sar)); bottom: calc(12px + var(--sab));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; display: grid; gap: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  max-width: 560px;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 14px; color: var(--text); }
.cookie__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Страница аромата ---------- */
.aroma-page .header { background: rgba(0, 0, 0, .86); border-bottom-color: var(--line); }
.ap { padding: calc(var(--header-h) + var(--sat) + 40px) 0 80px; }
.ap__back { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 16px; }
.ap__back:hover { color: var(--gold-hi); }
.ap__grid { display: grid; gap: 32px; }
.ap__house { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.ap__name { font: 500 clamp(48px, 13vw, 96px)/1 var(--serif); margin: 0 0 16px; letter-spacing: -.015em; }
.ap__desc { color: var(--text-2); max-width: 52ch; margin: 0 0 28px; }
.ap__compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin: 0 0 28px; border-radius: var(--r); overflow: hidden; }
.ap__compare div { background: var(--card); padding: 18px 16px; }
.ap__compare dt { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.ap__compare dd { margin: 0; font: 500 26px/1.1 var(--serif); }
.ap__compare .is-gold dd { color: var(--gold); }
.ap__pyr { margin: 0 0 32px; display: grid; gap: 14px; }
.ap__pyr dt { font: italic 500 19px/1.2 var(--serif); color: var(--gold); }
.ap__pyr dd { margin: 0; color: var(--text); }
.ap__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.ap__social { border-top: 1px solid var(--line); padding-top: 28px; }
.ap__social h2 { font: 500 30px/1.15 var(--serif); margin: 0 0 8px; }
.ap__social p { color: var(--text-2); margin: 0 0 16px; }
.ap__photo .ph { aspect-ratio: 4 / 5; }
.ap__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.legal { padding: calc(var(--header-h) + var(--sat) + 40px) 0 80px; }
.legal h1 { font: 500 clamp(40px, 10vw, 64px)/1.05 var(--serif); margin: 0 0 24px; }
.legal h2 { font: 500 26px/1.2 var(--serif); margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); max-width: 70ch; }

/* ---------- Планшет ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero__cta { display: flex; gap: 12px; }
  .hero__cta .btn { padding: 0 24px; font-size: 15px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { grid-template-columns: 1fr; }
  .step__n { grid-row: auto; margin-bottom: 18px; font-size: 72px; }
  .step p { grid-column: 1; }
  .step:nth-child(2) { margin-top: 56px; }
  .step:nth-child(3) { margin-top: 112px; }
  .orig__ph { grid-template-columns: 1fr; }
  .orig__ph .ph { font-size: 20px; }
  .orig__ph .ph small { display: block; }
  .orig__ph figcaption { margin-top: 10px; }
  .orig { grid-template-columns: 1fr 1fr; }
  .orig__main, .orig__text { grid-column: 1 / -1; }
  .cookie { left: auto; right: calc(24px + var(--sar)); bottom: calc(24px + var(--sab)); }
  .form { padding: 32px; }
}

/* ---------- Компьютер ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 48px; --header-h: 72px; }
  .nav { display: flex; gap: 28px; margin-left: auto; }
  .nav a { color: var(--text); text-decoration: none; font-size: 14px; padding: 12px 0; }
  .nav a:hover { color: var(--gold-hi); }
  .header__cta { display: inline-flex; }
  .menu-toggle, .menu { display: none; }

  .hero__content {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 96px;
    /* левый край совпадает с логотипом в шапке */
    padding-left: max(calc(var(--gutter) + var(--sal)), calc((100vw - 1320px) / 2 + var(--gutter)));
  }
  .hero__title { font-size: min(5vw, 96px); }
  .hero__sub { font-size: 17px; max-width: 30ch; margin-top: 22px; }
  .hero__cta { margin-top: 32px; }
  .hero__hint { bottom: 40px; font-size: 15px; }

  .section { padding: 160px 0; }
  .h2 { margin-bottom: 20px; }
  .lead { font-size: 17px; margin-bottom: 64px; }

  .how .wrap { display: grid; grid-template-columns: 5fr 7fr; column-gap: 64px; }
  .how .h2, .how .lead { grid-column: 1; }
  .how .steps { grid-column: 2; grid-row: 1 / span 3; }

  .dish { padding: 28px 0; }
  .dish__name { font-size: 36px; }
  .dish__price { font-size: 30px; }
  .dish--month::before { left: -28px; }

  .points__grid { grid-template-columns: 5fr 7fr; gap: 32px; align-items: stretch; }
  .map { min-height: 100%; }

  .orig { grid-template-columns: 6fr 3fr 3fr; gap: 24px; align-items: end; }
  .orig__main { grid-column: 1; }
  .orig__main img { aspect-ratio: 4 / 3; }
  .orig__ph { grid-template-columns: 1fr; }
  .orig__ph:nth-of-type(2) { margin-bottom: 72px; } /* лёгкая ступенька между двумя фото */
  .orig__ph .ph { font-size: 19px; }
  .orig__text { grid-column: 1 / -1; margin-top: 48px; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 48px; }

  .decants__grid { grid-template-columns: 6fr 5fr; gap: 96px; align-items: start; }
  .decants__copy { position: sticky; top: 140px; }
  .form { padding: 40px; }

  .partners { padding: 140px 0; }

  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__legal, .footer__copy { grid-column: 1 / -1; }

  .ap__grid { grid-template-columns: 7fr 5fr; gap: 80px; align-items: start; }
  .ap__photo { position: sticky; top: 120px; }
}

/* ---------- Пониженное движение ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
