/* ============================================================
   «Астролог — дизайн-система
   Шрифты: Golos Text (текст) + Unbounded (заголовки), self-hosted.
   Палитра: глубокий индиго, золото, фиолет, крем.
   ============================================================ */

/* ---------- Self-hosted шрифты ---------- */
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('/public/fonts/golos-400-cyr.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('/public/fonts/golos-400-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap; src: url('/public/fonts/golos-500-cyr.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap; src: url('/public/fonts/golos-500-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap; src: url('/public/fonts/golos-600-cyr.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap; src: url('/public/fonts/golos-600-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 700; font-display: swap; src: url('/public/fonts/golos-700-cyr.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 700; font-display: swap; src: url('/public/fonts/golos-700-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 800; font-display: swap; src: url('/public/fonts/golos-800-cyr.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 800; font-display: swap; src: url('/public/fonts/golos-800-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500; font-display: swap; src: url('/public/fonts/unbounded-500-cyr.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500; font-display: swap; src: url('/public/fonts/unbounded-500-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('/public/fonts/unbounded-600-cyr.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('/public/fonts/unbounded-600-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153; }

/* ---------- Токены ---------- */
:root {
  --bg: #0c0920;
  --bg-2: #130e2b;
  --bg-3: #1c1645;
  --card: rgba(255, 255, 255, 0.045);
  --card-solid: #171131;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.07);
  --gold: #f0c75e;
  --gold-2: #d9a83f;
  --gold-deep: #b8862f;
  --gold-soft: rgba(240, 199, 94, 0.13);
  --violet: #8b7ff0;
  --violet-2: #6a5cd8;
  --violet-soft: rgba(139, 127, 240, 0.16);
  --text: #f5f1ff;
  --text-dim: #b8b0d6;
  --text-mute: #8e86ad;
  --green: #58c99a;
  --red: #f07e8b;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(5, 3, 18, 0.55);
  --font: 'Golos Text', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(ellipse 90% 55% at 15% -10%, rgba(139, 127, 240, 0.22), transparent 60%),
    radial-gradient(ellipse 55% 40% at 95% 0%, rgba(240, 199, 94, 0.10), transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(106, 92, 216, 0.15), transparent 60%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 32% 62%, rgba(255,255,255,.38), transparent),
    radial-gradient(2px 2px at 56% 18%, rgba(240,199,94,.5), transparent),
    radial-gradient(1px 1px at 72% 42%, rgba(255,255,255,.42), transparent),
    radial-gradient(1.6px 1.6px at 84% 74%, rgba(255,255,255,.38), transparent),
    radial-gradient(1px 1px at 44% 86%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.6px 1.6px at 92% 12%, rgba(139,127,240,.55), transparent),
    radial-gradient(1px 1px at 8% 78%, rgba(240,199,94,.42), transparent);
}

main { position: relative; z-index: 1; min-height: calc(100vh - 260px); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; }
.container-mid { max-width: 900px; }
.container-wide { max-width: 980px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.75rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
p { color: var(--text-dim); }
img, svg { max-width: 100%; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #1c1400; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; border: none; font-size: 15.5px; font-weight: 700; cursor: pointer; text-decoration: none !important; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; font-family: inherit; white-space: nowrap; }
.btn-gold { background: linear-gradient(135deg, #f7d572, var(--gold-2)); color: #231a03; box-shadow: 0 8px 26px rgba(240, 199, 94, 0.3); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(240, 199, 94, 0.42); color: #231a03; }
.btn-violet { background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; box-shadow: 0 8px 26px rgba(139, 127, 240, 0.32); }
.btn-violet:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(139, 127, 240, 0.46); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); color: var(--text); }
.btn-lg { padding: 16px 34px; font-size: 17px; border-radius: 14px; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0); }
.btn-danger { background: rgba(233,88,106,.12); border: 1px solid rgba(233,88,106,.4); color: #ff9aa6; }
.btn-danger:hover { background: rgba(233,88,106,.22); color: #ffc2ca; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }
.delete-confirm summary { list-style: none; cursor: pointer; }
.delete-confirm summary::-webkit-details-marker { display: none; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(12, 9, 32, 0.78); border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--text); letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; color: var(--text); }
.logo-star { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; color: #231a03; background: linear-gradient(135deg, #f7d572, var(--gold-2)); box-shadow: 0 4px 16px rgba(240,199,94,.4); }
.logo-star svg { width: 18px; height: 18px; stroke: currentColor; }
.site-nav { display: flex; gap: 4px; margin-left: 14px; }
.site-nav a { color: var(--text-dim); padding: 8px 15px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); text-decoration: none; }
.site-nav a.active { color: var(--gold); background: var(--gold-soft); font-weight: 600; }
.header-auth { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ---------- Секции ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 52px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--gold); opacity: .6; }
.text-center .eyebrow { justify-content: center; }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
html, body { overflow-x: clip; } /* страховка от случайного гориз. скролла на узких экранах */
.section-head .eyebrow::before { display: none; }
.section-title { margin-bottom: 14px; }
.section-sub { color: var(--text-dim); font-size: 17px; }
.accent { color: var(--gold); }
.accent-v { color: var(--violet); }
.grad-text { background: linear-gradient(120deg, #f7d572 0%, var(--gold-2) 55%, #e9b95c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy { max-width: 620px; }
.hero-badge { display: inline-flex; align-items: center; gap: 12px; padding: 9px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: #efe9d8; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(240,199,94,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 26px rgba(5,3,18,.35); margin-bottom: 26px; }
.hero-badge__pulse { position: relative; display: inline-flex; width: 9px; height: 9px; }
.hero-badge__pulse span { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(240,199,94,.75); }
.hero-badge__pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold); animation: badgePulse 2.6s ease-out infinite; }
.hero-badge__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: .5; flex-shrink: 0; }
.hero-badge__accent { color: var(--gold); font-weight: 700; white-space: nowrap; }
@keyframes badgePulse { 0% { transform: scale(1); opacity: .75; } 70% { transform: scale(2.3); opacity: 0; } 100% { transform: scale(2.3); opacity: 0; } }
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--text-dim); margin-bottom: 34px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--text-mute); }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 14px; height: 14px; color: var(--green); }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-visual img { width: 100%; max-width: 460px; height: auto; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 28px; }
.hero-stat .num { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--gold); letter-spacing: -0.02em; }
.hero-stat .label { font-size: 13.5px; color: var(--text-mute); margin-top: 3px; }

/* ---------- Карточки ---------- */
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card:hover { background: var(--card-hover); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.svc-card { display: flex; flex-direction: column; gap: 11px; transition: transform .2s ease, background .2s ease, border-color .2s ease; position: relative; }
.svc-card:hover { transform: translateY(-5px); border-color: rgba(240,199,94,.4); text-decoration: none !important; background: rgba(255,255,255,.065); }
.svc-icon { width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: var(--gold-soft); border: 1px solid rgba(240,199,94,.26); color: var(--gold); margin-bottom: 4px; box-shadow: inset 0 0 18px rgba(240,199,94,.06); }
.svc-icon svg { width: 27px; height: 27px; }
.svc-card:hover .svc-icon { border-color: rgba(240,199,94,.55); }
.svc-card h3 { color: var(--text); font-size: 1.05rem; }
.svc-card p { font-size: 14.5px; flex: 1; color: var(--text-dim); }
.svc-price { font-family: var(--font-display); font-weight: 600; color: var(--gold); font-size: 15px; }
.svc-price.free { color: var(--green); }
.svc-card .card-arrow { position: absolute; top: 28px; right: 28px; color: var(--text-mute); opacity: 0; transform: translateX(-4px); transition: all .2s ease; }
.svc-card .card-arrow svg { width: 17px; height: 17px; }
.svc-card:hover .card-arrow { opacity: 1; transform: translateX(0); color: var(--gold); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 6px; }
.step-num { font-family: var(--font-display); font-weight: 700; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--gold); font-size: 18px; border: 1px solid rgba(240,199,94,.35); margin-bottom: 16px; }
.step h3 { margin-bottom: 7px; }
.step p { font-size: 15px; }

/* Цены */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 15px; }
.price-table th { color: var(--text-mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--gold); white-space: nowrap; font-size: 16px; }
.price-table tr:hover td { background: rgba(255,255,255,.03); }

/* Доверие */
.trust-card { display: flex; flex-direction: column; gap: 12px; }
.trust-card p { font-size: 15px; }

/* Подписка */
.plan-highlight { border: 1px solid rgba(240,199,94,.45); background: linear-gradient(160deg, rgba(240,199,94,.10), rgba(139,127,240,.08)); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.subscription-card { text-align: center; padding: 56px 28px; }
.subscription-card .section-sub { max-width: 560px; margin: 0 auto 24px; }
.price-line { display: flex; gap: 14px; align-items: baseline; justify-content: center; margin: 0 auto 26px; flex-wrap: wrap; }
.price-now { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--gold); }
.price-old { color: var(--text-mute); text-decoration: line-through; font-size: 15px; }
.plan-tag { position: absolute; top: 16px; right: -36px; transform: rotate(40deg); background: var(--gold); color: #221a05; font-size: 12px; font-weight: 800; padding: 5px 44px; letter-spacing: .04em; }

/* Список с галочками */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); }
.check-li { display: inline-flex; width: 22px; height: 22px; border-radius: 7px; background: var(--gold-soft); color: var(--gold); align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.check-li svg { width: 13px; height: 13px; }

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(255,255,255,.09); }
.faq-item summary { padding: 22px 4px; cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 24px; font-weight: 400; flex-shrink: 0; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-soft); border-radius: 50%; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 4px 22px; color: var(--text-dim); }

