/* ============================================================
   ПЕРСОНАЛЬНЫЙ КОД — дизайн-система сайта.
   Стиль: «спокойная роскошь» в духе современных продуктовых страниц —
   много воздуха, крупная типографика с плотным трекингом, стеклянные
   панели поверх мягких цветных аур, золото только как тонкая линия.

   ПРАВИЛА, КОТОРЫЕ ЗДЕСЬ СОБЛЮДАЮТСЯ
   1) Ни одного внешнего шрифта и ни одной внешней библиотеки: только
      системный стек. Это скорость (Core Web Vitals = SEO) и отсутствие
      зависимостей от чужих доменов (строгий CSP).
   2) Все цвета — переменные. Палитра переключается атрибутом на <html>:
        <html lang="ru">                      — светлая «бумага + золото»
        <html lang="ru" data-palette="night"> — тёмная «графит + золото»
   3) Контраст текста проверен: основной текст ≥ 7:1, второстепенный ≥ 4.5:1.
   4) prefers-reduced-motion выключает все анимации и переходы.
   ============================================================ */

/* ===================== ПАЛИТРА: БУМАГА + ЗОЛОТО (основная) ===================== */
:root {
    color-scheme: light;

    /* Фоны. Не чистый белый: тёплая бумага выглядит дороже холодного #fff. */
    --paper: #f7f5f2;
    --paper-2: #fffdfa;
    --paper-3: #efece6;
    --paper-veil: rgba(247, 245, 242, 0.72);

    /* Текст */
    --ink: #14110e;
    --ink-soft: #4a443c;
    --ink-dim: #6f675c;   /* 5.12:1 на бумаге — норма WCAG AA */
    --ink-faint: #8b8378;  /* 3.4:1 — только для крупных служебных подписей */

    /* Золото в двух тонах: на светлом фоне яркое золото нечитаемо,
       поэтому текст/кнопки — бронза, а яркое — только тонкие линии. */
    --gold: #7a5c22;
    --gold-line: rgba(122, 92, 34, 0.28);
    --gold-bright: #c8a24a;
    --gold-tint: rgba(200, 162, 74, 0.12);

    /* Графит — «вторая кожа» интерфейса: шапка, тёмные секции, подвал. */
    --graphite: #131118;
    --graphite-2: #1d1a24;
    --on-graphite: #f4f1ea;
    --on-graphite-soft: rgba(244, 241, 234, 0.74);
    --on-graphite-dim: rgba(244, 241, 234, 0.5);
    --on-graphite-line: rgba(244, 241, 234, 0.14);

    /* Стекло */
    --glass: rgba(255, 255, 255, 0.62);
    --glass-strong: rgba(255, 255, 255, 0.82);
    --glass-line: rgba(255, 255, 255, 0.9);
    --glass-edge: rgba(20, 17, 14, 0.07);
    --glass-blur: 22px;
    --shadow-soft: 0 2px 10px rgba(28, 22, 12, 0.05);
    --shadow-card: 0 18px 50px -22px rgba(28, 22, 12, 0.22);
    --shadow-lift: 0 32px 80px -32px rgba(28, 22, 12, 0.34);

    /* Ауры — цветные пятна под стеклом. Дают «дорогой» перелив. */
    --aura-1: rgba(200, 162, 74, 0.20);
    --aura-2: rgba(126, 104, 190, 0.16);
    --aura-3: rgba(58, 122, 122, 0.13);
    --aura-4: rgba(196, 122, 96, 0.14);

    /* Служебные */
    --line: rgba(20, 17, 14, 0.10);
    --line-strong: rgba(20, 17, 14, 0.18);
    --ok: #3f6f45;
    --ok-bg: rgba(63, 111, 69, 0.08);
    --err: #9d3a2a;
    --err-bg: rgba(157, 58, 42, 0.08);
    --focus: #2f6fb5;

    /* Радиусы и ритм */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-pill: 999px;
    --wrap: 1140px;
    --wrap-narrow: 780px;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
                 "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-display: "Iowan Old Style", "Palatino Linotype", Palatino,
                    "Book Antiqua", Georgia, serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ===================== ПАЛИТРА: ГРАФИТ + ЗОЛОТО ===================== */
:root[data-palette="night"] {
    color-scheme: dark;
    --paper: #0a090d;
    --paper-2: #121017;
    --paper-3: #17141d;
    --paper-veil: rgba(10, 9, 13, 0.72);
    --ink: #f5f2ec;
    --ink-soft: rgba(245, 242, 236, 0.76);
    --ink-dim: rgba(245, 242, 236, 0.56);
    --ink-faint: rgba(245, 242, 236, 0.38);
    --gold: #d9bb7a;
    --gold-line: rgba(217, 187, 122, 0.26);
    --gold-bright: #edD79f;
    --gold-tint: rgba(217, 187, 122, 0.12);
    --graphite: #050408;
    --graphite-2: #100e14;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-strong: rgba(255, 255, 255, 0.08);
    --glass-line: rgba(255, 255, 255, 0.12);
    --glass-edge: rgba(255, 255, 255, 0.06);
    --shadow-card: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
    --shadow-lift: 0 32px 90px -30px rgba(0, 0, 0, 0.9);
    --line: rgba(245, 242, 236, 0.12);
    --line-strong: rgba(245, 242, 236, 0.2);
    --ok: #7fc08a;
    --err: #e08a76;
}

/* ================================= БАЗА ================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.62;
    letter-spacing: -0.006em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, canvas, svg { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-bright); }

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

::selection { background: var(--gold-tint); }

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.026em;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.18rem, 1.8vw, 1.45rem); letter-spacing: -0.018em; }
h4 { font-size: 1.02rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
strong, b { font-weight: 600; }
small { font-size: 0.86em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--graphite); color: var(--on-graphite);
    padding: 10px 16px; border-radius: var(--r-sm); font-size: 0.9rem;
    text-decoration: none; transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

/* =============================== СЕТКА =============================== */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 22px;
}
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding: clamp(32px, 4vw, 56px) 0; }
.section-graphite {
    background: var(--graphite);
    color: var(--on-graphite);
    position: relative;
    overflow: hidden;
}
.section-graphite h2, .section-graphite h3 { color: var(--on-graphite); }
.section-graphite a { color: var(--gold-bright); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.muted { color: var(--ink-dim); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.8rem; }
.nowrap { white-space: nowrap; }

/* =============================== ШАПКА =============================== */
.site-head {
    position: sticky; top: 0; z-index: 80;
    background: var(--paper-veil);
    -webkit-backdrop-filter: saturate(180%) blur(var(--glass-blur));
    backdrop-filter: saturate(180%) blur(var(--glass-blur));
    border-bottom: 1px solid var(--line);
}
.head-inner {
    display: flex; align-items: center; gap: 18px;
    min-height: 66px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; letter-spacing: -0.02em; font-size: 1.02rem;
    color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 26px; height: 26px; flex: 0 0 26px;
    border-radius: 7px;
    background: conic-gradient(from 210deg, var(--gold-bright), #8f6f2c, var(--gold-bright));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    position: relative;
}
.brand-mark::after {
    content: ""; position: absolute; inset: 5px;
    border-radius: 3px;
    background: var(--graphite);
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
    padding: 8px 12px; border-radius: var(--r-pill);
    color: var(--ink-soft); text-decoration: none;
    font-size: 0.94rem; letter-spacing: -0.01em;
    transition: background 0.16s ease, color 0.16s ease;
}
.nav a:hover { background: var(--gold-tint); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--gold-tint); }
.head-cta { margin-left: 6px; }
.burger {
    display: none; margin-left: auto;
    width: 42px; height: 42px; border-radius: var(--r-md);
    background: transparent; border: 1px solid var(--line);
    color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
    display: block; width: 18px; height: 1.6px; background: currentColor;
    border-radius: 2px; content: ""; position: relative;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* =============================== КНОПКИ =============================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 26px; border: 1px solid transparent; border-radius: var(--r-pill);
    background: var(--graphite); color: var(--on-graphite);
    font: inherit; font-size: 0.98rem; font-weight: 500; letter-spacing: -0.01em;
    text-decoration: none; cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
    box-shadow: var(--shadow-soft);
}
.btn:hover { color: var(--on-graphite); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-sm { padding: 9px 17px; font-size: 0.9rem; }
.btn-lg { padding: 17px 34px; font-size: 1.04rem; }
.btn-ghost {
    background: transparent; color: var(--ink);
    border-color: var(--line-strong); box-shadow: none;
}
.btn-ghost:hover { color: var(--ink); background: var(--gold-tint); border-color: var(--gold-line); }
.btn-gold {
    background: linear-gradient(140deg, var(--gold-bright), #9d7a2e);
    color: #1a1408; border-color: rgba(255, 255, 255, 0.24);
}
.btn-gold:hover { color: #1a1408; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row-center { justify-content: center; }

/* ============================== ТИПОГРАФИКА БЛОКОВ ============================== */
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    margin: 0 0 16px;
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold);
}
.eyebrow::before {
    content: ""; width: 22px; height: 1px; background: var(--gold-line);
}
.lead {
    font-size: clamp(1.06rem, 1.5vw, 1.22rem);
    line-height: 1.6; color: var(--ink-soft); max-width: 62ch;
}
.prose { max-width: 72ch; }
.prose > h2 { margin-top: 2.2em; }
.prose > h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose li { margin-bottom: 0.5em; }
.prose > :first-child { margin-top: 0; }
.section-head { max-width: 66ch; margin-bottom: 38px; }
.section-head p:last-child { margin-bottom: 0; }

/* ================================ СТЕКЛО =============================== */
.glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
    backdrop-filter: blur(var(--glass-blur)) saturate(170%);
    border: 1px solid var(--glass-line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card), inset 0 1px 0 var(--glass-line);
}
.card {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(22px, 3vw, 30px);
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.18s ease;
}
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
    border-color: var(--gold-line);
}
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }
.card-glass { background: var(--glass); border-color: var(--glass-line); }
.card-graphite {
    background: var(--graphite-2); color: var(--on-graphite);
    border-color: var(--on-graphite-line);
}
.card-graphite h3, .card-graphite h4 { color: var(--on-graphite); }
.card-graphite p { color: var(--on-graphite-soft); }

