/* ==========================================================================
   Lotsman Analytics — сайт компании.
   Бренд-гайд 1.0: Ночь / Песок / Янтарь; статусы Курс / Янтарь / Риф.
   Янтаря не больше 10 % экрана, янтарного текста на светлом фоне нет.
   Светлая и тёмная тема, без горизонтальной прокрутки на 390 px.
   ========================================================================== */

/* ---------- Шрифты (свои файлы, без внешних запросов) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-cyrillic-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  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;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/montserrat-cyrillic-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/montserrat-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2-variations");
  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: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/montserrat-latin-wght-normal.woff2) format("woff2-variations");
  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;
}

/* ---------- Токены ---------- */
:root {
  --night: #0b2a4a;
  --deep: #071c33;
  --amber: #f2a33a;
  --amber-hover: #f5b458;
  --sand: #f5f1e8;
  --slate: #5b6b7c;
  --course: #3e9e7e;
  --reef: #d8553f;
  --on-dark: #f5f1e8;
  --on-dark-2: #c3ceda;
  --on-dark-line: rgba(245, 241, 232, 0.12);

  --bg: #f5f1e8;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --ink: #0b2a4a;
  --ink-2: #2b4460;
  --muted: #5b6b7c;
  --line: #e4ddd0;
  --line-strong: #d3cab9;
  --soft: #efe9dd;
  --ok-bg: rgba(62, 158, 126, 0.12);
  --ok-ink: #22795d;
  --warn-bg: rgba(242, 163, 58, 0.16);
  --warn-ink: #0b2a4a;
  --bad-bg: rgba(216, 85, 63, 0.12);
  --bad-ink: #b63c28;
  --shadow: 0 1px 2px rgba(7, 28, 51, 0.05), 0 6px 20px rgba(7, 28, 51, 0.06);
  --shadow-lg: 0 18px 50px rgba(7, 28, 51, 0.22);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --wrap: 1160px;
  --gutter: 16px;

  --display: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061729;
    --surface: #0c2644;
    --surface-2: #0a2240;
    --ink: #f5f1e8;
    --ink-2: #d9dfe6;
    --muted: #a3b1c0;
    --line: #1b3a5c;
    --line-strong: #27496f;
    --soft: #0a2240;
    --ok-bg: rgba(62, 158, 126, 0.2);
    --ok-ink: #7fd3b4;
    --warn-bg: rgba(242, 163, 58, 0.18);
    --warn-ink: #f7c580;
    --bad-bg: rgba(216, 85, 63, 0.22);
    --bad-ink: #ff9d8a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #061729;
  --surface: #0c2644;
  --surface-2: #0a2240;
  --ink: #f5f1e8;
  --ink-2: #d9dfe6;
  --muted: #a3b1c0;
  --line: #1b3a5c;
  --line-strong: #27496f;
  --soft: #0a2240;
  --ok-bg: rgba(62, 158, 126, 0.2);
  --ok-ink: #7fd3b4;
  --warn-bg: rgba(242, 163, 58, 0.18);
  --warn-ink: #f7c580;
  --bad-bg: rgba(216, 85, 63, 0.22);
  --bad-ink: #ff9d8a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

/* ---------- База ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0 0 12px;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}
img,
svg {
  max-width: 100%;
}
ul {
  margin: 0;
  padding: 0;
}
.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nowrap {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--amber);
  color: var(--deep);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  flex: none;
}
/* Янтарная кнопка — главное действие; текст тёмный, не янтарный. */
.btn-primary {
  background: var(--amber);
  color: var(--deep);
}
.btn-primary:hover {
  background: var(--amber-hover);
}
.btn-ghost {
  border-color: var(--on-dark-line);
  color: var(--on-dark);
  background: rgba(245, 241, 232, 0.04);
}
.btn-ghost:hover {
  border-color: rgba(245, 241, 232, 0.4);
}
.btn-line {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-line:hover {
  border-color: var(--ink);
}
.btn-night {
  background: var(--night);
  color: var(--sand);
}
.btn-night:hover {
  background: var(--deep);
}
:root[data-theme="dark"] .btn-night {
  background: var(--sand);
  color: var(--night);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-night {
    background: var(--sand);
    color: var(--night);
  }
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 28, 51, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--on-dark-line);
  color: var(--on-dark);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-family: var(--text);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-top: 1px;
}
.nav {
  display: none;
}
.nav a {
  color: var(--on-dark-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 2px;
}
.nav a:hover {
  color: var(--on-dark);
}
.header-cta {
  display: none;
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--on-dark-line);
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--on-dark-line);
  padding: 8px var(--gutter) 20px;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav a:not(.btn) {
  display: block;
  padding: 13px 0;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--on-dark-line);
}
.mobile-nav .btn {
  width: 100%;
  margin-top: 16px;
}
@media (min-width: 1000px) {
  .nav {
    display: flex;
    gap: 26px;
  }
  .header-cta {
    display: inline-flex;
    min-height: 42px;
    padding: 9px 18px;
    font-size: 15px;
  }
  .menu-btn,
  .mobile-nav,
  .mobile-nav.open {
    display: none;
  }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, #123a63 0%, var(--night) 45%, var(--deep) 100%);
  color: var(--on-dark);
  padding: 44px 0 56px;
}
.ray {
  position: absolute;
  pointer-events: none;
  height: auto;
}
/* Луч маяка идёт из нижнего левого угла первого экрана вверх-вправо. */
.hero > .ray {
  left: 0;
  bottom: 0;
  width: max(1200px, 100%);
  opacity: 0.55;
}
.hero .wrap {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.hero .eyebrow {
  color: var(--amber);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.hero h1 {
  font-size: clamp(31px, 7.6vw, 54px);
  font-weight: 700;
  color: var(--on-dark);
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}
.hero .lead {
  margin: 18px 0 0;
  font-size: clamp(16.5px, 2.2vw, 19px);
  color: var(--on-dark-2);
  max-width: 600px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-actions .btn {
  flex: 1 1 240px;
}
@media (min-width: 560px) {
  .hero-actions .btn {
    flex: 0 0 auto;
  }
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  max-width: 600px;
}
.facts li {
  border-left: 2px solid var(--on-dark-line);
  padding: 2px 0 2px 12px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--on-dark-2);
}
.facts b {
  display: block;
  font-family: var(--display);
  font-size: clamp(19px, 4.2vw, 24px);
  color: var(--on-dark);
  margin-bottom: 2px;
}
@media (min-width: 980px) {
  .hero {
    padding: 72px 0 88px;
  }
  .hero .wrap {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
  }
}

/* Карточка «пример отчёта» на первом экране */
.report {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  border: 1px solid var(--line);
  max-width: 480px;
  width: 100%;
  justify-self: center;
}
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.report-head h2 {
  font-size: 17px;
}
.report-head p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  white-space: nowrap;
}
.report-list {
  list-style: none;
}
.report-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.report-list .n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.report-list .what {
  min-width: 0;
  line-height: 1.3;
}
.report-list .what small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill.ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
}
.pill.warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.pill.warn::before {
  background: var(--amber);
}
.pill.bad {
  background: var(--bad-bg);
  color: var(--bad-ink);
}
.report-sum {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}
.report-sum b {
  font-family: var(--display);
}
.report-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Секции ---------- */
.section {
  padding: 64px 0;
}
.section.alt {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
}
.section-head p {
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--ink-2);
}
@media (min-width: 900px) {
  .section {
    padding: 96px 0;
  }
  .section-head {
    margin-bottom: 44px;
  }
}

.grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.card p {
  color: var(--ink-2);
  margin: 0;
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--night);
  color: var(--sand);
  margin-bottom: 16px;
}
:root[data-theme="dark"] .icon {
  background: var(--soft);
  border: 1px solid var(--line-strong);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon {
    background: var(--soft);
    border: 1px solid var(--line-strong);
  }
}

/* Проблемы */
.pain .card {
  border-left: 3px solid var(--reef);
}
.pain .card h3 {
  font-size: 17px;
}

/* Бесплатная проверка */
.offer {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .offer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.offer .card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.offer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.offer-top h3 {
  font-size: 21px;
  margin: 4px 0 0;
}
.who {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
}
.price-tag small {
  display: block;
  margin-top: 6px;
  font-family: var(--text);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-align: right;
}
.checks {
  list-style: none;
  display: grid;
  gap: 9px;
}
.checks li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
  line-height: 1.45;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ok-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%233e9e7e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.result {
  margin-top: 16px;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.result h3 {
  font-size: 20px;
  color: var(--on-dark);
}
.result p {
  color: var(--on-dark-2);
  margin: 8px 0 0;
}
.result ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: r;
}
.result ol li {
  counter-increment: r;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--on-dark);
}
.result ol li::before {
  content: counter(r);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 163, 58, 0.55);
  color: var(--amber);
  font-weight: 700;
  font-size: 14px;
}
.result .btn {
  justify-self: start;
}
:root[data-theme="dark"] .result {
  border: 1px solid var(--line-strong);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .result {
    border: 1px solid var(--line-strong);
  }
}
@media (min-width: 900px) {
  .result {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: 32px;
  }
}
.fit {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  color: var(--ink-2);
  font-size: 15px;
}
.fit b {
  color: var(--ink);
}

/* Что внедряем */
.feature-list .card {
  display: flex;
  flex-direction: column;
}

/* Процесс */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: s;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 26px;
}
.step:last-child {
  padding-bottom: 0;
}
.step::before {
  counter-increment: s;
  content: counter(s);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--night);
  color: var(--sand);
  font-family: var(--display);
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.step::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--line-strong);
}
.step:last-child::after {
  display: none;
}
.step .when {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2px 0 4px;
}
.step h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.step p {
  margin: 0;
  color: var(--ink-2);
}
:root[data-theme="dark"] .step::before {
  background: var(--sand);
  color: var(--night);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .step::before {
    background: var(--sand);
    color: var(--night);
  }
}
@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
    row-gap: 8px;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
  }
  .step:nth-child(4)::after {
    display: none;
  }
}

