/* CosmicSync — оформлення сайту.
   ──────────────────────────────────────────────────────────────────────────
   Палітра успадкована з застосунку (CosmicSync/Core/Theme.swift): сайт і
   застосунок мають виглядати як одна річ, а не як дві схожі.

   Три гарнітури й у кожної своя робота:
     Playfair Display — заголовки. Висококонтрастна антиква з тонкими
       з'єднаннями; на темному тлі вона дає ту саму «дорогу» повітряність, що
       й у друкованих виданнях.
     Inter — увесь текст. Нейтральна, з великою висотою рядкових, добре
       тримає дрібні розміри на екрані.
     JetBrains Mono — підписи, числа, службові рядки. Вони мають читатися як
       показання приладу, а не як абзац.

   Четвертий файл, AstroGlyph, — самі лише знаки зодіаку й планет; чому окремо,
   пояснено біля його @font-face.

   Усе лежить поруч у assets/fonts (латиниця + кирилиця, по одному змінному
   файлу на гарнітуру, ~194 КБ разом). Не з CDN: сторінка обіцяє, що нічого
   стороннього не тягне, і обіцянку треба тримати цілком.
   ────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Playfair';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/playfair-display-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/playfair-display-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD,
                 U+2648-2653, U+2609, U+263D, U+263F-2647;
}
@font-face {
  font-family: 'InterVar';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'InterVar';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrainsVar';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrainsVar';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Астрологічні знаки окремим файлом на 6 КБ.
   ♈…♓ і ☉…♇ мають у Unicode емодзі-презентацію за замовчуванням, тож браузер
   малює їх кольоровими наліпками з Noto Color Emoji — у ряду з Playfair це
   виглядає як чужий набір. Власний підмножинний шрифт знімає питання зовсім:
   він стоїть першим у кожному стеку, містить рівно ці двадцять чотири знаки,
   а все інше провалюється далі по списку. */
@font-face {
  font-family: 'AstroGlyph';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(fonts/astro-glyphs.woff2) format('woff2');
  unicode-range: U+211E, U+2609, U+263D, U+263F-2653, U+2733;
}

:root {
  --ink: #05060B;
  --ink-2: #080A11;

  --violet: #9B82FF;
  --violet-deep: #5B41D6;
  --gold: #D8B36A;
  --azure: #5C9EFF;
  --cyan: #6FE3EC;
  --signal: #5FD69A;
  --amber: #EFBB77;
  --crimson: #F07A88;

  --text: #EDF1F8;
  --text-2: #A6B0C4;
  --text-3: #707B90;

  --line: rgba(255, 255, 255, 0.075);
  --line-soft: rgba(255, 255, 255, 0.042);
  --surface: rgba(255, 255, 255, 0.022);
  --surface-2: rgba(255, 255, 255, 0.045);

  --display: 'AstroGlyph', 'Playfair', Georgia, 'Times New Roman', serif;
  --sans: 'AstroGlyph', 'InterVar', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'AstroGlyph', 'JetBrainsVar', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1120px;
  --header: 62px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  font-feature-settings: 'ss01', 'cv05';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Віньєтка: краї екрана трохи темніші за середину. Непомітно поодинці, але
   саме вона не дає темній сторінці читатися як «сірий прямокутник». */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(91, 65, 214, 0.10), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(42, 95, 191, 0.07), transparent 60%),
    radial-gradient(100% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55));
}

/* Зерно. Одна SVG-текстура поверх усього, три відсотки непрозорості.
   Цифрові градієнти на темному тлі смугастять — банди видно навіть на добрих
   екранах; шум їх розбиває. Він же прибирає відчуття «намальовано у браузері». */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer, .sticky-cta { position: relative; z-index: 2; }

/* Зоряне тло внутрішніх сторінок.
   На головній цю роль грає полотно героя, тому в розмітці index.html його
   нема — а на сторінках знаків і в правових текстах є. Без цього правила
   полотно лишається звичайним рядковим елементом розміром у два екрани й
   виштовхує весь вміст сторінки нижче видимої частини: сторінка виглядає
   порожньою, хоча з нею все гаразд. */
#backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

::selection { background: rgba(155, 130, 255, 0.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.10);
  border-radius: 5px;
  border: 3px solid var(--ink);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Шапка ─────────────────────────────────────────────────────────────── */

header.top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(140%);
  background: linear-gradient(to bottom, rgba(5, 6, 11, 0.88), rgba(5, 6, 11, 0.45));
  border-bottom: 1px solid var(--line-soft);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header);
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  line-height: 1.15;
}

/* Знак малюється вбудованим SVG, а не картинкою: так він бере колір зі стилів
   (currentColor), лишається різким на будь-якій щільності екрана й не коштує
   зайвого запиту. Той самий знак — на вкладці браузера і на іконці застосунку;
   опис у tools/gen_icons.py один на всі три. */
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--violet);
  transition: color 0.3s;
}

.brand:hover .brand-mark { color: var(--gold); }

/* Орбіти обертаються — і планети їдуть разом з ними.
   Планета лежить у тій самій групі, що й її орбіта, саме тому вона завжди на
   ній. Якби вона крутилася окремо, її шлях був би колом радіуса rx, а не
   еліпсом, і на кожному кадрі, крім чотирьох, вона висіла б поруч з орбітою.

   transform-box: view-box, а не fill-box. fill-box відлічував би центр
   обертання від рамки групи, а в групі, крім еліпса, є ще планета — рамка
   зміщена, і орбіта крутилася б навколо точки, якої в ній немає. view-box дає
   систему координат самого SVG, де центр знака рівно (32, 32).

   Періоди 19 і 27 секунд узяті взаємно простими: спільний період у них
   19 × 27 = 513 секунд, тобто малюнок не повторюється вісім із половиною
   хвилин. З кратними періодами орбіти щоцикла верталися б у те саме
   положення, і знак читався б як зациклена гіфка. */
.brand-mark .orbit {
  transform-box: view-box;
  transform-origin: 32px 32px;
}

.brand-mark .o-a { animation: orbit-a 19s linear infinite; }
.brand-mark .o-b { animation: orbit-b 27s linear infinite; }

/* Кут у кадрах починається з того самого, що стоїть у SVG атрибутом. CSS-
   трансформація ПЕРЕБИВАЄ атрибут transform, а не додається до нього, тож без
   цього на першому ж кадрі обидві орбіти смикнулись би в нове положення. */
@keyframes orbit-a {
  from { transform: rotate(-18deg); }
  to   { transform: rotate(342deg); }
}

@keyframes orbit-b {
  from { transform: rotate(52deg); }
  to   { transform: rotate(412deg); }
}

/* Світило дихає — ледь помітно, утричі повільніше за ближню орбіту. */
.brand-mark .core { animation: core-breathe 6.5s ease-in-out infinite; }

@keyframes core-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

/* Наведення розганяє систему втричі. Міняти треба саме тривалість, а не
   швидкість: інакше анімація перезапускається з нуля й малюнок стрибає. */
.brand:hover .brand-mark .o-a { animation-duration: 6s; }
.brand:hover .brand-mark .o-b { animation-duration: 8.5s; }
.brand:hover .brand-mark .core { animation-duration: 2s; }

.brand-text { display: block; }

.brand b {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.30em;
  color: var(--text);
}

.brand-text span {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: var(--text-3);
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.top-nav > a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.25s;
}

.top-nav > a:hover { color: var(--text); }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

/* Перемикач мови — це посилання, а не кнопки: у кожної мови власна адреса.
   Поточна мова лишається текстом, бо посилання на сторінку, на якій ти вже
   стоїш, нічого не робить і лише збиває. */
.lang a,
.lang span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 6px 11px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.25s, background 0.25s;
}

.lang a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.lang [aria-current='true'] {
  background: rgba(155, 130, 255, 0.16);
  color: var(--violet);
}