.tag {
    display: inline-block; padding: 4px 11px; border-radius: var(--r-pill);
    background: var(--gold-tint); color: var(--gold);
    font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase;
}
.tag-soft { background: rgba(20, 17, 14, 0.05); color: var(--ink-dim); }

/* ================================ ГЕРОЙ ================================ */
.hero {
    position: relative;
    padding: clamp(44px, 7vw, 92px) 0 clamp(36px, 5vw, 64px);
    overflow: hidden;
    isolation: isolate;
}
.hero-glow {
    position: absolute; inset: -30% -10% auto -10%; height: 130%;
    z-index: -1; pointer-events: none;
    background:
        radial-gradient(38% 42% at 18% 22%, var(--aura-1), transparent 68%),
        radial-gradient(34% 38% at 82% 14%, var(--aura-2), transparent 70%),
        radial-gradient(42% 44% at 62% 78%, var(--aura-3), transparent 72%),
        radial-gradient(30% 34% at 12% 82%, var(--aura-4), transparent 70%);
    filter: blur(6px);
}
.hero-inner {
    display: grid; gap: clamp(28px, 4vw, 52px);
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
}
.hero-title {
    font-size: clamp(2.4rem, 6.2vw, 4.4rem);
    letter-spacing: -0.038em;
    margin-bottom: 0.3em;
}
.hero-title em {
    font-family: var(--font-display);
    font-style: normal;
    background: linear-gradient(96deg, var(--gold-bright), var(--gold) 55%, var(--gold-bright));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    padding-right: 0.06em;
}
.hero-lead { font-size: clamp(1.06rem, 1.6vw, 1.24rem); color: var(--ink-soft); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.hero-note { margin-top: 16px; font-size: 0.86rem; color: var(--ink-dim); max-width: 46ch; }

/* Витрина камня */
.gem-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid; place-items: center;
    border-radius: var(--r-xl);
    background:
        radial-gradient(60% 60% at 50% 42%, var(--gold-tint), transparent 70%),
        var(--paper-2);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow-lift), inset 0 1px 0 var(--glass-line);
    overflow: hidden;
    -webkit-user-select: none; user-select: none;
    touch-action: pan-y;
}
.gem-stage canvas { width: 100%; height: 100%; cursor: grab; }
.gem-stage canvas:active { cursor: grabbing; }
.gem-hint {
    position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
    font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-faint); pointer-events: none;
}
.gem-ring {
    position: absolute; inset: 12%;
    border: 1px solid var(--gold-line); border-radius: 50%;
    pointer-events: none;
}
.gem-ring::after {
    content: ""; position: absolute; inset: 8%;
    border: 1px dashed var(--gold-line); border-radius: 50%; opacity: 0.55;
}

