/* ==========================================================================
   ИП Смоленкова — лендинг. Один файл стилей, без препроцессоров.
   Порядок: шрифты → токены → reset → база → каркас (сайдбар, мобильная панель, меню)
   → кнопки → секции → форма → подвал → навигация-точки → диалог → документы → 404
   → анимации → reduced motion → печать.
   ========================================================================== */

/* ---------- Шрифт Manrope (variable 400–800, локально) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-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;
}

/* ---------- Токены ---------- */
:root {
  --ink: #0F051A;
  --ink-2: #4B4360;
  --night: #12062B;
  --night-2: #1A0B45;
  --night-3: #2A1263;
  --violet: #8123C2;
  --violet-2: #9B3FE0;
  --lilac: #B57CF0;
  --lilac-2: #D9C2FA;
  --indigo: #5B4BF5;
  --sky: #6EC1FF;
  --lav-50: #F6F2FD;
  --lav-100: #ECE3FA;
  --line: #E7E0F2;
  --white: #FFFFFF;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --sidebar-w: 248px;
  --shadow-card: 0 20px 60px -20px rgba(39, 10, 94, .35);

  /* производные */
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --accent: #9B4DE0;          /* акцент заголовков на светлом фоне: контраст ≥ 4.5:1 к белому */
  --focus: #8123C2;           /* кольцо фокуса на светлом */
  --error: #C2185B;
  --bar-h: 64px;              /* высота мобильной панели */
  --header-offset: 0px;       /* на мобиле = --bar-h (для якорей) */
  --gutter: clamp(16px, 4vw, 56px);
  --container: 1180px;
  --section-y: clamp(72px, 8vw, 120px);

  interpolate-size: allow-keywords;
}

@media (max-width: 1099.98px) {
  :root { --header-offset: var(--bar-h); }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-offset);
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd { margin: 0; }

h1, h2, h3, h4 { font-weight: 700; }

:where(ul[class], ol[class]) { margin: 0; padding: 0; list-style: none; }

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-skip-ink: auto; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button { cursor: pointer; }

[hidden] { display: none !important; }

::selection { background: rgba(155, 63, 224, .28); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[tabindex="-1"]:focus { outline: none; }

/* ---------- Утилиты ---------- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(18, 6, 43, .7);
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; outline: 3px solid var(--lilac-2); outline-offset: 2px; }

.nowrap { white-space: nowrap; }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.accent { color: var(--accent); }

/* Тёмные контексты: светлый акцент и светлое кольцо фокуса */
.hero,
.benefits,
.contact,
.site-footer,
.sidebar,
.mbar,
.mmenu,
.plan--featured,
.sd-hero,
.notfound {
  --accent: var(--lilac);
  --focus: var(--lilac-2);
}

/* ---------- Каркас ---------- */
.site {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
}

@media (min-width: 1100px) {
  .site { margin-left: var(--sidebar-w); }
}

.main { display: block; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  align-items: end;
  gap: 20px 64px;
}

.section-title {
  font-size: clamp(32px, 3.9vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.section-lead {
  max-width: 640px;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- Логотип ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
}

.logo__mark {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8123C2, #5B4BF5);
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.logo__brand {
  font-size: 15px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo__tagline {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .66);
  white-space: nowrap;
}

/* ---------- Сайдбар (≥ 1100px) ---------- */
.sidebar { display: none; }

@media (min-width: 1100px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    padding: 28px 18px 24px;
    color: #fff;
    background:
      radial-gradient(120% 45% at 0% 0%, rgba(129, 35, 194, .5), rgba(129, 35, 194, 0) 70%),
      radial-gradient(90% 35% at 100% 100%, rgba(91, 75, 245, .32), rgba(91, 75, 245, 0) 70%),
      var(--night-2);
    border-radius: 0 28px 28px 0;
    box-shadow: 10px 0 40px -24px rgba(18, 6, 43, .7);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { display: none; }

  .mbar,
  .mmenu { display: none !important; }
}

/* Невысокие окна ноутбуков: email в подвале сайдбара должен оставаться на экране */
@media (min-width: 1100px) and (max-height: 720px) {
  /* префикс .sidebar — блок стоит выше базовых правил и должен их перебить */
  .sidebar { padding-block: 18px 16px; }
  /* не хватает высоты — прокручивается только меню, подвал с почтой всегда на экране */
  .sidebar .side-nav { margin-top: 16px; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; }
  .sidebar .side-nav__list { gap: 0; }
  .sidebar .side-nav__link { padding-block: 5px; }
  .sidebar .sidebar__foot { margin-top: 12px; padding-top: 12px; }
  .sidebar .sidebar__foot .btn { margin-bottom: 10px; }
}

.sidebar .logo { padding: 4px; margin: -4px; }

.side-nav {
  flex: 1 0 auto;
  margin-top: 40px;
}

.side-nav__list {
  display: grid;
  gap: 4px;
}

.side-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px 7px 7px;
  border-radius: 14px;
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.side-nav__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .07);
  color: var(--lilac-2);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.side-nav__icon .icon { width: 18px; height: 18px; }

.side-nav__link:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.side-nav__link:hover .side-nav__icon { background: rgba(255, 255, 255, .12); }

.side-nav__link.is-active {
  background: linear-gradient(90deg, rgba(129, 35, 194, .5), rgba(129, 35, 194, .1));
  color: #fff;
}
.side-nav__link.is-active .side-nav__icon {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(155, 63, 224, .9);
}

.sidebar__foot {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.sidebar__foot .btn { margin-bottom: 16px; }

.sidebar__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

.sidebar__mail {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-radius: 6px;
}
.sidebar__mail:hover { color: var(--lilac-2); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Мобильная панель (< 1100px) ---------- */
.mbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--bar-h);
  padding: 0 var(--gutter);
  color: #fff;
  background: rgba(18, 6, 43, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: background-color .3s;
}
.mbar.is-scrolled,
.is-menu-open .mbar { background: rgba(18, 6, 43, .92); }

.logo--compact { gap: 10px; }
.logo--compact .logo__mark { width: 38px; height: 38px; border-radius: 10px; }
.logo--compact .logo__brand { font-size: 14px; letter-spacing: .18em; }
.logo--compact .logo__tagline { font-size: 10.5px; }

@media (max-width: 359.98px) {
  .logo--compact .logo__tagline { display: none; }
}

.burger {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  transition: background-color .2s, border-color .2s;
}
.burger:hover { background: rgba(255, 255, 255, .12); }
.burger[aria-expanded="true"] { background: var(--violet); border-color: var(--violet); }

.burger__lines {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.burger__lines span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.burger__lines span:nth-child(1) { top: 0; }
.burger__lines span:nth-child(2) { top: 6px; }
.burger__lines span:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__lines span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---------- Мобильное меню-оверлей ---------- */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: calc(var(--bar-h) + 20px) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  color: #fff;
  background:
    radial-gradient(70% 45% at 100% 0%, rgba(129, 35, 194, .45), rgba(129, 35, 194, 0) 70%),
    radial-gradient(60% 40% at 0% 100%, rgba(91, 75, 245, .28), rgba(91, 75, 245, 0) 70%),
    var(--night);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.mmenu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s var(--ease), visibility 0s;
}

.mmenu__glow { display: none; }

.mmenu__nav { flex: 1 0 auto; }

.mmenu__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-decoration: none;
}

.mmenu__num {
  flex: none;
  width: 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--lilac);
}

.mmenu__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  font-size: 18px;
  transition: background-color .2s, transform .2s;
}
.mmenu__link:hover .mmenu__arrow,
.mmenu__link.is-active .mmenu__arrow { background: var(--violet); }
.mmenu__link.is-active .mmenu__label { color: var(--lilac-2); }

.mmenu.is-open .mmenu__list li { animation: menu-in .5s var(--ease) both; }
.mmenu.is-open .mmenu__list li:nth-child(2) { animation-delay: .03s; }
.mmenu.is-open .mmenu__list li:nth-child(3) { animation-delay: .06s; }
.mmenu.is-open .mmenu__list li:nth-child(4) { animation-delay: .09s; }
.mmenu.is-open .mmenu__list li:nth-child(5) { animation-delay: .12s; }
.mmenu.is-open .mmenu__list li:nth-child(6) { animation-delay: .15s; }
.mmenu.is-open .mmenu__list li:nth-child(7) { animation-delay: .18s; }
.mmenu.is-open .mmenu__list li:nth-child(n+8) { animation-delay: .21s; }

.mmenu__foot {
  display: grid;
  gap: 6px;
  margin-top: 28px;
}

.mmenu__label-sm {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

.mmenu__mail {
  margin-bottom: 18px;
  font-size: clamp(20px, 5.6vw, 26px);
  font-weight: 700;
  color: var(--lilac);
  text-decoration: none;
  overflow-wrap: anywhere;
}

@media (max-height: 680px) {
  .mmenu__link { padding: 9px 0; font-size: 22px; }
  .mmenu__arrow { width: 34px; height: 34px; }
}

html.is-locked { overflow: hidden; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .btn__icon { width: 18px; height: 18px; }

.btn--primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(129, 35, 194, .75);
}
.btn--primary:hover {
  background: var(--violet-2);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(155, 63, 224, .85);
}
.btn--primary:active { transform: translateY(0); box-shadow: 0 8px 20px -10px rgba(129, 35, 194, .8); }

.btn--soft {
  background: var(--lav-100);
  color: var(--violet);
}
.btn--soft:hover { background: var(--violet); color: #fff; transform: translateY(-2px); }
.btn--soft:active { transform: translateY(0); }

.btn--sm { height: 46px; padding: 0 22px; font-size: 14px; }
.btn--lg { height: 58px; padding: 0 36px; }
.btn--block { width: 100%; }

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: progress;
  opacity: .8;
  transform: none;
}

/* Пилюля + круглая кнопка-стрелка (как «Посмотреть решения →» у референса) */
.btn-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.btn-pair__label,
.btn-pair__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  background: var(--lav-100);
  transition: background-color .2s, color .2s, transform .25s var(--ease), border-color .2s;
}

.btn-pair__label {
  padding: 0 26px;
  border-radius: var(--radius-pill);
}

.btn-pair__arrow {
  flex: none;
  width: 54px;
  border-radius: 50%;
  font-size: 20px;
}

.btn-pair:hover .btn-pair__label { background: #E2D5F8; }
.btn-pair:hover .btn-pair__arrow {
  background: var(--violet);
  color: #fff;
  transform: translateX(4px);
}

.btn-pair--dark { color: #fff; }
.btn-pair--dark .btn-pair__label,
.btn-pair--dark .btn-pair__arrow {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-pair--dark:hover .btn-pair__label { background: rgba(255, 255, 255, .13); }
.btn-pair--dark:hover .btn-pair__arrow { border-color: var(--violet); background: var(--violet); }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-offset) + 72px) var(--gutter) 136px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(70% 55% at 78% 88%, rgba(91, 75, 245, .34), rgba(91, 75, 245, 0) 70%),
    radial-gradient(60% 50% at 12% 18%, rgba(129, 35, 194, .38), rgba(129, 35, 194, 0) 70%),
    var(--night);
}

.hero__wave {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 50% 47%, rgba(18, 6, 43, .82) 0%, rgba(18, 6, 43, .5) 55%, rgba(18, 6, 43, 0) 100%),
    linear-gradient(180deg, rgba(18, 6, 43, .6) 0%, rgba(18, 6, 43, 0) 26%);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1000px;
}

