/* =========================================================
   Solymara — предложение по дизайн-системе
   Палитра и шрифты взяты из runa.css без изменений.
   Меняются: радиусы, ритм, типошкала, кнопки, анимация.
   ========================================================= */

:root {
  /* ---- цвет: без изменений, это сильная часть ---- */
  --ink: #30251f;
  --ink-soft: #6f6257;
  --ink-muted: #8a7a6d;
  --paper: #eee4d7;
  --paper-light: #f8f1e8;
  --paper-card: #f7efe4;
  --line: rgba(65, 48, 37, 0.14);
  --line-strong: rgba(65, 48, 37, 0.24);
  --gold: #d5ad69;
  --gold-deep: #9d7042;
  --plum: #321530;
  --plum-2: #4f2445;
  --plum-btn-a: #5a3260;
  --plum-btn-b: #351636;
  --night: #1b1514;

  /* ---- НОВОЕ: шкала радиусов, 4 ступени вместо 13 ---- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* ---- НОВОЕ: шкала отступов, шаг 8 ---- */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --section-y: clamp(84px, 9vw, 136px);

  /* ---- НОВОЕ: две тени вместо россыпи ---- */
  --shadow-card: 0 2px 4px rgba(54, 38, 30, 0.04), 0 12px 32px rgba(54, 38, 30, 0.08);
  --shadow-lift: 0 4px 8px rgba(54, 38, 30, 0.06), 0 24px 56px rgba(54, 38, 30, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(213, 173, 105, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 30%, rgba(96, 54, 71, 0.1), transparent 26rem),
    var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  /* БЫЛО 15px — мелко для кириллицы в длинных абзацах */
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* зерно оставляем — оно даёт материальность */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .18 0 0 0 0 .13 0 0 0 0 .09 0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main, nav, footer { position: relative; z-index: 2; }

/* без !important атрибут hidden не работает на элементах,
   которым мы сами задали display (кнопки, .field-echo и т.д.) */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.shell { width: min(1180px, calc(100vw - 48px)); margin: 0 auto; }

/* =========================================================
   ТИПОГРАФИКА — настоящая шкала
   ========================================================= */
h1, h2, h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.t-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.t-kicker::before, .t-kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(157, 112, 66, 0.4);
}
.t-kicker.left::before { display: none; }

.t-h1 { font-size: clamp(52px, 5.4vw, 84px); line-height: 1.0; }
.t-h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.08; color: var(--plum-2); }
.t-h3 { font-size: 26px; line-height: 1.18; }
.t-lead { font-size: 20px; line-height: 1.55; color: #4a3d34; }
.t-body { font-size: 17px; line-height: 1.65; color: #514338; }
.t-small { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* =========================================================
   КНОПКИ — одна личность на весь лендинг
   БЫЛО: 282x58 r14 w600 / 220x54 r8 w800 / третий вариант в баннере
   ========================================================= */
.btn {
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn .star { opacity: 0.75; }

.btn-primary {
  background: linear-gradient(180deg, var(--plum-btn-a), var(--plum-btn-b));
  color: #fff7f2;
  box-shadow: 0 10px 28px rgba(29, 10, 35, 0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(29, 10, 35, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--plum-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { background: rgba(255, 252, 246, 0.6); transform: translateY(-2px); }

.btn-full { width: 100%; }

/* =========================================================
   НАВИГАЦИЯ
   ========================================================= */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: 80px;
  color: #fff6ea;
}
/* НОВОЕ: скрим под шапкой — белые ссылки не зависят от фото */
.top::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 10, 18, 0.5), transparent);
}
.nav-row {
  position: relative;
  height: 80px;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: var(--s-4);
}
.nav-row .logo { width: 150px; }
.nav-links {
  justify-self: center;
  display: flex;
  gap: var(--s-4);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { opacity: 0.88; transition: opacity 0.18s ease; }
.nav-links a:hover { opacity: 1; }
.account-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 234, 0.34);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.18s ease;
}
.account-link:hover { background: rgba(255, 246, 234, 0.12); }
.account-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 0 var(--s-7);
  overflow: hidden;
  color: #fdf6ec;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}
/* НОВОЕ: один управляемый градиент вместо двух слоёв затемнения */
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(94deg, rgba(16, 7, 15, 0.94) 0%, rgba(16, 7, 15, 0.82) 30%, rgba(16, 7, 15, 0.34) 56%, rgba(16, 7, 15, 0.05) 74%),
    linear-gradient(180deg, rgba(16, 7, 15, 0.42), transparent 34%);
}
/* ---- вернули анимацию из исходной версии ---- */
.zodiac-drift {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.zodiac-drift span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(204, 154, 218, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 42, 103, 0.2), transparent 66%);
  color: rgba(225, 177, 239, 0.52);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(175, 104, 198, 0.6), 0 0 28px rgba(88, 38, 106, 0.45);
  animation: zodiacFloat 16s ease-in-out infinite;
}
.zodiac-drift span:nth-child(1) { left: 54%; top: 16%; animation-delay: -2s; }
.zodiac-drift span:nth-child(2) { left: 84%; top: 22%; transform: scale(0.82); animation-delay: -7s; }
.zodiac-drift span:nth-child(3) { left: 58%; top: 70%; transform: scale(0.72); animation-delay: -11s; }
.zodiac-drift span:nth-child(4) { left: 93%; top: 53%; transform: scale(0.76); animation-delay: -5s; }
.zodiac-drift span:nth-child(5) { left: 74%; top: 41%; transform: scale(0.68); animation-delay: -14s; }