/* Посилання в шапці зникають першими: вони дублюють прокрутку, а місце
   віднімають у перемикача мови, якого більше ніде нема. */
@media (max-width: 680px) { .top-nav > a { display: none; } }

/* ── Типографіка ───────────────────────────────────────────────────────── */

section { padding: clamp(56px, 10vw, 132px) 0; position: relative; }

/* Шапка липка, тож перехід по якорю ставить заголовок рівно під неї. */
section[id] { scroll-margin-top: calc(var(--header) + 14px); }

h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.03;
  letter-spacing: -0.018em;
  margin: 0 0 20px;
}

h1 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--gold), #F3E0B4 45%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.5vw, 43px);
  line-height: 1.13;
  letter-spacing: -0.014em;
  margin: 0 0 16px;
  max-width: 22ch;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 9px;
}

p { margin: 0 0 18px; color: var(--text-2); }

.lead {
  font-size: clamp(16px, 1.9vw, 19.5px);
  line-height: 1.65;
  max-width: 60ch;
  color: var(--text-2);
}

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 18px;
}

/* Номер секції — тонка золота цифра. Він не тільки прикраса: сторінка довга,
   і нумерація дає відчуття, що в неї є край. */
.label i {
  font-style: normal;
  color: var(--gold);
  opacity: 0.75;
}

.label::after {
  content: '';
  flex: 1;
  height: 1px;
  max-width: 90px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.note {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

a { color: var(--violet); text-underline-offset: 3px; }

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

.btn {
  --btn-tint: 155, 130, 255;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid rgba(var(--btn-tint), 0.42);
  background:
    linear-gradient(180deg, rgba(var(--btn-tint), 0.20), rgba(var(--btn-tint), 0.10));
  color: #EDE7FF;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.35s, border-color 0.3s;
  box-shadow: 0 0 0 rgba(var(--btn-tint), 0);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--btn-tint), 0.7);
  box-shadow: 0 12px 34px -12px rgba(var(--btn-tint), 0.75);
}

/* Полиск, що проходить по кнопці при наведенні. Той самий прийом, що на
   фользі друкованої обкладинки: поверхня має відповісти на рух. */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%,
              rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.8s var(--ease);
}

.btn:hover::after { transform: translateX(130%); }

.btn-lg {
  --btn-tint: 216, 179, 106;
  padding: 18px 40px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #FFF6E2;
}

.btn.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text-2);
}

/* ── Панелі ────────────────────────────────────────────────────────────── */

.panel {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 30px);
}

/* Волосяний відблиск по верхній грані — те, що відрізняє «блок із рамкою» від
   «поверхні, на яку падає світло». */
.panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  margin: 22px 0;
}

/* ── Перший екран ──────────────────────────────────────────────────────── */

#sky {
  position: relative;
  height: calc(100svh - var(--header));
  min-height: 600px;
  padding: 0;
  overflow: hidden;
}

#starmap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Текст лежить поверх полотна, але не ловить курсор — інакше він вирізав би з
   неба прямокутник, у якому сузірʼя не реагують. Ловлять лише самі елементи
   керування всередині. */
