/* Общая основа блоков главной Rewind (единый стиль): токены, заголовки, кнопки, шапка. Блок-варианты подключают её и не переопределяют. */
:root {
  color-scheme: dark;
  --bg: #0a0b0e; --s1: #101217; --s2: #181b22; --line: #22262f; --line-hi: #2e3441;
  --t1: #eaedf3; --t2: #a6adbb; --t3: #8a92a4;
  --accent: #7c50f9; --accent-hi: #a281ff; --on-accent: #fff;
  --ui: "Onest", "Segoe UI", system-ui, sans-serif; --mono: "Martian Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px; --gut: 32px; --r: 14px;
  --sec: clamp(72px, 10vw, 140px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--t1); font: 400 18px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; } ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: none; margin: 0; padding: 0 clamp(24px, 6vw, 200px); }
.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--accent); padding: 8px 12px; border-radius: 8px; }

/* ── заголовки: один стиль на всю страницу ── */
h1 { font-size: clamp(44px, 6.2vw, 88px); line-height: 1.02; letter-spacing: -.04em; font-weight: 650; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -.03em; font-weight: 640; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }
.lead { color: var(--t2); font-size: clamp(17px, 1.5vw, 20px); max-width: 34em; text-wrap: pretty; }
.meta { color: var(--t3); font-size: 14px; }

/* ── кнопки ── */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: 600 15px/1 var(--ui);
  transition: transform .25s var(--ease), background .2s, box-shadow .25s var(--ease); }
.btn .ic { font-size: 18px; }
.btn:hover { background: #8d63ff; transform: translateY(-2px);  }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; } .btn-lg { height: 56px; padding: 0 28px; font-size: 17px; border-radius: 12px; }
.cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ── шапка ── */
.top { position: sticky; top: 0; z-index: 30; background: #0a0b0ecc;  border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -.01em; }
.mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #fff; font-size: 17px; background: linear-gradient(180deg, var(--accent-hi), var(--accent)); box-shadow: 0 3px 0 #1c0d4f; }
.nav { display: flex; gap: 4px; margin-left: auto; margin-right: 8px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--t2); font-size: 15px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--t1); background: var(--s2); }


@media (max-width: 900px) { .nav { display: none; } .bar { gap: 16px; } .btn-sm { margin-left: auto; } }