@keyframes zodiacFloat {
  0%, 100% { opacity: 0.22; translate: 0 0; rotate: -4deg; }
  42% { opacity: 0.5; translate: 12px -16px; rotate: 7deg; }
  68% { opacity: 0.34; translate: -8px 10px; rotate: -2deg; }
}

/* свечение, пробегающее по главной кнопке */
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 50%, rgba(255, 241, 208, 0.16), transparent 34%),
    linear-gradient(110deg, transparent 0 26%, rgba(255, 232, 190, 0.14) 46%, transparent 66%);
  opacity: 0;
  animation: buttonGlow 3.9s ease-in-out infinite;
  animation-delay: 0.42s;
}
.btn-glow > span { position: relative; z-index: 1; }

@keyframes buttonGlow {
  0%, 34%, 100% { opacity: 0; }
  52% { opacity: 0.46; box-shadow: inset 0 0 22px rgba(255, 226, 181, 0.1); }
  68% { opacity: 0.18; }
}

.hero-grid { position: relative; z-index: 2; }
.hero-copy { max-width: 680px; }
.hero-copy .t-kicker { color: var(--gold); margin-bottom: var(--s-3); }
.hero-copy .t-kicker::before, .hero-copy .t-kicker::after { background: rgba(213, 173, 105, 0.45); }
.hero h1 span { display: block; }
.hero h1 .italic { font-style: italic; color: #f4dcb4; }
.hero-copy .t-lead {
  margin: var(--s-3) 0 0;
  max-width: 520px;
  color: rgba(253, 246, 236, 0.82);
}
.free-line {
  margin: var(--s-3) 0 0;
  font-size: 16px;
  color: rgba(253, 246, 236, 0.92);
}
.free-line strong { color: var(--gold); }
.hero .btn { margin-top: var(--s-4); }

/* НОВОЕ: проof-строка — один спокойный ряд вместо трёх медальонов */
.proof-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(253, 246, 236, 0.7);
}
.proof-row span { display: inline-flex; align-items: center; gap: 9px; }
.proof-row i { color: var(--gold); font-style: normal; font-size: 12px; }
.proof-row .sep { width: 1px; height: 14px; background: rgba(253, 246, 236, 0.22); }

/* =========================================================
   СЕКЦИИ — единый вертикальный ритм
   БЫЛО: 48/62, 54/34, 36/44 — разнобой
   ========================================================= */
.section { padding: var(--section-y) 0; }
.section-head {
  max-width: 780px;
  margin: 0 auto var(--s-6);
  text-align: center;
}
/* Cormorant при весе 500 даёт тонкий штрих и читается светлее, чем есть.
   Рядом с тёмной формой это особенно заметно: добираем и весом, и глубиной цвета. */
.section-head .t-h2 {
  margin-top: var(--s-2);
  font-weight: 600;
  color: #3d1636;
}
.section-head .t-body { margin: var(--s-3) auto 0; }

.band-paper {
  background:
    radial-gradient(circle at 12% 30%, rgba(166, 108, 73, 0.1), transparent 26rem),
    radial-gradient(circle at 86% 40%, rgba(118, 49, 83, 0.09), transparent 24rem),
    linear-gradient(rgba(245, 237, 226, 0.92), rgba(238, 227, 212, 0.92)),
    var(--paper);
}

/* =========================================================
   ИНСТРУМЕНТЫ
   ========================================================= */
/* ---- млечный путь: розово-фиолетовая полоса через всю секцию ---- */
/* база у полосы с туманностью та же, что у обычной бумажной секции:
   иначе на стыке секций появляется ступенька по цвету */
.nebula-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 30%, rgba(166, 108, 73, 0.1), transparent 26rem),
    radial-gradient(circle at 86% 40%, rgba(118, 49, 83, 0.09), transparent 24rem),
    linear-gradient(rgba(245, 237, 226, 0.92), rgba(238, 227, 212, 0.92)),
    var(--paper);
}