.hero-copy {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(26px, 6vh, 64px);
  max-width: 560px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

#sky.is-ready .hero-copy { opacity: 1; transform: none; }

.hero-copy > * { pointer-events: auto; }

/* На широкому екрані коло стоїть праворуч, текст — по центру лівої половини.
   Числа тут мусять збігатися з розкладкою в intro.js, інакше текст ляже на
   сузірʼя. */
@media (min-width: 1000px) and (min-aspect-ratio: 1.15) {
  .hero-copy {
    top: 50%;
    bottom: auto;
    transform: translateY(calc(-50% + 14px));
    max-width: min(520px, 40vw);
    left: max(var(--gutter), calc(50vw - var(--max) / 2 + var(--gutter)));
  }
  #sky.is-ready .hero-copy { transform: translateY(-50%); }
}

.now {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 20px;
}

.now b { color: var(--text-2); font-weight: 500; }

.now .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hint {
  font-size: 15.5px;
  color: var(--text-2);
  max-width: 44ch;
  margin-bottom: 26px;
}

/* Дванадцять знаків одразу під заголовком: перший екран має не тільки
   показувати, а й давати що зробити. Гліфи — з Playfair, бо системні
   малюються як емодзі й вибиваються з ряду. */
.sign-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sign-picker button {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 17, 0.55);
  backdrop-filter: blur(10px);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.sign-picker button i {
  font-family: var(--display);
  font-style: normal;
  font-size: 15px;
  color: var(--tint, var(--violet));
  transition: color 0.25s;
}

.sign-picker button:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--tint) 55%, transparent);
  background: color-mix(in srgb, var(--tint) 14%, rgba(8, 10, 17, 0.55));
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
  overflow: hidden;
}

.scroll-cue::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--violet), transparent);
  animation: cue 2.6s ease-in-out infinite;
}

@keyframes cue {
  0% { transform: translateY(-100%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

@media (max-width: 999px) { .scroll-cue { display: none; } }

/* Вузький екран: текст стоїть під колом, а не збоку від нього, тож між ними
   потрібна затемнена підкладка. Без неї заголовок лягає прямо на зорі — біле
   по світлих крапках читається погано, а сузірʼя під літерами перетворюються
   на бруд. Градієнт починається нижче за коло й гасне вгору. */
@media (max-width: 999px), (max-aspect-ratio: 1.15) {
  #sky::after {
    content: '';
    position: absolute;
    inset: 38% 0 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, transparent,
                rgba(5, 6, 11, 0.70) 24%, rgba(5, 6, 11, 0.94) 52%);
  }

  .hero-copy { bottom: clamp(18px, 3vh, 34px); max-width: none; }
  #sky h1 { font-size: clamp(30px, 8.4vw, 46px); }
  .hint { font-size: 14.5px; margin-bottom: 20px; }
  .now { margin-bottom: 16px; font-size: 10.5px; }
  .sign-picker { gap: 6px; }
  .sign-picker button { font-size: 10.5px; padding: 7px 11px; gap: 6px; }
  .sign-picker button i { font-size: 13px; }
}

/* ── Панель прогнозу ───────────────────────────────────────────────────── */

#reading { padding-top: clamp(36px, 6vw, 72px); }

.fc-head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }

.fc-figure { width: 108px; height: 108px; flex: none; }

.fc-title h2 { margin: 0 0 6px; max-width: none; }

.fc-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.season {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(216, 179, 106, 0.4);
  background: rgba(216, 179, 106, 0.10);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
}

.mood {
  font-family: var(--display);
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.42;
  color: var(--text);
  margin: 0 0 4px;
  max-width: 46ch;
}

.fc-line { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }

.fc-line:last-of-type { border-bottom: 0; }

.fc-line p { margin: 0; font-size: 15px; }

.fc-glyphs {
  flex: none;
  min-width: 62px;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.t-good { color: var(--signal); }
.t-hard { color: var(--crimson); }
.t-mixed { color: var(--amber); }
.t-neutral { color: var(--text-3); }

/* ── Кроки ─────────────────────────────────────────────────────────────── */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 30px clamp(16px, 2.4vw, 30px);
  background: var(--ink);
}

.steps li::before {
  content: '0' counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 16px;
}

.steps b {
  display: block;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.steps span { color: var(--text-2); font-size: 14.5px; line-height: 1.65; }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ── Мапа Сонячної системи ─────────────────────────────────────────────── */

.solar-frame {
  position: relative;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(91, 65, 214, 0.09), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}

#solar-map {
  display: block;
  width: 100%;
  height: clamp(400px, 60vh, 660px);
  touch-action: pan-y;   /* мапа не крутиться пальцем — гортається сторінка */
}

.solar-modes {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 32px);
}