/* ============================== СХЕМА МАТРИЦЫ ============================== */
.scheme-wrap {
    display: grid; gap: 26px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
}
.scheme { width: 100%; height: auto; }
.scheme .s-cell { fill: var(--paper-2); stroke: var(--line-strong); stroke-width: 1; }
.scheme .s-cell-core { fill: var(--gold-tint); stroke: var(--gold-line); }
.scheme .s-line { stroke: var(--gold-line); stroke-width: 1; fill: none; }
.scheme .s-num {
    font-family: var(--font-sans); font-size: 15px; font-weight: 600;
    fill: var(--ink); text-anchor: middle; dominant-baseline: central;
}
.scheme .s-cap {
    font-family: var(--font-sans); font-size: 6.4px; fill: var(--ink-dim);
    text-anchor: middle; dominant-baseline: central; letter-spacing: 0.02em;
}
.scheme .s-group {
    /* Видимость по умолчанию включена: если анимации отключены или не
       поддерживаются, схема всё равно читается. */
    animation: schemeIn 0.5s ease both;
}
@keyframes schemeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Мягкое появление карточек. Класс anim-ready ставит app.js и только тогда,
   когда IntersectionObserver доступен, — без JS контент виден сразу. */
html.anim-ready .card:not(.is-in),
html.anim-ready .step:not(.is-in),
html.anim-ready .stone-tile:not(.is-in),
html.anim-ready .tier:not(.is-in) {
    opacity: 0; transform: translateY(10px);
}
html.anim-ready .card, html.anim-ready .step,
html.anim-ready .stone-tile, html.anim-ready .tier {
    transition: opacity 0.5s ease, transform 0.5s ease;
}
html.anim-ready .card.is-in, html.anim-ready .step.is-in,
html.anim-ready .stone-tile.is-in, html.anim-ready .tier.is-in {
    opacity: 1; transform: none;
}

/* Страховка: если наблюдатель не сработал (редкие окружения),
   через 3 секунды показываем всё принудительно. */
html.anim-fallback .card, html.anim-fallback .step,
html.anim-fallback .stone-tile, html.anim-fallback .tier {
    opacity: 1 !important; transform: none !important;
}

