/* ══════════════════════════════════════════════════════════════
   Lunessa 2.0 — публичный лендинг lunessa.me
   Токены и типографика — те же, что в веб-приложении (app/styles.css).
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #F4EDE4;
  --bg-tint:   #F7EFE6;
  --panel:     #FBF5ED;
  --panel-2:   #FDF9F3;
  --line:      #E3D7C8;
  --line-soft: #ECE3D7;
  --line-2:    #D9CBBA;

  --ink:       #342A23;
  --ink-2:     #3F352D;
  --body:      #5D5146;
  --muted:     #8A7A6B;
  --muted-2:   #A08E7A;

  --gold:      #B8996E;
  --gold-deep: var(--dark-hov);
  --gold-mid:  #A38663;
  --gold-soft: #C1AD96;
  --gold-pale: #D4C4A4;
  --gold-tint: #EBE0D5;

  --dark:      #7F6849;
  --dark-hov:  #6C573C;

  /* Тени тёплые, не серые: на кремовом фоне нейтральный чёрный выглядит
     грязным пятном. Два слоя — короткий контактный и длинный мягкий. */
  --shadow-card: 0 1px 2px rgba(74, 58, 32, .10), 0 8px 22px rgba(74, 58, 32, .14);
  --shadow-soft: 0 1px 2px rgba(74, 58, 32, .07), 0 5px 14px rgba(74, 58, 32, .10);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1140px;
}

* { box-sizing: border-box; }

/* Атрибут hidden должен побеждать display из наших правил: у шагов
   онбординга стоит display:grid, и без этого спрятанный шаг оставался на
   экране. */
[hidden] { display: none !important; }
html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(201, 172, 114, .18);
}

h1, h2, h3, p, ul, figure, fieldset { margin: 0; }
ul { list-style: none; padding: 0; }
fieldset { border: none; padding: 0; min-width: 0; }
legend { padding: 0; }
button, input { font: inherit; color: inherit; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-mid); }

:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--dark); color: var(--bg); text-decoration: none; font-size: 13px;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep);
}

/* ─── Кнопки ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; font-size: 14px; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  touch-action: manipulation;
}
.btn--dark { background: var(--dark); color: var(--bg); }
.btn--dark:hover { background: var(--dark-hov); color: var(--bg); }
.btn--ghost { background: var(--panel); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold-soft); color: var(--ink); }
.btn--lg { padding: 17px 34px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ─── Шапка (по макету 11.09.2026) ──────────────────────── */

.top {
  position: sticky; top: 0; z-index: 30;
  height: 84px; display: flex; align-items: center; gap: 40px;
  padding: 0 5.4%;
  background: rgba(247, 240, 232, .92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(113, 90, 67, .15);
}
.top__brand { position: relative; flex-shrink: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.top__mark { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--gold); }
.top__word { font-family: var(--serif); font-weight: 500; font-size: 29px; line-height: 1; letter-spacing: .18em; }
.top__tag { margin-top: 5px; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
.top__nav { display: flex; align-items: center; gap: 28px; }
.top__nav a, .top__navbtn { position: relative; font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--ink); text-decoration: none; white-space: nowrap; }
/* «Карта» открывает окно расчёта, а не раздел — кнопка, но выглядит как соседи */
.top__navbtn { border: 0; background: none; padding: 0; cursor: pointer; line-height: inherit; }
.top__nav a::after, .top__navbtn::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--gold-mid); transform: scaleX(0); transition: transform .2s ease; }
.top__nav a:hover::after, .top__navbtn:hover::after { transform: scaleX(1); }
.top__navbtn:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 4px; }
.top__actions { display: flex; align-items: center; gap: 22px; }
.top__sky { margin-left: auto; display: flex; align-items: center; gap: 16px; padding-right: 20px; border-right: 1px solid rgba(113, 90, 67, .18); }
.top__skyitem { display: flex; flex-direction: column; gap: 2px; }
.top__skylabel { font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-mid); white-space: nowrap; }
.top__skyval { font-size: 13px; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.top__cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 24px;
  border: 1px solid var(--gold-deep); border-radius: 25px; background: transparent;
  font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.top__cta span { color: var(--gold-mid); font-size: 13px; }
.top__cta:hover { background: var(--gold-tint); transform: translateY(-1px); }
.top__login { font-size: 13.5px; color: var(--body); text-decoration: none; white-space: nowrap; }
.top__login:hover { color: var(--gold-deep); }
.top__burger { display: none; width: 34px; padding: 4px 0; border: 0; background: none; cursor: pointer; flex-direction: column; gap: 7px; }
.top__burger span { display: block; height: 1px; background: var(--ink-2); }

.drawer {
  position: fixed; z-index: 40; inset: 0 0 0 auto; width: min(355px, 90vw);
  display: flex; flex-direction: column; padding: 44px 32px 32px;
  background: #F7EEE5; box-shadow: -12px 0 35px rgba(64, 44, 29, .15);
}
.drawer[hidden] { display: none; }
.drawer__close { position: absolute; top: 22px; right: 22px; border: 0; background: none; font-size: 20px; color: var(--ink); cursor: pointer; }
.drawer__word { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: .18em; color: var(--ink); }
.drawer__links { display: flex; flex-direction: column; gap: 22px; margin-top: 56px; }
.drawer__links a { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgba(100, 78, 57, .18); font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); text-decoration: none; }
.drawer__cta { margin-top: auto; padding: 15px; border: 1px solid var(--gold-deep); border-radius: 28px; background: transparent; font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--ink); cursor: pointer; }
body.is-drawer { overflow: hidden; }

/* ─── Обложка, главная мысль, ценности, витрина ──────────── */