.solar-modes button,
.speeds button,
.tbtn {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 17, 0.7);
  backdrop-filter: blur(10px);
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
  white-space: nowrap;
}

.solar-modes button:hover,
.speeds button:hover,
.tbtn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }

.solar-modes button.is-on,
.speeds button.is-on {
  color: var(--violet);
  border-color: rgba(155, 130, 255, 0.5);
  background: rgba(155, 130, 255, 0.15);
}

.solar-time {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.speeds { display: flex; gap: 4px; }

#solar-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-left: auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(8, 10, 17, 0.7);
  backdrop-filter: blur(10px);
}

.solar-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 24px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.solar-facts dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.solar-facts dd { margin: 0; font-size: 14.5px; color: var(--text); }

.solar-note { margin: 20px 0 0; max-width: 80ch; }

/* На вузькому екрані накладені керування з'їдають мапу — там вони стають під
   полотном звичайним потоком. */
@media (max-width: 720px) {
  .solar-frame { display: flex; flex-direction: column; }
  #solar-map { height: 54vh; min-height: 330px; order: -1; }

  .solar-modes,
  .solar-time { position: static; max-width: none; padding: 12px 14px 0; gap: 6px; }
  .solar-time { padding-bottom: 14px; }

  /* Один ряд із прокручуванням замість переносу: перенесені кнопки міняють
     висоту блока й совають сторінку під пальцем. */
  .solar-modes,
  .speeds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .solar-modes::-webkit-scrollbar,
  .speeds::-webkit-scrollbar { display: none; }

  #solar-date { margin-left: 0; order: 3; width: 100%; text-align: center; }
}

/* ── Таблиця неба ──────────────────────────────────────────────────────── */

.sky-table { margin-top: 32px; }

.sky-table table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.sky-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 14px 12px 0;
  border-bottom: 1px solid var(--line);
}

.sky-table td {
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--text-2);
}

.sky-table tr:last-child td { border-bottom: 0; }

.sky-table tr { transition: background 0.25s; }
.sky-table tbody tr:hover { background: rgba(255, 255, 255, 0.022); }

.sky-table .b-name { color: var(--text); white-space: nowrap; }

.sky-table .b-name i {
  font-family: var(--display);
  font-style: normal;
  font-size: 17px;
  margin-right: 10px;
  color: var(--violet);
}

.sky-table .deg { font-family: var(--mono); font-size: 13.5px; color: var(--text); }

.sky-table .retro { color: var(--crimson); }
.sky-table .direct { color: var(--text-3); }

.sky-table .sign-cell i {
  font-family: var(--display);
  font-style: normal;
  margin-right: 8px;
  color: var(--tint);
}

@media (max-width: 640px) {
  .sky-table th:nth-child(4), .sky-table td:nth-child(4) { display: none; }
}

/* ── Карти таро ────────────────────────────────────────────────────────── */

.card3d {
  position: relative;
  width: 100%;
  aspect-ratio: 340 / 544;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 220ms);
}

.card3d.is-flipped { transform: rotateY(0deg); }

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
}