/* ============================== ФОРМА ============================== */
.calc {
    position: relative;
    border-radius: var(--r-xl);
    padding: clamp(24px, 3.4vw, 40px);
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
    backdrop-filter: blur(var(--glass-blur)) saturate(170%);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow-lift), inset 0 1px 0 var(--glass-line);
}
.form-grid { display: grid; gap: 16px; }
.form-grid-2 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label {
    font-size: 0.86rem; font-weight: 600; color: var(--ink-soft);
    letter-spacing: 0.01em;
}
.field .opt { font-weight: 400; color: var(--ink-faint); }
.field input, .field select, .field textarea {
    font: inherit; font-size: 1rem;
    padding: 13px 15px;
    color: var(--ink);
    background: var(--paper-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
    width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-tint);
}
.field .hint { font-size: 0.8rem; color: var(--ink-faint); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.form-note { font-size: 0.82rem; color: var(--ink-dim); margin: 16px 0 0; max-width: 60ch; }
/* Сообщения формы. Пустой блок не показывается НИКОГДА — именно из-за
   этого раньше на страницах висели пустые красные и зелёные полоски:
   класс err/ok ставился сразу в разметке, а пункт был пустым. */
.form-msg { display: none; margin: 14px 0 0; padding: 11px 15px; border-radius: var(--r-md); font-size: 0.9rem; }
.form-msg:empty { display: none !important; padding: 0; margin: 0; border: 0; }
.form-msg.err:not(:empty) { display: block; color: var(--err); background: var(--err-bg); border: 1px solid rgba(157, 58, 42, 0.24); }
.form-msg.ok:not(:empty) { display: block; color: var(--ok); background: var(--ok-bg); border: 1px solid rgba(63, 111, 69, 0.24); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================== РЕЗУЛЬТАТ РАСЧЁТА =========================== */
.result { margin-top: 30px; }
.result[hidden] { display: none; }
.result-head { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: baseline; justify-content: space-between; }
.result-title { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0; }
.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat {
    padding: 15px 17px; border-radius: var(--r-md);
    background: var(--paper-2); border: 1px solid var(--line);
}
.stat-label { display: block; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.stat-value { display: block; font-size: 1.34rem; font-weight: 600; letter-spacing: -0.02em; margin-top: 3px; }
.stat-note { display: block; font-size: 0.8rem; color: var(--ink-dim); }

/* Карточка камня */
.stone-card {
    display: grid; gap: 20px;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
    padding: 20px;
    border-radius: var(--r-lg);
    background: var(--paper-2);
    border: 1px solid var(--line);
}
.stone-card-main { border-color: var(--gold-line); box-shadow: var(--shadow-card); }
.stone-card canvas { width: 128px; height: 128px; }
.stone-role {
    font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gold); font-weight: 600;
}
.stone-name { font-size: 1.22rem; margin: 4px 0 6px; }
.stone-why { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }
.stone-factors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.factor {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: var(--r-pill);
    background: var(--gold-tint); color: var(--gold);
    font-size: 0.74rem; font-weight: 500;
}
.factor b { font-weight: 700; }

/* Таблица «из чего сложился выбор» */
.calc-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.calc-table th, .calc-table td {
    text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.calc-table th { font-size: 0.76rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.calc-table tr:last-child td { border-bottom: 0; }
.calc-table .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.calc-table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }

/* Список позиций матрицы */
.positions { list-style: none; padding: 0; margin: 0; }
.positions li {
    display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px;
    padding: 12px 0; border-bottom: 1px solid var(--line);
}
.positions li:last-child { border-bottom: 0; }
.pos-num {
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 14px;
    background: var(--gold-tint); color: var(--gold);
    font-weight: 700; font-size: 1.05rem;
}
.pos-name { font-weight: 600; }
.pos-note { font-size: 0.88rem; color: var(--ink-dim); }

/* ============================== КАТАЛОГ КАМНЕЙ ============================== */
.stone-tile {
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    border-radius: var(--r-lg);
    background: var(--paper-2);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.18s ease;
}
.stone-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--gold-line); color: inherit; }
.stone-tile-figure {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid; place-items: center;
    background:
        radial-gradient(60% 60% at 50% 45%, var(--tile-glow, rgba(200, 162, 74, 0.14)), transparent 72%),
        var(--paper-3);
}
.stone-tile-figure canvas { width: 100%; height: 100%; }
.stone-tile-body { padding: 16px 18px 20px; }
.stone-tile-body h3 { font-size: 1.06rem; margin: 0; }
.stone-tile-body p { margin: 6px 0 0; font-size: 0.88rem; color: var(--ink-dim); }
.stone-tile-meta {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.chip {
    font-size: 0.72rem; padding: 3px 9px; border-radius: var(--r-pill);
    background: rgba(20, 17, 14, 0.045); color: var(--ink-dim);
}
.chip-gold { background: var(--gold-tint); color: var(--gold); }

/* ============================== АРКАНЫ ============================== */
.arcana-tile {
    display: grid; grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px; align-items: center;
    padding: 15px 17px;
    border-radius: var(--r-md);
    background: var(--paper-2);
    border: 1px solid var(--line);
    text-decoration: none; color: inherit;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.arcana-tile:hover { border-color: var(--gold-line); background: var(--gold-tint); transform: translateY(-1px); color: inherit; }
.arcana-n {
    display: grid; place-items: center;
    width: 50px; height: 50px; border-radius: 14px;
    background: var(--graphite); color: var(--gold-bright);
    font-weight: 700; font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}
.arcana-tile h3 { font-size: 1rem; margin: 0; }
.arcana-tile p { margin: 3px 0 0; font-size: 0.84rem; color: var(--ink-dim); }

.arcana-hero-badge {
    display: grid; place-items: center;
    width: 96px; height: 96px; border-radius: 26px;
    background: var(--graphite); color: var(--gold-bright);
    font-size: 2.1rem; font-weight: 700;
    box-shadow: var(--shadow-card);
}

/* ============================== ТАРИФЫ ============================== */
.tier {
    display: flex; flex-direction: column;
    padding: clamp(22px, 3vw, 32px);
    border-radius: var(--r-xl);
    background: var(--paper-2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}
.tier-featured {
    border-color: var(--gold-line);
    box-shadow: var(--shadow-lift);
    background: linear-gradient(180deg, var(--gold-tint), transparent 40%), var(--paper-2);
    position: relative;
}
.tier-price {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 600; letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.tier-price small { font-size: 0.82rem; font-weight: 400; color: var(--ink-dim); letter-spacing: 0; }
.tier-list { list-style: none; padding: 0; margin: 18px 0 24px; }
.tier-list li {
    position: relative; padding-left: 26px; margin-bottom: 10px;
    font-size: 0.94rem; color: var(--ink-soft);
}
.tier-list li::before {
    content: "✓"; position: absolute; left: 0; top: -1px;
    color: var(--gold); font-weight: 700; font-size: 0.92rem;
}
.tier .btn { margin-top: auto; }
.tier-badge {
    position: absolute; top: -12px; right: 22px;
    padding: 5px 13px; border-radius: var(--r-pill);
    background: var(--graphite); color: var(--gold-bright);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ============================== ШАГИ ============================== */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
    counter-increment: step;
    display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px;
    padding: 22px 24px; border-radius: var(--r-lg);
    background: var(--paper-2); border: 1px solid var(--line);
}
.step::before {
    content: counter(step);
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--graphite); color: var(--gold-bright);
    font-weight: 700; font-size: 1.02rem;
}
.step h3 { margin: 0 0 4px; font-size: 1.06rem; }
.step p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }

/* ============================== АККОРДЕОН ============================== */
.faq { display: grid; gap: 10px; }
.faq details {
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--paper-2); padding: 0 18px;
    transition: border-color 0.16s ease;
}
.faq details[open] { border-color: var(--gold-line); }
.faq summary {
    cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 0.99rem;
    list-style: none; display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; margin-left: auto; color: var(--gold);
    font-weight: 400; font-size: 1.3rem; line-height: 1;
    transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 0 18px; font-size: 0.94rem; color: var(--ink-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ============================== ХЛЕБНЫЕ КРОШКИ ============================== */
.crumbs { padding: 16px 0; font-size: 0.84rem; color: var(--ink-dim); }
.crumbs ol {
    list-style: none; display: flex; flex-wrap: wrap; gap: 7px;
    margin: 0; padding: 0;
}
.crumbs li { margin: 0; display: inline-flex; gap: 7px; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--ink-faint); }
.crumbs a {
    color: var(--ink-dim); text-decoration: none;
    display: inline-block; padding: 3px 0; min-height: 24px;
}
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink-soft); }

/* ============================== ПОДВАЛ ============================== */
.site-foot {
    background: var(--graphite);
    color: var(--on-graphite-soft);
    padding: clamp(42px, 6vw, 68px) 0 26px;
    position: relative;
    overflow: hidden;
}
.site-foot::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    opacity: 0.5;
}
.foot-grid {
    display: grid; gap: 34px;
    grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
}
.site-foot h4 {
    color: var(--on-graphite); font-size: 0.78rem; letter-spacing: 0.1em;
    text-transform: uppercase; margin-bottom: 14px; font-weight: 600;
}
.foot-list { list-style: none; padding: 0; margin: 0; }
.foot-list li { margin-bottom: 4px; }
.foot-list a {
    color: var(--on-graphite-soft); text-decoration: none; font-size: 0.92rem;
    display: inline-block; padding: 4px 0; min-height: 24px;
}
.foot-list a:hover { color: var(--gold-bright); }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--on-graphite); font-weight: 600; }
.foot-brand .brand-mark::after { background: var(--graphite); }
.foot-text { font-size: 0.9rem; color: var(--on-graphite-dim); max-width: 34ch; }
.foot-bottom {
    margin-top: 40px; padding-top: 22px;
    border-top: 1px solid var(--on-graphite-line);
    display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
    font-size: 0.82rem; color: var(--on-graphite-dim);
}
.foot-disclaimer { font-size: 0.78rem; color: var(--on-graphite-dim); max-width: 100%; margin-top: 18px; line-height: 1.55; }

