/* Токены и общие компоненты. Источник правды: docs/design.md */
:root {
  --bg: #101615;
  --ink: #F2EFE9;
  --muted: #97A19E;
  --line: #24302D;
  --accent: #D6A35C;
  --light: #A8E6DC;
  --surface: #17201E;
  --paper-ink: #1A1F1E;
  --paper-muted: #5E6664;
  --paper-line: #D9D4CA;
  --brass-ink: #8A6227;

  --font-display: "Geologica", "Golos Text", sans-serif;
  --font-text: "Golos Text", sans-serif;

  --ease-in: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-state: cubic-bezier(0.4, 0, 0.2, 1);

  --gutter: clamp(20px, 4vw, 64px);
  --tile: 64px;
  --r-btn: 10px;
  --r-card: 18px;
}
@media (min-width: 960px) { :root { --tile: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(1280px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Тёмная плитка: швы сеткой */
.tiles {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--tile) var(--tile);
}

/* Шапка */
.top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo span { font-weight: 300; font-variation-settings: "slnt" -10, "CRSV" 1, "SHRP" 100; color: var(--muted); }
.nav { display: none; gap: 32px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .16s var(--ease-state); }
.nav a:hover { color: var(--ink); }
.top .btn { height: 40px; padding: 0 14px; font-size: 14px; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .top .btn { height: 44px; padding: 0 18px; font-size: 15px; }
}

/* Плашка */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 22, 21, .6);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  margin: 0;
}
.chip::before {
  content: "";
  flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--light);
  box-shadow: 0 0 10px rgba(168, 230, 220, .6);
}
@media (min-width: 960px) { .chip { font-size: 14px; } }

/* Заголовок */
.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}
.h1 em {
  font-style: normal;
  font-weight: 300;
  font-variation-settings: "slnt" -10, "CRSV" 1, "SHRP" 100;
}
.lead {
  color: var(--muted);
  font-size: clamp(17px, 0.4vw + 15.5px, 21px);
  line-height: 1.45;
  max-width: 32em;
  margin: 0;
}

/* Кнопки */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 28px;
  border-radius: var(--r-btn);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .16s var(--ease-state), border-color .16s var(--ease-state), background-color .16s var(--ease-state);
}
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn:active { transform: scale(.98); }
.btn-main { background: var(--accent); color: var(--bg); overflow: hidden; isolation: isolate; }
.btn-main::after {
  content: "";
  position: absolute;
  inset: -2px auto -2px 0;
  width: 55%;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 231, 191, .8) 50%, transparent 85%);
  transform: translateX(-120%) skewX(-18deg);
  z-index: -1;
  pointer-events: none;
}
.btn-main:hover::after { animation: glint .6s var(--ease-state); }
@keyframes glint { to { transform: translateX(260%) skewX(-18deg); } }
.btn-main .btn-in { display: inline-block; transition: transform .2s var(--ease-state); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(16, 22, 21, .5); }
.btn-ghost:hover { border-color: var(--muted); }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions .btn { width: 100%; }
@media (min-width: 640px) {
  .actions { flex-direction: row; gap: 12px; }
  .actions .btn { width: auto; }
}

/* Цифры доверия */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.facts li { padding-top: 12px; border-top: 1px solid var(--line); }
.facts b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 1.6vw + 20px, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.facts span { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 6px; }
@media (min-width: 960px) { .facts span { font-size: 14px; } }

/* Появление */
.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease-in), transform .7s var(--ease-in); }
.js [data-lines] { visibility: hidden; }
.js [data-lines].is-split { visibility: visible; }
.line-mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line-inner { display: block; transform: translateY(110%); }
.is-split.is-in .line-inner { transform: none; transition: transform .7s var(--ease-in); transition-delay: calc(var(--i) * 110ms); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .line-inner { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn-main:hover::after { animation: none; }
}
