/* ==========================================================================
   IVD-STORE · Лендинг платформы — дизайн-система (V1)
   Токены взяты из фирменной дизайн-системы кабинета (index1.css):
   нави #1d3468 (шаг 500), нейтралы с синим подтоном, стеклянные поверхности,
   мягкие многослойные тени, шрифт Onest (самохостинг, полная кириллица).
   Никаких внешних ресурсов: шрифты, иконки и логотип лежат рядом в /assets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Шрифты: Onest, вариативный (100–900), подмножества — как в кабинете
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Токены (светлая тема по умолчанию)
   -------------------------------------------------------------------------- */
:root {
  /* Фирменный тёмно-синий (нави) — RGB 29/52/104 на шаге 500 */
  --brand-50: #edf1f9;
  --brand-100: #d7dff1;
  --brand-200: #aebee6;
  --brand-300: #859ad8;
  --brand-400: #4e6fbc;
  --brand-500: #1d3468;
  --brand-600: #16294e;
  --brand-700: #111f3d;
  --brand-800: #0d182f;
  --brand-900: #0a1223;
  --brand-950: #060a14;

  /* Нейтралы с лёгким синим подтоном — под фирменный нави */
  --gray-25: #f7f9fc;
  --gray-50: #f1f4f9;
  --gray-100: #e6eaf2;
  --gray-200: #d3dae8;
  --gray-300: #b4bfd4;
  --gray-400: #8491ab;
  --gray-500: #5e6b86;
  --gray-600: #46516a;
  --gray-700: #343e54;
  --gray-800: #1f2739;
  --gray-900: #121827;
  --gray-950: #0a0d16;

  /* Поверхности-«стекло» */
  --canvas: #edf1f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --surface-overlay: rgba(255, 255, 255, 0.96);
  --hairline: rgba(18, 24, 39, 0.09);
  --field: rgba(18, 24, 39, 0.045);

  /* Семантика статусов */
  --success-50: #ecfdf3;
  --success-500: #12b76a;
  --success-600: #039855;
  --warning-50: #fffaeb;
  --warning-500: #f79009;
  --warning-600: #dc8017;
  --error-500: #f04438;

  /* Тёмная панель CTA */
  --cta-bg: #16294e;
  --cta-bg-deep: #111f3d;

  /* Многослойные мягкие тени + внутренний верхний свет у стекла */
  --shadow-sm: 0px 1px 2px rgba(16, 24, 40, 0.04), 0px 2px 8px rgba(16, 24, 40, 0.05);
  --shadow-md: 0px 2px 4px rgba(16, 24, 40, 0.04), 0px 6px 20px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0px 4px 10px rgba(16, 24, 40, 0.05), 0px 16px 44px rgba(16, 24, 40, 0.1);
  --shadow-lift: 0px 2px 6px rgba(16, 24, 40, 0.05), 0px 12px 32px -6px rgba(16, 24, 40, 0.13);
  --shadow-brand: 0px 2px 6px rgba(29, 52, 104, 0.28), 0px 6px 20px -4px rgba(29, 52, 104, 0.45);
  --card-highlight: inset 0px 1px 0px rgba(255, 255, 255, 0.65);

  /* Эмбиент канвы: синие радиальные пятна (как в кабинете) */
  --bg-ambient: radial-gradient(52rem 26rem at 12% -8%, rgba(29, 52, 104, 0.1), transparent 62%),
    radial-gradient(44rem 22rem at 105% 2%, rgba(78, 111, 188, 0.07), transparent 60%),
    radial-gradient(40rem 24rem at 50% 118%, rgba(22, 41, 78, 0.05), transparent 60%);

  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --sp-section: clamp(64px, 8vw, 118px);
}