/* ============================== НАВЕРХ ============================== */
.to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 70;
    width: 46px; height: 46px; min-width: 46px; min-height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--graphite); color: var(--gold-bright);
    border: 1px solid var(--on-graphite-line);
    box-shadow: var(--shadow-card); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    font-size: 1.1rem;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ============================== СЛУЖЕБНОЕ ============================== */
.note-box {
    padding: 16px 20px; border-radius: var(--r-md);
    border: 1px solid var(--line); background: var(--paper-2);
    font-size: 0.9rem; color: var(--ink-soft);
}
.note-box strong { color: var(--ink); }
.note-gold { border-color: var(--gold-line); background: var(--gold-tint); }
.price-row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.price-now { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.price-was { text-decoration: line-through; color: var(--ink-faint); }
.badge-free {
    display: inline-block; padding: 4px 12px; border-radius: var(--r-pill);
    background: var(--ok-bg); color: var(--ok); font-size: 0.76rem; font-weight: 600;
    letter-spacing: 0.04em;
}
.link-more {
    font-size: 0.9rem; font-weight: 500; text-decoration: none;
    display: inline-flex; gap: 6px; align-items: center;
    padding: 4px 0;          /* высота цели ≥ 24 px */
    min-height: 24px;
}
.link-more:hover { text-decoration: underline; }
.link-more::after { content: "→"; transition: transform 0.16s ease; }
.link-more:hover::after { transform: translateX(3px); }
.prose-figure { margin: 30px 0; }
.prose-figure img { border-radius: var(--r-lg); border: 1px solid var(--line); }
.prose-figure figcaption { margin-top: 10px; font-size: 0.84rem; color: var(--ink-dim); }
.errpage { text-align: center; padding: clamp(60px, 12vw, 140px) 0; }
.errpage h1 { font-size: clamp(3rem, 12vw, 7rem); letter-spacing: -0.05em; margin-bottom: 0; }

/* ============================== АДАПТИВ ============================== */
/* Меню в одну строку: на узких ноутбуках пункты жмут друг друга и шапка
   переносится на вторую строку. Уменьшаем отступы и прячем кнопку-дубль
   («Подбор амулета» уже есть в меню). До 780 px меню уходит в бургер. */
@media (max-width: 1150px) {
    .nav a { padding: 8px 9px; font-size: 0.87rem; }
    .head-cta { display: none; }
}

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .gem-stage { max-width: 420px; margin-inline: auto; }
    .scheme-wrap { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
    body { font-size: 16px; }
    .nav { display: none; }
    .burger { display: inline-flex; }
    .head-cta { display: none; }
    .site-head.nav-open .nav {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; left: 0; right: 0; top: 100%;
        padding: 10px 16px 18px;
        background: var(--paper-2);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-card);
        gap: 2px;
    }
    .site-head.nav-open .nav a { padding: 12px 14px; border-radius: var(--r-sm); }
    .stone-card { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
    .stone-card canvas { width: 92px; height: 92px; }
    .foot-grid { grid-template-columns: 1fr; }
    .positions li { grid-template-columns: 52px minmax(0, 1fr); }
}

@media (max-width: 480px) {
    .hero-actions .btn { width: 100%; }
    .tier-badge { position: static; display: inline-block; margin-bottom: 10px; }
}

/* ============================== ДВИЖЕНИЕ ============================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================== ПЕЧАТЬ ============================== */
@media print {
    .site-head, .site-foot, .to-top, .hero-glow, .btn { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .glass, .card, .calc { box-shadow: none; border-color: #ccc; background: #fff; }
    a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ============================================================
   КАЛЬКУЛЯТОР «АМУЛЕТ ПОД ЗАДАЧУ»
   Четыре шага и результат. Отдельный блок стилей: калькулятор
   живёт и на главной, и на странице /podbor/, поэтому стили
   не должны зависеть от окружения страницы.
   ============================================================ */
.quiz {
    border-radius: var(--r-xl);
    padding: clamp(22px, 3.2vw, 38px);
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
    backdrop-filter: blur(var(--glass-blur)) saturate(170%);
    border: 1px solid var(--glass-line);
    box-shadow: var(--shadow-lift), inset 0 1px 0 var(--glass-line);
    scroll-margin-top: 90px;
}
.quiz-step { display: block; }
.quiz-progress {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; margin-bottom: 22px;
}
.quiz-step-label {
    font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-faint); font-weight: 600;
}
.quiz-dots { display: inline-flex; gap: 6px; }
.quiz-dot {
    width: 26px; height: 3px; border-radius: 2px;
    background: var(--line-strong); transition: background 0.2s ease;
}
.quiz-dot.is-done { background: var(--gold); opacity: 0.55; }
.quiz-dot.is-current { background: var(--gold); }

.quiz-q {
    font-size: clamp(1.25rem, 2.4vw, 1.72rem);
    margin: 0 0 8px;
    letter-spacing: -0.022em;
}
.quiz-hint {
    margin: 0 0 22px; color: var(--ink-dim); font-size: 0.94rem;
    max-width: 62ch;
}
.quiz-sub {
    font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gold); margin: 28px 0 10px; font-weight: 600;
}

/* Варианты одиночного выбора */
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
    display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px;
    align-items: center; text-align: left;
    padding: 15px 18px; width: 100%;
    background: var(--paper-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    color: var(--ink); font: inherit; cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}
.quiz-option:hover { border-color: var(--gold-line); background: var(--gold-tint); transform: translateY(-1px); }
.quiz-option.is-active {
    border-color: var(--gold); background: var(--gold-tint);
    box-shadow: inset 0 0 0 1px var(--gold-line);
}
.quiz-option-icon {
    display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--graphite); color: var(--gold-bright); font-size: 0.95rem;
}
.quiz-option-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quiz-option-body strong { font-weight: 600; font-size: 0.98rem; }
.quiz-option-hint { font-size: 0.84rem; color: var(--ink-dim); }

/* Множественный выбор */
.quiz-chips { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.quiz-chip {
    display: flex; flex-direction: column; gap: 3px; text-align: left;
    padding: 13px 16px; width: 100%;
    background: var(--paper-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    color: var(--ink); font: inherit; cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}
.quiz-chip:hover { border-color: var(--gold-line); background: var(--gold-tint); }
.quiz-chip.is-active {
    border-color: var(--gold); background: var(--gold-tint);
    box-shadow: inset 0 0 0 1px var(--gold-line);
}
.quiz-chip strong { font-size: 0.95rem; font-weight: 600; }
.quiz-chip span { font-size: 0.8rem; color: var(--ink-dim); line-height: 1.4; }
.quiz-chip.is-active strong::after {
    content: " ✓"; color: var(--gold); font-weight: 700;
}
.quiz-counter {
    margin: 14px 0 0; font-size: 0.84rem; color: var(--ink-dim);
    font-variant-numeric: tabular-nums;
}

/* Навигация шага */
.quiz-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: 26px;
}
.quiz-nav .btn { min-width: 130px; }

/* Результат */
.quiz-arcana {
    display: flex; align-items: center; gap: 18px;
    padding: 18px 20px; border-radius: var(--r-lg);
    background: var(--graphite); color: var(--on-graphite);
    margin: 6px 0 8px;
}
.quiz-arcana-n {
    display: grid; place-items: center; flex: 0 0 auto;
    width: 62px; height: 62px; border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--on-graphite-line);
    color: var(--gold-bright); font-weight: 700; font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
}
.quiz-arcana-kicker {
    font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--on-graphite-dim);
}
.quiz-arcana-name { margin: 2px 0 0; font-size: 1.4rem; color: var(--on-graphite); }
.quiz-arcana-motto { margin: 4px 0 0; font-size: 0.86rem; color: var(--on-graphite-soft); font-style: italic; }