.cover {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  min-height: 500px; background: linear-gradient(180deg, #E6D8C6, #E9DCCB 55%, #EADFCE);
  border-bottom: 1px solid rgba(113, 90, 67, .15);
}
.cover__text {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px;
  padding: 40px 24px 40px calc(5.4vw + 6.9vw);
}
.cover__eyebrow { margin: 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.cover__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 3.7vw, 50px); line-height: 1.06; color: var(--ink); text-wrap: balance; }
.cover__rule { font-size: 14px; color: var(--gold-mid); letter-spacing: .3em; }
.cover__rule::before, .cover__rule::after { content: ''; display: inline-block; width: 42px; height: 1px; margin: 0 8px; vertical-align: middle; background: var(--gold-soft); }
.cover__lead { margin: 0; max-width: 42ch; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.cover__actions { display: flex; align-items: center; gap: 34px; margin-top: 12px; flex-wrap: wrap; }
.cover__cta {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px;
  border: 0; border-radius: 32px; background: var(--dark); color: #FBF6EE;
  font-family: var(--serif); font-weight: 500; font-size: 17px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(92, 65, 42, .18);
  transition: background .2s ease, transform .2s ease;
}
.cover__cta:hover { background: var(--dark-hov); transform: translateY(-1px); }
.cover__cta span { font-size: 13px; color: var(--gold-tint); }
.cover__more { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 15px; line-height: 1.25; color: var(--ink-2); text-decoration: none; }
.cover__more:hover { color: var(--gold-deep); }
.cover__play { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--gold-soft); border-radius: 50%; font-size: 12px; color: var(--gold-deep); padding-left: 3px; }
.cover__hand { margin: 14px 0 0; font-family: Caveat, 'Comic Sans MS', cursive; font-size: 24px; line-height: 1.1; color: var(--ink-2); transform: rotate(-3deg); transform-origin: left center; }
.cover__art { position: absolute; inset: 0; z-index: 0; }
.cover__words {
  position: absolute; z-index: 1; top: 44px; right: 5.4vw; margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; align-items: flex-end; gap: 9px;
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2);
}
.cover__motto {
  position: absolute; z-index: 1; bottom: 36px; right: 5.4vw; margin: 0;
  display: flex; align-items: flex-start; gap: 16px;
  font-size: 10px; line-height: 1.75; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); text-align: right;
}
.cover__motto-line { width: 44px; height: 1px; margin-top: 8px; background: rgba(74, 58, 32, .45); flex: none; }
.cover__art img {
  /* Картинка 2000×672, а высоту блока задаёт текст слева: при contain
     сверху и снизу оставались пустые полосы (на 1536px их видно, на 1440
     они сливались с фоном). cover заполняет блок по высоте; режется левый
     край, который и так под текстом и растворён маской, и ткань внизу –
     якорь чуть выше центра, чтобы макушка оставалась в кадре. */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right 28%;
  -webkit-mask-image: linear-gradient(90deg, transparent calc(100% - 1492px), #000 calc(100% - 1180px));
  mask-image: linear-gradient(90deg, transparent calc(100% - 1492px), #000 calc(100% - 1180px));
}

.values {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 103px; padding: 14px 5.4%;
  border-top: 1px solid rgba(113, 90, 67, .18); border-bottom: 1px solid rgba(113, 90, 67, .18);
  background: #F7EFE6;
}
.values__item { display: flex; align-items: center; gap: 16px; }
.values__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; color: var(--gold-mid); }
.values__icon svg { display: block; }
.values__text { display: flex; flex-direction: column; gap: 6px; font-size: 10px; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase; }
.values__text b { font-weight: 500; color: var(--ink); }
.values__text small { font-size: 10px; color: var(--body); }
.values__note { display: flex; flex-direction: column; gap: 2px; margin: 0; padding-left: 32px; border-left: 1px solid rgba(109, 82, 58, .28); font-family: var(--serif); font-size: 15px; color: var(--gold-deep); }
.values__note i { font-size: 21px; white-space: nowrap; }

.shop {
  display: grid; grid-template-columns: 164px repeat(4, minmax(150px, 1fr)) 170px; gap: 17px;
  padding: 22px 5.3% 26px; background: #F5EDE4;
  scroll-margin-top: 96px;
}
.shop__intro { display: flex; flex-direction: column; justify-content: center; }
.shop__intro h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 29px; line-height: 1.05; }
.shop__intro span { display: block; width: 61px; height: 1px; margin-top: 22px; background: var(--gold-mid); }
.good { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(117, 91, 66, .13); background: #FBF5ED; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.good:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(92, 65, 42, .11); }
.good > img { width: 100%; height: 108px; object-fit: cover; }
.good__copy { position: relative; flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 11px 44px 12px 13px; }
.good__copy b { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.15; color: var(--ink); }
.good__copy small { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.good__copy em { margin-top: auto; padding-top: 6px; font-style: normal; font-size: 13px; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.good__arrow { position: absolute; right: 12px; bottom: 12px; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--gold-soft); border-radius: 50%; font-size: 12px; color: var(--gold-deep); }
.shop__aside { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 1px solid rgba(117, 91, 66, .09); text-align: center; background: radial-gradient(ellipse at 50% 30%, rgba(255, 248, 239, .9), rgba(241, 229, 215, .4)); }
.shop__phases { color: var(--gold-mid); font-size: 20px; letter-spacing: 4px; }
.shop__aside small { font-size: 9.5px; line-height: 1.8; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.shop__spark { position: absolute; bottom: 16px; color: var(--gold-mid); }

/* ─── Секции ─────────────────────────────────────────────── */

.section { max-width: var(--wrap); margin: 0 auto; padding: 68px 32px; }
.section--tint {
  max-width: none;
  background: var(--bg-tint);
  border-block: 1px solid var(--line);
}
.section--tint > * { max-width: var(--wrap); margin-inline: auto; }
.section--narrow { max-width: 780px; }
/* Якоря в меню прыгают к секции: без отступа её заголовок уезжает под
   липкую шапку. Значение — высота шапки плюс воздух. */
.section, .final { scroll-margin-top: 96px; }

.section__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; max-width: 62ch; }
.section__title { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.14; text-wrap: balance; }
.section__lead { font-size: 15px; line-height: 1.75; color: var(--body); text-wrap: pretty; }

/* ─── Модалка с бесплатной картой ────────────────────────── */

/* Текстовая кнопка. Без неё «Пропустить» и «Назад» рисовались браузером
   как системные — серый прямоугольник посреди набранной страницы. */
.link {
  background: none; border: none; padding: 0;
  cursor: pointer; font: inherit; font-size: 13px; color: var(--gold-deep);
  text-decoration: underline; text-underline-offset: 4px;
  transition: color .15s ease;
  touch-action: manipulation;
}
.link:hover { color: var(--gold-mid); }
.link:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 3px; border-radius: 4px; }

.navlink {
  padding: 0; border: none; background: none; cursor: pointer;
  font-size: 13.5px; color: var(--body);
  transition: color .15s ease;
}
.navlink:hover { color: var(--gold-deep); }

.modal {
  width: min(760px, calc(100vw - 32px));
  max-height: min(880px, calc(100vh - 48px));
  margin: auto;
  padding: 0; border: none; background: none; overflow: visible;
  color: var(--ink);
}
.modal::backdrop {
  background: rgba(46, 42, 36, .42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  max-height: inherit;
  border: 1px solid var(--line); border-radius: 26px;
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(50, 40, 26, .22);
  overflow: hidden;
}
.modal__scroll {
  max-height: min(880px, calc(100vh - 48px));
  overflow-y: auto; overscroll-behavior: contain;
  padding: 34px 34px 30px;
}
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel-2); cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--muted-2);
  transition: border-color .15s ease, color .15s ease;
  touch-action: manipulation;
}
.modal__close:hover { border-color: var(--gold-soft); color: var(--ink); }
.modal__head { margin-bottom: 26px; padding-right: 44px; }
/* Внутри модалки форма без второй рамки — панель уже есть */
.modal .form { border: none; background: none; padding: 0; }
.modal .result { margin-top: 22px; }