.milky-way {
  position: absolute;
  inset: -10% -5%;
  pointer-events: none;
  /* растворяем полосу у верхнего и нижнего края секции,
     чтобы переход к соседнему экрану был смазанным */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 78%, transparent 100%);
  background:
    /* ядро полосы — идёт из левого нижнего угла вправо вверх */
    linear-gradient(
      104deg,
      rgba(226, 142, 196, 0.42) 0%,
      rgba(198, 122, 198, 0.34) 16%,
      rgba(150, 104, 196, 0.26) 32%,
      rgba(150, 104, 196, 0.12) 50%,
      rgba(213, 173, 105, 0.07) 68%,
      transparent 86%
    ),
    /* притемнение под карточкой формы — она стоит в левой колонке */
    radial-gradient(ellipse 40% 44% at 19% 68%, rgba(84, 38, 80, 0.38), transparent 72%),
    /* туманности */
    radial-gradient(ellipse 52% 48% at 8% 62%, rgba(235, 150, 205, 0.5), transparent 68%),
    radial-gradient(ellipse 44% 40% at 30% 30%, rgba(168, 112, 210, 0.36), transparent 70%),
    radial-gradient(ellipse 36% 34% at 52% 72%, rgba(206, 138, 190, 0.22), transparent 72%);
  filter: blur(6px);
}

/* звёздная пыль поверх полосы */
.milky-way::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 34%, rgba(255, 252, 245, 0.95), transparent),
    radial-gradient(1.2px 1.2px at 22% 66%, rgba(255, 252, 245, 0.8), transparent),
    radial-gradient(1.6px 1.6px at 34% 22%, rgba(255, 248, 235, 0.9), transparent),
    radial-gradient(1.1px 1.1px at 41% 74%, rgba(255, 252, 245, 0.7), transparent),
    radial-gradient(1.4px 1.4px at 17% 82%, rgba(255, 250, 240, 0.85), transparent),
    radial-gradient(1.2px 1.2px at 56% 44%, rgba(255, 252, 245, 0.6), transparent),
    radial-gradient(1.3px 1.3px at 28% 12%, rgba(255, 250, 240, 0.75), transparent),
    radial-gradient(1.1px 1.1px at 63% 66%, rgba(255, 252, 245, 0.5), transparent);
  animation: starDust 9s ease-in-out infinite;
}

@keyframes starDust {
  0%, 100% { opacity: 0.38; }
  50% { opacity: 0.62; }
}

/* зеркальный вариант: полоса начинается справа вверху (экран «Статьи») */
.milky-way.flip { transform: scaleX(-1); }

.nebula-band .shell { position: relative; z-index: 1; }

/* ФОРМА СЛЕВА, ПЛАШКИ СПРАВА */
.portrait-layout {
  position: relative;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}
.method-stack { display: grid; gap: var(--s-3); }

/* БЫЛО: nth-child margin-left 42px / 84px — лесенка ломала
   выравнивание с формой справа и сужала третью карточку */
.method-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255, 251, 244, 0.82), rgba(236, 224, 208, 0.6));
  box-shadow: inset 0 0 0 1px rgba(83, 55, 40, 0.1), var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.method-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(83, 55, 40, 0.14), var(--shadow-lift); }
.method-card img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(66, 41, 24, 0.16), inset 0 0 0 1px rgba(159, 115, 57, 0.35);
}
.method-card .t-kicker { font-size: 11px; margin-bottom: 6px; }
.method-card .t-h3 { margin-bottom: 6px; }
.method-card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #5b4c40; }

