/* База: сброс, типографика, кнопки, шапка, подвал, подача при прокрутке. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 17px; line-height: 1.6; font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { touch-action: manipulation; }
::selection { background: var(--acc-soft); color: var(--fg); }
[data-theme="night"] { background: var(--bg); color: var(--fg); }

.wrap { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* фокус: только с клавиатуры, тонкое кольцо */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: var(--r-1); }

/* ── типографика ── */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3);
}
.kicker b { font-weight: 500; color: var(--acc); }
.kicker::after { content: ""; width: 32px; height: 1px; background: var(--line-3); }
.kicker--plain::after { display: none; }
.display { font-size: clamp(44px, 6.2vw, 92px); line-height: 0.98; font-weight: 650; letter-spacing: -0.045em; text-wrap: balance; }
.display__dim { color: var(--fg-3); }
.display__l1 { display: block; }
@media (min-width: 1000px) { .display__l1 { white-space: nowrap; } }
.h2 { font-size: clamp(34px, 4.8vw, 64px); line-height: 1.02; font-weight: 650; letter-spacing: -0.038em; text-wrap: balance; }
.h3 { font-size: 21px; line-height: 1.25; font-weight: 650; letter-spacing: -0.018em; }
.lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--fg-2); text-wrap: pretty; max-width: 36em; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0.04em; }
.cap { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }

/* ── кнопки: прямоугольные ── */
.btn {
  --b-bg: var(--acc); --b-fg: #fff; --b-line: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-2);
  background: var(--b-bg); color: var(--b-fg); box-shadow: inset 0 0 0 1px var(--b-line);
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease);
}
.btn__arr { display: inline-block; flex: none; width: 14px; height: 14px; transition: transform 0.35s var(--ease); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--ink { --b-bg: var(--fg); --b-fg: var(--bg); }
.btn--line { --b-bg: transparent; --b-fg: var(--fg); --b-line: var(--line-2); }
[data-theme="night"] .btn--primary { --b-bg: #ffffff; --b-fg: var(--night); }
@media (hover: hover) {
  .btn:hover { --b-bg: var(--acc-ink); }
  .btn--ink:hover { --b-bg: var(--acc); --b-fg: #fff; }
  .btn--line:hover { --b-bg: var(--bg-2); --b-line: var(--line-3); }
  [data-theme="night"] .btn--primary:hover { --b-bg: #e4e2ff; }
  [data-theme="night"] .btn--line:hover { --b-bg: rgb(255 255 255 / 6%); }
  .btn:hover .btn__arr { transform: translateX(4px); }
  .btn--down:hover .btn__arr { transform: translateY(3px); }
}
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ── шапка: строгая полоса ── */
.nav {
  position: fixed; z-index: 50; inset: 0 0 auto 0; height: var(--nav-h); color: var(--ink);
  background: rgb(246 247 249 / 80%);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 -1px 0 rgb(11 12 16 / 8%);
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), color 0.45s var(--ease);
}
.nav__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font-weight: 650; font-size: 16px; letter-spacing: -0.02em; }
.nav__brand img { width: 26px; height: 25px; }
.nav__links { display: none; align-items: center; gap: 2px; }
.nav__links a {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 12px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: rgb(11 12 16 / 60%); transition: color var(--dur-ui) var(--ease);
}
.nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s var(--ease); }
@media (hover: hover) { .nav__links a:hover { color: var(--ink); } }
.nav__links a.is-active, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a.is-active::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { --b-bg: var(--ink); --b-fg: #fff; }
@media (hover: hover) { .nav .btn:hover { --b-bg: var(--indigo); } }
.nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--indigo); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.nav.is-night { background: rgb(11 12 16 / 72%); box-shadow: inset 0 -1px 0 rgb(255 255 255 / 8%); color: #f3f4f7; }
.nav.is-night .nav__links a { color: rgb(243 244 247 / 58%); }
.nav.is-night .nav__links a.is-active, .nav.is-night .nav__links a[aria-current="page"] { color: #f3f4f7; }
@media (hover: hover) { .nav.is-night .nav__links a:hover { color: #f3f4f7; } }
.nav.is-night .btn { --b-bg: #ffffff; --b-fg: var(--night); }
@media (hover: hover) { .nav.is-night .btn:hover { --b-bg: #e4e2ff; } }
.nav.is-night .nav__progress { background: var(--night-indigo); }
@media (min-width: 1040px) { .nav__links { display: flex; } }

/* ── подача при прокрутке ── */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-in) var(--ease), transform var(--dur-in) var(--ease); }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ── подвал ── */
.foot { position: relative; padding: 72px 0 36px; border-top: 1px solid var(--line); background: var(--bg); }
.foot__grid { display: grid; gap: 40px; }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; font-size: 17px; }
.foot__brand img { width: 26px; height: 25px; }
.foot__tag { margin-top: 14px; max-width: 22em; color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.foot__col h4 { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.foot__col a { display: block; width: fit-content; padding: 5px 0; font-size: 15px; color: var(--fg-2); text-decoration: none; transition: color var(--dur-ui) var(--ease); }
@media (hover: hover) { .foot__col a:hover { color: var(--fg); } }
.foot__note { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13.5px; color: var(--fg-3); }
@media (min-width: 860px) { .foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