/* Блог */
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card:hover { transform: translateY(-4px); }
.post-cat { display: inline-flex; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); background: var(--violet-soft); padding: 3px 11px; border-radius: 999px; }
.post-card .post-thumb { border-radius: 14px; overflow: hidden; margin-bottom: 6px; aspect-ratio: 16/9; background: var(--bg-3); }
.post-card .post-thumb svg { width: 100%; height: 100%; display: block; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--gold); text-decoration: none; }
.post-meta { font-size: 13px; color: var(--text-mute); }
.post-body { max-width: 760px; margin: 0 auto; }
.post-hero-img { border-radius: var(--radius); margin: 24px 0; border: 1px solid var(--card-border); }
.post-body h2 { margin: 34px 0 14px; font-size: 1.4rem; }
.post-body p { margin-bottom: 16px; color: var(--text-dim); }
.post-body ul { margin: 0 0 18px 22px; color: var(--text-dim); }
.post-body li { margin-bottom: 8px; }

/* ---------- Формы ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label { font-size: 14px; font-weight: 600; color: var(--text-dim); }
.input, .select, textarea.input { background: rgba(0, 0, 0, 0.30); border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 16px; color: var(--text); font-family: inherit; width: 100%; transition: border-color .15s ease, box-shadow .15s ease; }
.input:focus, textarea.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,199,94,.14); }
.input::placeholder { color: var(--text-mute); }
textarea.input { min-height: 110px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-dim); }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--gold); }
.form-card { max-width: 470px; margin: 64px auto; }
.form-card .card { padding: 38px; border-color: rgba(255,255,255,.1); }
.form-title { text-align: center; margin-bottom: 8px; }
.form-sub { text-align: center; color: var(--text-mute); font-size: 14.5px; margin-bottom: 26px; }

/* ---------- Уведомления ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; margin-bottom: 18px; }
.alert-error { background: rgba(240,126,139,.12); border: 1px solid rgba(240,126,139,.4); color: #ffc2ca; }
.alert-success { background: rgba(88,201,154,.12); border: 1px solid rgba(88,201,154,.4); color: #a9ecd0; }
.alert-info { background: var(--violet-soft); border: 1px solid rgba(139,127,240,.4); color: #d6d0ff; }

/* ---------- Кабинет ---------- */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 40px 0; align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 94px; }
.account-nav a { color: var(--text-dim); padding: 11px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.account-nav a:hover { background: var(--card); color: var(--text); text-decoration: none; }
.account-nav a.active { background: var(--gold-soft); color: var(--gold); }
.account-nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat-card { padding: 18px 20px; }
.stat-card .label { font-size: 13px; color: var(--text-mute); margin-bottom: 4px; }
.stat-card .value { font-size: 22px; font-weight: 800; color: var(--text); }
.stat-card .value.gold { color: var(--gold); }
.stat-card .value.green { color: var(--green); }
.natal-box { background: rgba(0,0,0,.25); border-radius: var(--radius-sm); padding: 20px; font-size: 15px; line-height: 1.8; white-space: pre-line; }
.account-page h1 { font-size: 30px; margin-bottom: 6px; }
.account-page h1 > svg { width: 30px; height: 30px; vertical-align: -5px; margin-right: 8px; color: var(--gold); flex-shrink: 0; }
.account-page .page-sub { color: var(--text-mute); font-size: 15px; margin-bottom: 26px; }

/* Чат */
.chat-box { display: flex; flex-direction: column; height: 560px; }
.chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.chat-msg { max-width: 78%; padding: 13px 17px; border-radius: 16px; font-size: 15px; line-height: 1.55; }
.chat-msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--violet), #6a5cd8); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--card-border); border-bottom-left-radius: 4px; }
.chat-input { display: flex; gap: 10px; padding: 16px; border-top: 1px solid rgba(255,255,255,.07); }
.chat-input .input { flex: 1; }