/* Тёмная тема — по системной настройке (как в кабинете) */
@media (prefers-color-scheme: dark) {
  :root {
    --gray-25: #101623;
    --gray-50: #0d131e;
    --gray-100: #1a2231;
    --gray-200: #283244;
    --gray-300: #3d475c;
    --gray-400: #8290a8;
    --gray-500: #99a4bc;
    --gray-600: #b5bfd3;
    --gray-700: #cad1e0;
    --gray-800: #dde2ee;
    --gray-900: #eef1f7;
    --gray-950: #f5f7fb;

    --canvas: #0a0e16;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-strong: rgba(255, 255, 255, 0.066);
    --surface-overlay: #1a2231;
    --hairline: rgba(255, 255, 255, 0.09);
    --field: rgba(255, 255, 255, 0.055);

    /* Нави на тёмном: тинты — полупрозрачные, текстовые тона — светлые */
    --brand-50: rgba(29, 52, 104, 0.18);
    --brand-100: rgba(29, 52, 104, 0.26);
    --brand-200: rgba(29, 52, 104, 0.36);
    --brand-400: #7189cf;
    --brand-500: #5b77c6;
    --brand-600: #8fa5e3;
    --brand-700: #a3b6ea;
    --brand-800: #b9c8ec;

    --success-50: rgba(18, 183, 106, 0.13);
    --success-600: #34d27b;
    --warning-50: rgba(247, 144, 9, 0.13);
    --warning-600: #fdb022;

    --cta-bg: #121e38;
    --cta-bg-deep: #0e1730;

    --shadow-sm: 0px 1px 2px rgba(0, 0, 0, 0.35), 0px 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0px 2px 4px rgba(0, 0, 0, 0.35), 0px 6px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0px 4px 10px rgba(0, 0, 0, 0.4), 0px 16px 44px rgba(0, 0, 0, 0.45);
    --shadow-lift: 0px 2px 6px rgba(0, 0, 0, 0.35), 0px 12px 32px -6px rgba(0, 0, 0, 0.5);
    --shadow-brand: 0px 2px 6px rgba(91, 119, 198, 0.35), 0px 6px 22px -4px rgba(91, 119, 198, 0.5);
    --card-highlight: inset 0px 1px 0px rgba(255, 255, 255, 0.06);

    --bg-ambient: radial-gradient(52rem 26rem at 12% -8%, rgba(91, 119, 198, 0.12), transparent 62%),
      radial-gradient(44rem 22rem at 105% 2%, rgba(91, 119, 198, 0.07), transparent 60%),
      radial-gradient(40rem 24rem at 50% 118%, rgba(70, 94, 158, 0.06), transparent 60%);

    color-scheme: dark;
  }
}

/* --------------------------------------------------------------------------
   3. База
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray-800);
  background-color: var(--canvas);
  background-image: var(--bg-ambient);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--gray-900);
  font-weight: 620;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

/* Иконки наследуют цвет текста: заливка = currentColor */
svg {
  fill: currentColor;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

::selection {
  background: var(--brand-100);
  color: var(--brand-900);
}

@media (prefers-color-scheme: dark) {
  ::selection {
    background: var(--brand-200);
    color: var(--gray-950);
  }
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :focus-visible {
    outline-color: var(--brand-400);
  }
}

section[id],
div[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.top-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. Каркас страницы
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
}

.section {
  padding-block: var(--sp-section);
}

.section--tight {
  padding-block: clamp(40px, 5vw, 72px);
}

/* Заголовок секции: слева — H2, справа — пояснение */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 16px 48px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.section-head .lead {
  margin: 0;
  padding-bottom: 6px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--gray-500);
}

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head .lead {
    padding-bottom: 0;
  }
}

/* Надзаголовок-рубрика: «01 / Возможности» */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.eyebrow .num {
  color: var(--brand-600);
  font-variant-numeric: tabular-nums;
}

@media (prefers-color-scheme: dark) {
  .eyebrow .num {
    color: var(--brand-600);
  }
}

