/* ANTY — токены из frontend/ANTY UI Kit.dc.html (правило 6). Тёмная тема, 0 внешних CDN. */

@font-face {
  font-family: 'Onest';
  src: url('fonts/Onest-Variable.ttf') format('truetype-variations');
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Variable.ttf') format('truetype-variations');
  font-weight: 100 800; font-display: swap;
}

:root {
  --canvas: #0A0A0C;
  --surface: #0E0E10;
  --elevated: #18181B;
  --card: #131315;
  --text: #F3F2F0;
  --ink: #141414;
  --sage: #BAD8D0;
  --coral: #EF938B;
  --lilac: #D4BEE8;
  --paper: #F3F2F0;
  --line: rgba(243, 242, 240, .08);
  --r-card: 40px;
  --r-chip: 24px;
  --r-pill: 999px;
  --measure: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }
.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(243, 242, 240, .34);
}

/* шапка */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 12, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo {
  font-family: 'JetBrains Mono', monospace; font-weight: 600;
  font-size: 15px; letter-spacing: .36em; text-decoration: none;
}
nav { display: flex; gap: 24px; margin-left: auto; }
nav a {
  font-size: 14px; text-decoration: none; color: rgba(243, 242, 240, .55);
  transition: color .18s;
}
nav a:hover { color: var(--text); }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: var(--r-pill);
  background: var(--sage); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 15px; border: 0; cursor: pointer;
  transition: opacity .18s;
}
.btn:hover { opacity: .88; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid rgba(243, 242, 240, .18);
}

/* секции */
section { padding: 96px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 19px; letter-spacing: -.01em; }
.lede { font-size: clamp(17px, 2vw, 20px); color: rgba(243, 242, 240, .62); max-width: 66ch; }
.dim { color: rgba(243, 242, 240, .52); }
.accent-sage { color: var(--sage); }
.accent-lilac { color: var(--lilac); }
.accent-coral { color: var(--coral); }

/* hero */
.hero { padding: 104px 0 88px; }
.hero h1 { margin: 20px 0 22px; max-width: 15ch; }
.hero .lede { margin-bottom: 34px; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.note { font-size: 13px; color: rgba(243, 242, 240, .4); }

/* карточки */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-chip); padding: 26px;
}
.card h3 { margin-bottom: 9px; }
.card p { margin: 0; font-size: 15px; color: rgba(243, 242, 240, .58); }

/* зоны: правило заливки — залита ТОЛЬКО белая комната */
.zone { position: relative; }
.zone .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 9px; }
.zone .label {
  display: flex; align-items: center; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(243, 242, 240, .42); margin-bottom: 14px;
}
.zone-white { background: var(--paper); border-color: var(--paper); }
.zone-white h3, .zone-white .label { color: var(--ink); }
.zone-white .label { color: rgba(20, 20, 20, .5); }
.zone-white p { color: rgba(20, 20, 20, .62); }

/* шаги */
.step { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step .n {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em;
  color: rgba(243, 242, 240, .32); min-width: 96px; padding-top: 3px; text-transform: uppercase;
}
.step .body { flex: 1; }
.step p { margin: 6px 0 0; font-size: 15px; color: rgba(243, 242, 240, .58); }

/* сравнение движков */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs .old { opacity: .72; }
.vs .old h3 { color: rgba(243, 242, 240, .6); }

/* финальный призыв */
.final { text-align: center; }
.final h2 { margin-bottom: 16px; }
.final .lede { margin: 0 auto 30px; }
.final .cta-row { justify-content: center; }

footer { padding: 44px 0 64px; border-top: 1px solid var(--line); }
.foot { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.foot a { font-size: 14px; color: rgba(243, 242, 240, .5); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .spacer { margin-left: auto; }

/* документ (политика приватности) */
.doc { max-width: 74ch; padding: 72px 0 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 12px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc p, .doc li { color: rgba(243, 242, 240, .72); font-size: 16px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .vs { grid-template-columns: 1fr; }
  nav { display: none; }
  section { padding: 68px 0; }
}
@media (max-width: 560px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 6px; }
  .step .n { min-width: 0; }
}


/* Двуязычность: показываем один язык, второй скрыт. Дефолт до скрипта — русский. */
.en { display: none; }
html[data-lang="en"] .en { display: inline; }
html[data-lang="en"] .ru { display: none; }
html[data-lang="en"] p .en, html[data-lang="en"] div .en { display: inline; }

.lang {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.lang button {
  background: none; border: 0; cursor: pointer; padding: 6px 8px; border-radius: 999px;
  font: inherit; letter-spacing: inherit; color: rgba(243,242,240,.42);
}
.lang button[aria-pressed="true"] { color: #141414; background: #BAD8D0; }


/* Экраны приложения: настоящие снимки в рамке телефона. */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 34px); }
.phone {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 34px;
  overflow: hidden;
  background: #0A0A0C;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
}
.phone img { display: block; width: 100%; height: auto; }
.phone-cap {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(243,242,240,.34); margin-top: 12px; text-align: center;
}
@media (max-width: 760px) { .screens { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; } }

.phone .ru, .phone .en { display: none; }
html[data-lang="ru"] .phone .ru { display: block; }
html[data-lang="en"] .phone .en { display: block; }


/* Буллеты оффера */
.bullets { list-style: none; padding: 0; margin: 0 auto 30px; max-width: 44ch; text-align: left; }
.bullets li {
  position: relative; padding-left: 26px; margin: 12px 0;
  font-size: 16px; color: rgba(243,242,240,.82); line-height: 1.5;
}
.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 7px; height: 7px; border-radius: 999px; background: var(--sage);
}
