/* Сайт «Опоры»: общие стили. Дневная тема по умолчанию, ночная — по настройке устройства. */

:root {
  --ground: #EEEDE9;
  --surface: #FAF9F6;
  --surface-2: #F3F1EC;
  --line: #D8D4CC;
  --line-soft: #E6E3DD;
  --text: #141416;
  --text-2: #3C3A36;
  --muted: #68645C;
  --accent: #7B5824;
  --accent-wash: rgba(160, 120, 60, .12);
  --gold: linear-gradient(165deg, #EACD96 0%, #C9A46A 48%, #A6803F 100%);
  --gold-ink: #16110A;
  --blk: linear-gradient(180deg, #D9D4CA, #BEB8AD);
  --blk-edge: inset 0 1px 0 rgba(255, 255, 255, .7);
  --shadow: 0 18px 40px -26px rgba(60, 46, 26, .38);
  --glow: rgba(201, 164, 106, .26);
  --todo-bg: #FFE7A3;
  --todo-ink: #4F3600;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #09090A;
    --surface: #121214;
    --surface-2: #1A1A1D;
    --line: #2A2A2E;
    --line-soft: #1F1F22;
    --text: #EFEBE4;
    --text-2: #BDB7AD;
    --muted: #8A857D;
    --accent: #C9A46A;
    --accent-wash: rgba(201, 164, 106, .12);
    --blk: linear-gradient(180deg, #414147, #2E2E32);
    --blk-edge: inset 0 1px 0 rgba(255, 255, 255, .07);
    --shadow: 0 22px 44px -28px rgba(0, 0, 0, .9);
    --glow: rgba(201, 164, 106, .2);
    --todo-bg: #5A4312;
    --todo-ink: #FFE7A3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #09090A;
  --surface: #121214;
  --surface-2: #1A1A1D;
  --line: #2A2A2E;
  --line-soft: #1F1F22;
  --text: #EFEBE4;
  --text-2: #BDB7AD;
  --muted: #8A857D;
  --accent: #C9A46A;
  --accent-wash: rgba(201, 164, 106, .12);
  --blk: linear-gradient(180deg, #414147, #2E2E32);
  --blk-edge: inset 0 1px 0 rgba(255, 255, 255, .07);
  --shadow: 0 22px 44px -28px rgba(0, 0, 0, .9);
  --glow: rgba(201, 164, 106, .2);
  --todo-bg: #5A4312;
  --todo-ink: #FFE7A3;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: radial-gradient(120% 50% at 50% -10%, var(--glow), transparent 60%), var(--ground);
  color: var(--text);
  font: 400 17px/1.6 "Golos Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, p, ul, ol { margin: 0; }
mark.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0 .3em; border-radius: 4px; font-weight: 600; }

.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); margin: 0 auto; }

/* Шапка */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 400 21px/1 "Forum", "Times New Roman", serif; letter-spacing: .3em; text-transform: uppercase; }
.brand svg { width: 14px; height: 22px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--text-2); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 820px) { .site-nav a.hide-sm { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.gold { background: var(--gold); border-color: #C9A46A; color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(255, 245, 222, .45), 0 12px 26px -16px rgba(201, 164, 106, .6); }
.btn.gold:hover { filter: brightness(1.05); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }

/* Главный экран */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.age { display: inline-grid; place-items: center; min-width: 38px; height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); letter-spacing: .04em; }
.hero h1 { margin-top: 18px; font: 400 clamp(52px, 8.4vw, 104px)/.95 "Forum", "Times New Roman", serif; letter-spacing: -.005em; text-wrap: balance; }
.hero .lead { margin-top: 22px; max-width: 34em; font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; color: var(--text-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .micro { margin-top: 14px; font-size: 14px; color: var(--muted); }

.pillar-art { justify-self: center; display: grid; justify-items: center; gap: 12px; }
.pillar-art .cap { width: 188px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); }
.pillar-art .shaft { display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; }
.pillar-art .shaft span { height: 30px; border-radius: 3px; background: var(--blk); box-shadow: var(--blk-edge); }
.pillar-art .shaft span.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.pillar-art .shaft span.now { background: var(--gold); box-shadow: 0 0 22px rgba(201, 164, 106, .55); }
.pillar-art .base { width: 208px; height: 18px; border-radius: 3px; background: var(--blk); box-shadow: var(--blk-edge); }
.pillar-art figcaption { max-width: 16em; text-align: center; font-size: 14px; color: var(--muted); }

/* Разделы */
.section { padding: 64px 0; border-top: 1px solid var(--line-soft); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 42em; }
.section-head h2 { font: 400 clamp(34px, 4.6vw, 48px)/1.05 "Forum", "Times New Roman", serif; text-wrap: balance; }
.section-head p { color: var(--text-2); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 26px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.plan.plus { border-color: rgba(201, 164, 106, .45); }
.plan h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font: 400 30px/1.1 "Forum", "Times New Roman", serif; }
.plan h3 small { font: 600 12px/1 "Golos Text", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 11px; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--text-2); line-height: 1.45; }
.plan li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; border-radius: 2px; background: var(--blk); box-shadow: var(--blk-edge); }
.plan.plus li::before { background: var(--gold); }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding: 22px 18px 20px; border-top: 2px solid var(--line); counter-increment: step; color: var(--text-2); line-height: 1.45; }
.steps li::before { content: counter(step); display: block; margin-bottom: 10px; font: 400 34px/1 "Forum", "Times New Roman", serif; color: var(--accent); }
.steps li b { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; }