/* --------------------------------------------------------------------------
   5. Кнопки и ссылки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease), filter 0.2s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--sm {
  padding: 10px 16px;
  font-size: 13.5px;
  border-radius: 10px;
}

.btn--xs {
  padding: 7px 13px;
  font-size: 12.5px;
  border-radius: 9px;
}

.btn--primary {
  color: #fff;
  background-image: linear-gradient(
    180deg,
    var(--brand-400) 0%,
    var(--brand-500) 55%,
    color-mix(in srgb, var(--brand-500) 78%, #000) 100%
  );
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px -4px color-mix(in srgb, var(--brand-500) 50%, transparent);
}

.btn--secondary {
  color: var(--gray-700);
  background-color: var(--surface);
  border-color: var(--hairline);
  box-shadow: var(--card-highlight), 0 1px 2px rgba(16, 24, 40, 0.04);
}

.btn--secondary:hover {
  border-color: color-mix(in srgb, var(--gray-500) 35%, transparent);
  background-color: color-mix(in srgb, var(--gray-500) 7%, transparent);
}

.btn--secondary:active {
  transform: translateY(1px);
}

.btn--ghost {
  color: var(--gray-600);
  padding-inline: 14px;
}

.btn--ghost:hover {
  color: var(--gray-900);
  background-color: color-mix(in srgb, var(--gray-500) 7%, transparent);
}

/* Инверсия для тёмной панели CTA */
.btn--inverse {
  /* Фиксированный тёмный тон: кнопка белая в обеих темах, а токен brand-700 в тёмной теме светлеет */
  color: #111f3d;
  background: #fff;
  box-shadow: 0 2px 10px rgba(6, 10, 20, 0.35);
}

.btn--inverse:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.btn--outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
}

.btn--outline-light:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

/* Кнопка-анонс «Скоро»: не кликабельна, с бейджем — ведёт к будущему запуску */
.btn--soon {
  color: var(--gray-700);
  background-color: color-mix(in srgb, var(--gray-500) 7%, transparent);
  border-color: var(--hairline);
  box-shadow: var(--card-highlight), 0 1px 2px rgba(16, 24, 40, 0.03);
  cursor: default;
}

.btn--soon svg {
  color: inherit;
}

.btn--on-dark {
  color: rgba(255, 255, 255, 0.88);
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.badge--soon {
  color: var(--brand-600);
  background: color-mix(in srgb, var(--brand-500) 12%, transparent);
}

.btn--soon .badge--soon {
  flex: none;
  padding: 2px 9px;
}

.btn--on-dark .badge--soon {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

/* На узких экранах анонс-кнопка сжимается: текст переносится, бейдж остаётся */
@media (max-width: 560px) {
  .btn--soon {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
  }
}

.text-link {
  color: var(--brand-600);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand-500) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.text-link:hover {
  text-decoration-color: var(--brand-500);
}

/* --------------------------------------------------------------------------
   6. Шапка
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom-color: var(--hairline);
  box-shadow: 0 6px 24px -12px rgba(16, 24, 40, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--gray-900);
  flex: none;
}

.brand .brand-icon {
  width: 32px;
  height: 32px;
  color: var(--brand-500);
}

@media (prefers-color-scheme: dark) {
  .brand .brand-icon {
    color: var(--brand-600);
  }
}

.brand .brand-word {
  height: 17px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.18s, background-color 0.18s;
}

.nav a:hover {
  color: var(--gray-900);
  background-color: color-mix(in srgb, var(--gray-500) 8%, transparent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* Бургер и мобильная панель */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background-color: var(--surface);
  box-shadow: var(--card-highlight), var(--shadow-sm);
  cursor: pointer;
}

.burger .b1,
.burger .b2 {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--gray-700);
  transition: transform 0.25s var(--ease);
}

.burger .b1 {
  top: 16px;
}

.burger .b2 {
  bottom: 16px;
}

.burger[aria-expanded="true"] .b1 {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] .b2 {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-panel {
  display: none;
}

@media (max-width: 1239px) {
  .header-alt {
    display: none;
  }
}

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .burger {
    display: block;
  }
}