.hero__title {
  font-size: clamp(36px, 5.5vw, 84px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.03em;
}

.hero__line { display: block; }

.hero__line--typed {
  min-height: 1.12em;
  white-space: nowrap;
}

.hero__typed {
  padding-bottom: .06em;
  background: linear-gradient(90deg, #D2A8FF 0%, var(--lilac) 38%, #8F7CFF 72%, #7CC8FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__caret {
  display: inline-block;
  width: .055em;
  height: .84em;
  margin-left: .06em;
  vertical-align: -.05em;
  border-radius: 2px;
  background: var(--lilac);
  box-shadow: 0 0 18px rgba(181, 124, 240, .8);
  animation: caret-blink 1.05s steps(1) infinite;
}

.hero__subtitle {
  max-width: 620px;
  margin-top: 26px;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 38px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, .88);
}
.chip__icon { width: 15px; height: 15px; color: var(--lilac); }

.hero__scroll {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: 76px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .74);
  text-decoration: none;
  transition: color .2s;
}
.hero__scroll:hover { color: #fff; }

.hero__scroll-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  font-size: 16px;
}
.hero__scroll-icon .icon { animation: bob 2.2s var(--ease) infinite; }

@media (prefers-reduced-motion: no-preference) {
  /* строки h1 — только сдвиг, без opacity: прозрачный элемент не засчитывается в LCP */
  .hero__line { animation: rise-y .9s var(--ease) both; }
  .hero__subtitle,
  .hero__actions,
  .hero__chips { animation: rise .9s var(--ease) both; }
  .hero__line--typed { animation-delay: .08s; }
  .hero__subtitle { animation-delay: .18s; }
  .hero__actions { animation-delay: .28s; }
  .hero__chips { animation-delay: .38s; }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 640px;
    padding-top: calc(var(--bar-h) + 56px);
    padding-bottom: 104px;
  }
  .hero__scroll { display: none; }
  .hero__chips { margin-top: 32px; }
}

@media (max-width: 559.98px) {
  .hero__title { font-size: clamp(34px, 10.4vw, 48px); }
  .hero__line--typed { min-height: 2.14em; white-space: normal; }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 400px;
  }
  .hero__actions .btn { width: 100%; }
  .hero__actions .btn-pair { width: 100%; }
  .hero__actions .btn-pair__label { flex: 1; }
  .chip { font-size: 13px; padding: 8px 14px; }
}

