/* ===========================================================
   Shivan — стили публичных страниц (shivan.top, chat.shivan.top,
   tools.shivan.top, docs.shivan.top, legal, errors)
   Источник: design/other-pages/Shivan Designs.html + Tools.html
   =========================================================== */

/* === Promo / Hub shared === */
.promo { background: var(--bg); color: var(--ink); font-family: var(--font-text); position: relative; overflow: hidden; min-height: 100vh; }
.promo-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(to right, oklch(0.88 0.008 70 / 0.5) 1px, transparent 1px), linear-gradient(to bottom, oklch(0.88 0.008 70 / 0.5) 1px, transparent 1px); background-size: 96px 96px; mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 70%); pointer-events: none; }

/* Nav */
.promo-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-radius: 999px; background: oklch(0.99 0.003 80 / 0.8); backdrop-filter: blur(18px); border: 1px solid var(--line); margin: 16px 32px 0; position: relative; z-index: 2; }
.promo-nav-links { display: flex; gap: 4px; }
.promo-nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.promo-nav-links a:hover { background: var(--bg-2); }
.promo-nav-links a.active { background: var(--ink); color: var(--bg); }

/* Hero — chat.shivan.top */
.promo-hero { position: relative; padding: 72px 64px 56px; z-index: 1; }
.promo-hero h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 0.96; font-size: 88px; margin: 28px 0 0; max-width: 14ch; }
.promo-hero .accent-word { position: relative; display: inline-block; }
.promo-hero .accent-word::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.18em; background: var(--accent); opacity: .3; }
.promo-cta { display: flex; gap: 10px; margin-top: 36px; align-items: center; flex-wrap: wrap; }
.promo-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.meta-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: white; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.meta-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px oklch(0.74 0.17 60 / 0.25); }
.promo-stats { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.promo-stats .v { font-family: var(--font-display); font-weight: 600; font-size: 36px; letter-spacing: -0.03em; line-height: 1; }
.promo-stats .l { color: var(--muted); font-size: 12px; margin-top: 6px; max-width: 22ch; }
.promo-channels { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.promo-channels .pc { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: white; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; }
.promo-channels .pc-dot { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: white; font-family: var(--font-display); font-weight: 700; font-size: 11px; }

/* Promo hero device mock */
.promo-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.promo-mock { position: relative; aspect-ratio: 5/6; border-radius: 24px; background: white; border: 1px solid var(--line); box-shadow: 0 30px 80px -32px oklch(0.2 0.01 60 / 0.35); padding: 18px; overflow: hidden; min-height: 480px; }
.promo-mock-bar { display: flex; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.promo-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.promo-mock-content { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.promo-mock-content .ln { height: 8px; border-radius: 4px; background: oklch(0.93 0.008 70); }
.promo-mock-content .ln.short { width: 40%; }
.promo-mock-content .ln.med { width: 70%; }
.promo-mock-content .blk { height: 60px; border-radius: 8px; background: oklch(0.93 0.008 70); margin-top: 8px; }

/* Marquee */
.promo-marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; background: var(--bg-2); margin-top: 56px; }
.marq-track { display: flex; gap: 48px; white-space: nowrap; animation: marq-scroll 38s linear infinite; width: max-content; }
.marq-item { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--muted); display: inline-flex; align-items: center; gap: 14px; }
.marq-item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
@keyframes marq-scroll { to { transform: translateX(-50%); } }

/* Sections */
.promo-section { padding: 88px 64px; position: relative; z-index: 1; }
.promo-section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: end; margin-bottom: 48px; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.feature { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; position: relative; min-height: 220px; display: flex; flex-direction: column; }
.feature .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; margin: 14px 0 8px; }
.feature p { color: var(--ink-2); font-size: 14px; margin: 0; }
.feature.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.feature.dark p { color: oklch(0.85 0.01 60); }
.feature.dark .num { color: oklch(0.7 0.01 60); }
.feature .visual { position: absolute; top: 22px; right: 22px; width: 48px; height: 48px; border-radius: 12px; background: white; border: 1px solid var(--line); display: grid; place-items: center; }
.feature.dark .visual { background: oklch(0.28 0.012 60); border-color: oklch(0.32 0.012 60); }

/* Grid spans */
.span-12 { grid-column: span 12; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }

/* Pricing tiers */
.tier { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.tier.feat { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tier-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.tier .price { font-family: var(--font-display); font-weight: 600; font-size: 44px; letter-spacing: -0.035em; line-height: 1; }
.tier .price .from { display: block; font-size: 11px; font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; }
.tier.feat .price .from { color: oklch(0.72 0.01 60); }
.tier ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tier li { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-2); }
.tier.feat li { color: oklch(0.92 0.01 60); }
.tier li::before { content: "✓"; color: var(--accent); font-weight: 600; flex-shrink: 0; }

/* === tools.shivan.top — Hub === */
.hub-hero { padding: 64px 64px 36px; position: relative; z-index: 1; }
.hub-hero h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; font-size: 76px; margin: 24px 0 0; max-width: 18ch; }
.hub-hero .accent-word { position: relative; display: inline-block; }
.hub-hero .accent-word::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.18em; background: var(--accent); opacity: .3; }
.hub-hero p.lead { max-width: 56ch; margin-top: 24px; font-size: 19px; line-height: 1.5; color: var(--ink-2); }