.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }
.price { display: grid; gap: 8px; padding: 26px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.price .term { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price .amount { font-size: 44px; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.price .amount span { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price p { color: var(--text-2); line-height: 1.5; }
.price-note { margin-top: 18px; max-width: 46em; font-size: 15px; color: var(--muted); }

.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
@media (max-width: 760px) { .terms { grid-template-columns: 1fr; } }
.terms h3 { margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.terms p { color: var(--text-2); }

.notice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 760px) { .notice { grid-template-columns: 1fr; } }
.notice > div { padding: 24px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.notice h3 { margin-bottom: 8px; font: 400 26px/1.1 "Forum", "Times New Roman", serif; }
.notice p { color: var(--text-2); }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 "Forum", serif; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; max-width: 44em; color: var(--text-2); }

/* Подвал */
.site-foot { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 820px) { .site-foot .wrap { grid-template-columns: 1fr; } }
.site-foot h2 { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-foot .legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); }

/* Возрастное подтверждение */
.age-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--ground) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.age-gate .box { width: min(440px, 100%); padding: 30px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow); text-align: center; }
.age-gate h2 { font: 400 32px/1.1 "Forum", "Times New Roman", serif; }
.age-gate p { margin-top: 10px; color: var(--text-2); }
.age-gate .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* Документы */
.doc { padding: 48px 0 72px; }
.doc .eyebrow { margin-bottom: 14px; }
.doc h1 { font: 400 clamp(38px, 6vw, 60px)/1.02 "Forum", "Times New Roman", serif; text-wrap: balance; }
.doc .meta { margin-top: 14px; color: var(--muted); font-size: 15px; }
.draft { margin: 24px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--todo-bg); color: var(--todo-ink); font-size: 15px; line-height: 1.5; }
.doc h2 { margin: 40px 0 12px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 10px; }
.doc ol.clauses { list-style: none; padding: 0; display: grid; gap: 10px; }
.doc ol.clauses > li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 6px; }
.doc ol.clauses > li > span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.doc ul.dash { padding-left: 1.2em; display: grid; gap: 6px; margin-top: 6px; }
.doc .requisites { margin-top: 12px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.doc .requisites p { margin: 0; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: 15px; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.review { margin: 0; padding: 22px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.review .stars { color: var(--accent); letter-spacing: .12em; font-size: 15px; }
.review blockquote { margin: 8px 0 0; color: var(--text-2); white-space: pre-line; }
.review .sign { margin-top: 12px; color: var(--muted); font-size: 14px; }