/* Результат */
.result-box { background: rgba(0,0,0,.25); border-radius: var(--radius); padding: 30px; line-height: 1.8; font-size: 16px; }
.result-box b { color: var(--text); }

/* История */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.history-item:hover { text-decoration: none !important; border-color: rgba(240,199,94,.35); }
.history-item .hist-icon { color: var(--gold); display: inline-flex; flex-shrink: 0; }
.history-item .hist-icon svg { width: 24px; height: 24px; }
.history-item .title { font-weight: 600; color: var(--text); }
.history-item .date { font-size: 13px; color: var(--text-mute); }
.history-item .arrow { margin-left: auto; color: var(--text-mute); display: inline-flex; }
.history-item .arrow svg { width: 18px; height: 18px; }

/* Реферал */
.ref-link-box { display: flex; gap: 10px; align-items: center; background: rgba(0,0,0,.3); border: 1px dashed rgba(240,199,94,.4); padding: 14px 18px; border-radius: var(--radius-sm); }
.ref-link-box input { flex: 1; background: none; border: none; color: var(--gold); font-size: 15px; font-family: monospace; }

/* ---------- Ошибки ---------- */
.error-page { text-align: center; padding: 100px 20px; }
.error-code { font-family: var(--font-display); font-size: 90px; font-weight: 700; color: var(--gold); text-shadow: 0 0 40px rgba(240,199,94,.4); line-height: 1; }
.error-page p { max-width: 460px; margin: 18px auto 30px; }