.hub-search { display: flex; align-items: center; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px; margin-top: 36px; max-width: 600px; box-shadow: 0 12px 32px -16px oklch(0.2 0.01 60 / 0.2); }
.hub-search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; outline: none; padding: 8px 0; color: var(--ink); }
.hub-search .kbd { font-family: var(--font-mono); font-size: 11px; padding: 4px 8px; background: var(--bg-2); border-radius: 6px; color: var(--muted); }

.tools-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; padding: 24px 64px 64px; position: relative; z-index: 1; }
.tool-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; gap: 16px; min-height: 260px; position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease); text-decoration: none; color: inherit; }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -20px oklch(0.2 0.01 60 / 0.25); }
.tool-card .icon-slot { width: 56px; height: 56px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent-ink); }
.tool-card.feat { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tool-card.feat .icon-slot { background: oklch(0.28 0.012 60); border-color: oklch(0.32 0.012 60); color: var(--accent); }
.tool-card .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.tool-card.feat .num { color: oklch(0.72 0.01 60); }
.tool-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.tool-card p { color: var(--ink-2); font-size: 14px; margin: 0; }
.tool-card.feat p { color: oklch(0.85 0.01 60); }
.tool-card.feat h3 { color: var(--bg); }
.tool-card .open { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.tool-card.feat .open { color: var(--accent); }
.tool-tag { position: absolute; top: 22px; right: 22px; padding: 4px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--bg-2); color: var(--ink-2); }
.tool-card.feat .tool-tag { background: oklch(0.28 0.012 60); color: oklch(0.85 0.01 60); }
.tool-tag.live { background: var(--accent-soft); color: var(--accent-ink); }

/* === Tool landing — workbench === */
.tool-page { padding: 56px 64px; position: relative; z-index: 1; }
.tool-page-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: 32px; }
.tool-page-head h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-size: 64px; line-height: 1; margin: 14px 0 0; }
.tool-workbench { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.tool-workbench > .pane { padding: 32px; }
.tool-workbench > .pane + .pane { border-left: 1px solid var(--line); background: var(--bg-2); }

.preset-row { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-chip { padding: 6px 12px; background: white; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-family: var(--font-mono); cursor: pointer; color: var(--ink-2); }
.preset-chip:hover { border-color: var(--ink); }
.preset-chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* UTM */
.utm-result { background: var(--ink); color: var(--bg); border-radius: 16px; padding: 20px; position: relative; word-break: break-all; font-family: var(--font-mono); font-size: 14px; line-height: 1.6; }
.utm-result .key { color: oklch(0.78 0.14 250); }
.utm-result .eq { color: oklch(0.7 0.01 60); }
.utm-result .val { color: oklch(0.85 0.16 60); }
.utm-result .amp { color: oklch(0.55 0.01 60); }
.utm-result .copy-btn { position: absolute; top: 12px; right: 12px; background: oklch(0.28 0.012 60); color: var(--bg); border: 0; padding: 6px 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 6px; cursor: pointer; }

/* QR */
.qr-frame { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; place-items: center; aspect-ratio: 1; max-width: 360px; margin: 0 auto; box-shadow: 0 24px 60px -28px oklch(0.2 0.01 60 / 0.3); position: relative; }
.qr-frame svg, .qr-frame canvas { width: 100%; height: 100%; }
.qr-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.qr-style { width: 100%; aspect-ratio: 1; border-radius: 10px; background: white; border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; padding: 8px; }
.qr-style.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }

/* Password */
.pw-shell { background: var(--ink); color: var(--bg); border-radius: 16px; padding: 24px; font-family: var(--font-mono); font-size: 26px; letter-spacing: 0.04em; word-break: break-all; position: relative; min-height: 100px; display: grid; place-items: center; text-align: center; }
.pw-shell .copy-btn { position: absolute; top: 12px; right: 12px; background: oklch(0.28 0.012 60); color: var(--bg); border: 0; padding: 6px 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 6px; cursor: pointer; }
.pw-strength { display: flex; gap: 4px; margin-top: 14px; }
.pw-strength .seg { flex: 1; height: 6px; border-radius: 3px; background: var(--bg-3); }
.pw-strength .seg.on { background: var(--accent); }
.pw-strength.s4 .seg.on { background: oklch(0.62 0.16 145); }
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: var(--line-2); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); cursor: pointer; }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); cursor: pointer; border: 0; }

