/* glaspro-a — «Наследник референса» · ДНК 02-stalnoy-klinikal · линза minimalist-ui
   Палитра и токены залочены манифестом (§9). Контраст пар посчитан численно (§2). */

/* ---------- Шрифты: self-hosted, кириллица не режется ---------- */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/unbounded-cyrillic-600.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/unbounded-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/unbounded-cyrillic-700.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/unbounded-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Root UI';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ptrootui-400.woff') format('woff');
}
@font-face {
  font-family: 'PT Root UI';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ptrootui-500.woff') format('woff');
}
@font-face {
  font-family: 'PT Root UI';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/ptrootui-700.woff') format('woff');
}

/* ---------- Токены ---------- */
:root {
  --fog: #F3F5F8;       /* фон 60% — холодный off-white */
  --paper: #FFFFFF;     /* поверхности 30% */
  --panel: #E9EDF2;     /* панель-объект «под лампой» */
  --hairline: #DCE2EA;  /* инженерная ось, 1px */
  --graphite: #363636;  /* текст + primary CTA (вордмарк, Tier 1) */
  --graphite-hover: #494949;
  --slate: #5A6472;     /* вторичный текст */
  --blue: #1264D2;      /* акцент: ссылки, kicker, фокус */
  --blue-tint: #E7EFFC; /* подложка pill */
  --amber: #FFB41D;     /* только маркеры-статусов (иконка лого) */
  --shadow-soft: 0 1px 2px rgba(20, 30, 45, 0.06), 0 12px 24px -8px rgba(20, 30, 45, 0.10);
  --font-body: 'PT Root UI', -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  /* шкала ×1.25 от 16 */
  --fs-0: 0.8125rem;  /* 13 kicker */
  --fs-1: 0.875rem;   /* 14 подписи */
  --fs-2: 1.0625rem;  /* 17 body */
  --fs-3: 1.25rem;    /* 20 h3 */
  --fs-4: 1.5625rem;  /* 25 */
  --fs-5: 1.9375rem;  /* 31 */
  --fs-6: 2.4375rem;  /* 39 */
  --fs-7: 3.8125rem;  /* 61 */
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fog);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: var(--fs-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.container {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 245, 248, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}
.logo { display: inline-flex; flex-shrink: 0; }
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 32px;
}
.nav-list {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  color: var(--graphite);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}
.nav-list a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 12px 20px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--graphite);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--graphite-hover); }
.btn-ghost {
  background: transparent;
  color: var(--graphite);
  border-color: #C3CBD6;
}
.btn-ghost:hover { border-color: var(--graphite); }
.btn-lg { padding: 16px 28px; font-size: var(--fs-2); }

/* ---------- Hero: split-object 55/45 + ось ---------- */
.hero { padding-block: 96px 128px; }
.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 64px;
  align-items: center;
}
/* инженерная ось — чертёжный след по оси сплита */
.hero-split::before {
  content: '';
  position: absolute;
  left: calc(55% - 8px);
  top: -32px;
  bottom: -64px;
  width: 1px;
  background: var(--hairline);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 8px 16px;
  background: var(--paper);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(20, 30, 45, 0.06);
  font-size: var(--fs-1);
  font-weight: 500;
  color: var(--graphite);
}
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.hero-copy h1 {
  font-weight: 700;
  font-size: clamp(var(--fs-5), 1.4rem + 2.6vw, var(--fs-7));
  line-height: 1.08;
  max-width: 15ch;
}
.lead {
  margin: 24px 0 32px;
  max-width: 46ch;
  font-size: var(--fs-3);
  line-height: 1.5;
  color: var(--slate);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta {
  margin-top: 48px;
  display: grid;
  gap: 16px;
}
.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  font-size: var(--fs-1);
  color: var(--slate);
}
.meta-icons { width: 132px; }
.stores { gap: 8px; }
.stores a { display: inline-flex; border-radius: 6px; }
.stores img { height: 40px; width: auto; }

.hero-object { min-width: 0; }
.object-panel {
  background: var(--panel);
  border-radius: 10px;
  padding: 48px 40px;
  box-shadow: var(--shadow-soft);
}
.object-panel img { margin-inline: auto; }