.card-front { background: #0C0F18; }

.card-front img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Перевернутий аркан — це саме перевернута карта, а не інший малюнок. */
.card-front.is-reversed img { transform: rotate(180deg); }

.card-back {
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(45deg, rgba(155, 130, 255, 0.10) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(-45deg, rgba(216, 179, 106, 0.07) 0 6px, transparent 6px 12px),
    radial-gradient(80% 60% at 50% 40%, rgba(91, 65, 214, 0.5), transparent 70%),
    linear-gradient(160deg, #171C2C, #0A0D15);
}

.card-back::after {
  content: '✳';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 34px;
  color: rgba(216, 179, 106, 0.5);
}

.tarot-day {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  margin-top: 34px;
}

.card-slot { perspective: 1400px; }

.tarot-day-copy h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  margin-bottom: 14px;
}

.tarot-day-copy .lead { font-family: var(--display); font-size: clamp(17px, 2vw, 21px); }

.tarot-more {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--text-3);
  max-width: 48ch;
}

@media (max-width: 760px) {
  .tarot-day { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .card-slot { width: 210px; }
  .tarot-more { text-align: left; }
}

/* ── Стіл розбору ──────────────────────────────────────────────────────── */

.table-grid {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  margin-top: 34px;
}

/* Ширина задана явно, а не «розтягнеться сама».
   Усередині диска все абсолютне — і чіпи, і центр, — тож його власна
   fit-content ширина дорівнює нулю. Поки він розтягувався на комірку сітки,
   це було непомітно; варто було додати `margin: 0 auto` на вузькому екрані,
   як розтягування вимкнулося (автомаржі його скасовують), диск став 0×0, а
   всі підписи зсипались у купу поверх тексту над ним. */
.table-disc {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(91, 65, 214, 0.15), transparent 70%);
}

.table-disc::before,
.table-disc::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.table-disc::after { inset: 27%; }

.table-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(155, 130, 255, 0.4);
  background: radial-gradient(circle, rgba(155, 130, 255, 0.2), rgba(155, 130, 255, 0.04));
  box-shadow: 0 0 50px rgba(155, 130, 255, 0.16);
}

.table-core b {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text);
}

.table-core span { font-family: var(--mono); font-size: 9.5px; color: var(--text-3); }

/* Чіп ставиться на коло полярними координатами: кут свій у кожного, радіус
   спільний.

   Спершу тут стояв ланцюжок `rotate() translate(38%) rotate(-…)`, і він не
   працював: відсоток у `translate` рахується від САМОГО елемента, а чіп — це
   22% диска, тож зсув виходив утричі меншим за потрібний і всі пʼять чіпів
   збиралися в купу біля центру. У `left`/`top` відсоток рахується від батька,
   а батько квадратний — отже одне й те саме число дає той самий радіус і по
   горизонталі, і по вертикалі. */
.table-disc .chip {
  position: absolute;
  --r: 37%;
  left: calc(50% + var(--r) * cos(var(--angle)));
  top: calc(50% + var(--r) * sin(var(--angle)));
  width: 22%;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--text-3);
  border: 1px solid var(--line);
  background: rgba(10, 13, 21, 0.9);
  transform: translate(-50%, -50%);
  transition: left 0.6s var(--ease), top 0.6s var(--ease),
              transform 0.6s var(--ease),
              color 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

/* Покладений на стіл чіп під'їжджає ближче до центру — рух і є підтвердженням
   дії, тому окремої «галочки» не треба. */
.table-disc .chip.is-on {
  --r: 31%;
  transform: translate(-50%, -50%) scale(1.1);
  color: var(--text);
  border-color: var(--tint);
  background: color-mix(in srgb, var(--tint) 18%, rgba(10, 13, 21, 0.9));
  box-shadow: 0 0 28px color-mix(in srgb, var(--tint) 32%, transparent);
}

.chip.pulse { animation: chip-pulse 0.4s ease-out; }

@keyframes chip-pulse {
  0% { filter: brightness(1); }
  35% { filter: brightness(1.8); }
  100% { filter: brightness(1); }
}

.tint-violet { --tint: var(--violet); }
.tint-azure  { --tint: var(--azure); }
.tint-cyan   { --tint: var(--cyan); }
.tint-amber  { --tint: var(--amber); }
.tint-signal { --tint: var(--signal); }
.tint-gold   { --tint: var(--gold); }
.tint-crimson { --tint: var(--crimson); }

.table-picker { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

.table-picker label { display: flex; flex-direction: column; gap: 7px; }

.table-picker span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.table-picker select {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  min-width: 165px;
  cursor: pointer;
}

.table-picker select:focus { outline: none; border-color: rgba(155, 130, 255, 0.55); }
.table-picker option { background: #0C0F18; color: var(--text); }

.table-list {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 18px 22px;
}

.tbl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.tbl-head b { color: var(--gold); font-size: 12px; letter-spacing: 0; }

.tbl-row { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }

.tbl-row:last-child { border-bottom: 0; }

.tbl-row b {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--tint, var(--text));
  margin-bottom: 4px;
}

.tbl-row .note { display: block; }

.tbl-row .contrib { display: block; margin-top: 7px; font-size: 14px; color: var(--text-2); }

.tbl-row .dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--tint);
  box-shadow: 0 0 12px var(--tint);
}

