/* unboxai.ru — минимализм: много воздуха, один акцент (фиолетовый), лайм только как метка «бесплатно/проверено». */
:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --ink: #16131f;
  --muted: #6b6780;
  --line: #e6e4ee;
  --accent: #6d4aff;
  --accent-ink: #ffffff;
  --accent-soft: #efebff;
  --lime: #b6ff3b;
  --lime-ink: #233600;
  --ok: #138a4b;
  --warn: #b26a00;
  --bad: #c2334d;
  --radius: 16px;
  --font: 'Geologica', system-ui, sans-serif;
  --read: 'Literata', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0818; --surface: #131029; --ink: #eeeafb; --muted: #8d87ae; --line: #262046;
    --accent: #7a4dff; --accent-soft: #221a45; --ok: #6be39a; --warn: #ffc56b; --bad: #ff7a93; --tag-ink: #c4b2ff;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--lime-ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 0 0 16px; font-weight: 700; }
h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 14px; font-weight: 600; }
h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; }
p { margin: 0 0 14px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.narrow-wrap { max-width: 768px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mascot { border-radius: 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.empty { color: var(--muted); padding: 24px 0; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; text-align: center; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: 600 15px/1.25 var(--font); text-decoration: none; cursor: pointer; transition: transform .12s, background .12s; }
.btn:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 88%, black); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-quiet { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: none; cursor: pointer; }
.link-quiet:hover { color: var(--ink); }

/* шапка */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink); }
.logo img { border-radius: 9px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
.mobile-nav { display: flex; flex-direction: column; padding: 8px 24px 16px; border-top: 1px solid var(--line); }
.mobile-nav a { padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }

/* главная */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 40px; }
.kicker { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.hero .lead { margin-bottom: 28px; }
.hook { display: grid; gap: 10px; padding: 32px; padding-right: 120px; border-radius: 24px; background: #0a0818; color: #eeeafb; text-decoration: none; position: relative; overflow: hidden; }
.hook::after { content: ''; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; background: radial-gradient(circle, rgba(139, 92, 255, .55), transparent 70%); pointer-events: none; }
.hook:hover { color: #eeeafb; }
.hook-label { font-size: 13px; color: #a9a3c9; }
.hook-mascot { position: absolute; top: 22px; right: 22px; border-radius: 22px; z-index: 1; }
.hook-sum { white-space: nowrap; font-size: clamp(44px, 5.2vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--lime); }
.hook-sum small { display: block; margin-top: 8px; font-size: 16px; color: #a9a3c9; font-weight: 500; letter-spacing: 0; }
.hook-text { color: #c9c4e3; max-width: 34ch; }
.hook-cta { margin-top: 8px; font-weight: 600; }
.hook-cta::after { content: ' →'; }

.section { padding-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.section-head a { color: var(--muted); font-size: 15px; }
.section-sub { margin-bottom: 20px; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }

/* карточки статей */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.card-link { display: flex; flex-direction: column; height: 100%; padding: 22px; text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
.card h3 { font-size: 19px; margin: 12px 0 8px; }
.card p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; font-size: 13px; }
.card-big { grid-column: span 2; }
.card-big h3 { font-size: 26px; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--tag-ink, #5a36f0); }
.tag-ad { background: #fff0d6; color: #8a5300; }
.tag-ugc { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }

/* раздачи */
.deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.deals-col { grid-template-columns: 1fr; }
.deal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.deal:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.deal-link { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; text-decoration: none; color: inherit; }
.deal-link:hover { color: inherit; }
.deal h3 { margin: 4px 0 0; }
.deal p { color: var(--muted); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.deal-top, .deal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.deal-foot { margin-top: auto; padding-top: 10px; justify-content: space-between; }
.price s { color: var(--muted); font-size: 14px; }
.price b { font-weight: 700; }
.verified { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 7px; border-radius: 99px; background: var(--lime); color: var(--lime-ink); }
.verified-week { background: var(--accent-soft); color: var(--tag-ink, #5a36f0); }
.verified-old { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.verified svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.until { font-size: 13px; color: #9a5b00; font-weight: 600; }
.ru { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ru i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.ru-vpn i { background: var(--warn); }
.ru-foreign i { background: var(--bad); }

/* страница раздачи */
.deal-hero { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; margin: 18px 0 8px; }
.deal-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 12px; position: sticky; top: 88px; }
.price-big { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.price-big s { color: var(--muted); font-size: 18px; }
.price-big b { font-size: 40px; letter-spacing: -0.03em; }
.deal-body { max-width: 720px; padding-top: 16px; }
.deal-page { padding-top: 40px; }
.tip { padding: 14px 18px; background: var(--accent-soft); border-radius: 12px; }

/* статья */
.page-head { padding-top: 40px; padding-bottom: 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a { padding: 7px 14px; border-radius: 99px; font-size: 14px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.chips a[aria-current] { background: var(--ink); color: var(--bg); box-shadow: none; }
.post-head { max-width: 820px; padding-top: 40px; }
.post-meta { font-size: 14px; }
.post-grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 48px; margin-top: 24px; }
.post-main-deal { display: grid; gap: 4px; margin-top: 18px; padding: 14px 18px; max-width: 520px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.post-main-deal:hover { border-color: var(--accent); color: inherit; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc b { display: block; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; color: var(--muted); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc li a:hover, .toc li a.active { color: var(--ink); border-left-color: var(--accent); }
.prose { font: 400 18px/1.75 var(--read); min-width: 0; overflow-wrap: anywhere; }
.prose .deal, .prose .bot-cta { font-family: var(--font); overflow-wrap: normal; }
.prose .deal-link { color: inherit; text-decoration: none; }
.prose .deal h3 { margin: 4px 0 0; font-size: 18px; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font); margin: 2em 0 .6em; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 20px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose code { font-size: .88em; background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; }
.prose pre { overflow: auto; padding: 16px; background: #0a0818; color: #eeeafb; border-radius: 12px; font-size: 14px; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: 12px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table, .table table { width: 100%; border-collapse: collapse; font: 400 15px/1.5 var(--font); }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 14px/30px var(--font); text-align: center; }
.notice { padding: 10px 14px; border-radius: 10px; background: #fff6e0; color: #6b4300; font-size: 15px; }
.ad-label { display: inline-block; font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; }
.post-deals { margin-top: 2em; }
.post-deals h2 { margin-top: 0; }

/* плашка бота */
.bot-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin: 48px 0 0; padding: 20px 22px; border-radius: 20px; background: #0a0818; color: #eeeafb; font-family: var(--font); }
.bot-cta img { border-radius: 14px; }
.bot-cta b { display: block; font-size: 17px; }
.bot-cta span { color: #a9a3c9; font-size: 14px; }
.bot-cta .btn { background: var(--lime); color: var(--lime-ink); }
.prose .bot-cta a { color: var(--lime-ink); }

/* авторы */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.level-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.level-card ul { padding-left: 18px; margin: 10px 0 0; font-size: 14px; }
.level-num { font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; }
.levels-mini { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.levels-mini li { padding: 8px 0 8px 18px; }
.levels-mini b { display: block; }
.levels-mini span { color: var(--muted); font-size: 14px; }
.level { font-size: 13px; padding: 2px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.level-3 { background: var(--lime); color: var(--lime-ink); }

/* формы, кабинет, админка */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.sticky { position: sticky; top: 88px; }
.form, .editor { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
label .muted { font-weight: 400; font-size: 13px; }
input, textarea, select { width: 100%; font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
input:not([type=checkbox]):focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-item:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.hp { position: absolute; left: -9999px; }
.errors { padding: 14px 18px; border-radius: 12px; background: #ffe9ee; color: #7a1730; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }
.ok { color: var(--ok); font-weight: 600; }
.reject { color: var(--bad); font-size: 14px; }
.preview { padding: 24px; border: 1px dashed var(--line); border-radius: 16px; }
.my-list { list-style: none; padding: 0; margin: 12px 0 0; }
.my-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.my-list li > div { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; justify-content: space-between; }
.status { font-size: 12px; padding: 2px 9px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.status-published { background: #e3f7ec; color: var(--ok); box-shadow: none; }
.status-pending { background: #fff3d6; color: #8a5300; box-shadow: none; }
.status-rejected { background: #ffe9ee; color: var(--bad); box-shadow: none; }
.row-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-form input, .row-form select { width: auto; padding: 6px 10px; font-size: 14px; }
.checklist { padding-left: 18px; font-size: 14px; }
.review { grid-template-columns: minmax(0, 1fr) 320px; }
.admin-tabs { margin-top: 8px; }

/* реклама */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.offer h2 { font-size: 20px; }
.offer ul { padding-left: 18px; color: var(--muted); font-size: 15px; margin: 0; }
.offer-free { border-color: color-mix(in srgb, var(--lime) 70%, var(--line)); box-shadow: inset 0 3px 0 var(--lime); }

/* калькулятор */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding-top: 24px; }
.calc-list { display: grid; gap: 10px; }
.calc-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 400; }
.calc-item:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-item input { width: 20px; height: 20px; accent-color: var(--accent); }
.calc-name { display: grid; }
.calc-name .muted { font-size: 14px; }
.calc-price { font-weight: 700; font-size: 18px; white-space: nowrap; }
.calc-price small { font-weight: 400; color: var(--muted); font-size: 13px; }
.calc-result { position: sticky; top: 88px; display: grid; gap: 12px; padding: 28px; border-radius: 24px; background: #0a0818; color: #eeeafb; }
.calc-result .muted { color: #a9a3c9; }
.calc-result .btn-ghost { color: #eeeafb; box-shadow: inset 0 0 0 1px #2c2550; }
.calc-result .btn-ghost:hover { background: #17132e; color: #fff; }
.calc-sum { font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--lime); }
.calc-alts { display: grid; gap: 8px; }
.calc-alts a { display: block; padding: 10px 12px; border-radius: 10px; background: #17132e; color: #eeeafb; text-decoration: none; font-size: 14px; }
.calc-alts a b { color: var(--lime); font-weight: 600; }
.calc-alts a:hover { background: #221a45; }

.pager { display: flex; gap: 20px; align-items: center; justify-content: center; padding: 32px 0 0; color: var(--muted); }
.nf { text-align: center; padding-bottom: 40px; }
.nf .lead { margin-inline: auto; }
.login-status { margin-top: 16px; }
.nf .row { justify-content: center; }

/* подвал */
.site-foot { margin-top: 96px; padding: 48px 0 32px; border-top: 1px solid var(--line); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid nav { display: grid; gap: 8px; align-content: start; }
.foot-grid nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.foot-grid nav a:hover { color: var(--ink); }
.foot-grid p { margin-top: 12px; max-width: 36ch; }
.foot-note { margin-top: 32px; font-size: 13px; }

@media (max-width: 980px) {
  .hero, .split, .deal-hero, .calc, .review { grid-template-columns: 1fr; }
  .cards, .deals, .offers { grid-template-columns: 1fr 1fr; }
  .levels { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
  .deal-box, .calc-result, .sticky { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav, .head-actions .link-quiet { display: none; }
  .menu-btn { display: block; }
  .cards, .deals, .offers, .levels { grid-template-columns: 1fr; }
  .card-big { grid-column: auto; }
  .card-big h3 { font-size: 21px; }
  .hero { padding-top: 32px; gap: 28px; }
  .bot-cta { grid-template-columns: auto 1fr; }
  .bot-cta .btn { grid-column: 1 / -1; }
  .prose { font-size: 17px; }
  .site-foot { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- чек калькулятора ---------- */
.calc-lines { display: grid; gap: 6px; padding: 6px 0 4px; border-bottom: 1px dashed #2c2550; }
.calc-line { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: #eeeafb; }
.calc-line:hover { background: #17132e; color: #fff; }
.calc-line .was { color: #8d87ae; text-decoration: line-through; font-size: 14px; }
.calc-line .now { color: var(--lime); font-weight: 600; font-size: 15px; }
.calc-total { display: grid; gap: 4px; padding-top: 6px; }
.calc-total > span:first-child { font-size: 13px; color: #a9a3c9; }
.calc-sticky { align-items: center; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: none; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 16px; background: #0a0818; color: #eeeafb; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 15px; }
.calc-sticky b { color: var(--lime); }
.calc-sticky > span { white-space: nowrap; }
.calc-sticky:hover { color: #fff; }
.anchors-bar { position: sticky; top: 64px; z-index: 5; background: var(--bg); padding-top: 4px; padding-bottom: 4px; }
.anchors { margin-top: 0; padding: 8px 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.anchors::-webkit-scrollbar { display: none; }
.page-head + .anchors-bar + .section, .page-head + .section { padding-top: 24px; }
.anchors a { white-space: nowrap; }

/* ---------- тёмная тема: тёмные блоки отделяем от фона, светлые плашки перекрашиваем ---------- */
@media (prefers-color-scheme: dark) {
  .hook, .bot-cta, .calc-result, .calc-sticky { background: #17132e; box-shadow: inset 0 0 0 1px var(--line); }
  .tag-ad { background: #3a2a0a; color: #ffcf7a; }
  .notice { background: #3a2a0a; color: #ffcf7a; }
  .errors { background: #3d1220; color: #ffb3c2; }
  .status-published { background: #0f3322; }
  .status-pending { background: #3a2a0a; color: #ffcf7a; }
  .status-rejected { background: #3d1220; }
  .until { color: var(--warn); }
  .chips a[aria-current] { background: var(--ink); color: var(--bg); }
  .prose a, .steps li::before, .level { color: var(--tag-ink); }
}

@media (max-width: 980px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-sticky:not([hidden]) { display: flex; }
  .calc { padding-bottom: 80px; }
}
@media (max-width: 720px) {
  .hero-actions .btn { flex: 1; }
  .hook { padding-right: 32px; padding-top: 110px; }
}

/* таблицы в статьях не сжимаем до буквы — прокручиваются в обёртке */
.prose table { overflow-wrap: normal; word-break: normal; min-width: 560px; }
.prose th, .prose td { min-width: 96px; }
/* интерактивный крючок на главной */
.hook-chips { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.hook-chips button { font: 500 14px/1 var(--font); padding: 9px 12px; border-radius: 99px; border: 1px solid #2c2550; background: transparent; color: #c9c4e3; cursor: pointer; }
.hook-chips button[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.hook-alt { color: var(--lime); font-size: 14px; min-height: 1.4em; position: relative; z-index: 1; }
.hook a.hook-cta { color: #eeeafb; text-decoration: none; position: relative; z-index: 1; }
.hook a.hook-cta:hover { color: var(--lime); }

/* ---------- главная-блог ---------- */
.home-head { padding-top: 48px; padding-bottom: 8px; }
.home-head h1 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 10px; }
.home-head .lead { font-size: 18px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 16px; align-items: start; }
.lead-post a { display: block; padding: 24px 0 32px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.lead-post h2 { font-size: clamp(26px, 3vw, 36px); margin: 14px 0 12px; line-height: 1.12; }
.lead-post p { font: 400 18px/1.6 var(--read); color: var(--muted); max-width: 62ch; }
.lead-post a:hover h2 { color: var(--accent); }
.read-more { font-weight: 600; color: var(--accent); }
.read-more::after { content: ' →'; }
.post-row-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; }
.home-sub { font-size: 14px; font-weight: 600; color: var(--muted); margin: 32px 0 4px; }
.post-list { display: grid; }
.post-row a { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.post-row h3 { font-size: 21px; margin: 10px 0 6px; line-height: 1.25; }
.post-row p { color: var(--muted); margin: 0; font-size: 15px; max-width: 70ch; }
.post-row a:hover h3 { color: var(--accent); }
.link-more { font-weight: 600; font-size: 15px; color: var(--accent); text-decoration: none; }
.link-more::after { content: ' →'; }
.home-main > section > p { margin-top: 24px; }
.home-side { position: sticky; top: 88px; display: grid; gap: 28px; }
.side-block h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.side-block p { margin: 0 0 8px; }
.side-list, .side-deals { list-style: none; margin: 0 0 10px; padding: 0; }
.side-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.side-list a, .side-deals a { text-decoration: none; }
.side-deals li { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.side-calc { padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.side-bot { display: grid; grid-template-columns: 48px 1fr; gap: 6px 12px; align-items: center; }
.side-bot .link-more { grid-column: 2; }
@media (max-width: 980px) {
  .home-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-side { position: static; }
}

/* ---------- «Сработало у меня», значки, рейтинг ---------- */
.reaction { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0 8px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font); }
.reaction-q { font-weight: 600; margin-right: 6px; }
.reaction-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 15px/1 var(--font); cursor: pointer; }
.reaction-btn b { font-weight: 700; color: var(--muted); }
.reaction-btn[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.reaction-btn[aria-pressed="true"] b { color: var(--lime-ink); }
.reaction-down[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: #fff; }
.reaction-down[aria-pressed="true"] b { color: #fff; }
.worked { font-size: 12px; color: var(--ok); font-weight: 600; }
.badges { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.badge { font: 600 12px/1 var(--font); padding: 4px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--tag-ink, #5a36f0); white-space: nowrap; }
.badge-gold { background: var(--lime); color: var(--lime-ink); }
.badge-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.badge-list li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.author-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 20px 0 0; }
.author-stats div { display: grid; }
.author-stats dt { font-size: 13px; color: var(--muted); }
.author-stats dd { margin: 0; font-size: 26px; font-weight: 700; }
.rating { list-style: none; padding: 0; margin: 0; }
.rating li { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "place name score" "place meta score"; gap: 2px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rating-place { grid-area: place; font-size: 22px; font-weight: 700; color: var(--muted); }
.rating li:nth-child(-n+3) .rating-place { color: var(--accent); }
.rating-name { grid-area: name; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 17px; font-weight: 600; }
.rating-name a { text-decoration: none; }
.rating-meta { grid-area: meta; }
.rating-score { grid-area: score; display: grid; justify-items: end; }
.rating-score b { font-size: 22px; }
label.check { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; font-weight: 400; font-size: 13px; }
label.check input { width: auto; }

/* маршрут «Нейросети с нуля» на главной — настоящая последовательность, поэтому нумерация */
.start-path { margin-top: 8px; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.start-path .home-sub { margin-top: 0; color: var(--ink); font-size: 16px; }
.start-path ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.start-path li::marker { color: var(--accent); font-weight: 700; }
.start-path a { text-decoration: none; }
.start-path a:hover { color: var(--accent); }