/* ---- форма ---- */
.birth-card {
  position: sticky;
  isolation: isolate;
  top: var(--s-4);
  padding: var(--s-5) var(--s-4) var(--s-4);
  border-radius: var(--r-lg);
  /* Тёмная плита ночного неба на бумажном фоне.
     Без тёмного на этом экране нет тонального диапазона, а значит и объёма:
     всё остальное здесь живёт в узкой светлой полосе. */
  background:
    radial-gradient(ellipse 80% 48% at 24% 10%, rgba(150, 104, 200, 0.4), transparent 62%),
    radial-gradient(ellipse 70% 44% at 86% 72%, rgba(214, 122, 190, 0.28), transparent 66%),
    linear-gradient(162deg, #2c1738, #16091c);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 234, 0.16),
    0 4px 10px rgba(30, 12, 34, 0.3),
    0 18px 36px rgba(30, 12, 34, 0.4),
    0 44px 84px rgba(30, 12, 34, 0.46);
}
/* Плотная россыпь звёзд — форма иначе теряется на фоне полосы.
   Вынесена отдельным файлом: 71 звезда инлайном раздувала бы CSS. */
.birth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url("/webapp/assets/landing/star-scatter-light.svg");
}
/* форма набрана плотнее заодно с картой дня */
.birth-card .t-kicker { margin-bottom: var(--s-2); font-weight: 700; color: var(--gold); }
.birth-card .t-kicker::before,
.birth-card .t-kicker::after { background: rgba(213, 173, 105, 0.45); }
.birth-card .t-h3 { margin-bottom: var(--s-4); font-weight: 700; color: #fff8ef; }
.birth-field { display: block; margin-bottom: var(--s-3); }
.birth-field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 248, 239, 0.58);
}
.birth-input {
  position: relative;
  display: flex;
  align-items: center;
}
.birth-input input, .birth-input select {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 16px;
  border: 0;
  border-radius: var(--r-sm);
  /* поля остаются светлыми вставками — это «окна» в тёмной плите */
  background: rgba(255, 252, 246, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  transition: box-shadow 0.18s ease;
  appearance: none;
}
.birth-input input::placeholder { font-weight: 500; color: #9c8d80; }
.birth-input input::placeholder { color: #a8998c; }
.birth-input input:focus, .birth-input select:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--gold);
}
/* БЫЛО: текстовые глифы □ ◷ ⌄ ✦ — «□» рисуется как пустой квадрат */
.birth-input svg {
  position: absolute;
  right: 16px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.birth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.birth-card .btn { margin-top: var(--s-2); }
.birth-note {
  margin: var(--s-3) 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 248, 239, 0.66);
}
/* на тёмной плите сливовая кнопка теряется — здесь единственное золото-кнопка */
.birth-card .btn-primary {
  background: linear-gradient(103deg, #b8873f, #f4dfae 46%, #c2913f);
  color: #3a2408;
  box-shadow: 0 6px 18px rgba(97, 68, 26, 0.42);
}
.birth-card .btn-primary:hover { box-shadow: 0 12px 26px rgba(97, 68, 26, 0.5); }
.birth-card .btn-primary .star { opacity: 0.6; }

/* =========================================================
   БАННЕР РУН
   ========================================================= */
/* растяжка во всю ширину: без подложки-секции и без вертикальных отступов */
.rune-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  /* stretch, а не center: иначе высота строки считается по картинке,
     и контент правой колонки обрезается overflow:hidden */
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(120deg, #2c1630, #1d0f21);
  color: #fff8ef;
}
.rune-banner img { height: 100%; min-height: 420px; width: 100%; object-fit: cover; }
/* правый край текста выравнивается по сетке страницы */
.rune-banner .rune-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-6) max(calc((100vw - 1180px) / 2), 24px) var(--s-6) var(--s-6);
}
.rune-banner .t-kicker { color: var(--gold); }
.rune-banner .t-kicker::before, .rune-banner .t-kicker::after { background: rgba(213, 173, 105, 0.45); }
.rune-banner h2 { margin: var(--s-2) 0 var(--s-2); font-size: clamp(36px, 3.4vw, 50px); color: #fff8ef; }
.rune-banner p { margin: 0 0 var(--s-4); max-width: 420px; color: rgba(255, 248, 239, 0.74); }
/* колонка — flex, поэтому кнопку держим по своей ширине */
.rune-banner .btn { align-self: flex-start; }
.rune-banner .btn-ghost { color: #fff8ef; box-shadow: inset 0 0 0 1px rgba(255, 248, 239, 0.3); }
.rune-banner .btn-ghost:hover { background: rgba(255, 248, 239, 0.1); }
.rune-banner small { display: block; margin-top: var(--s-2); font-size: 13px; color: rgba(255, 248, 239, 0.55); }

/* =========================================================
   ЧТО ПОЛУЧИШЬ
   БЫЛО: 5 карточек в сетке 2 колонки — пятая висит сиротой
   СТАЛО: список с волосяными линиями, сирот нет
   ========================================================= */
.benefits-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--s-6);
  align-items: start;
}
.benefit-list { display: grid; }
.benefit {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-2);
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease, padding-left 0.18s ease;
}
.benefit:first-child { border-top: 1px solid var(--line); }
.benefit:hover { background: rgba(255, 252, 246, 0.55); padding-left: var(--s-3); }
.benefit i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(213, 173, 105, 0.16);
  color: var(--gold-deep);
  font-style: normal;
  font-size: 19px;
}
.benefit span { font-size: 17px; line-height: 1.4; color: #4c3d33; }
/* ключевая фраза пункта: плотнее и с золотым подчёркиванием */
.benefit .key {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* шапка секции расчёта тоже по левому краю — иначе она единственная центрованная */
#tools .section-head {
  max-width: 840px;
  margin: 0 0 var(--s-6);
  text-align: left;
}
#tools .section-head .t-kicker { color: #8a5a2e; }
#tools .section-head .t-body { margin-left: 0; }

/* =========================================================
   ЭКРАН «ЧТО ВЫ ПОЛУЧИТЕ» — обратный ход относительно формы:
   там тёмная плита на бумаге, здесь светлая карта на ночном фоне.
   Тон взят глубже, чем у растяжки рун, иначе две тёмные секции
   подряд сольются в одно пятно.
   ========================================================= */
.night-band {
  position: relative;
  overflow: hidden;
  color: #fff8ef;
  background:
    /* растворяем низ в бумагу — иначе переход к «Статьям» это резкая линия */
    linear-gradient(to top, #ece2d5 0, rgba(236, 226, 213, 0) 150px),
    /* и смягчаем стык сверху с растяжкой рун */
    linear-gradient(to bottom, rgba(44, 22, 48, 0.65) 0, rgba(44, 22, 48, 0) 130px),
    radial-gradient(ellipse 60% 50% at 78% 28%, rgba(150, 104, 200, 0.26), transparent 66%),
    radial-gradient(ellipse 54% 46% at 14% 76%, rgba(214, 122, 190, 0.18), transparent 70%),
    linear-gradient(168deg, #1a0c20, #100616 58%, #180a1e);
}
/* звёздная пыль на фоне секции */
.night-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  /* звёзды гаснут там, где фон уходит в бумагу */
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 72%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0, #000 72%, transparent 96%);
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 252, 240, 0.9), transparent),
    radial-gradient(1.2px 1.2px at 32% 62%, rgba(255, 252, 240, 0.6), transparent),
    radial-gradient(1.4px 1.4px at 54% 22%, rgba(255, 252, 240, 0.75), transparent),
    radial-gradient(1.1px 1.1px at 72% 78%, rgba(255, 252, 240, 0.5), transparent),
    radial-gradient(1.6px 1.6px at 88% 40%, rgba(255, 252, 240, 0.8), transparent),
    radial-gradient(1.2px 1.2px at 22% 88%, rgba(255, 252, 240, 0.55), transparent),
    radial-gradient(1.3px 1.3px at 64% 12%, rgba(255, 252, 240, 0.65), transparent);
  animation: starDust 11s ease-in-out infinite;
}
.night-band .shell { position: relative; z-index: 1; }