@media (max-width: 560px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 1080px) {
  .site-header.is-open .mobile-panel {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 55;
    flex-direction: column;
    gap: 2px;
    padding: 16px 20px 24px;
    background-color: var(--surface-overlay);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    backdrop-filter: blur(24px) saturate(1.5);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-lg);
  }

  .mobile-panel a:not(.btn) {
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 1px solid var(--hairline);
  }

  .mobile-panel a:not(.btn):hover {
    color: var(--gray-900);
  }

  .mobile-panel .btn {
    margin-top: 16px;
    width: 100%;
    border-bottom: 0;
  }

  .mobile-panel .btn + .btn {
    margin-top: 10px;
  }
}

/* --------------------------------------------------------------------------
   7. Герой
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(36px, 5.5vw, 76px));
  padding-bottom: clamp(60px, 7vw, 100px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(36px, 4.4vw, 64px);
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--card-highlight), var(--shadow-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-600);
}

.hero-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 15%, transparent);
}

@media (prefers-color-scheme: dark) {
  .hero-chip i {
    background: var(--brand-400);
  }
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(32px, 3.9vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.024em;
  font-weight: 640;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.62;
  color: var(--gray-600);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Визуал героя: «рабочий стол кабинета» */
.hero-visual {
  position: relative;
  min-width: 0;
  padding-bottom: 10px;
}

.mock {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background-color: var(--surface-strong);
  box-shadow: var(--card-highlight), var(--shadow-lg);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  overflow: hidden;
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
}

.mock-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

.mock-title svg {
  width: 20px;
  height: 20px;
  color: var(--brand-500);
}

@media (prefers-color-scheme: dark) {
  .mock-title svg {
    color: var(--brand-400);
  }
}

.mock-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--gray-500) 8%, transparent);
}

.mock-tabs span {
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-500);
}

.mock-tabs .is-active {
  background: var(--surface-strong);
  color: var(--gray-800);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}

.mock-rows {
  padding: 3px 0;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12.5px 16px;
}

.mock-row + .mock-row {
  border-top: 1px solid var(--hairline);
}

.mock-name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-qty {
  font-size: 12.5px;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Статусы — реальные статусы кабинета */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.pill--info {
  color: var(--brand-600);
  background: color-mix(in srgb, var(--brand-500) 10%, transparent);
}

@media (prefers-color-scheme: dark) {
  .pill--info {
    color: var(--brand-700);
  }
}

.pill--warn {
  color: var(--warning-600);
  background: color-mix(in srgb, var(--warning-500) 16%, transparent);
}

.pill--ok {
  color: var(--success-600);
  background: color-mix(in srgb, var(--success-500) 13%, transparent);
}

.mock-limit {
  margin: 8px 16px 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand-500) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-500) 14%, transparent);
}

.mock-limit-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-700);
}

.mock-limit-head .num {
  font-weight: 500;
  color: var(--gray-500);
}

.mock-bar {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gray-500) 13%, transparent);
  overflow: hidden;
}

.mock-bar i {
  display: block;
  height: 100%;
  width: 64%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-500));
}

/* Карточка ассистента поверх мокапа */
.mock-asst {
  position: absolute;
  right: -4px;
  bottom: -14px;
  width: min(324px, 90%);
  padding: 14px 15px;
  border-radius: 16px;
  background-color: var(--surface-overlay);
  border: 1px solid var(--hairline);
  box-shadow: var(--card-highlight), var(--shadow-lift);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

.ma-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-800);
}

.ma-head svg {
  width: 18px;
  height: 18px;
  color: var(--brand-500);
}

@media (prefers-color-scheme: dark) {
  .ma-head svg {
    color: var(--brand-400);
  }
}

.ma-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--gray-500);
}

.ma-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning-500);
  animation: pulse-soft 2.4s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(247, 144, 9, 0.4);
  }
  55% {
    box-shadow: 0 0 0 6px rgba(247, 144, 9, 0);
  }
}

.ma-text {
  margin: 9px 0 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gray-600);
}

.ma-actions {
  display: flex;
  gap: 8px;
}