.tbl-empty { margin: 16px 0 0; }

.tbl-animated .tbl-row { animation: tbl-in 0.5s var(--ease) backwards; }
.tbl-animated .tbl-row:nth-child(2) { animation-delay: 0.03s; }
.tbl-animated .tbl-row:nth-child(3) { animation-delay: 0.09s; }
.tbl-animated .tbl-row:nth-child(4) { animation-delay: 0.15s; }
.tbl-animated .tbl-row:nth-child(5) { animation-delay: 0.21s; }
.tbl-animated .tbl-row:nth-child(6) { animation-delay: 0.27s; }

@keyframes tbl-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

.table-result {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-3);
}

.table-result b { color: var(--text); }

@media (max-width: 940px) {
  .table-grid { grid-template-columns: 1fr; }
  .table-disc { width: min(400px, 100%); justify-self: center; }
}

/* ── Перевірка ─────────────────────────────────────────────────────────── */

.proof { margin-top: 16px; }

.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 26px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.counter b {
  display: block;
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.counter span {
  display: block;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

@media (max-width: 760px) { .counters { grid-template-columns: repeat(2, 1fr); } }

.checks { list-style: none; padding: 0; margin: 0; }

.checks li {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-2);
  padding: 9px 0 9px 22px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}

.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--signal);
}

.checks li:last-child { border-bottom: 0; }
.checks b { color: var(--text); font-weight: 600; }

/* ── Питання ───────────────────────────────────────────────────────────── */

.faq-list { margin-top: 30px; border-top: 1px solid var(--line-soft); }

.faq-list details { border-bottom: 1px solid var(--line-soft); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s;
}

.faq-list summary:hover { color: var(--gold); }
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 13px;
  height: 1px;
  background: var(--text-3);
  box-shadow: 0 0 0 currentColor;
  transition: transform 0.3s var(--ease);
}

.faq-list summary::before {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 1px;
  height: 13px;
  margin-top: -6px;
  background: var(--text-3);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.faq-list details[open] summary::before { transform: rotate(90deg); opacity: 0; }

.faq-list details p { margin: 0 0 24px; max-width: 72ch; font-size: 15.5px; }

/* ── Застосунок ────────────────────────────────────────────────────────── */

.get-title { max-width: 18ch; }
.get-lead { margin-bottom: 0; }

/* Горизонтальна стрічка з прилипанням, а не сітка: вісім екранів у сітці
   перетворюються на стіну, яку ніхто не роздивляється. Стрічку гортають. */
.shots {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 44px var(--gutter);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.shots::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 auto;
  width: 244px;
  margin: 0;
  scroll-snap-align: center;
}

/* Рамка телефона: подвійний кант, як на справжньому корпусі — темна грань,
   світлий блик по краю скла, глибока тінь під корпусом. */
.shot-phone {
  position: relative;
  border-radius: 34px;
  padding: 6px;
  background: linear-gradient(150deg, #39404F, #10131C 40%, #0A0C12 70%, #2A303D);
  box-shadow:
    0 40px 80px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}

.shot:hover .shot-phone {
  transform: translateY(-10px);
  box-shadow: 0 60px 100px -45px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.shot-phone img { display: block; width: 100%; height: auto; border-radius: 29px; }

/* Полиск по склу — тонка діагональ, яка й робить макет «фотографією». */
.shot-phone::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 29px;
  pointer-events: none;
  background: linear-gradient(126deg, rgba(255, 255, 255, 0.11) 0%,
              rgba(255, 255, 255, 0.02) 22%, transparent 42%);
}

.shot figcaption { margin-top: 18px; }

.shot figcaption b {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 5px;
}

.shot figcaption span { font-size: 13.5px; line-height: 1.6; color: var(--text-3); }

.features {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.features li { padding: 26px clamp(14px, 2vw, 26px); background: var(--ink); }

.features b {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 8px;
}

.features span { font-size: 14px; line-height: 1.65; color: var(--text-3); }

@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

.get-cta { text-align: center; padding: clamp(44px, 7vw, 76px) 0 0; }

.get-cta .note { margin-top: 16px; }

/* ── Липка кнопка ──────────────────────────────────────────────────────── */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px 0;
  background: linear-gradient(to top, rgba(5, 6, 11, 0.97), rgba(5, 6, 11, 0.75));
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft);
  transform: translateY(110%);
  transition: transform 0.6s var(--ease);
}

.sticky-cta.is-shown { transform: none; }

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

.sticky-inner span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-2);
}