/* Окно входа: узкая карточка, всё по центру. Почта – главный путь (поле и
   кнопка во всю ширину), под чертой «или» – ряд квадратных кнопок-провайдеров. */
.modal--login { width: min(440px, calc(100vw - 32px)); }
.modal--login .modal__scroll { padding: 44px 40px 30px; }
.login__head { margin: 0 0 22px; text-align: center; }
.login__title { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; color: var(--ink); }
.login__lead { margin: 0 auto; max-width: 30ch; font-size: 13.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.modal--login .enter__card { border: none; background: none; padding: 0; box-shadow: none; }
.modal--login .enter__ways { gap: 0; }
.login__note { margin-top: 22px; text-align: center; font-size: 12px; }
.lmail { display: flex; flex-direction: column; gap: 10px; }
.lmail[hidden] { display: none; }
.lmail__input {
  width: 100%; padding: 14px 16px;
  border: 1px solid rgba(141, 119, 97, .28); border-radius: 12px;
  background: var(--panel-2); outline: none; font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .15s ease;
}
.lmail__input:hover { border-color: var(--gold-soft); }
.lmail__input:focus-visible { border-color: var(--gold-mid); outline: 2px solid var(--gold-mid); outline-offset: 1px; }
.lmail__input--err { border-color: #B4644A; }
.lmail__input::placeholder { color: var(--muted-2); }
.lmail__btn { width: 100%; padding-top: 14px; padding-bottom: 14px; border-radius: 12px; font-size: 15px; }
.lmail__btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.lmail__hint { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.lmail__hint--err { color: #B4644A; }
.lmail--sent { align-items: center; text-align: center; padding: 8px 0; }
.lmail__sent-title { margin: 0; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.lmail__sent-title span { color: var(--gold); }
.login__or { display: flex; align-items: center; gap: 14px; margin: 22px 0 16px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.login__or::before, .login__or::after { content: ''; flex: 1; height: 1px; background: rgba(113, 90, 67, .16); }
.login__providers { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.login__prov {
  width: 68px; height: 50px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(141, 119, 97, .28); border-radius: 12px; background: var(--panel-2);
  color: var(--ink); cursor: pointer; text-decoration: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
  touch-action: manipulation;
}
.login__prov svg { width: 22px; height: 22px; }
.login__prov--tg { color: #2AABEE; }
.login__prov:hover { border-color: var(--gold-soft); background: #FDF9F3; transform: translateY(-1px); }
.login__prov:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }
.login__prov[hidden] { display: none; }
.login__none { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.login__none[hidden] { display: none; }
.modal--login .enter__offline { margin-top: 12px; text-align: center; font-size: 12.5px; }
@media (max-width: 560px) {
  .modal--login .modal__scroll { padding: 34px 22px 24px; }
  .login__title { font-size: 28px; }
}
@media (max-width: 560px) {
  .lmail__btn { flex: 1 1 100%; }
}
.top__login { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
@media (max-width: 560px) {
  .modal--login .modal__scroll { padding: 30px 22px 24px; }
}

html.is-locked { overflow: hidden; }

/* ─── Форма ──────────────────────────────────────────────── */

.form {
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--panel); padding: 30px;
}
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.req { color: var(--gold-mid); }
.field__input {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--panel-2); outline: none; font-size: 14.5px;
  transition: border-color .15s ease;
  box-shadow: var(--shadow-soft);
}
.field__input:hover { border-color: var(--gold-soft); }
.field__input:focus-visible { border-color: var(--gold-mid); outline-offset: 1px; }
/* ─── Свои списки вместо системных date/time ─────────────── */

.picker-row { display: flex; align-items: center; gap: 7px; }
.picker { position: relative; display: inline-block; }
.picker--day   { width: 74px; }
.picker--month { width: 132px; }
.picker--year  { width: 92px; }
.picker--num   { width: 84px; }
.picker__sep { color: var(--muted-2); font-size: 16px; }

.picker__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 13px 12px;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--panel-2); cursor: pointer;
  font-size: 14.5px; color: var(--ink); text-align: left;
  transition: border-color .15s ease;
  touch-action: manipulation;
  box-shadow: var(--shadow-soft);
}
.picker__btn:hover { border-color: var(--gold-soft); }
.picker__btn[aria-expanded="true"] { border-color: var(--gold-mid); }
.picker__btn--empty { color: var(--muted-2); }
.picker__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.picker__caret { flex: none; font-size: 9px; color: var(--muted-2); }
.picker--err .picker__btn { border-color: #B4644A; }

.picker__pop {
  position: fixed; z-index: 60;      /* координаты ставит place() в JS */
  display: grid; grid-template-columns: repeat(var(--cols, 1), 1fr); gap: 2px;
  width: max-content; min-width: 100%;
  max-height: 246px; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel-2);
  box-shadow: 0 16px 38px rgba(60, 50, 35, .16);
}
.picker__pop[hidden] { display: none; }
.picker__opt {
  min-width: 42px; padding: 9px 10px;
  border: none; border-radius: 10px; background: none; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--ink-3); text-align: center;
  font-variant-numeric: tabular-nums;
}
.picker__opt:hover { background: #F1E9DE; }
.picker__opt[aria-selected="true"] { background: var(--gold-tint); color: var(--ink); }

/* ─── Автодополнение города ──────────────────────────────── */

.combo { position: relative; display: block; }
.combo__list {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 262px; overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 6px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel-2);
  box-shadow: 0 16px 38px rgba(60, 50, 35, .16);
}
.combo__list[hidden] { display: none; }
.combo__opt {
  width: 100%; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  border: none; border-radius: 12px; background: none; cursor: pointer;
  text-align: left;
}
.combo__opt:hover, .combo__opt.is-active { background: #F1E9DE; }
.combo__name { font-size: 14px; color: var(--ink); }
.combo__where { font-size: 11.5px; color: var(--muted-2); }
.combo__msg { padding: 12px; font-size: 12.5px; color: var(--muted); }
.field__input--err { border-color: #B4644A; }
.field__hint { font-size: 11.5px; color: var(--muted); }
.field__hint--ok { color: var(--gold-deep); }
.field__hint--err { color: #B4644A; }

.segment { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.segment__btn {
  padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--panel-2); cursor: pointer; font-size: 13px; color: var(--body);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  touch-action: manipulation;
  box-shadow: var(--shadow-soft);
}
.segment__btn:hover { border-color: var(--gold-soft); }
.segment__btn[aria-checked="true"] { background: var(--gold-tint); border-color: var(--gold-soft); color: var(--ink); }

.time-row { display: block; }
.time-row[hidden] { display: none; }

.form__foot {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft);
}
/* Мелкий текст прижат к правому краю: кнопка слева, условия справа —
   строка читается как подпись под действием, а не как продолжение формы. */
.form__legal {
  font-size: 11.5px; color: var(--muted); max-width: 46ch;
  margin-left: auto; text-align: right;
}
.form__error {
  margin-top: 16px; padding: 12px 16px;
  border: 1px solid #E0C3B6; border-radius: 12px; background: #FBF1EC;
  font-size: 13px; color: #8C4A31;
}
.form__error[hidden] { display: none; }

/* ─── Результат ──────────────────────────────────────────── */

.result { margin-top: 26px; display: flex; flex-direction: column; gap: 20px; }
.result[hidden] { display: none; }

.result__big {
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--panel); padding: 34px 30px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px;
  box-shadow: var(--shadow-card);
}
.big { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.big__label { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-mid); }
.big__value { font-family: var(--serif); font-size: 30px; line-height: 1.1; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.big__note { font-size: 12px; color: var(--muted); text-wrap: pretty; }

.result__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.panel {
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--panel); padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-card);
}
.panel__eyebrow { font-size: 10px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.panel__note { font-size: 12px; color: var(--muted); text-wrap: pretty; }

.planets, .numbers { display: flex; flex-direction: column; gap: 11px; }
.prow { display: flex; align-items: baseline; gap: 12px; font-size: 14px; }
.prow__glyph { width: 20px; flex: none; text-align: center; color: var(--gold); font-size: 15px; }
.prow__name { flex: 1; min-width: 0; color: var(--body); }
.prow__sign { color: var(--ink); }
.prow__deg { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted-2); min-width: 42px; text-align: right; }
.prow__rx { font-size: 10px; letter-spacing: .08em; color: var(--gold-mid); }

.nrow { display: flex; align-items: center; gap: 14px; }
.nrow__num {
  width: 42px; height: 42px; flex: none; border-radius: 999px;
  background: var(--gold-tint); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1;
  box-shadow: var(--shadow-soft);
}
.nrow__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nrow__title { font-size: 14px; }
.nrow__note { font-size: 11.5px; color: var(--muted-2); }

.result__cta {
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--gold-tint); padding: 28px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}
.result__ctaText { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }

/* ─── Вход на главной: Telegram и Google ───────────────────── */

.enter { background: var(--bg); border-block: 1px solid rgba(113, 90, 67, .12); scroll-margin-top: 96px; }
.enter__inner {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px; align-items: center; padding: 60px 32px 64px;
}
.enter__text { display: flex; flex-direction: column; gap: 14px; }
.enter__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.08; color: var(--ink); }
.enter__lead { margin: 0; max-width: 48ch; font-size: 15px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.enter__note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.enter__note span { color: var(--gold); }
.enter__note a { color: var(--gold-deep); }
.enter__card {
  border: 1px solid rgba(141, 119, 97, .14); border-radius: 12px;
  background: rgba(255, 251, 247, .8); padding: 28px 28px 24px;
  box-shadow: 0 13px 33px rgba(96, 76, 57, .08);
}
.enter__ways { display: flex; flex-direction: column; gap: 12px; }
.enter__way {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 54px; padding: 12px 20px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--panel-2); color: var(--ink);
  text-decoration: none; font: inherit; font-size: 15px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.enter__way:hover { border-color: var(--gold-soft); background: #FDF9F3; transform: translateY(-1px); }
.enter__way:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }
.enter__way[hidden] { display: none; }
.enter__way--tg { background: var(--dark); border-color: var(--dark); color: #FBF6EE; }
.enter__way--tg:hover { background: var(--dark-hov); border-color: var(--dark-hov); color: #FBF6EE; }
.enter__ico { width: 20px; height: 20px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.enter__alt { margin: 6px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.enter__alt a { color: var(--gold-deep); }
.enter__offline { margin: 0; font-size: 13px; line-height: 1.6; color: var(--body); }
.enter__offline[hidden], .enter__qr[hidden], .enter__in[hidden] { display: none; }
.enter__qr { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.enter__qr-title { margin: 0; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.enter__qr-img { width: 180px; height: 180px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.enter__qr-note, .enter__qr-word { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); max-width: 34ch; }
.enter__qr-word { padding: 10px 14px; border-radius: 10px; background: var(--gold-tint); color: var(--body); }
.enter__qr-word b { font-family: var(--serif); font-size: 16px; color: var(--ink); }
.enter__qr-status { margin: 0; min-height: 1.2em; font-size: 12.5px; color: var(--gold-deep); }
.enter__back { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-size: 13px; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.enter__in { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.enter__in-title { margin: 0; font-family: var(--serif); font-size: 24px; color: var(--ink); }

/* ─── Карточки отличий ───────────────────────────────────── */


/* ─── Письмо ─────────────────────────────────────────────── */

.letter {
  display: grid; grid-template-columns: 172px minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--panel-2); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.letter__side {
  background: var(--bg-tint); border-right: 1px solid var(--line);
  padding: 30px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.letter__date { font-family: var(--serif); font-size: 13px; letter-spacing: .1em; color: var(--body); display: flex; flex-direction: column; }
.letter__date b { font-size: 46px; font-weight: 500; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.letter__moon { font-size: 22px; color: var(--gold); }
.letter__lunar { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.letter__body { padding: 32px 34px; display: flex; flex-direction: column; gap: 14px; }
.letter__body p { font-size: 15px; line-height: 1.8; color: var(--ink-2); text-wrap: pretty; }
.letter__hi { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.letter__sign { font-size: 12px; letter-spacing: .18em; color: var(--gold-mid); }
.letter__note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* ─── Сны: полоса с фоном, текст слева, карточка в центре ─── */

.dreamsband {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, #F1EAE1 0, #EFE6DA 60%, #E9DECF 100%);
  border-block: 1px solid rgba(113, 90, 67, .15);
  scroll-margin-top: 96px;
}
.dreamsband__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.dreamsband__bg[hidden] { display: none; }
.dreamsband__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 30fr) minmax(0, 24fr);
  gap: 36px; align-items: center;
  min-height: 608px;
  padding: 48px 5.4vw 50px;
}
.dreamsband__text { display: flex; flex-direction: column; gap: 14px; padding-left: 6.9vw; }
.dreamsband__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.08; color: var(--ink); }
.dreamsband__lead { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--body); max-width: 48ch; text-wrap: pretty; }
.dreamsband__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.dreamsband__item { display: flex; gap: 16px; align-items: flex-start; }
.dreamsband__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid rgba(140, 114, 90, .35); border-radius: 50%; color: #88735E; }
.dreamsband__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dreamsband__body b { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.2; color: var(--ink); }
.dreamsband__body small { font-size: 13px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.dreamsband__mid { display: flex; flex-direction: column; gap: 26px; padding-top: 6px; }
.dreamsband__hand { margin: 0 0 0 8px; align-self: flex-start; font-family: Caveat, cursive; font-size: 25px; line-height: 1.05; color: var(--ink-2); transform: rotate(-7deg); transform-origin: left center; }
.dreamsband__art { min-height: 100px; }

.dreamcard {
  margin: 0;
  border: 1px solid rgba(141, 119, 97, .1); border-radius: 12px;
  background: rgba(255, 251, 247, .8); padding: 24px 24px 20px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 13px 33px rgba(96, 76, 57, .09);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.dreamcard__head { display: flex; flex-direction: column; gap: 4px; }
.dreamcard__night { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.dreamcard__moon { font-size: 12.5px; color: var(--muted-2); }
.dreamcard__moon span { color: var(--gold); }
.dreamcard__quote {
  margin: 0; font-family: var(--serif); font-size: 19px; font-style: italic;
  line-height: 1.5; color: var(--ink-2); text-wrap: pretty;
}
.dreamcard__symbols { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.chipx {
  padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--panel-2); font-size: 12px; color: var(--body);
}
.dreamcard__repeat {
  margin: 0; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: 13px; line-height: 1.6; color: var(--gold-deep);
}
.dreamcard__repeat span { color: var(--gold); }
.dreamcard__note { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }

/* ─── Совместимость: текст слева, гравюра и карточка-пример справа ─ */

.pairband { position: relative; z-index: 0; overflow: visible; background: radial-gradient(ellipse at 68% 50%, #F5E8D5 0, #F3E5D0 45%, #F1E6D6 100%); border-block: 1px solid rgba(113, 90, 67, .12); scroll-margin-top: 96px; }
.pairband__inner {
  display: grid; grid-template-columns: minmax(0, 50fr) minmax(0, 50fr);
  gap: 40px; align-items: center;
  padding: 36px 5.4vw 40px;
}
.pairband__text { padding-left: 6.9vw; }
.pairband__actions { margin-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pairband__note { margin: 0; font-size: 12.5px; color: var(--muted); }
.pairband__side { position: relative; display: flex; justify-content: center; align-items: center; }
.pairband__art { width: 62%; max-width: 520px; height: auto; margin: -110px 0; object-fit: cover; aspect-ratio: 2 / 3; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 56% at 50% 48%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 56% at 50% 48%, #000 55%, transparent 100%); }
.paircard {
  position: relative; z-index: 1;
  margin: 0; padding: 22px 22px 18px;
  border: 1px solid rgba(141, 119, 97, .14); border-radius: 12px;
  background: rgba(255, 251, 247, .85); box-shadow: 0 13px 33px rgba(96, 76, 57, .09);
  display: flex; flex-direction: column; gap: 14px;
}
.paircard__head { display: flex; flex-direction: column; gap: 6px; }
.paircard__eyebrow { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.paircard__names { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; color: var(--ink); }
.paircard__names i { font-style: normal; color: var(--gold); margin-left: 4px; }
.paircard__duo { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.paircard__lens { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.paircard__lens li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 1.55; color: var(--body); }
.paircard__lens b { font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--ink); }
.paircard__note { margin: 0; font-size: 11.5px; color: var(--muted); }

/* ─── Знаки ──────────────────────────────────────────────── */

#signs { position: relative; z-index: 1; }
.dreamsband { z-index: 1; }
#signs .section__head { max-width: var(--wrap); margin-inline: auto; }
.signs { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sign {
  width: 100%; text-align: left;
  border: 1px solid rgba(141, 119, 97, .14); border-radius: 12px;
  background: rgba(255, 251, 247, .75); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(96, 76, 57, .06);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.sign:hover { transform: translateY(-2px); border-color: var(--gold-soft); }
.sign[aria-pressed="true"] { background: var(--gold-tint); border-color: var(--gold-mid); }
.sign:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }

.signpanel {
  margin-top: 16px; padding: 24px 26px 20px;
  border: 1px solid rgba(141, 119, 97, .14); border-radius: 12px;
  background: rgba(255, 251, 247, .8); box-shadow: 0 13px 33px rgba(96, 76, 57, .08);
  display: flex; flex-direction: column; gap: 18px;
  animation: signpanel-in .25s ease-out;
}
.signpanel[hidden] { display: none; }
@keyframes signpanel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .signpanel { animation: none; } .sign { transition: none; } }
.signpanel__head { display: flex; align-items: center; gap: 16px; }
.signpanel__icon .zicon { width: 44px; height: 44px; color: var(--gold-deep); }
.signpanel__title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.signpanel__name { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--ink); }
.signpanel__meta { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.signpanel__close { margin-left: auto; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; color: var(--muted); font-size: 13px; }
.signpanel__close:hover { border-color: var(--gold-soft); color: var(--ink); }
.signpanel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.signpanel__item { padding: 16px 18px; border: 1px solid rgba(128, 102, 79, .1); border-radius: 8px; background: rgba(255, 251, 246, .7); display: flex; flex-direction: column; gap: 6px; }
.signpanel__label { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.signpanel__value { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.15; color: var(--ink); }
.signpanel__text { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.signpanel__foot { margin: 0; font-size: 13px; color: var(--muted); }
.signpanel__link { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.signpanel__link:hover { color: var(--ink); }
/* Наши рисованные знаки (спрайт assets/zodiac-sprite.svg) — цвет задаёт CSS */
.zicon { display: block; flex: none; color: var(--gold-deep); }
.sign__icon { width: 28px; height: 28px; }
.big__row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.big__icon { width: 26px; height: 26px; color: var(--gold-mid); }
.sign__body { display: flex; flex-direction: column; }
.sign__name { font-family: var(--serif); font-size: 18px; line-height: 1.15; }
.sign__dates { font-size: 10.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* ─── Тарифы ─────────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 18px; align-items: stretch; }
.plan {
  position: relative;
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--panel); padding: 30px 26px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-card);
}
.plan--main { background: var(--panel-2); border-color: var(--gold-soft); box-shadow: 0 16px 40px rgba(70, 58, 40, .07); }
.plan__badge {
  position: absolute; top: -12px; left: 26px;
  padding: 5px 14px; border-radius: 999px;
  background: var(--gold); color: #fff; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
}
.plan__name { font-family: var(--serif); font-weight: 500; font-size: 24px; }
.plan__price { font-family: var(--serif); font-size: 40px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1; }
.plan__price span { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.plan__alt { font-size: 12.5px; color: var(--muted-2); margin-top: -8px; }
.plan__list { display: flex; flex-direction: column; gap: 9px; margin: 6px 0 4px; }
.plan__list li { position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: var(--body); }
.plan__list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-soft); font-size: 10px; top: 3px; }
.plan .btn { margin-top: auto; }

/* ─── FAQ ────────────────────────────────────────────────── */

/* Граница между витриной и вопросами — во всю ширину, как у полос выше */
#faq { border-top: 1px solid rgba(113, 90, 67, .12); }

/* Вопросы — список с тонкими линиями, без карточек и теней: вопрос
   гарнитурой, справа кружок с плюсом, который поворачивается в крестик */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  padding: 22px 0; cursor: pointer;
  font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25; color: var(--ink);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: color .15s ease;
  touch-action: manipulation;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-deep); }
.faq__item summary:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 4px; border-radius: 6px; }
.faq__item summary::after {
  content: ""; flex: none; width: 32px; height: 32px;
  border: 1px solid var(--gold-soft); border-radius: 999px;
  background:
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 12px 1px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 1px 12px no-repeat;
  transition: transform .25s ease, background-color .15s ease, border-color .15s ease;
}
.faq__item summary:hover::after { border-color: var(--gold-mid); background-color: var(--gold-tint); }
.faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--gold-tint); }
.faq__item p { margin: 0; padding: 0 56px 24px 0; font-size: 15px; line-height: 1.75; color: var(--body); max-width: 64ch; text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { .faq__item summary::after { transition: none; } }
@media (max-width: 560px) {
  .faq__item summary { font-size: 18px; padding: 18px 0; }
  .faq__item p { padding-right: 0; }
}

/* ─── Финал и футер ──────────────────────────────────────── */

.final {
  border-top: 1px solid var(--line); background: var(--bg-tint);
  padding: 72px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
}
.final__title { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; text-wrap: balance; }

.foot {
  max-width: var(--wrap); margin: 0 auto;
  padding: 40px 32px 56px;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 40px;
}
.foot__brand { display: flex; flex-direction: column; gap: 3px; }
.foot__links { display: flex; flex-direction: column; gap: 8px; }
.foot__links a { font-size: 13px; }

/* Соцсети — те же ссылки и иконки, что в приложении (social-links.js) */
.foot__social { display: flex; flex-direction: column; gap: 12px; }
.foot__socialCap { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.soc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.soc {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--gold-mid);
  transition: color .15s ease, background .15s ease, border-color .15s ease;
  touch-action: manipulation;
}
.soc svg { width: 19px; height: 19px; display: block; }
.soc:hover { color: #FBF5ED; background: var(--gold); border-color: var(--gold); }
.foot__note { flex: 1 1 260px; font-size: 11.5px; line-height: 1.65; color: var(--muted-2); }

/* ─── Онбординг ──────────────────────────────────────────── */

.onb__bar {
  height: 3px; border-radius: 999px; margin-top: 6px;
  background: var(--line-soft); overflow: hidden;
}
.onb__fill {
  display: block; height: 100%; width: 33%;
  background: var(--gold-soft); border-radius: 999px;
  transition: width .28s ease;
}
@media (prefers-reduced-motion: reduce) { .onb__fill { transition: none; } }

.onb__q { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 14px; }
.onb__goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }

/* Цель — крупные карточки: это первый экран, и он должен читаться, а не
   выглядеть анкетой. */
.goal {
  display: flex; flex-direction: column; gap: 5px; text-align: left;
  padding: 15px 17px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel-2); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  touch-action: manipulation;
}
.goal:hover { border-color: var(--gold-soft); }
.goal.is-on { border-color: var(--gold-mid); background: var(--gold-tint); }
.goal__title { font-size: 15px; color: var(--ink); }
.goal__note { font-size: 12px; line-height: 1.55; color: var(--muted); }

.onb__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }

/* Экран расчёта. Не декоративный: строки описывают то, что правда считается. */
.onb__calc { display: flex; flex-direction: column; gap: 14px; padding: 8px 0 4px; }
.onb__calcTitle { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.onb__calcList { display: flex; flex-direction: column; gap: 9px; }
.onb__calcList li {
  position: relative; padding-left: 22px;
  font-size: 13.5px; line-height: 1.6; color: var(--body);
}
.onb__calcList li::before {
  content: "✦"; position: absolute; left: 0; top: 0; font-size: 11px; color: var(--gold);
}
.onb__quote {
  margin-top: 4px; padding: 14px 16px;
  border-left: 2px solid var(--gold-pale);
  font-size: 13px; line-height: 1.7; color: var(--muted);
}
.onb__quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 11.5px; color: var(--muted-2); }

.result__ctaNote { font-size: 11.5px; color: var(--muted-2); }

/* ─── Бесплатное против подписки ─── */

.offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.offer__col {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--panel-2);
}
.offer__col--pro { border-color: var(--gold-soft); background: var(--panel); }
.offer__cap { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.offer__list { display: flex; flex-direction: column; gap: 7px; }
.offer__list li {
  position: relative; padding-left: 20px;
  font-size: 13px; line-height: 1.6; color: var(--body);
}
.offer__list li::before {
  content: "✦"; position: absolute; left: 0; top: 0; font-size: 10px; color: var(--gold);
}
.offer__soon { font-size: 11.5px; line-height: 1.6; color: var(--muted-2); }

/* Свои полосы прокрутки: системные на macOS и Windows выглядят по-разному
   и всегда чужеродно — серый прямоугольник поверх кремовой страницы. */
.modal__scroll, .picker__pop, .combo__list {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-pale) transparent;
}
.modal__scroll::-webkit-scrollbar,
.picker__pop::-webkit-scrollbar,
.combo__list::-webkit-scrollbar { width: 19px; height: 19px; }
.modal__scroll::-webkit-scrollbar-track,
.picker__pop::-webkit-scrollbar-track,
.combo__list::-webkit-scrollbar-track { background: transparent; }
.modal__scroll::-webkit-scrollbar-thumb,
.picker__pop::-webkit-scrollbar-thumb,
.combo__list::-webkit-scrollbar-thumb {
  background: var(--gold-pale); border-radius: 999px;
  border: 7px solid transparent; background-clip: content-box;
}
.modal__scroll::-webkit-scrollbar-thumb:hover,
.picker__pop::-webkit-scrollbar-thumb:hover,
.combo__list::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); background-clip: content-box; }

/* Чип — та же кнопка-таблетка, что в кабинете. На лендинге её не было, и
   «мужской» браузер рисовал как системную кнопку. */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel-2); cursor: pointer;
  font: inherit; font-size: 13px; color: var(--ink-3);
  transition: border-color .15s ease, background .15s ease;
  touch-action: manipulation;
}
.chip:hover { border-color: var(--gold-soft); }
.chip:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 2px; }

/* Обращение: тот же чип, что и везде, но с явным выбранным состоянием. */
.gender { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.gender .chip.is-on { background: var(--gold-tint); border-color: var(--gold-soft); color: var(--ink); }

/* ─── Разбор карты ───────────────────────────────────────── */

.result { display: flex; flex-direction: column; gap: 22px; }

.rd__headline {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; color: var(--ink);
  text-wrap: balance;
}
.rd__intro { font-size: 13px; color: var(--muted-2); }

/* Факты в строку: четыре коротких столбца вместо четырёх карточек.
   Это справка перед разбором, и места она занимать не должна. */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px 18px;
  padding: 17px 19px;
  border: 1px solid var(--line-soft); border-radius: 18px;
  background: var(--panel-2);
  box-shadow: var(--shadow-soft);          /* как у карточек наблюдений ниже */
}
/* Все четыре факта выровнены по верху и по одной сетке: подписи разной
   длины не должны сдвигать значения по вертикали. */
.facts { align-items: start; }
.fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-self: start; }
.fact__label { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.fact__value { font-family: var(--serif); font-size: 21px; line-height: 1.15; color: var(--ink); }
.fact__note { font-size: 11px; color: var(--muted-2); }
.rd__reading { display: flex; flex-direction: column; gap: 14px; }
.rd__par { font-size: 15px; line-height: 1.72; color: var(--body); text-wrap: pretty; }

.rd__cap { margin-top: 6px; }
.rd__notes { display: flex; flex-direction: column; gap: 14px; }
.note {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 17px 19px;
  border: 1px solid var(--line-soft); border-radius: 18px;
  background: var(--panel-2);
  box-shadow: var(--shadow-soft);
}
.note__mark { flex: none; font-size: 12px; line-height: 1.7; color: var(--gold); }
.note__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.note__title { font-family: var(--serif); font-size: 19px; line-height: 1.25; color: var(--ink); }
.note__text { font-size: 13.5px; line-height: 1.7; color: var(--body); text-wrap: pretty; }

/* Число — крупной цифрой: это единственное место разбора, где цифра
   уместна, и она должна читаться как знак, а не как метрика. */
.rd__number {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--gold-pale); border-radius: 20px;
  background: var(--gold-tint);
}
.rd__numval {
  font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--gold-deep);
  flex: none; font-variant-numeric: lining-nums;
}
.rd__numbody { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rd__numtitle { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.rd__numtext { font-size: 13.5px; line-height: 1.7; color: var(--body); }
.rd__numrest { font-size: 12px; color: var(--muted); }

.rd__advice { display: flex; flex-direction: column; gap: 8px; }
.rd__advicetext { font-size: 15px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }

.rd__locked {
  display: flex; flex-direction: column; gap: 11px; align-items: flex-start;
  padding: 20px 22px;
  border: 1px dashed var(--line-2); border-radius: 20px;
}
.rd__lockedTitle { font-family: var(--serif); font-size: 21px; color: var(--ink); }
.rd__lockedText { font-size: 13.5px; line-height: 1.7; color: var(--body); max-width: 60ch; }
.rd__lockedNote { font-size: 11.5px; color: var(--muted-2); }

.rd__all { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.rd__summary {
  cursor: pointer; font-size: 13px; color: var(--gold-deep);
  list-style: none; display: inline-flex; align-items: center; gap: 8px;
}
.rd__summary::-webkit-details-marker { display: none; }
.rd__summary::before { content: "▾"; font-size: 10px; }
.rd__table { display: flex; flex-direction: column; margin-top: 14px; }
.rd__table .prow { display: flex; align-items: baseline; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.rd__table .prow:last-child { border-bottom: none; }
.rd__table .prow--gen { color: var(--muted-2); }
.rd__table .prow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rd__table .prow__name { min-width: 0; }
.rd__table .prow__role { font-size: 11.5px; line-height: 1.4; color: var(--muted-2); }
.rd__table .prow__deg { font-variant-numeric: tabular-nums; color: var(--muted-2); font-size: 12.5px; }
.rd__gen { margin-top: 12px; font-size: 11.5px; line-height: 1.6; color: var(--muted-2); }

/* ─── В этот день родились ───────────────────────────────── */

.born { display: flex; flex-direction: column; gap: 12px; }
.born__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.born__item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 13px 15px;
  border: 1px solid var(--line-soft); border-radius: 14px;
  background: var(--panel-2);
}
.born__name { font-size: 14px; color: var(--ink); text-decoration: none; }
a.born__name { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
a.born__name:hover { color: var(--gold-deep); }
.born__year { font-size: 11px; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.born__note-text { font-size: 12px; line-height: 1.55; color: var(--muted); }
.born__note { font-size: 11px; color: var(--muted-2); }

/* Подсказка о прокрутке модалки */
.scrollhint {
  position: absolute; left: 50%; bottom: 14px; z-index: 3;
  transform: translateX(-50%);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel-2);
  box-shadow: var(--shadow-soft);
  color: var(--gold-deep); font-size: 16px; line-height: 1;
  pointer-events: none;                /* это подсказка, а не кнопка */
  opacity: 0; transition: opacity .25s ease;
}
.scrollhint.is-on { opacity: 1; }
.scrollhint__arrow { display: block; animation: hintbob 1.6s ease-in-out infinite; }

@keyframes hintbob {
  0%, 100% { transform: translateY(-2px); }
  50%      { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .scrollhint__arrow { animation: none; }
}

/* ─── Адаптив ────────────────────────────────────────────── */

@media (max-width: 1500px) {
  .top { gap: 22px; padding: 0 3.5%; }
  .dreamsband__inner { padding-inline: 3.5vw; }
  .pairband__inner { padding-inline: 3.5vw; }
  .pairband__text { padding-left: 5vw; }
  .dreamsband__text { padding-left: 5vw; }
  .cover__text { padding-left: calc(3.5vw + 5vw); }
  .cover__words, .cover__motto { right: 3.5vw; }
  .top__nav { gap: 18px; }
  .top__nav a, .top__navbtn { font-size: 15px; }
  .top__sky { gap: 12px; padding-right: 14px; }
  .top__skylabel { font-size: 8px; }
  .top__skyval { font-size: 12px; }
  .top__actions { gap: 14px; }
  .top__cta { padding: 9px 18px; font-size: 15px; }
}

@media (max-width: 1300px) {
  .top { gap: 18px; padding: 0 2.5%; }
  .signs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dreamsband__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding-inline: 2.5vw; }
  .pairband__inner { padding-inline: 2.5vw; gap: 28px; }
  .pairband__text { padding-left: 1vw; }
  .pairband__side { grid-template-columns: 1fr; }
  .pairband__art { display: none; }
  .dreamsband__text { padding-left: 1vw; }
  .dreamsband__art { display: none; }
  .cover__text { padding-left: calc(2.5vw + 1vw); }
  .cover__words, .cover__motto { right: 2.5vw; }
  /* Маска в пикселях от правого края рассчитана на широкий экран; здесь
     картинка с cover заезжает под текст – растворяем её левую треть */
  .cover__art img {
    -webkit-mask-image: linear-gradient(90deg, transparent 6%, #000 44%);
    mask-image: linear-gradient(90deg, transparent 6%, #000 44%);
  }
  .top__nav { gap: 15px; }
  .top__nav a, .top__navbtn { font-size: 14.5px; }
  .top__sky { gap: 10px; }
  .top__cta { padding: 8px 15px; font-size: 14px; gap: 8px; }
  .top__word { font-size: 26px; }
  .shop { grid-template-columns: 140px repeat(4, minmax(130px, 1fr)); }
  .shop__aside { display: none; }
  .values__item { gap: 10px; }
  .values__text { font-size: 9px; }
}

/* Между планшетом и бургером пяти пунктам меню и небу вместе тесно —
   небо уходит, оно есть на самой странице */
@media (max-width: 1140px) {
  .top__sky { display: none; }
  .top__actions { margin-left: auto; }
}

@media (max-width: 940px) {
  .enter__inner { grid-template-columns: 1fr; gap: 24px; padding: 40px 18px 44px; }
  .enter__card { padding: 22px 18px 18px; }
  .signs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sign { padding: 10px 12px; gap: 8px; }
  .signpanel { padding: 18px 16px 16px; }
  .signpanel__name { font-size: 24px; }
  .top { height: auto; padding: 0 18px; gap: 16px; flex-wrap: wrap; }
  .top__brand, .top__actions { min-height: 68px; }
  .top__nav, .top__login { display: none; }
  .top__actions { margin-left: auto; }
  .top__sky { order: 10; margin-left: 0; flex-basis: 100%; justify-content: space-between; gap: 8px; padding: 7px 0 9px; border-right: 0; border-top: 1px solid rgba(113, 90, 67, .12); }
  .top__skyitem { min-width: 0; }
  .top__skylabel { font-size: 7.5px; }
  .top__skyval { font-size: 12px; }
  .top__word { font-size: 24px; }
  .top__tag { font-size: 8px; }
  .top__actions { gap: 14px; }
  .top__cta { padding: 9px 15px; font-size: 14px; }
  .top__burger { display: flex; }

  .cover { grid-template-columns: 1fr; min-height: 0; }
  .cover__art { position: static; order: -1; height: 320px; }
  .cover__words, .cover__motto { display: none; }
  .cover__art img { object-fit: cover; object-position: 74% center; -webkit-mask-image: none; mask-image: none; }
  .cover__text { padding: 30px 18px 34px; gap: 12px; }
  .cover__title br { display: none; }
  .cover__lead { font-size: 17px; }
  .cover__actions { gap: 18px; }
  .cover__cta { width: 100%; justify-content: center; }
  .values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 18px; }
  .values__item { gap: 10px; }
  .values__note { display: none; }
  .shop { grid-template-columns: 1fr 1fr; gap: 12px; padding: 26px 18px; }
  .shop__intro { grid-column: 1 / -1; padding-bottom: 4px; }
  .shop__intro h2 br { display: none; }
  .shop__aside { display: none; }
  .good > img { height: 104px; }

  .section { padding: 48px 18px; }
  .form { padding: 22px 18px; }
  .form__grid { grid-template-columns: 1fr; }

  .modal { width: 100vw; max-height: 100vh; margin: 0; }
  .modal__panel { max-height: 100vh; border: none; border-radius: 0; }
  .modal__scroll {
    max-height: 100vh;
    padding: 26px 18px calc(26px + env(safe-area-inset-bottom));
  }
  .modal__head { margin-bottom: 20px; }
  .modal .form { padding: 0; }
  .letter { grid-template-columns: 1fr; }
  .letter__side {
    border-right: none; border-bottom: 1px solid var(--line);
    flex-direction: row; justify-content: flex-start; gap: 16px; padding: 18px 22px;
  }
  .letter__date { flex-direction: row; align-items: baseline; gap: 8px; }
  .letter__date b { font-size: 28px; }
  .letter__body { padding: 24px 22px; }
  .dreamsband__bg { position: static; height: 230px; object-position: 68% center; }
  .dreamsband__inner { grid-template-columns: 1fr; gap: 22px; min-height: 0; padding: 36px 18px 40px; }
  .pairband__inner { grid-template-columns: 1fr; gap: 24px; padding: 36px 18px 40px; }
  .pairband__text { padding-left: 0; }
  .pairband__side { grid-template-columns: 1fr; }
  .pairband__art { display: none; }
  .pairband__actions .btn { width: 100%; }
  .pairband { overflow: hidden; }
  .dreamsband__text { padding-left: 0; }
  .dreamsband__art, .dreamsband__hand { display: none; }
  .dreamsband__mid { padding-top: 0; }
  .dreamcard { padding: 22px 20px 18px; }
  .final { padding: 52px 18px; }
  .foot { padding: 32px 18px 44px; }
  .result__cta { padding: 22px; }
}

/* На сенсорных экранах поля ввода не мельче 16px: Safari увеличивает
   страницу при фокусе в мелкое поле и обратно её не возвращает.
   Запрещать масштаб целиком нельзя — он нужен тем, кто плохо видит.

   Классы перечислены поимённо: медиазапрос не повышает специфичность,
   и .field__input со своими 13.5px перебивал правило для голого input. */
@media (pointer: coarse) {
  input, textarea, select,
  .field, .field__input, .mail__input, .composer__input, .notebox__input,
  .combo input, .picker__btn, .wheel__btn { font-size: 16px; }
}

@media (max-width: 420px) {
  .top__cta { display: none; }
  .cover__art { height: 260px; }
  .good > img { height: 86px; }
  .good__copy b { font-size: 15px; }
}