#about .section-head .t-kicker { color: var(--gold); }
#about .section-head .t-kicker::before,
#about .section-head .t-kicker::after { background: rgba(213, 173, 105, 0.45); }
#about .section-head .t-h2 { color: #fff8ef; }

/* список на тёмном */
#about .benefit { border-bottom-color: rgba(255, 248, 239, 0.16); }
#about .benefit:first-child { border-top-color: rgba(255, 248, 239, 0.16); }
#about .benefit:hover { background: rgba(255, 248, 239, 0.06); }
#about .benefit i {
  background: rgba(213, 173, 105, 0.18);
  color: var(--gold);
}
#about .benefit span { color: rgba(255, 248, 239, 0.84); }
#about .benefit .key { color: #fff8ef; }

/* заголовок этого блока стоит прямо над списком, а не по центру секции */
#about .section-head {
  max-width: calc(100% - 380px - var(--s-6));
  margin: 0 0 var(--s-4);
  text-align: left;
}
#about .section-head .t-body { margin-left: 0; }
/* и ближе к предыдущему экрану */
#about { padding-top: clamp(58px, 6.2vw, 92px); }

@media (max-width: 1040px) {
  #about .section-head { max-width: none; }
}

/* =========================================================
   КАРТА ДНЯ — срез полированного агата.
   Единственный элемент страницы из другого материала: всё
   остальное — матовая бумага и плоская ночь. Фактура рифмуется
   с каменными рунами, палитра — с млечным путём второго экрана.
   ========================================================= */
.daily-note {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background:
    /* полированный блик на сколе */
    radial-gradient(ellipse 70% 44% at 24% 10%, rgba(255, 255, 255, 0.7), transparent 60%),
    /* молочная сердцевина — она же поле, на котором читается текст.
       У настоящих слэбов так и бывает: мутный центр, слоистый край */
    radial-gradient(ellipse 88% 72% at 46% 68%, rgba(255, 252, 250, 0.93), rgba(255, 252, 250, 0.48) 56%, transparent 84%),
    /* тонкие слои другого шага — сбивают регулярность */
    repeating-radial-gradient(
      ellipse 120% 96% at 96% 8%,
      rgba(255, 255, 255, 0) 0 5px,
      rgba(170, 120, 168, 0.16) 9px,
      rgba(255, 255, 255, 0) 15px 21px
    ),
    /* основные слои: концентрические вокруг ядра, мягкие переходы */
    repeating-radial-gradient(
      ellipse 150% 118% at 84% 108%,
      rgba(255, 253, 251, 0) 0 6px,
      rgba(255, 253, 251, 0.62) 14px,
      rgba(221, 186, 212, 0.45) 23px,
      rgba(158, 108, 156, 0.34) 31px,
      rgba(255, 253, 251, 0) 40px 46px
    ),
    /* ядро желвака */
    radial-gradient(ellipse 86% 66% at 84% 106%, rgba(112, 54, 106, 0.4), transparent 62%),
    linear-gradient(152deg, #f9f1f6, #ddbfd3);
  /* на тёмном фоне обычная тень не читается — карта светится,
     а не отбрасывает тень: мягкий ореол плюс глубокая опорная тень */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0 0 30px rgba(120, 60, 110, 0.2),
    0 0 90px rgba(232, 186, 220, 0.22),
    0 10px 24px rgba(8, 3, 12, 0.45),
    0 40px 84px rgba(8, 3, 12, 0.55);
  text-align: center;
}
/* блик полировки: медленно ползёт, как при наклоне камня */
.daily-note::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  z-index: -1;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
  animation: agateSheen 9s ease-in-out infinite;
}