.quiz-result-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-result-chip {
    padding: 5px 13px; border-radius: var(--r-pill);
    background: var(--gold-tint); color: var(--gold);
    font-size: 0.84rem; font-weight: 600;
}
.quiz-result-list {
    list-style: none; padding: 0; margin: 14px 0 0;
}
.quiz-result-list li {
    padding: 9px 0; border-bottom: 1px solid var(--line);
    font-size: 0.92rem; color: var(--ink-soft);
}
.quiz-result-list li:last-child { border-bottom: 0; }

.quiz-explain { border-left: 2px solid var(--gold-line); padding-left: 18px; }
.quiz-explain p { font-size: 0.96rem; color: var(--ink-soft); margin: 0 0 12px; max-width: 74ch; }
.quiz-explain p:last-child { margin-bottom: 0; }

.quiz-price {
    display: grid; gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center; margin-top: 26px;
    padding: 20px 22px; border-radius: var(--r-lg);
    border: 1px solid var(--gold-line);
    background: linear-gradient(140deg, var(--gold-tint), transparent 65%), var(--paper-2);
}
.quiz-price-label {
    display: block; font-size: 0.74rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink-faint); font-weight: 600;
}
.quiz-price-value {
    display: block; font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 600;
    letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink);
}
.quiz-price-days { display: block; font-size: 0.84rem; color: var(--ink-dim); margin-top: 3px; }
.quiz-price-breakdown { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; }
.quiz-price-row { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); }
.quiz-price-row:last-child { padding-top: 6px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }

.quiz-note-sep {
    margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
    font-size: 0.9rem; color: var(--ink-soft); max-width: 70ch;
}

/* Сообщения формы при работе без JavaScript: обработчик возвращает человека
   с якорем #sent или #error, и нужный блок показывает себя сам. */
#sent, #error { display: none; margin: 0 0 18px; }
#sent:target { display: block; color: var(--ok); background: var(--ok-bg);
    border: 1px solid rgba(63, 111, 69, 0.24); padding: 13px 16px;
    border-radius: var(--r-md); font-size: 0.92rem; }
#error:target { display: block; color: var(--err); background: var(--err-bg);
    border: 1px solid rgba(157, 58, 42, 0.24); padding: 13px 16px;
    border-radius: var(--r-md); font-size: 0.92rem; }

/* ============================================================
   НЕБО В МОМЕНТ РОЖДЕНИЯ: сцена, форма, таблица
   ============================================================ */
.sky-form { margin-bottom: 22px; }
.sky-stage {
    position: relative;
    margin: 0 auto 6px;
    /* на ноутбуке квадрат 560 px не влезает в экран по высоте — ограничиваем */
    max-width: min(560px, 62vh);
    aspect-ratio: 1 / 1;
    border-radius: var(--r-xl);
    background:
        radial-gradient(60% 60% at 50% 45%, rgba(122, 104, 190, 0.18), transparent 72%),
        radial-gradient(50% 50% at 50% 55%, rgba(200, 162, 74, 0.10), transparent 70%),
        var(--graphite);
    border: 1px solid var(--on-graphite-line);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
    touch-action: pan-y;
}
.sky-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.sky-stage canvas:active { cursor: grabbing; }
.sky-hint {
    position: absolute; left: 12px; right: 12px; bottom: 14px;
    text-align: center; font-size: 0.74rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--on-graphite-dim); pointer-events: none;
}
.link-inline {
    background: none; border: 0; padding: 3px 0; font: inherit;
    min-height: 24px; display: inline-flex; align-items: center;
    color: var(--gold); text-decoration: underline; text-underline-offset: 2px;
    cursor: pointer;
}
.link-inline:hover { color: var(--gold-bright); }
#skyDateText.is-bad { border-color: var(--err); box-shadow: 0 0 0 3px var(--err-bg); }
.sky-summary {
    margin: 16px 0 14px; padding: 13px 16px;
    border-radius: var(--r-md);
    background: linear-gradient(140deg, var(--gold-tint), transparent 70%), var(--paper-2);
    border: 1px solid var(--gold-line);
    font-size: 0.95rem; font-weight: 500; color: var(--ink);
}
.sky-summary-note {
    display: block; margin-top: 4px;
    font-size: 0.82rem; font-weight: 400; color: var(--ink-dim);
}
.sky-output { margin-top: 8px; }
.sky-output h3 { margin-top: 26px; }
.sky-retro {
    display: inline-block; padding: 0 5px; border-radius: 4px;
    background: var(--gold-tint); color: var(--gold);
    font-size: 0.72rem; font-weight: 700; vertical-align: 1px;
}
.sky-houses {
    list-style: none; padding: 0; margin: 12px 0 0;
    display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.sky-houses li {
    display: flex; gap: 8px; align-items: center;
    padding: 7px 11px; border-radius: var(--r-sm);
    background: var(--paper-2); border: 1px solid var(--line);
    font-size: 0.86rem; margin: 0;
}
.sky-house-n {
    display: grid; place-items: center; flex: 0 0 22px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--gold-tint); color: var(--gold);
    font-size: 0.74rem; font-weight: 700;
}
.sky-interp p { font-size: 0.96rem; color: var(--ink-soft); max-width: 74ch; }

/* Заглушка без JS */
.quiz-noscript { font-size: 0.94rem; color: var(--ink-soft); }