.mock-caption {
  margin: 48px 2px 0;
  font-size: 12px;
  color: var(--gray-500);
  text-align: right;
}

@media (max-width: 1024px) {
  .hero-visual {
    max-width: 640px;
  }

  .mock-caption {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .mock-asst {
    position: static;
    width: auto;
    margin: 2px 12px 14px;
  }

  .mock-caption {
    margin-top: 16px;
  }
}

@media (max-width: 380px) {
  .mock-head {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

/* --------------------------------------------------------------------------
   8. Полоса фактов под героем
   -------------------------------------------------------------------------- */
.facts {
  border-block: 1px solid var(--hairline);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-600);
}

.fact i {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
}

.fact + .fact {
  border-left: 1px solid var(--hairline);
}

@media (max-width: 900px) {
  .facts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fact:nth-child(odd) {
    border-left: 0;
  }

  .fact:nth-child(even) {
    border-left: 1px solid var(--hairline);
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }
}

@media (max-width: 560px) {
  .fact {
    padding: 15px 16px;
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   9. Возможности
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: 18px;
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--card-highlight), var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  backdrop-filter: blur(14px) saturate(1.35);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand-500) 26%, transparent);
  box-shadow: var(--card-highlight), var(--shadow-lift);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-500) 9%, transparent);
  color: var(--brand-600);
}

@media (prefers-color-scheme: dark) {
  .feature-icon {
    color: var(--brand-600);
  }
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--gray-600);
}

/* --------------------------------------------------------------------------
   10. AI-ассистент
   -------------------------------------------------------------------------- */
.asst-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(26px, 4.4vw, 60px);
  border-radius: 28px;
  border: 1px solid var(--hairline);
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--brand-500) 5%, transparent), transparent 42%);
  background-color: var(--surface);
  box-shadow: var(--card-highlight), var(--shadow-md);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.asst-stage::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -46%;
  width: 60%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-500) 10%, transparent), transparent);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .asst-stage {
    grid-template-columns: 1fr;
  }
}

.asst-copy h2 {
  margin: 12px 0 16px;
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.022em;
}

.asst-copy > p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.64;
  color: var(--gray-600);
  max-width: 34rem;
}

.check-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-700);
}

.check-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--brand-500);
}

@media (prefers-color-scheme: dark) {
  .check-list svg {
    color: var(--brand-600);
  }
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--gray-500) 6%, transparent);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-600);
}

.asst-copy .btn {
  margin-top: 24px;
}

/* Мокап диалога */
.chat {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 540px;
  justify-self: end;
}

@media (max-width: 1024px) {
  .chat {
    justify-self: start;
  }
}

.chat-msg {
  max-width: 84%;
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.52;
  box-shadow: var(--shadow-sm);
}

.chat-msg--user {
  justify-self: end;
  color: #fff;
  background-image: linear-gradient(180deg, var(--brand-400) 0%, var(--brand-500) 100%);
  border-bottom-right-radius: 6px;
}

.chat-msg--bot {
  justify-self: start;
  color: var(--gray-600);
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  border-bottom-left-radius: 6px;
}

.chat-msg--bot b {
  color: var(--gray-900);
  font-weight: 600;
}

.chat-card {
  justify-self: start;
  width: min(84%, 380px);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--brand-500) 22%, transparent);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.chat-card-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
}

.chat-card-title .num {
  color: var(--gray-500);
  font-weight: 500;
}

.chat-card-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--gray-500);
}

.chat-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

.chat-caption {
  margin: 6px 2px 0;
  font-size: 12px;
  color: var(--gray-500);
}

/* --------------------------------------------------------------------------
   11. Кабинеты (переходы в ЛК)
   -------------------------------------------------------------------------- */
.cabinets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .cabinets-grid {
    grid-template-columns: 1fr;
  }
}

.cabinet-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 22px;
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--card-highlight), var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  backdrop-filter: blur(14px) saturate(1.35);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.cabinet-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-highlight), var(--shadow-lift);
}