@keyframes agateSheen {
  0%, 100% { transform: translateX(-26%); opacity: 0.3; }
  50% { transform: translateX(26%); opacity: 0.75; }
}

/* Звёзды, рассыпанные по камню. Не плитка: один крупный слой
   на всю карту, иначе повтор читается как обои. */
.daily-note::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='380' height='500' viewBox='0 0 380 500'><g fill='%236d2f66'><path transform='translate(48 34) scale(0.62)' d='M0 -20 C2 -8 8 -2 20 0 C8 2 2 8 0 20 C-2 8 -8 2 -20 0 C-8 -2 -2 -8 0 -20z' fill-opacity='0.30'/><path transform='translate(318 62) scale(0.4)' d='M0 -20 C2 -8 8 -2 20 0 C8 2 2 8 0 20 C-2 8 -8 2 -20 0 C-8 -2 -2 -8 0 -20z' fill-opacity='0.24'/><path transform='translate(196 22) scale(0.26)' d='M0 -20 C2 -8 8 -2 20 0 C8 2 2 8 0 20 C-2 8 -8 2 -20 0 C-8 -2 -2 -8 0 -20z' fill-opacity='0.18'/><path transform='translate(28 188) scale(0.34)' d='M0 -20 C2 -8 8 -2 20 0 C8 2 2 8 0 20 C-2 8 -8 2 -20 0 C-8 -2 -2 -8 0 -20z' fill-opacity='0.22'/><path transform='translate(352 214) scale(0.5)' d='M0 -20 C2 -8 8 -2 20 0 C8 2 2 8 0 20 C-2 8 -8 2 -20 0 C-8 -2 -2 -8 0 -20z' fill-opacity='0.26'/><path transform='translate(120 268) scale(0.22)' d='M0 -20 C2 -8 8 -2 20 0 C8 2 2 8 0 20 C-2 8 -8 2 -20 0 C-8 -2 -2 -8 0 -20z' fill-opacity='0.16'/><path transform='translate(300 322) scale(0.3)' d='M0 -20 C2 -8 8 -2 20 0 C8 2 2 8 0 20 C-2 8 -8 2 -20 0 C-8 -2 -2 -8 0 -20z' fill-opacity='0.2'/><path transform='translate(56 352) scale(0.46)' d='M0 -20 C2 -8 8 -2 20 0 C8 2 2 8 0 20 C-2 8 -8 2 -20 0 C-8 -2 -2 -8 0 -20z' fill-opacity='0.26'/><path transform='translate(226 406) scale(0.28)' d='M0 -20 C2 -8 8 -2 20 0 C8 2 2 8 0 20 C-2 8 -8 2 -20 0 C-8 -2 -2 -8 0 -20z' fill-opacity='0.19'/><path transform='translate(340 448) scale(0.36)' d='M0 -20 C2 -8 8 -2 20 0 C8 2 2 8 0 20 C-2 8 -8 2 -20 0 C-8 -2 -2 -8 0 -20z' fill-opacity='0.22'/><path transform='translate(96 468) scale(0.24)' d='M0 -20 C2 -8 8 -2 20 0 C8 2 2 8 0 20 C-2 8 -8 2 -20 0 C-8 -2 -2 -8 0 -20z' fill-opacity='0.17'/></g></svg>");
}

/* окно — прозрачная вставка в камне, а не ночное небо */
.daily-vision {
  position: relative;
  height: 170px;
  margin: var(--s-3) 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 253, 251, 0.97), rgba(226, 194, 218, 0.7) 46%, rgba(140, 82, 132, 0.55) 100%),
    repeating-radial-gradient(
      circle at 50% 42%,
      rgba(255, 255, 255, 0) 0 4px,
      rgba(255, 255, 255, 0.4) 8px,
      rgba(158, 108, 156, 0.22) 13px,
      rgba(255, 255, 255, 0) 19px 24px
    );
  background-size: 180% 180%, 100% 100%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 0 22px rgba(110, 54, 100, 0.3);
  animation: agateCore 16s ease-in-out infinite;
}
@keyframes agateCore {
  0%, 100% { background-position: 50% 40%, 0 0; }
  50% { background-position: 56% 34%, 0 0; }
}

.daily-vision::after {
  content: "☾";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #6d2f66;
  font-size: 54px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85), 0 0 26px rgba(255, 255, 255, 0.5);
}

/* на фактуре текст должен быть плотнее, чем на ровной бумаге,
   иначе тонкие штрихи спорят со слоями камня */
/* карта — флекс-колонка, кикер должен остаться по своей ширине */
.daily-note .t-kicker {
  align-self: center;
  color: #6d2f66;
  font-weight: 700;          /* в шрифте подключены только 400–700 */
  letter-spacing: 0.22em;
}
.daily-note .t-kicker::before,
.daily-note .t-kicker::after { background: rgba(109, 47, 102, 0.5); }
.daily-note .t-h3 {
  margin-bottom: 6px;
  color: #4a1b44;
  font-weight: 700;
}
.daily-note p {
  margin: 0 0 var(--s-3);
  font-size: 15px;
  font-weight: 600;
  color: #5c3456;
}