/* ======================= ОПЛАТА (QR + СБП) ======================= */
.payment-block {
    margin-top: 26px; padding: clamp(20px, 3vw, 30px);
    border-radius: var(--r-lg);
    border: 1px solid var(--gold-line);
    background: linear-gradient(150deg, var(--gold-tint), transparent 60%), var(--paper-2);
}
.payment-block h3 { margin-bottom: 6px; }
.payment-lead { font-size: 0.94rem; color: var(--ink-soft); max-width: 62ch; }
.payment-grid {
    display: grid; gap: 22px; align-items: center;
    grid-template-columns: 240px minmax(0, 1fr);
    margin: 20px 0;
}
.payment-qr img {
    width: 240px; height: 240px; border-radius: var(--r-md);
    border: 1px solid var(--line); background: #fff; padding: 8px;
}
.payment-rules h4 { margin: 18px 0 8px; font-size: 0.95rem; }
.payment-rules ul { padding-left: 1.1em; font-size: 0.92rem; color: var(--ink-soft); }
.payment-rules li { margin-bottom: 7px; }

@media (max-width: 860px) {
    .quiz-price { grid-template-columns: 1fr; }
    .payment-grid { grid-template-columns: 1fr; }
    .payment-qr img { width: 200px; height: 200px; }
}
@media (max-width: 560px) {
    .quiz-chips { grid-template-columns: 1fr; }
    .quiz-nav .btn { min-width: 0; flex: 1 1 auto; }
    .quiz-arcana { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================================
   ПРОДУКТЫ: четыре карточки и форма заказа в четыре шага
   Карточки ведут на одну страницу заказа (/zakaz/?product=…),
   поэтому выглядят одинаково: метка, название, цена, состав, кнопка.
   ============================================================ */
.product-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}
.product-card {
    display: flex; flex-direction: column;
    padding: 24px 22px;
    border-radius: var(--r-lg);
    background: var(--paper-2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--gold-line); }
.product-card h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.product-price {
    margin: 14px 0 2px;
    font-size: 1.34rem; font-weight: 600; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.product-price-request { color: var(--gold); }
.product-days { margin: 0 0 14px; }
.product-list { list-style: none; padding: 0; margin: 0 0 20px; }
.product-list li {
    position: relative; padding-left: 20px; margin-bottom: 7px;
    font-size: 0.88rem; color: var(--ink-soft);
}
.product-list li::before {
    content: "·"; position: absolute; left: 6px; top: -2px;
    color: var(--gold); font-weight: 700;
}
.product-card .btn { margin-top: auto; }
.btn-block { display: flex; width: 100%; }
.product-card-alt { margin: 10px 0 0; text-align: center; font-size: 0.86rem; }

/* ---------------- форма заказа: секции ---------------- */
.form-section + .form-section {
    margin-top: 30px; padding-top: 26px;
    border-top: 1px solid var(--line);
}
.form-section-title {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.05rem; margin: 0 0 16px; letter-spacing: -0.015em;
}
.form-step {
    display: grid; place-items: center; flex: 0 0 auto;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--graphite); color: var(--gold-bright);
    font-size: 0.82rem; font-weight: 700;
}

.product-choice { display: grid; gap: 10px; }
.product-option {
    display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px;
    align-items: start; padding: 15px 17px;
    border: 1px solid var(--line-strong); border-radius: var(--r-md);
    background: var(--paper-2); cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}
.product-option:hover { border-color: var(--gold-line); background: var(--gold-tint); }
.product-option:has(input:checked) {
    border-color: var(--gold); background: var(--gold-tint);
    box-shadow: inset 0 0 0 1px var(--gold-line);
}
.product-option input {
    margin-top: 2px; accent-color: var(--gold);
    width: 18px; height: 18px; flex: 0 0 18px;
}
.product-option-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.product-option-body strong { font-size: 0.98rem; font-weight: 600; }
.product-option-body em {
    font-style: normal; font-size: 0.84rem; color: var(--gold); font-weight: 500;
}
.product-option-help { font-size: 0.82rem; color: var(--ink-dim); line-height: 1.45; }

/* ---------------- оплата внутри формы ---------------- */
.pay-grid {
    display: grid; gap: 22px;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: start;
    margin-top: 16px;
}
.pay-sum .field { margin-bottom: 14px; }
.pay-qr { text-align: center; }
.pay-qr img {
    width: 200px; height: 200px; margin: 0 auto 12px;
    border-radius: var(--r-md); border: 1px solid var(--line);
    background: #fff; padding: 8px;
}
.pay-rules {
    margin-top: 18px; border-top: 1px solid var(--line);
    padding-top: 14px;
}
.pay-rules summary {
    cursor: pointer; font-size: 0.9rem; color: var(--gold); font-weight: 500;
    list-style: none; padding: 4px 0; min-height: 24px;
    display: flex; align-items: center;
}
.pay-rules summary::-webkit-details-marker { display: none; }
.pay-rules summary::after { content: " ↓"; }
.pay-rules .faq-body { padding-top: 10px; font-size: 0.88rem; color: var(--ink-soft); }
.pay-rules ul { padding-left: 1.1em; margin: 0; }
.pay-rules li { margin-bottom: 6px; }

.check-line {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 0.88rem; color: var(--ink-soft); cursor: pointer;
    padding: 6px 0; min-height: 40px;
}
.check-line input {
    margin-top: 1px; accent-color: var(--gold);
    width: 20px; height: 20px; flex: 0 0 20px;
}

@media (max-width: 720px) {
    .pay-grid { grid-template-columns: 1fr; }
    .pay-qr { text-align: left; }
    .pay-qr img { margin-left: 0; }
}