/* ---------- Прочее ---------- */
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-dim { color: var(--text-dim); }
.text-mute { color: var(--text-mute); font-size: 14px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-green { background: rgba(88,201,154,.15); color: var(--green); }
.badge-dim { background: rgba(255,255,255,.07); color: var(--text-mute); }
.divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 26px 0; }

/* ---------- Доп. утилиты (замена inline-стилей под строгий CSP) ---------- */
.no-mb { margin-bottom: 0; }
.flex-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.price-now.price-sm { font-size: 28px; }
.price-now.price-md { font-size: 36px; }
.price-now.green { color: var(--green); }
.price-line.justify-start { justify-content: flex-start; }
.deposit-num { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.lead-text { font-size: 17px; }
.accent-b { font-weight: 800; }
.badge-red { background: rgba(233,88,106,.15); color: #ff8f9c; }
.stat-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.topup-btn { cursor: pointer; text-align: center; border: 1px solid rgba(240,199,94,.25); font-family: inherit; color: inherit; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.topup-btn:hover { border-color: rgba(240,199,94,.55); transform: translateY(-2px); }
.value.value-sm { font-size: 22px; }
.blog-excerpt { font-size: 17.5px; }
.crumbs { font-size: 14px; color: var(--text-mute); }
.crumbs .crumb-current { color: var(--gold); font-weight: 600; }
.svc-hero-grid { margin-top: 34px; }
.svc-plan { gap: 12px; margin-top: 40px; }
.svc-plan h2 { font-size: 1.45rem; }
.post-body.post-wide { max-width: none; }

/* ---------- Футер ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,.07); background: rgba(9, 7, 24, 0.7); margin-top: 72px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding: 56px 20px 40px; }
.footer-brand p { font-size: 14px; color: var(--text-mute); margin-top: 14px; max-width: 300px; }
.footer-col h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 5px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-bottom p { font-size: 12.5px; color: var(--text-mute); max-width: 640px; }

/* ---------- CTA ---------- */
.final-cta { padding-bottom: 110px; }
.final-cta .section-sub { max-width: 520px; margin: 0 auto 34px; }

/* ---------- SVG-иконки (утилиты) ---------- */
.row-icon { display: inline-flex; color: var(--gold); vertical-align: -3px; margin-right: 8px; }
.row-icon svg { width: 18px; height: 18px; }
.h-icon { display: flex; align-items: center; gap: 10px; }
.h-icon svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.title-icon { display: inline-flex; color: var(--gold); vertical-align: middle; margin-left: 4px; }
.title-icon svg { width: 26px; height: 26px; }
.inline-icon { display: inline-flex; color: var(--gold); vertical-align: -2px; }
.inline-icon svg { width: 16px; height: 16px; }
.btn-icon { display: inline-flex; }
.btn-icon svg { width: 17px; height: 17px; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .hero-visual { min-width: 0; }
  .hero-visual { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-card { min-width: 0; }
  .account-layout { grid-template-columns: minmax(0, 1fr); }
  .account-layout > * { min-width: 0; }
  .account-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg-2); padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: block; margin-left: auto; }
  .header-auth { margin-left: 0; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-auth .btn-ghost { display: none; }
  /* Хедер на узких экранах: компактные отступы и кнопка CTA,
     иначе бургер вылезает за вьюпорт и появляется горизонтальный скролл */
  .header-inner { gap: 12px; }
  .header-auth .btn-gold { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }
  .logo { font-size: 15px; gap: 8px; }
  .logo-star { width: 30px; height: 30px; border-radius: 9px; }
  .chat-msg { max-width: 92%; }
  .stat-cards { grid-template-columns: 1fr; }
  .stat-cards.cols-3 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { min-width: 0; white-space: normal; max-width: 100%; justify-content: center; }
  .hero-badge__accent { white-space: normal; }
  .card { padding: 22px; }
  .price-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .price-table th, .price-table td { padding: 11px 12px; }
}

/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.revealed { opacity: 1; transform: none; }
.js-city-hint { display: none; font-size: 13px; color: var(--gold); margin-top: 6px; }
.js-city-hint.show { display: block; }

/* Выпадающий список городов (автокомплит) */
.city-wrap { position: relative; }
.city-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; display: none; max-height: 240px; overflow-y: auto; padding: 6px; border-radius: var(--radius-sm); background: var(--card-solid); border: 1px solid var(--card-border); box-shadow: var(--shadow); }
.city-results.open { display: block; }
.city-results button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; transition: background .15s ease; }
.city-results button:hover, .city-results button:focus-visible { background: var(--gold-soft); color: var(--gold); }

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

/* ---------- Акция «ВСЁ БЕСПЛАТНО» (FREE_MODE) ---------- */
.promo-strip { background: linear-gradient(120deg, var(--bg-3), #2a1f5e 50%, var(--bg-3)); border-bottom: 1px solid rgba(240,199,94,.4); }
.promo-strip__inner { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 11px 16px; font-size: 14.5px; text-align: center; }
.promo-strip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: promoPulse 2s infinite; }
@keyframes promoPulse { 0% { box-shadow: 0 0 0 0 rgba(88,201,154,.55); } 70% { box-shadow: 0 0 0 9px rgba(88,201,154,0); } 100% { box-shadow: 0 0 0 0 rgba(88,201,154,0); } }
.promo-strip__tag { color: var(--gold); font-family: var(--font-display); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.promo-strip a { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.promo-strip a:hover { color: #ffe094; }

.free-pill { display: inline-block; padding: 5px 15px; border-radius: 999px; background: linear-gradient(120deg, var(--gold), #ffdf8e 55%, var(--gold-2)); color: #241a05; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 4px 18px rgba(240,199,94,.35); }
.free-now { color: var(--green); font-weight: 800; }
.price-was { color: var(--text-mute); text-decoration: line-through; text-decoration-color: rgba(240,126,139,.9); text-decoration-thickness: 2px; font-size: .8em; font-weight: 600; white-space: nowrap; }
.svc-price.free s, .free-price s { color: var(--text-mute); font-size: .82em; margin-right: 7px; }
.promo-strip__inner .price-was { font-size: .95em; }
@media (max-width: 560px) {
  .promo-strip__inner { font-size: 13px; gap: 7px; padding: 9px 12px; }
  .promo-strip__tag { font-size: 10.5px; }
}

/* ---------- Оверлей «идёт расчёт» ---------- */
body.no-scroll { overflow: hidden; }
.loading-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12,9,32,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.loading-overlay.is-on { opacity: 1; visibility: visible; }
.loading-box { max-width: 420px; width: 100%; text-align: center; padding: 40px 32px; background: var(--bg-2); border: 1px solid rgba(240,199,94,.25); border-radius: 20px; box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.loading-spinner { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; border: 3px solid rgba(240,199,94,.2); border-top-color: var(--gold); animation: loadSpin 1s linear infinite; }
@keyframes loadSpin { to { transform: rotate(360deg); } }
.loading-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.loading-sub { font-size: 14px; line-height: 1.5; color: var(--text-mute); margin-bottom: 18px; }
.loading-hint { font-size: 12.5px; color: var(--text-mute); opacity: .8; }
.loading-timer { display: inline-block; font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; }
.horo-body p { margin: 0 0 14px; }
.horo-body p:last-child { margin-bottom: 0; }