/* =========================================================
   СТАТЬИ + FAQ
   ========================================================= */
.content-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-6); }
.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
}
.panel-title .t-h2 { font-size: clamp(28px, 2.4vw, 36px); }
.panel-title a { font-size: 15px; font-weight: 600; color: var(--gold-deep); }

.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
/* БЫЛО: h3 { min-height: 76px } — фиксированная высота ломается на 3 строках */
.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-md);
  background: rgba(252, 247, 240, 0.8);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-lift); }
/* высота задаётся пропорцией обложки, а не фиксированным числом:
   иначе на широких карточках картинку срезает сверху и снизу */
.article-img {
  display: block;
  margin: 0;
  padding: 0;
  aspect-ratio: 800 / 420;
  overflow: hidden;
  background: #241228;
}
.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.article-card:hover .article-img img { transform: scale(1.04); }
.article-card h3 a { color: inherit; }
.article-card:hover h3 a { color: var(--plum-2); }
.article-card > span {
  margin: var(--s-2) var(--s-2) 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.article-card h3 { margin: 0 var(--s-2); font-size: 23px; line-height: 1.16; }
/* :not(.article-img) — обложка тоже прямой <a> карточки,
   без исключения она получала эти отступы и не доходила до краёв */
.article-card > a:not(.article-img) {
  margin: auto var(--s-2) var(--s-2);   /* прижимает ссылку к низу без min-height */
  padding-top: var(--s-2);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-deep);
}

.faq details {
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-1);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--gold-deep);
  font-size: 20px;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 var(--s-1) var(--s-3); font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }

/* =========================================================
   НИЖНИЙ CTA
   ========================================================= */
/* как в исходной версии: overflow visible, кристалл выходит за границу блока */
.bottom-cta {
  min-height: 280px;
  position: relative;
  overflow: visible;
  z-index: 3;
  color: #fff4e9;
  background: #251027;
}
.bottom-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}
.bottom-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(36, 14, 38, 0.96), rgba(36, 14, 38, 0.74) 47%, rgba(36, 14, 38, 0.08));
}
.bottom-crystal {
  position: absolute;
  right: clamp(22px, 6vw, 120px);
  bottom: -14px;
  z-index: 2;
  width: clamp(460px, 38vw, 560px);
  max-width: none;
  pointer-events: none;
  filter: drop-shadow(0 28px 32px rgba(21, 8, 24, 0.38));
}
.bottom-cta .shell {
  position: relative;
  z-index: 3;
  min-height: 280px;
  padding-top: 42px;
  padding-bottom: 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.bottom-cta h2 {
  width: min(560px, 100%);
  margin-left: clamp(0px, 2.4vw, 34px);
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1.06;
  color: #fff4e9;
}
.bottom-cta p {
  margin: 18px 0 28px clamp(0px, 2.4vw, 34px);
  max-width: 520px;
  color: rgba(255, 246, 235, 0.82);
  font-size: 18px;
}
.bottom-cta .btn { margin-left: clamp(0px, 2.4vw, 34px); }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
footer { padding: var(--s-6) 0 var(--s-4); background: #1d1418; color: rgba(255, 246, 234, 0.72); }
.footer-brand .logo { width: 150px; margin-bottom: var(--s-3); }
.footer-brand p { margin: 0 0 var(--s-2); max-width: 420px; font-size: 15px; line-height: 1.55; }
.footer-brand span { font-size: 13px; color: rgba(255, 246, 234, 0.42); }
.legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 246, 234, 0.12);
  font-size: 14px;
  color: rgba(255, 246, 234, 0.5);
}
.legal-row a { transition: color 0.18s ease; }
.legal-row a:hover { color: var(--gold); }