@media (max-width: 680px) {
  .sticky-inner span { display: none; }
  .sticky-inner { justify-content: center; }
  .sticky-cta .btn { width: 100%; }
}

/* ── Підвал ────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line-soft);
  padding: 54px 0 90px;
  font-size: 13px;
  color: var(--text-3);
}

.sign-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }

.sign-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.sign-links a i {
  font-family: var(--display);
  font-style: normal;
  font-size: 14px;
  color: var(--gold);
}

.sign-links a:hover {
  color: var(--text);
  border-color: rgba(216, 179, 106, 0.4);
  background: rgba(216, 179, 106, 0.08);
}

.foot-bottom {
  display: flex;
  gap: 26px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }

.foot-bottom .note { margin: 0; max-width: 62ch; }

footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--violet); }

/* ── Поява при прокручуванні ───────────────────────────────────────────────
   Зсув маленький — 20 px. Великий («елемент влітає знизу») читається як
   реклама; маленький читається як фокус, що наводиться. */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ── Правові сторінки ──────────────────────────────────────────────────── */

.doc { max-width: 74ch; padding-top: clamp(30px, 6vw, 60px); }
.doc h1 { font-size: clamp(30px, 4.4vw, 50px); }
.doc h2 { margin-top: 46px; font-size: clamp(21px, 2.6vw, 28px); }
.doc ul { padding-left: 20px; color: var(--text-2); }
.doc li { margin-bottom: 9px; }
.doc .updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── Сторінка знака ────────────────────────────────────────────────────── */

.sign-page { padding: clamp(32px, 6vw, 72px) 0 clamp(50px, 8vw, 96px); }

.crumbs {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
}

.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--violet); }

.sign-hero {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  margin-bottom: 44px;
}

.sign-figure { width: 190px; height: 190px; }

.sign-hero h1 { font-size: clamp(32px, 4.6vw, 56px); }

.sign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.sign-meta dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.sign-meta dd { margin: 0; font-size: 15px; color: var(--text); }

/* Секції на сторінці знака йдуть щільно, без власного вертикального відступу —
   на відміну від головної, де кожна секція це окремий екран.
   Але `.panel` серед них теж є, і `:not()` тут обов'язковий: `.sign-page
   section` специфічніше за `.panel`, тож без винятку воно скидало панелі
   внутрішній відступ і текст лягав упритул до рамки. */
.sign-page section { margin-bottom: 38px; }
.sign-page section:not(.panel) { padding: 0; }
.sign-page section h2 { font-size: clamp(22px, 2.8vw, 30px); }

.cta-panel {
  background: linear-gradient(160deg, rgba(216, 179, 106, 0.10), rgba(155, 130, 255, 0.06));
  border-color: rgba(216, 179, 106, 0.22);
}

@media (max-width: 660px) {
  .sign-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sign-figure { width: 150px; height: 150px; }
  .sign-meta { justify-content: center; }
}

/* ── Зменшений рух ─────────────────────────────────────────────────────── */

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