/* === Help Center / Docs === */
.docs-hero { padding: 64px 64px 32px; position: relative; z-index: 1; text-align: center; }
.docs-hero h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-size: 56px; line-height: 1.05; margin: 16px 0 0; max-width: 24ch; margin-inline: auto; }
.docs-search { max-width: 580px; margin: 28px auto 0; }
.docs-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 24px 64px 64px; position: relative; z-index: 1; }
.doc-cat { background: white; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; text-decoration: none; color: inherit; transition: transform .2s; display: block; }
.doc-cat:hover { transform: translateY(-2px); }
.doc-cat .doc-cat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent-ink); margin-bottom: 16px; }
.doc-cat h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin: 0 0 6px; }
.doc-cat .articles { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.doc-cat .articles a { font-size: 13px; color: var(--ink-2); padding: 4px 0; text-decoration: none; }
.doc-cat .articles a:hover { color: var(--ink); }
.doc-cat .more { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.doc-article { display: grid; grid-template-columns: 240px 1fr 220px; gap: 48px; padding: 32px 64px 64px; position: relative; z-index: 1; }
.doc-side { font-size: 13px; }
.doc-side .group-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
.doc-side a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.doc-side a:hover { background: var(--bg-2); color: var(--ink); }
.doc-side a.active { background: var(--ink); color: var(--bg); font-weight: 500; }
.doc-main { max-width: 700px; }
.doc-main h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-size: 44px; margin: 0; line-height: 1.1; }
.doc-main .meta { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 12px; }
.doc-main h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.doc-main h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 24px 0 8px; }
.doc-main p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 16px; }
.doc-main .callout { background: var(--accent-soft); border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; margin: 16px 0; }
.doc-main .callout .ic { color: var(--accent-ink); margin-top: 2px; }
.doc-main code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-2); padding: 2px 6px; border-radius: 4px; }
.doc-main pre.code { background: oklch(0.16 0.012 60); color: oklch(0.92 0.01 60); border-radius: 14px; padding: 18px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; overflow: auto; margin: 18px 0; }
.doc-toc { position: sticky; top: 32px; align-self: start; font-size: 13px; }
.doc-toc .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.doc-toc a { display: block; padding: 6px 0; color: var(--ink-2); border-left: 2px solid var(--line); padding-left: 12px; margin-left: -12px; text-decoration: none; }
.doc-toc a.active { color: var(--ink); border-color: var(--accent); font-weight: 500; }
.doc-cat-page { padding: 48px 64px 64px; position: relative; z-index: 1; }
.doc-list { display: flex; flex-direction: column; gap: 4px; background: white; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 8px; }
.doc-list a { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 16px 20px; border-radius: 14px; text-decoration: none; color: inherit; }
.doc-list a:hover { background: var(--bg-2); }
.doc-list .doc-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.doc-list .doc-desc { color: var(--muted); font-size: 13px; margin-top: 2px; }
.doc-list .doc-read { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* === Service / Error pages === */
.err-page { display: grid; place-items: center; min-height: 100vh; padding: 64px; background: var(--bg); position: relative; overflow: hidden; }
.err-page::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, oklch(0.88 0.008 70 / 0.5) 1px, transparent 1px), linear-gradient(to bottom, oklch(0.88 0.008 70 / 0.5) 1px, transparent 1px); background-size: 96px 96px; mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 65%); pointer-events: none; }
.err-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 56px 64px; max-width: 720px; text-align: left; position: relative; z-index: 1; box-shadow: 0 30px 80px -32px oklch(0.2 0.01 60 / 0.3); }
.err-num { font-family: var(--font-display); font-weight: 600; font-size: 200px; letter-spacing: -0.06em; line-height: 0.9; background: linear-gradient(135deg, var(--ink), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.err-num .accent-zero { font-family: "Instrument Serif", serif; font-style: italic; }
.err-card h1 { font-family: var(--font-display); font-weight: 600; font-size: 36px; letter-spacing: -0.025em; margin: 8px 0 0; }
.err-card p { color: var(--ink-2); font-size: 16px; margin: 12px 0 0; max-width: 50ch; }
.err-card .links { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.err-card .status-line { display: flex; gap: 18px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.err-card .status-line strong { color: var(--ink); }

/* Legal */
.legal { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 32px 64px 64px; position: relative; z-index: 1; }
.legal-side { font-size: 13px; position: sticky; top: 32px; align-self: start; }
.legal-side .group-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.legal-side a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; margin-bottom: 2px; }
.legal-side a.active { background: var(--ink); color: var(--bg); font-weight: 500; }
.legal-side a:hover { background: var(--bg-2); color: var(--ink); }
.legal-main { max-width: 720px; }
.legal-main h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-size: 48px; margin: 0; line-height: 1.05; }
.legal-main .legal-meta { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin: 12px 0 32px; padding-top: 10px; border-top: 1px solid var(--line); }
.legal-main h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin: 32px 0 10px; }
.legal-main p, .legal-main li { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.legal-main ul { padding-left: 20px; margin: 8px 0 16px; }
.legal-main .lead { font-size: 18px; line-height: 1.55; color: var(--ink); margin: 16px 0 24px; max-width: 56ch; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 24px; left: 24px; right: 24px; max-width: 640px; margin: 0 auto; background: var(--ink); color: var(--bg); border-radius: 18px; padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; box-shadow: 0 24px 60px -20px oklch(0.2 0.01 60 / 0.4); z-index: 100; }
.cookie-banner h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin: 0; color: var(--bg); }
.cookie-banner p { font-size: 13px; color: oklch(0.78 0.01 60); margin: 4px 0 0; }
.cookie-banner .cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.cookie-row { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.cookie-row .top { display: flex; align-items: center; justify-content: space-between; }
.cookie-row .name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.cookie-row .desc { color: var(--muted); font-size: 13px; margin-top: 6px; }
.cookie-row.req .top span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }

/* Footer (общий для публичных страниц) */
.site-foot { padding: 56px 64px 32px; position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 64px; }
.site-foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.site-foot-cols .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-foot-cols ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-foot-cols a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.site-foot-cols a:hover { color: var(--ink); }
.site-foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 12px; }