/* =========================================================
   АНИМАЦИЯ
   БЫЛО: 16 бесконечных анимаций одновременно.
   СТАЛО: появление при скролле + hover. Один ambient-акцент.
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1040px) {
  .portrait-layout, .benefits-layout, .content-grid { grid-template-columns: minmax(0, 1fr); }
  /* именно relative, а не static: слой со звёздами позиционируется
     абсолютно, и при static он цепляется за .portrait-layout и
     растекается на плашки практик */
  .birth-card { position: relative; top: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }

  /* баннер рун: убираем 64px gap — текст поднимается ближе к картинке */
  .rune-banner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rune-banner img { min-height: 240px; }
  .rune-banner .rune-copy { padding: var(--s-4) var(--s-5) var(--s-5); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .shell { width: calc(100vw - 32px); }
  .nav-links { display: none; }
  .nav-row { grid-template-columns: 130px 1fr auto; }
  .hero { min-height: auto; padding: 120px 0 var(--s-6); }
  .hero-shade { background: linear-gradient(180deg, rgba(20, 9, 18, 0.72), rgba(20, 9, 18, 0.9)); }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }

  /* форма: в одну колонку поля получали и gap сетки, и свой
     margin-bottom — между ними выходило 40px вместо 16 */
  .birth-grid { grid-template-columns: 1fr; gap: 0; }
  .birth-field { margin-bottom: var(--s-2); }
  .birth-card .t-h3 { margin-bottom: var(--s-3); }
  /* на узком экране не резервируем место под подсказку —
     пустая она давала лишние 20px между полями */
  .field-hint { margin: -6px 0 var(--s-2); min-height: 0; }
  .field-hint:empty { display: none; }

  .daily-note { min-height: 0; }

  /* контент баннера ещё ближе к изображению */
  .rune-banner img { min-height: 190px; }
  .rune-banner .rune-copy { padding: var(--s-3) var(--s-3) var(--s-4); }
  .rune-banner h2 { margin: 6px 0 var(--s-2); }
  .rune-banner p { margin-bottom: var(--s-3); }

  /* кристалл — как в исходной версии */
  .bottom-cta, .bottom-cta .shell { min-height: 220px; }
  .bottom-cta .shell { padding-top: 72px; align-items: stretch; }
  .bottom-cta h2 { width: min(330px, 74%); font-size: 31px; }
  .bottom-cta p { width: min(330px, 74%); font-size: 16px; }
  .bottom-crystal {
    right: -58px;
    bottom: -10px;
    width: clamp(250px, 72vw, 330px);
    opacity: 0.92;
  }
}

/* =========================================================
   ИНТЕРАКТИВ 1 — живая реакция формы
   ========================================================= */
.birth-progress {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 248, 239, 0.55);
}
.birth-progress .track {
  flex: 1;
  height: 3px;
  border-radius: var(--r-pill);
  background: rgba(255, 248, 239, 0.16);
  overflow: hidden;
}
.birth-progress .bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #c98bbe);
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* плашка, которая появляется под датой */
.field-echo {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: linear-gradient(120deg, rgba(226, 142, 196, 0.22), rgba(150, 104, 196, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 248, 239, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.field-echo.is-in { opacity: 1; transform: none; }
.field-echo .sign-glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.9);
  color: var(--plum-2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  line-height: 1;
}
.field-echo b {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff8ef;
}
.field-echo span.meta {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 248, 239, 0.7);
}
.field-hint {
  /* подтянут к полю времени, снизу зарезервировано место,
     чтобы подсказка не липла к следующему лейблу и форма не прыгала */
  margin: -12px 0 var(--s-2);
  min-height: 17px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.field-hint.is-in { opacity: 1; }

/* =========================================================
   ИНТЕРАКТИВ 2 — карта дня открывается
   ========================================================= */
.daily-message {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(125, 63, 116, 0.28);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.daily-message.is-in { opacity: 1; transform: none; }
.daily-message p {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: #45183f;
}
.daily-note.is-open .daily-vision { animation: agateCore 16s ease-in-out infinite, visionWake 1.1s ease-out; }
@keyframes visionWake {
  0% { filter: brightness(0.8); }
  45% { filter: brightness(1.35) saturate(1.2); }
  100% { filter: brightness(1); }
}

/* =========================================================
   Звёздные частицы вместо конфетти
   ========================================================= */
.spark {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  animation: sparkRise 1.5s ease-out forwards;
}
@keyframes sparkRise {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5) rotate(0deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.15) rotate(var(--rot)); }
}

@media (prefers-reduced-motion: reduce) {
  .spark { display: none; }
}

/* =========================================================
   Баннер про cookie
   ========================================================= */
.btn-sm { height: 44px; padding: 0 22px; font-size: 15px; }

.cookie-bar {
  position: fixed;
  /* справа, а не слева: слева в герое лежит текст и главная кнопка */
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: min(440px, calc(100vw - 48px));
  padding: var(--s-3);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #fdf7ee, #f2e6d6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), var(--shadow-lift);
  animation: cookieIn 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.cookie-bar p {
  margin: 0 0 var(--s-3);
  font-size: 14.5px;
  line-height: 1.5;
  color: #514338;
}
.cookie-bar a {
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s-1); }

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
  .cookie-bar { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .cookie-actions .btn { width: 100%; }
}

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

/* подсказки городов в форме на главной.
   .birth-input уже position: relative, поэтому список крепится к нему;
   z-index выше карточки — иначе он уходит под соседние поля */
.birth-ac {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 12;
  max-height: 248px; overflow-y: auto;
  border-radius: var(--r-sm);
  background: #fffdf9;
  box-shadow: 0 18px 38px rgba(20, 8, 24, 0.38);
  text-align: left;
}
.birth-ac button {
  display: block; width: 100%; padding: 11px 16px;
  border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; cursor: pointer;
}
.birth-ac button:last-child { border-bottom: 0; }
.birth-ac button:hover { background: rgba(213, 173, 105, 0.14); }
.birth-ac strong { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.birth-ac span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-muted); }