/* ==========================================================================
   2. УСЛУГИ — bento
   ========================================================================== */
.services {
  z-index: 1;
  margin-top: -40px;
  border-radius: 40px 40px 0 0;
  background: var(--white);
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.svc-card {
  grid-column: span 2;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(90% 80% at 88% 95%, rgba(124, 92, 255, .45), rgba(124, 92, 255, 0) 62%),
    radial-gradient(70% 60% at 0% 0%, rgba(155, 63, 224, .3), rgba(155, 63, 224, 0) 70%),
    linear-gradient(150deg, #2B0F6E 0%, #1E0A55 50%, #160742 100%);
  box-shadow: 0 24px 60px -30px rgba(39, 10, 94, .7);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.svc-card--lg { grid-column: span 3; }

.svc-card::before {
  content: '';
  position: absolute;
  z-index: -3;
  top: -190px;
  right: -110px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(181, 124, 240, .24), rgba(181, 124, 240, 0));
  pointer-events: none;
}

/* Затемнение слева — текст читается поверх иллюстрации */
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(22, 7, 66, .82) 0%, rgba(22, 7, 66, .45) 40%, rgba(22, 7, 66, 0) 66%);
  pointer-events: none;
}

.svc-card__ring {
  position: absolute;
  z-index: -3;
  left: -150px;
  bottom: -200px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(124, 92, 255, .14), 0 0 0 60px rgba(255, 255, 255, .02);
  pointer-events: none;
}

.svc-card__img {
  position: absolute;
  z-index: -2;
  right: -3%;
  bottom: -5%;
  width: auto;
  height: 105%;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  pointer-events: none;
  transform-origin: 70% 85%;
  transition: transform .7s var(--ease);
}

.svc-card--sm .svc-card__img {
  right: -11%;
  bottom: -4%;
  height: 80%;
}

.svc-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 56%;
}
.svc-card--sm .svc-card__body { max-width: 54%; }

.svc-card__title {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.svc-card--sm .svc-card__title { font-size: clamp(20px, 1.65vw, 24px); }
/* тексту — тень: отдельные буквы всё равно ложатся на светлые края иллюстраций */
.svc-card__title,
.svc-card__text { text-shadow: 0 1px 12px rgba(22, 7, 66, .85); }

.svc-card__btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

/* Кнопка растянута на всю карточку */
.svc-card__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.svc-card__btn:focus-visible { outline: none; }
.svc-card__btn:focus-visible::after {
  border-radius: 28px;
  outline: 3px solid var(--lilac-2);
  outline-offset: -4px;
}

.svc-card__text {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .76);
}
.svc-card--sm .svc-card__text { font-size: 14px; }

.svc-card__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

.svc-card__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  font-size: 16px;
  transition: background-color .25s, border-color .25s, transform .3s var(--ease);
}

@media (hover: hover) {
  .svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 34px 70px -30px rgba(91, 40, 200, .85);
  }
  .svc-card:hover .svc-card__img { transform: scale(1.06) translateY(-4px); }
  .svc-card:hover .svc-card__arrow {
    border-color: var(--violet-2);
    background: var(--violet-2);
    transform: translateX(4px);
  }
}
.svc-card:active { transform: translateY(-1px); }

@media (max-width: 1279.98px) {
  /* большие карточки уже: длинный заголовок не должен ложиться на иллюстрацию */
  .svc-card--lg .svc-card__img { right: -10%; height: 94%; bottom: -3%; }
  .svc-card--sm { grid-column: span 3; }
  .svc-card--sm:last-child { grid-column: span 6; }
  .svc-card--sm:last-child .svc-card__body { max-width: 52%; }
  .svc-card--sm:last-child .svc-card__img { right: 2%; height: 110%; bottom: -8%; }
}

/* Мобильная карточка: иллюстрация целиком справа сверху, текст — снизу на всю ширину */
@media (max-width: 767.98px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .svc-card,
  .svc-card--lg,
  .svc-card--sm,
  .svc-card--sm:last-child { grid-column: auto; min-height: 340px; }
  .svc-card__body,
  .svc-card--sm .svc-card__body,
  .svc-card--sm:last-child .svc-card__body { max-width: 520px; }
  .svc-card__img,
  .svc-card--sm .svc-card__img,
  .svc-card--sm:last-child .svc-card__img {
    top: -10px;
    right: -12px;
    bottom: auto;
    height: 210px;
    transform-origin: 70% 30%;
  }
  .svc-card::after {
    background: linear-gradient(0deg, rgba(22, 7, 66, .94) 0%, rgba(22, 7, 66, .72) 40%, rgba(22, 7, 66, 0) 72%);
  }
}

@media (max-width: 374.98px) {
  .svc-card,
  .svc-card--lg,
  .svc-card--sm,
  .svc-card--sm:last-child { min-height: 360px; }
  .svc-card__img,
  .svc-card--sm .svc-card__img,
  .svc-card--sm:last-child .svc-card__img { height: 180px; }
}

/* ==========================================================================
   3. РЕШЕНИЯ
   ========================================================================== */
.solutions { padding-top: 0; }

.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 20px;
}

.sol-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sol-card__media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--lav-50) 0%, var(--lav-100) 100%);
}

.sol-card__media::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -24%;
  bottom: -46%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(181, 124, 240, .5), rgba(181, 124, 240, 0));
  transition: transform .7s var(--ease);
}

.sol-card__media::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -30%;
  left: -18%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
}

.sol-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .7s var(--ease);
}

@media (hover: hover) {
  .sol-card:hover .sol-card__media img { transform: scale(1.05) translateY(-4px); }
  .sol-card:hover .sol-card__media::before { transform: scale(1.3); }
}

.sol-card__title {
  margin-top: 20px;
  font-size: clamp(18px, 1.45vw, 20px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
}

.sol-card__text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* пилюля со стрелкой не вылезает за карточку на промежуточных ширинах */
.sol-card--cta .btn-pair { max-width: 100%; }
.sol-card--cta .btn-pair__label { flex: 1 1 auto; min-width: 0; padding-inline: clamp(14px, 1.6vw, 26px); }

.sol-card--cta {
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(236, 227, 250, .9), rgba(236, 227, 250, 0) 70%),
    var(--white);
  box-shadow: 0 24px 50px -36px rgba(39, 10, 94, .35);
}