/* === Responsive === */
@media (max-width: 1024px) {
  .promo-nav { margin: 16px 20px 0; padding: 14px 18px; }
  .promo-hero, .promo-section, .hub-hero, .tool-page, .docs-hero { padding-left: 24px; padding-right: 24px; }
  .promo-hero h1 { font-size: 64px; }
  .hub-hero h1 { font-size: 56px; }
  .tool-page-head h1 { font-size: 48px; }
  .promo-hero-grid { grid-template-columns: 1fr; }
  .promo-section-head { grid-template-columns: 1fr; gap: 24px; }
  .tool-page-head { grid-template-columns: 1fr; gap: 16px; }
  .tool-workbench { grid-template-columns: 1fr; }
  .tool-workbench > .pane + .pane { border-left: 0; border-top: 1px solid var(--line); }
  .promo-stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid > [class*="span-"], .tools-grid > [class*="col-"] { grid-column: span 12; }
  .docs-categories { grid-template-columns: 1fr; padding-left: 24px; padding-right: 24px; }
  .doc-article { grid-template-columns: 1fr; padding-left: 24px; padding-right: 24px; gap: 24px; }
  .doc-side, .doc-toc { display: none; }
  .legal { grid-template-columns: 1fr; padding-left: 24px; padding-right: 24px; gap: 24px; }
  .legal-side { display: none; }
  .site-foot { padding-left: 24px; padding-right: 24px; }
  .site-foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .promo-nav-links { display: none; }
  .promo-hero { padding-top: 48px; padding-bottom: 36px; }
  .promo-hero h1 { font-size: 44px; }
  .hub-hero h1 { font-size: 40px; }
  .promo-section { padding-top: 56px; padding-bottom: 56px; }
  .promo-stats { grid-template-columns: 1fr 1fr; }
  .tool-card { min-height: 200px; padding: 22px; }
  .err-card { padding: 32px 24px; }
  .err-num { font-size: 120px; }
  .err-card h1 { font-size: 26px; }
  .legal-main h1 { font-size: 32px; }
  .cookie-banner { grid-template-columns: 1fr; left: 12px; right: 12px; padding: 18px; bottom: 12px; }
  .qr-options { grid-template-columns: repeat(2, 1fr); }
}