.cabinet-card--featured {
  border-color: color-mix(in srgb, var(--brand-500) 30%, transparent);
  box-shadow: var(--card-highlight), var(--shadow-md);
}

.cabinet-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.cabinet-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--brand-500) 10%, transparent);
  color: var(--brand-600);
}

.cabinet-icon svg {
  width: 22px;
  height: 22px;
}

.cabinet-title {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.012em;
  color: var(--gray-900);
}

.badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge--brand {
  color: var(--brand-600);
  background: color-mix(in srgb, var(--brand-500) 11%, transparent);
}

@media (prefers-color-scheme: dark) {
  .badge--brand {
    color: var(--brand-700);
  }
}

.badge--muted {
  color: var(--gray-500);
  background: color-mix(in srgb, var(--gray-500) 9%, transparent);
}

.cabinet-text {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--gray-600);
}

.dot-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.dot-list li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gray-700);
}

.dot-list i {
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--brand-400);
}

.cabinet-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cabinet-url {
  font-size: 12px;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}

.cabinets-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray-500);
}

.cabinets-note svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--brand-500);
}

@media (prefers-color-scheme: dark) {
  .cabinets-note svg {
    color: var(--brand-400);
  }
}

/* --------------------------------------------------------------------------
   12. Как начать
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 22px;
}

@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.step {
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.step-num {
  font-size: 34px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--brand-300);
  font-variant-numeric: tabular-nums;
}

@media (prefers-color-scheme: dark) {
  .step-num {
    color: var(--brand-400);
  }
}

.step h3 {
  margin: 10px 0 8px;
  font-size: 16.5px;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--gray-600);
  max-width: 30rem;
}

/* --------------------------------------------------------------------------
   13. Вопросы (FAQ)
   -------------------------------------------------------------------------- */
.faq {
  max-width: 800px;
}

.faq-item {
  border-top: 1px solid var(--hairline);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 2px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.006em;
  color: var(--gray-800);
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--gray-900);
}

.faq-icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--gray-500);
  transition: transform 0.3s var(--ease), color 0.3s;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--brand-500);
}

.faq-body {
  padding: 0 44px 22px 2px;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--gray-600);
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   14. CTA-панель
   -------------------------------------------------------------------------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 64px);
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background-image: linear-gradient(180deg, var(--cta-bg) 0%, var(--cta-bg-deep) 100%);
  box-shadow: var(--shadow-lg), var(--card-highlight);
}

.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-panel::before {
  top: -42%;
  left: -8%;
  width: 46%;
  height: 110%;
  background: radial-gradient(closest-side, rgba(110, 140, 210, 0.22), transparent);
}

.cta-panel::after {
  right: -10%;
  bottom: -48%;
  width: 52%;
  height: 110%;
  background: radial-gradient(closest-side, rgba(70, 94, 158, 0.26), transparent);
}

.cta-panel > * {
  position: relative;
}

.cta-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: #fff;
}

.cta-panel p {
  margin: 0 auto 28px;
  max-width: 54ch;
  font-size: 15.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.78);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-note {
  margin: 30px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
}

.cta-note a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-note a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   15. Подвал
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--sp-section);
  padding: 56px 0 28px;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.1fr 1fr 1.2fr;
  gap: 36px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-tagline {
  margin: 0;
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray-500);
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.18s;
}

.footer-col a:hover {
  color: var(--gray-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col .muted {
  font-size: 13px;
  color: var(--gray-500);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--gray-500);
}

.footer-bottom a {
  color: var(--gray-500);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--gray-900);
}

/* --------------------------------------------------------------------------
   16. Появление блоков при скролле
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .d1 {
  transition-delay: 0.06s;
}

.js .d2 {
  transition-delay: 0.12s;
}

.js .d3 {
  transition-delay: 0.18s;
}

.js .d4 {
  transition-delay: 0.24s;
}

.js .d5 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   17. Печать
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .burger,
  .mobile-panel {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