.sol-cta__title {
  font-size: clamp(24px, 2.1vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.015em;
}

.sol-cta__text {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

@media (max-width: 899.98px) {
  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}

@media (max-width: 559.98px) {
  .sol-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ==========================================================================
   4. ПРЕИМУЩЕСТВА
   ========================================================================== */
.benefits {
  isolation: isolate;
  overflow: hidden;
  padding-bottom: calc(var(--section-y) * .7);
  color: #fff;
  background: var(--night);
  border-radius: 40px;
}

.benefits__glow {
  position: absolute;
  z-index: -1;
  top: -300px;
  left: -260px;
  width: 820px;
  height: 820px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(129, 35, 194, .62), rgba(129, 35, 194, 0));
  pointer-events: none;
}

.benefits::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -240px;
  bottom: -320px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 75, 245, .3), rgba(91, 75, 245, 0));
  pointer-events: none;
}

.benefits__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.benefits__title { padding-right: 32px; }

.stat {
  align-self: stretch;
  padding-left: clamp(24px, 3vw, 48px);
  border-left: 1px solid rgba(255, 255, 255, .16);
}

.stat__value {
  font-size: clamp(48px, 4.8vw, 76px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
  white-space: nowrap;
  background: linear-gradient(120deg, #EBDDFF 0%, var(--lilac) 48%, #8F7BFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  max-width: 260px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .74);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}

.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  --pad: clamp(24px, 2.6vw, 36px);
  min-height: 256px;
  padding: var(--pad);
  border-radius: 28px;
  grid-column: span 6;
}

.tile__title {
  font-size: clamp(20px, 1.85vw, 26px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.tile__text {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .8);
}

/* договор */
.tile--contract {
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, #8123C2 0%, #6A1BB0 100%);
}
.tile--contract .tile__title { max-width: 380px; }

/* блок иконок стоит в потоке: заголовок никогда не заезжает под них */
.tile__icons {
  position: relative;
  flex: none;
  width: 100%;
  height: 108px;
  margin-bottom: auto;
  pointer-events: none;
}

.tile__icon {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 20px 40px -20px rgba(30, 0, 70, .7);
}

.tile__icon--back {
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  font-size: 36px;
}

/* передняя плашка частично перекрывает заднюю — стекло размывает её край */
.tile__icon--front {
  top: 44px;
  right: 74px;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 26px;
  background: rgba(255, 255, 255, .18);
}

/* сроки */
.tile--deadlines {
  justify-content: flex-start;
  background:
    radial-gradient(70% 80% at 100% 100%, rgba(110, 193, 255, .32), rgba(110, 193, 255, 0) 62%),
    linear-gradient(135deg, #3B2FD9 0%, #2A1FA8 100%);
}

.tile__copy {
  display: grid;
  gap: 10px;
  max-width: 54%;
}

.tile__img {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 64%;
  height: auto;
  aspect-ratio: 520 / 320;
  pointer-events: none;
  transition: transform .7s var(--ease);
  transform-origin: 100% 100%;
}
@media (hover: hover) {
  .tile--deadlines:hover .tile__img { transform: scale(1.04); }
}

/* режимы — бегущая строка */
.tile--regimes {
  grid-column: span 8;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(155, 63, 224, .25), rgba(155, 63, 224, 0) 70%),
    linear-gradient(160deg, var(--night-3) 0%, #1F0C4E 100%);
}

.marquee {
  overflow: hidden;
  margin-inline: calc(-1 * var(--pad));
  padding-block: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee__list {
  display: flex;
  flex: none;
  gap: 12px;
  padding-right: 12px;
}

.marquee__list li {
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .06);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: rgba(255, 255, 255, .92);
}
.marquee__list li:nth-child(3n+1) {
  border-color: rgba(181, 124, 240, .4);
  background: rgba(129, 35, 194, .28);
  color: var(--lilac-2);
}

.tile--regimes:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* личный специалист */
.tile--personal {
  grid-column: span 4;
  justify-content: center;
  padding-inline: clamp(8px, 1.4vw, 20px);
}

.avatars {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-left: -14px;
  border: 3px solid var(--night);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .7);
}
.avatar:first-child { margin-left: 0; width: 70px; height: 70px; font-size: 28px; }
.avatar--1 { background: linear-gradient(135deg, #C79BFF, #8123C2); }
.avatar--2 { background: linear-gradient(135deg, #8F7BFF, #3B2FD9); }
.avatar--3 { background: linear-gradient(135deg, #7CC8FF, #5B4BF5); }
.avatar--4 { background: linear-gradient(135deg, #E4D1FF, #9B3FE0); }

.tile--plain { background: var(--night-3); }

@media (max-width: 1279.98px) {
  .benefits__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 40px; }
  .benefits__title { grid-column: 1 / -1; padding-right: 0; }
  .stat:first-of-type { padding-left: 0; border-left: 0; }
}

@media (max-width: 1023.98px) {
  .tile__copy { max-width: 60%; }
  .tile__img { width: 60%; }
}

@media (max-width: 899.98px) {
  .benefits { border-radius: 32px; }
  .tile,
  .tile--regimes,
  .tile--personal { grid-column: 1 / -1; }
  .tile--deadlines { min-height: 300px; }
  .tile__copy { max-width: 58%; }
  /* фона нет — скругление с overflow только срезало бы первую букву последней строки */
  .tile--personal { padding: 8px 4px 0; min-height: 0; overflow: visible; border-radius: 0; }
}

@media (max-width: 559.98px) {
  .benefits { border-radius: 28px; }
  .tile { min-height: 240px; }
  .tile__icons { height: 96px; }
  .tile__icon--back { width: 84px; height: 84px; border-radius: 22px; font-size: 32px; }
  .tile__icon--front { top: 38px; right: 64px; width: 56px; height: 56px; font-size: 22px; }
  .tile--deadlines { min-height: 340px; }
  .tile__copy { max-width: none; }
  .tile__img { width: 92%; }
  .stat__value { font-size: clamp(40px, 12vw, 56px); }
}

@media (max-width: 419.98px) {
  .benefits__head { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .stat,
  .stat:first-of-type { padding: 24px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
}

/* ==========================================================================
   5. О ПОДХОДЕ (цитата)
   ========================================================================== */
.about__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 24px;
  padding: clamp(32px, 5vw, 72px) 0 clamp(32px, 5vw, 72px) clamp(28px, 5vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--lav-50);
}

.about__mark {
  display: block;
  height: .46em;
  margin-bottom: 28px;
  font-size: clamp(120px, 11vw, 176px);
  line-height: .78;
  font-weight: 800;
  color: var(--lilac);
  opacity: .9;
  user-select: none;
}

.about__quote {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.about__kicker {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-2);
}

.about__facts {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.about__facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

.about__check {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: 15px;
}

.about__visual {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 380px;
  padding-right: clamp(16px, 3vw, 48px);
}

.about__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.about__blob--a {
  top: 50%;
  right: -160px;
  width: 560px;
  height: 560px;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(181, 124, 240, .6), rgba(181, 124, 240, 0));
}
.about__blob--b {
  right: 10%;
  bottom: -210px;
  width: 420px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(217, 194, 250, .95), rgba(217, 194, 250, 0));
}
.about__blob--c {
  top: -120px;
  left: 4%;
  width: 360px;
  height: 360px;
  background: radial-gradient(closest-side, rgba(91, 75, 245, .2), rgba(91, 75, 245, 0));
}

.about__img {
  position: relative;
  width: min(100%, 480px);
  height: auto;
  aspect-ratio: 480 / 420;
}

@media (max-width: 899.98px) {
  .about__card {
    grid-template-columns: minmax(0, 1fr);
    padding: clamp(28px, 6vw, 48px);
    padding-bottom: 0;
  }
  .about__visual { min-height: 0; padding: 0 0 24px; }
  .about__img { width: min(100%, 420px); }
}

/* ==========================================================================
   6. КАК РАБОТАЕМ — таймлайн
   ========================================================================== */
.process { padding-top: calc(var(--section-y) * .5); }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.timeline::before,
.timeline::after {
  content: '';
  position: absolute;
  top: 31px;
  left: 32px;
  right: calc((100% - 4 * 24px) / 5 - 32px);
  height: 2px;
  border-radius: 2px;
}
.timeline::before { background: var(--line); }
.timeline::after {
  background: linear-gradient(90deg, var(--violet) 0%, var(--indigo) 60%, var(--sky) 100%);
  box-shadow: 0 0 12px rgba(129, 35, 194, .45);
  transform-origin: 0 50%;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border: 2px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--violet) 0%, var(--indigo) 55%, var(--sky) 100%) border-box;
  box-shadow: 0 0 0 8px var(--white), 0 14px 30px -12px rgba(129, 35, 194, .6);
  font-size: 18px;
  font-weight: 800;
  color: var(--violet);
}

.step__title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.step__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

@media (max-width: 899.98px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .timeline::before,
  .timeline::after {
    top: 32px;
    bottom: 32px;
    left: 31px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .timeline::after {
    background: linear-gradient(180deg, var(--violet) 0%, var(--indigo) 60%, var(--sky) 100%);
    transform-origin: 50% 0;
  }
  .step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 4px;
  }
  .step__num { grid-row: span 2; margin-bottom: 0; }
  .step__title { align-self: end; padding-top: 6px; }
  .step__text { grid-column: 2; }
}

/* ==========================================================================
   7. ТАРИФЫ
   ========================================================================== */
.pricing { padding-top: calc(var(--section-y) * .5); }

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(28px, 2.8vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 24px 60px -40px rgba(39, 10, 94, .35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

@media (hover: hover) {
  .plan:hover { transform: translateY(-4px); box-shadow: 0 32px 70px -36px rgba(39, 10, 94, .45); }
}

.plan--featured {
  border-color: transparent;
  color: #fff;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(155, 63, 224, .5), rgba(155, 63, 224, 0) 62%),
    radial-gradient(70% 50% at 0% 100%, rgba(91, 75, 245, .38), rgba(91, 75, 245, 0) 62%),
    var(--night-2);
  box-shadow: 0 34px 70px -30px rgba(39, 10, 94, .75);
}

.plan__badge {
  position: absolute;
  top: clamp(24px, 2.4vw, 32px);
  right: clamp(24px, 2.4vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--violet);
  box-shadow: 0 8px 20px -8px rgba(155, 63, 224, .9);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}
.plan__badge .icon { width: 14px; height: 14px; }

.plan__name {
  padding-right: 8px;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
}
.plan--featured .plan__name { padding-right: 140px; }

.plan__for {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.plan--featured .plan__for { color: rgba(255, 255, 255, .74); }

/* цены в одну линию у карточек с подписью в 1 и 2 строки */
@media (min-width: 900px) {
  .plan__for { min-height: calc(2em * 1.45); }
}

.plan__price {
  margin: 28px 0 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}
.plan--featured .plan__price { border-color: rgba(255, 255, 255, .12); color: var(--lilac-2); }

.plan__price-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.plan--featured .plan__price-label { color: rgba(255, 255, 255, .6); }

/* «Индивидуально» вместо цены — длинное слово, держим его скромнее числа */
.plan__price--request { font-size: clamp(22px, 1.9vw, 28px); }

.checklist {
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.checklist__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lav-100);
  color: var(--violet);
  font-size: 14px;
}

.checklist--plan { margin-bottom: 32px; }
.checklist--plan li { font-size: 15px; }
.plan--featured .checklist__icon { background: rgba(255, 255, 255, .12); color: var(--lilac-2); }

.plan__cta { margin-top: auto; padding-inline: 12px; }

@media (max-width: 1279.98px) and (min-width: 900px) {
  .plan--featured .plan__name { padding-right: 0; }
  .plan--featured .plan__badge { position: static; align-self: flex-start; margin-bottom: 16px; }
  .plan__cta { font-size: 15px; }
}

/* при сайдбаре колонка заголовка узкая: «обслуживания» залезало на лид */
@media (min-width: 1100px) and (max-width: 1279.98px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899.98px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}

/* ==========================================================================
   8. FAQ
   ========================================================================== */
.faq { padding-top: calc(var(--section-y) * .5); }

.faq__layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq__aside {
  position: sticky;
  top: calc(var(--header-offset) + 40px);
}

.faq__contact {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--lav-50);
}

.faq__contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--violet);
  color: #fff;
  font-size: 22px;
}

.faq__contact-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.faq__contact-mail {
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-radius: 4px;
}
.faq__contact-mail:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 4px; }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__summary::marker { content: ''; }

.faq__q {
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.35;
  font-weight: 700;
  transition: color .2s;
}
.faq__summary:hover .faq__q { color: var(--violet); }

.faq__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lav-100);
  color: var(--violet);
  font-size: 20px;
  transition: transform .35s var(--ease), background-color .25s, color .25s;
}
.faq__summary:hover .faq__icon { background: #E0D1F7; }
.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--violet);
  color: #fff;
}

.faq__a {
  padding: 0 64px 26px 4px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* Плавное раскрытие там, где поддерживается ::details-content + interpolate-size */
.faq__item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .4s var(--ease), content-visibility .4s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__a { animation: fade-down .45s var(--ease) both; }
}

@media (max-width: 899.98px) {
  .faq__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq__aside { position: static; }
  .faq__contact { margin-top: 24px; }
}

@media (max-width: 559.98px) {
  .faq__summary { gap: 16px; padding: 20px 0; }
  .faq__icon { width: 40px; height: 40px; }
  .faq__a { padding: 0 0 22px; font-size: 15px; }
}

/* ==========================================================================
   9. КОНТАКТЫ + ФОРМА
   ========================================================================== */
.contact {
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(64px, 7vw, 104px);
  border-radius: 40px 40px 0 0;
  color: #fff;
  background: var(--night);
}

.contact__wave {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.contact__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 55% at 8% 8%, rgba(129, 35, 194, .42), rgba(129, 35, 194, 0) 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(91, 75, 245, .25), rgba(91, 75, 245, 0) 70%),
    linear-gradient(90deg, rgba(18, 6, 43, .55) 0%, rgba(18, 6, 43, 0) 60%);
}

.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  gap: clamp(32px, 4.4vw, 72px);
  align-items: center;
}

.contact__title {
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.contact__text {
  max-width: 460px;
  margin-top: 20px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
}

.contact__label {
  margin-top: clamp(32px, 4vw, 56px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

.contact__mail {
  display: inline-block;
  margin-top: 8px;
  padding-bottom: 4px;
  font-size: clamp(26px, 2.5vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--lilac);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size .4s var(--ease), color .2s;
  border-radius: 4px;
}
.contact__mail:hover { color: var(--lilac-2); background-size: 100% 2px; }

.glass {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.contact__card {
  container: leadcard / inline-size;
  padding: clamp(22px, 3vw, 40px);
}

@media (max-width: 1359.98px) {
  .contact__layout { grid-template-columns: minmax(0, 1fr); }
  .contact__intro { max-width: 720px; }
  .contact__card { max-width: 760px; }
}

/* --- форма --- */
.lead-form { position: relative; }

.hp {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

@container leadcard (min-width: 460px) {
  .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .field--wide { grid-column: 1 / -1; }
}

.field {
  position: relative;
  min-width: 0;
}

.field__control {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
  padding: 24px 18px 8px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field__control:hover { border-color: rgba(255, 255, 255, .28); }
.field__control:focus {
  border-color: var(--lilac);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 4px rgba(181, 124, 240, .25);
}
.field__control:-webkit-autofill,
.field__control:-webkit-autofill:hover,
.field__control:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 60px #2A1B4D inset;
  transition: background-color 9999s;
}

.field__control--area {
  height: auto;
  min-height: 136px;
  padding-top: 30px;
  resize: vertical;
}

.field__label {
  position: absolute;
  top: 19px;
  left: 19px;
  max-width: calc(100% - 38px);
  overflow: hidden;
  font-size: 16px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .66);
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .2s var(--ease), color .2s;
}

.field__control:focus + .field__label,
.field__control:not(:placeholder-shown) + .field__label,
.field__control:-webkit-autofill + .field__label,
.field--select .field__label {
  transform: translateY(-11px) scale(.75);
  color: var(--lilac-2);
}

.field--select .field__control {
  padding-right: 48px;
  cursor: pointer;
}
.field--select .field__control option {
  color: var(--ink);
  background: #fff;
}
.field--select .field__control:has(option[value=""]:checked) { color: rgba(255, 255, 255, .7); }

.field__chevron {
  position: absolute;
  top: 20px;
  right: 18px;
  font-size: 20px;
  line-height: 0;
  color: rgba(255, 255, 255, .7);
  pointer-events: none;
}

.field.is-prefilled .field__control {
  border-color: var(--lilac);
  box-shadow: 0 0 0 4px rgba(181, 124, 240, .3);
}

.field-error {
  display: flex;
  gap: 6px;
  margin: 7px 4px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #FFB8CB;
}
.field-error:empty { display: none; }

.field__control[aria-invalid="true"] {
  border-color: #FF86A8;
  box-shadow: 0 0 0 3px rgba(255, 134, 168, .16);
}
.field__control[aria-invalid="true"] + .field__label { color: #FFB8CB; }
/* фокус на поле с ошибкой тоже должен быть заметен */
.field__control[aria-invalid="true"]:focus {
  border-color: #FF86A8;
  box-shadow: 0 0 0 4px rgba(255, 134, 168, .45);
}

/* чекбокс согласия */
.field--check { padding-top: 4px; }

.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
}

.check__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.check__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: transparent;
  font-size: 16px;
  transition: background-color .2s, border-color .2s, color .2s;
}

.check:hover .check__box { border-color: rgba(255, 255, 255, .6); }
.check__input:checked + .check__box { border-color: var(--violet-2); background: var(--violet); color: #fff; }
/* галочка видна только у отмеченного — не цветом, а прозрачностью (важно для контрастных тем) */
.check__box .icon { opacity: 0; transition: opacity .2s; }
.check__input:checked + .check__box .icon { opacity: 1; }
.check__input:focus-visible + .check__box { outline: 3px solid var(--lilac-2); outline-offset: 3px; }
.check__input[aria-invalid="true"] + .check__box { border-color: #FF86A8; }

.check__text a {
  color: var(--lilac-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-radius: 3px;
}
.check__text a:hover { color: #fff; }

/* ссылка на политику — отдельно от согласия, под чекбоксом на уровне его текста */
.check__note {
  margin: 8px 0 0 38px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .62);
}
.check__note a {
  color: var(--lilac-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-radius: 3px;
}
.check__note a:hover { color: #fff; }

.lead-form__actions { margin-top: 22px; }
.lead-form__submit { width: 100%; }

.lead-form__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.lead-form.is-sending .lead-form__spinner { display: inline-block; }
.lead-form.is-sending .lead-form__submit .btn__icon { display: none; }

.form-status {
  margin-top: 18px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
}
/* пустой live-регион остаётся в дереве доступности, иначе ответ формы могут не озвучить */
.form-status:empty { margin-top: 0; padding: 0; border: 0; }
.form-status.is-success,
.form-status.is-error { padding: 14px 18px; }
.form-status.is-success {
  border: 1px solid rgba(86, 224, 166, .4);
  background: rgba(86, 224, 166, .12);
  color: #BDF7DD;
}
.form-status.is-error {
  border: 1px solid rgba(255, 134, 168, .4);
  background: rgba(255, 134, 168, .1);
  color: #FFD3DF;
}

.form-status__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .2s;
}
.form-status__btn:hover { background: rgba(255, 255, 255, .16); }
.form-status__btn .icon { width: 16px; height: 16px; }

/* ==========================================================================
   10. ПОДВАЛ
   ========================================================================== */
.site-footer {
  position: relative;
  padding-bottom: 32px;
  font-size: 15px;
  color: rgba(255, 255, 255, .74);
  background: var(--night);
}

.site-footer:not(.site-footer--home) {
  margin-top: 0;
  padding-top: 8px;
  border-radius: 40px 40px 0 0;
}
.page-404 .site-footer { border-radius: 0; }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 56px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.site-footer:not(.site-footer--home) .footer__grid { border-top: 0; }
.page-404 .site-footer .footer__grid { border-top: 1px solid rgba(255, 255, 255, .1); }

.logo--footer .logo__mark { width: 44px; height: 44px; }

.footer__label {
  margin-top: 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.footer__mail {
  display: inline-block;
  margin-top: 6px;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--lilac);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-radius: 4px;
}
.footer__mail:hover { color: var(--lilac-2); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

.footer__title {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
}

.footer__list {
  display: grid;
  gap: 10px;
  line-height: 1.45;
}

.footer__list a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  border-radius: 4px;
  transition: color .2s;
}
.footer__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__list--req li { color: rgba(255, 255, 255, .8); }

.footer__okved {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .58);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px;
  color: rgba(255, 255, 255, .58);
}

@media (max-width: 899.98px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 559.98px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px 0 36px; }
  .site-footer:not(.site-footer--home) { border-radius: 28px 28px 0 0; }
  /* на 404 подвал продолжает тёмную секцию — без белых уголков */
  .page-404 .site-footer { border-radius: 0; }
}

/* ==========================================================================
   Точки-навигация и кнопка «наверх»
   ========================================================================== */
.dots {
  position: fixed;
  top: 50%;
  right: 14px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 4px;
  border-radius: var(--radius-pill);
  transform: translateY(-50%);
}

.dots__link {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.dots__link::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  /* ≥ 3:1 и на белых, и на тёмных секциях */
  background: #8C7FA8;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .6);
  transition: inset .25s var(--ease), background-color .25s, box-shadow .25s;
}
.dots__link:hover::before { background: var(--lilac); inset: 7px; }
.dots__link.is-active::before {
  inset: 6px;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(129, 35, 194, .22);
}

.dots__label {
  position: absolute;
  top: 50%;
  right: 32px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--night-2);
  box-shadow: 0 10px 24px -10px rgba(18, 6, 43, .7);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  transform: translate(6px, -50%);
  pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease);
}
.dots__link:hover .dots__label,
.dots__link:focus-visible .dots__label {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (max-width: 1099.98px) {
  .dots { display: none; }
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 14px 30px -10px rgba(129, 35, 194, .75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s, visibility 0s linear .3s, transform .3s var(--ease), background-color .2s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s, visibility 0s, transform .3s var(--ease), background-color .2s;
}
.to-top:hover { background: var(--violet-2); transform: translateY(-3px); }
.to-top:focus-visible { outline-color: var(--lilac); }

@media (max-width: 559.98px) {
  .to-top { right: 14px; bottom: 16px; width: 48px; height: 48px; }
}

/* ==========================================================================
   Диалог услуги
   ========================================================================== */
.sdialog {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 40px 120px -30px rgba(12, 4, 30, .8);
}

.sdialog::backdrop {
  background: rgba(12, 4, 30, .68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.sdialog[open] { animation: dialog-in .38s var(--ease); }
.sdialog[open]::backdrop { animation: fade-in .3s ease; }

.sdialog__panel {
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sdialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  /* плотный фон: кнопка читается и над белой частью прокрученного диалога */
  background: rgba(18, 6, 43, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px -6px rgba(18, 6, 43, .6);
  color: #fff;
  font-size: 20px;
  transition: background-color .2s, transform .2s;
}
.sdialog__close:hover { background: var(--violet); transform: rotate(90deg); }
.sdialog__close:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }

.sd-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 230px;
  padding: 40px 40px 36px;
  color: #fff;
  background:
    radial-gradient(80% 90% at 90% 100%, rgba(124, 92, 255, .5), rgba(124, 92, 255, 0) 62%),
    radial-gradient(60% 70% at 0% 0%, rgba(155, 63, 224, .3), rgba(155, 63, 224, 0) 70%),
    linear-gradient(150deg, #2B0F6E 0%, #160742 100%);
}

.sd-hero__ring {
  position: absolute;
  z-index: -2;
  top: -160px;
  left: -120px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(255, 255, 255, .02);
}

.sd-hero__img {
  position: absolute;
  z-index: -1;
  right: 8px;
  bottom: -34px;
  width: 270px;
  height: 270px;
}

.sd-hero__title {
  max-width: 58%;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* на телефоне длинное «консультирование» не помещается рядом с иллюстрацией */
@media (max-width: 599.98px) {
  .sd-hero__title { max-width: none; font-size: clamp(22px, 7vw, 26px); }
  .sd-hero__img { width: 150px; height: 150px; opacity: .6; }
}

.sd-body {
  display: grid;
  gap: 24px;
  padding: 32px 40px 40px;
}

.sd-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}

.sd-note {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--lav-50);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.sd-note__icon { width: 20px; height: 20px; margin-top: 1px; color: var(--violet); }

.sd-actions { padding-top: 4px; }

@media (max-width: 599.98px) {
  .sdialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }
  .sdialog[open] { animation-name: sheet-in; }
  .sd-hero { min-height: 200px; padding: 28px 22px 26px; }
  .sd-hero__img { width: 180px; height: 180px; right: -18px; bottom: -22px; }
  .sd-hero__title { max-width: 64%; }
  .sd-body { gap: 20px; padding: 24px 22px 28px; }
  .sd-intro { font-size: 16px; }
  .sd-actions .btn { width: 100%; }
}

/* ==========================================================================
   Страницы документов
   ========================================================================== */
.main--doc {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-offset) + clamp(32px, 5vw, 64px)) 0 clamp(64px, 8vw, 112px);
}

.doc-hero {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 440px;
  pointer-events: none;
  background:
    radial-gradient(55% 80% at 88% 0%, rgba(181, 124, 240, .3), rgba(181, 124, 240, 0) 70%),
    linear-gradient(180deg, var(--lav-50) 0%, rgba(246, 242, 253, 0) 100%);
}

.container--doc { max-width: calc(820px + var(--gutter) * 2); }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before { content: '→'; color: var(--accent); }
.breadcrumbs a {
  color: var(--violet);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

.doc { margin-top: 28px; }

.doc__title {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.doc__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 14px;
  color: var(--ink-2);
}
.doc__meta .icon { width: 16px; height: 16px; color: var(--violet); }

.doc__body {
  margin-top: 40px;
  font-size: 17px;
  line-height: 1.75;
  color: #2B2340;
  overflow-wrap: break-word;
}

.doc__body > * + * { margin-top: 1em; }

.doc h2 {
  margin-top: 2.2em;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-offset) + 24px);
}

.doc h3 {
  margin-top: 1.8em;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-offset) + 24px);
}

.doc h2 + *,
.doc h3 + * { margin-top: .7em; }

/* :where — нулевая специфичность, иначе правило гасит отступы .doc__meta, h2 + * и .doc__body > * + * */
:where(.doc) p { margin: 0; }
.doc p + p { margin-top: 1em; }

.doc ul,
.doc ol {
  margin: 0;
  padding-left: 1.4em;
}
.doc li + li { margin-top: .45em; }
.doc li > ul,
.doc li > ol { margin-top: .45em; }
.doc li::marker { color: var(--violet); font-weight: 700; }

.doc a {
  color: var(--violet);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  /* break-word, а не anywhere: адреса не рвутся посреди домена, если есть место */
  overflow-wrap: break-word;
}
.doc a:hover { color: var(--violet-2); text-decoration-thickness: 2px; }

.doc strong,
.doc b { font-weight: 700; color: var(--ink); }

.doc table {
  width: 100%;
  margin-top: 1.4em;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.5;
}

.doc th,
.doc td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.doc th + th,
.doc td + td { border-left: 1px solid var(--line); }
.doc thead th {
  background: var(--lav-50);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.doc tbody tr:last-child td,
.doc tbody tr:last-child th { border-bottom: 0; }

.doc-toc {
  margin-top: 32px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--lav-50);
  font-size: 16px;
  line-height: 1.5;
}
.doc-toc > :first-child { margin-top: 0; }
.doc-toc h2,
.doc-toc h3,
.doc-toc .doc-toc__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.doc-toc ol,
.doc-toc ul { margin: 0; padding-left: 1.3em; }
.doc-toc li + li { margin-top: .35em; }
.doc-toc a { text-decoration: none; }
.doc-toc a:hover { text-decoration: underline; }

.doc-note {
  margin-top: 1.4em;
  padding: 18px 22px;
  border-left: 4px solid var(--violet);
  border-radius: 0 16px 16px 0;
  background: var(--lav-50);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.doc-note > :first-child { margin-top: 0; }

@media (max-width: 639.98px) {
  .doc__body { font-size: 16px; line-height: 1.7; }
  .doc table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .doc th,
  .doc td { padding: 10px 12px; min-width: 140px; }
  .doc-toc { padding: 20px; }
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-offset) + 64px) var(--gutter) 96px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(60% 50% at 15% 15%, rgba(129, 35, 194, .4), rgba(129, 35, 194, 0) 70%),
    radial-gradient(60% 50% at 85% 90%, rgba(91, 75, 245, .3), rgba(91, 75, 245, 0) 70%),
    var(--night);
}

.notfound__wave {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.notfound__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
}

.notfound__code {
  font-size: clamp(110px, 20vw, 240px);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.06em;
  background: linear-gradient(120deg, #EBDDFF 0%, var(--lilac) 45%, #7CC8FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.notfound__title {
  margin-top: 12px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.notfound__text {
  max-width: 520px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 34px;
}

.notfound__mail {
  margin-top: 28px;
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
}
.notfound__mail a { color: var(--lilac-2); font-weight: 700; text-underline-offset: 3px; }

/* ==========================================================================
   Reveal-анимации (класс js ставит main.js; без JS всё видно сразу)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* таймлайн: сам список не прячем — появляются шаги и «заполняется» линия */
.js [data-reveal="timeline"] { opacity: 1; transform: none; }
.js .timeline::after {
  transform: scaleX(0);
  transition: transform 1.6s var(--ease) .15s;
}
.js .timeline.is-visible::after { transform: scaleX(1); }
.js .timeline .step {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .timeline.is-visible .step { opacity: 1; transform: none; }
.js .timeline .step:nth-child(2) { transition-delay: .2s; }
.js .timeline .step:nth-child(3) { transition-delay: .4s; }
.js .timeline .step:nth-child(4) { transition-delay: .6s; }
.js .timeline .step:nth-child(5) { transition-delay: .8s; }
.js .timeline .step:nth-child(n+6) { transition-delay: 1s; }

@media (max-width: 899.98px) {
  .js .timeline::after { transform: scaleY(0); }
  .js .timeline.is-visible::after { transform: scaleY(1); }
}

/* ---------- Keyframes ---------- */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes rise-y {
  from { transform: translate3d(0, 24px, 0); }
  to { transform: none; }
}

@keyframes caret-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

@keyframes bob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes menu-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-down {
  from { opacity: 0; transform: translate3d(0, -6px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.97); }
  to { opacity: 1; transform: none; }
}

@keyframes sheet-in {
  from { opacity: .4; transform: translate3d(0, 60px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Пониженная анимация ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal],
  .js .timeline .step { opacity: 1; transform: none; }
  .js .timeline::after { transform: none; }
  .hero__caret { animation: none; opacity: 1; }
  .hero__scroll-icon .icon { animation: none; }
  .lead-form__spinner { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
  .marquee {
    margin-inline: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee__track { display: block; width: auto; animation: none; }
  .marquee__list { flex-wrap: wrap; padding-right: 0; }
  .marquee__list[aria-hidden="true"] { display: none; }
}

/* ---------- Печать ---------- */
@media print {
  .sidebar,
  .mbar,
  .mmenu,
  .dots,
  .to-top,
  .skip-link,
  canvas,
  .hero__scroll,
  .lead-form { display: none !important; }
  .site { margin-left: 0; }
  .hero,
  .benefits,
  .contact,
  .site-footer { color: #000; background: none !important; }
  .js [data-reveal],
  .js .timeline .step { opacity: 1 !important; transform: none !important; }
  .js .timeline::after { transform: none !important; }
  .motion-toggle { display: none !important; }
  /* без фонов светлый и градиентный текст напечатался бы белым по белому */
  .svc-card,
  .tile,
  .plan--featured,
  .stat__value,
  .hero__typed,
  .hero__title,
  .accent {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    background: none !important;
    text-shadow: none !important;
  }
  .svc-card *,
  .tile *,
  .plan--featured * { color: #000 !important; }
}

/* Контрастные темы Windows: состояние и мелкие элементы — системными цветами */
@media (forced-colors: active) {
  .burger__lines span { forced-color-adjust: none; background: ButtonText; }
  .dots__link::before { forced-color-adjust: none; background: CanvasText; box-shadow: none; }
  .dots__link.is-active::before { background: Highlight; }
  .check__input:checked + .check__box { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .motion-toggle__icon { forced-color-adjust: none; color: ButtonText; }
}

/* ---------- Пауза анимаций (WCAG 2.2.2) ---------- */
.motion-toggle {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 4vw, 56px);
  bottom: 76px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill);
  background: rgba(18, 6, 43, .45);
  color: rgba(255, 255, 255, .78);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, .45); }
.motion-toggle:focus-visible { outline: 3px solid var(--lilac-2); outline-offset: 3px; }

/* «пауза» — две полоски, «включить» — треугольник */
.motion-toggle__icon {
  flex: none;
  width: 10px;
  height: 12px;
  border-inline: 3px solid currentColor;
}
.motion-off .motion-toggle__icon {
  width: 0;
  height: 0;
  border-inline: 0;
  border-left: 10px solid currentColor;
  border-block: 6px solid transparent;
}

@media (max-width: 767.98px) {
  /* выше скруглённого края следующей секции, в нижнем отступе hero */
  .motion-toggle { left: 50%; bottom: 54px; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .motion-toggle { display: none; }
}

/* После нажатия «Остановить анимацию» — то же, что при системной настройке reduced motion */
.motion-off .hero__caret { animation: none; opacity: 1; }
.motion-off .hero__scroll-icon .icon { animation: none; }
.motion-off .marquee {
  margin-inline: 0;
  -webkit-mask-image: none;
  mask-image: none;
}
.motion-off .marquee__track { display: block; width: auto; animation: none; }
.motion-off .marquee__list { flex-wrap: wrap; padding-right: 0; }
.motion-off .marquee__list[aria-hidden="true"] { display: none; }