/* Тарифы */
.plans {
  display: grid;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 980px) {
  .plans {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  }
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.plan h3 {
  font-size: 22px;
}
.plan .sub {
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
}
.plan .price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.plan .price small {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}
.plan .terms {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}
.plan .checks {
  flex: 1;
  align-content: start;
}
.plan .limits {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.plan .btn {
  width: 100%;
}
.plan.featured {
  background: var(--night);
  color: var(--on-dark);
  border-color: var(--night);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.plan.featured h3,
.plan.featured .price {
  color: var(--on-dark);
}
.plan.featured .sub,
.plan.featured .terms,
.plan.featured .limits {
  color: var(--on-dark-2);
}
.plan.featured .limits {
  border-top-color: var(--on-dark-line);
}
.plan.featured .checks li {
  color: var(--on-dark);
}
.plan.featured .checks li::before {
  background-color: rgba(62, 158, 126, 0.25);
}
.badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--deep);
}
.plan .ray {
  right: -80px;
  top: -60px;
  width: 360px;
  opacity: 0.55;
}
.plan > *:not(.ray) {
  position: relative;
}
:root[data-theme="dark"] .plan.featured {
  background: #0f3358;
  border-color: #27496f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plan.featured {
    background: #0f3358;
    border-color: #27496f;
  }
}
.plans-note {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--muted);
}
.plans-note p {
  margin: 0;
}

/* Гарантии */
.guarantee {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.guarantee .icon {
  margin: 0;
  background: var(--ok-bg);
  color: var(--ok-ink);
  border: 0;
}
:root[data-theme="dark"] .guarantee .icon {
  background: var(--ok-bg);
  border: 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .guarantee .icon {
    background: var(--ok-bg);
    border: 0;
  }
}
.muted-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Ниши */
.niches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.niches li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 15.5px;
}
.niches li svg {
  color: var(--muted);
}

/* Принципы */
.principles .card {
  background: transparent;
  box-shadow: none;
}

/* Вопросы */
.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%235b6b7c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--ink-2);
  padding-bottom: 6px;
}

/* Финальный призыв */
.cta {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, #123a63 0%, var(--night) 50%, var(--deep) 100%);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
}
.cta .ray {
  right: -60px;
  top: -40px;
  width: 520px;
}
.cta > *:not(.ray) {
  position: relative;
}
.cta h2 {
  font-size: clamp(26px, 5vw, 38px);
  color: var(--on-dark);
  max-width: 720px;
}
.cta p {
  color: var(--on-dark-2);
  font-size: 17px;
  max-width: 640px;
  margin: 14px 0 0;
}
.cta .hero-actions {
  margin-top: 26px;
}
.cta .consent {
  font-size: 13px;
  margin-top: 16px;
}
.cta .consent a {
  color: var(--on-dark);
}
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--on-dark-line);
  list-style: none;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 500;
}
.contact-list a:hover {
  text-decoration: underline;
}
@media (min-width: 900px) {
  .cta {
    padding: 56px;
  }
}

/* ---------- Подвал ---------- */
.footer {
  background: var(--deep);
  color: var(--on-dark-2);
  padding: 48px 0 96px;
  font-size: 14.5px;
  line-height: 1.55;
}
.footer a {
  color: var(--on-dark);
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 1000px) {
  .footer {
    padding-bottom: 28px;
  }
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 40px;
  }
}
.footer h2 {
  font-family: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa0b3;
  margin: 0 0 12px;
}
.footer .brand {
  margin-bottom: 14px;
}
.req {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0;
}
.req dt {
  color: #8fa0b3;
}
.req dd {
  margin: 0;
  color: var(--on-dark);
  overflow-wrap: anywhere;
}
.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 13.5px;
}
@media (max-width: 420px) {
  .req {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .req dd {
    margin-bottom: 8px;
  }
}

/* ---------- Плавающая кнопка WhatsApp (телефон) ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: var(--deep);
  box-shadow: 0 8px 24px rgba(7, 28, 51, 0.35);
  text-decoration: none;
}
.wa-float:hover {
  background: var(--amber-hover);
}
/* На широком экране кнопка WhatsApp всегда видна в шапке. */
@media (min-width: 1000px) {
  .wa-float {
    display: none;
  }
}

/* ---------- Текстовые страницы (политика) ---------- */
.doc {
  padding: 40px 0 72px;
}
.doc .wrap {
  max-width: calc(820px + var(--gutter) * 2);
}
.doc h1 {
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 10px;
}
.doc .meta {
  color: var(--muted);
  margin-bottom: 32px;
}
.doc h2 {
  font-size: 21px;
  margin: 36px 0 12px;
}
.doc p,
.doc li {
  color: var(--ink-2);
}
.doc ul,
.doc ol {
  padding-left: 22px;
  margin: 0 0 12px;
}
.doc li {
  margin-bottom: 6px;
}
.doc .highlight {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--course);
}
.doc .highlight p:last-child {
  margin-bottom: 0;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 8px 0 16px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.doc th {
  color: var(--muted);
  font-weight: 600;
  width: 38%;
}
.doc td {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.back:hover {
  color: var(--ink);
}