/* ---------- Как это работает: шаги на оси ---------- */
.how { padding-block: 96px; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.kicker {
  margin: 0 0 16px;
  font-size: var(--fs-0);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-head h2 {
  font-size: clamp(var(--fs-4), 1.1rem + 1.6vw, var(--fs-6));
}
.steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 96px;
}
/* ось секции — продолжение чертёжной линии */
.steps::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -16px;
  bottom: -16px;
  width: 1px;
  background: var(--hairline);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: center;
}
.step-copy { grid-column: 1; padding-right: 32px; }
.step-num { grid-column: 2; justify-self: center; }
.step-media { grid-column: 3; padding-left: 32px; }
/* чередование стороны оси (сплит-ритм ДНК) */
.step:nth-child(even) .step-copy { grid-column: 3; grid-row: 1; padding: 0 0 0 32px; }
.step:nth-child(even) .step-media { grid-column: 1; grid-row: 1; padding: 0 32px 0 0; }
.step-num span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-3);
  color: var(--graphite);
}
.step h3 {
  margin: 0 0 8px;
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1.3;
}
.step p {
  margin: 0;
  max-width: 42ch;
  color: var(--slate);
}
.step-media img {
  background: var(--panel);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

/* Продукт вживую — документальный кадр (кроп по рамке телефона) */
.how-live {
  margin-top: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: center;
}
.live-copy { grid-column: 1; padding-right: 32px; }
.live-media { grid-column: 3; padding-left: 32px; }
.how-live h3 {
  margin: 0 0 8px;
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1.3;
}
.how-live .live-copy p:not(.kicker) {
  margin: 0;
  max-width: 42ch;
  color: var(--slate);
}
.live-media img {
  width: 280px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Демо / финальный CTA (живой якорь #demo) ---------- */
.demo { padding-block: 96px 128px; }
.demo-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.demo-copy h2 {
  font-size: clamp(var(--fs-4), 1.1rem + 1.6vw, var(--fs-6));
  max-width: 18ch;
}
.demo-copy p {
  margin: 24px 0 32px;
  max-width: 48ch;
  color: var(--slate);
}
.demo-form {
  background: var(--paper);
  border-radius: 10px;
  padding: 40px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 24px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: var(--fs-1);
  font-weight: 500;
}
.field input {
  font: inherit;
  color: var(--graphite);
  background: var(--fog);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 16px;
  width: 100%;
}
.field input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--paper);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-1);
  color: var(--slate);
}
.consent input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.demo-form .btn { justify-self: start; }

/* ---------- Подвал ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 48px;
}
.footer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.footer-meta { margin: 0; font-size: var(--fs-1); }
.footer-meta a { color: var(--slate); }
.footer-meta a:hover { color: var(--blue); }
.footer-meta span { color: var(--slate); margin-inline: 8px; }
.footer-copy { margin: 0; font-size: var(--fs-1); color: var(--slate); }

/* ---------- Движение: ОДНА система reveal (момент ДНК) ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.js .reveal { opacity: 0; }
.js .reveal.is-in {
  animation: rise 240ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; animation: none; }
  .btn, .btn:active { transition: none; transform: none; }
}

/* ---------- Бургер (моб. навигация — часть скетча) ---------- */
.burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.burger-box {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
  margin-inline: auto;
}
.burger-line,
.burger-box::before,
.burger-box::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--graphite);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger-box::before { top: 0; }
.burger-line { top: 6px; }
.burger-box::after { top: 12px; }
.burger[aria-expanded="true"] .burger-box::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-line { opacity: 0; }
.burger[aria-expanded="true"] .burger-box::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Адаптив ---------- */
@media (max-width: 1023px) {
  .burger { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-list { flex-direction: column; gap: 16px; }
  .nav-list a { font-size: var(--fs-2); }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; padding: 16px 20px; }

  .hero { padding-block: 48px 64px; }
  .hero-split { grid-template-columns: 1fr; gap: 48px; }
  .hero-split::before { display: none; }
  .object-panel { padding: 32px 24px; }

  .how { padding-block: 64px; }
  .section-head { margin-bottom: 48px; }
  .steps { gap: 48px; }
  .steps::before { display: none; }
  .step { grid-template-columns: 1fr; gap: 24px; }
  .step-copy,
  .step:nth-child(even) .step-copy { grid-column: 1; grid-row: auto; padding: 0; }
  .step-media,
  .step:nth-child(even) .step-media { grid-column: 1; grid-row: auto; padding: 0; }
  .step-num { display: none; }
  .step h3::before {
    content: counter(step-counter) '. ';
    color: var(--slate);
  }
  .step { counter-increment: step-counter; }
  .steps { counter-reset: step-counter; }
  .how-live { margin-top: 48px; grid-template-columns: 1fr; gap: 24px; }
  .live-copy, .live-media { grid-column: 1; padding: 0; }

  .demo { padding-block: 64px; }
  .demo-split { grid-template-columns: 1fr; gap: 48px; }
  .demo-form { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }

  .footer-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 479px) {
  .cta-row .btn { width: 100%; }
  .stores img { height: 36px; }
}
