/* Дизайн-система по мотивам conf.surgay.ru/sprint:
   тёмный фиолетовый первый экран, градиент сиреневый → фиолетовый,
   кнопки-таблетки с кружком-галочкой, белые карточки 15px с мягкой тенью,
   широкий шрифт для акцентов (Unbounded вместо Druk Wide), геометрический для текста (Onest вместо Gilroy). */

:root {
  --ink: #101010;
  --ink-2: #17151f;
  --night: #0d0a18;
  --text-2: #4a5162;
  --mist: #778598;
  --line: #ece8f7;
  --lavender: #f8f7ff;
  --lavender-2: #f2eefe;
  --lilac: #ce9ffc;
  --violet: #7367f0;
  --violet-strong: #5b4de0;
  --violet-deep: #392972;
  --white: #fff;

  /* яркий градиент — для декора и текста на тёмном */
  --grad: linear-gradient(137deg, #ce9ffc 0%, #7367f0 100%);
  /* плотнее — под белым текстом (кнопки, плашки) */
  --grad-btn: linear-gradient(137deg, #9a74f2 0%, #6152e0 100%);
  /* глубокий — для больших заливок с текстом */
  --grad-deep: linear-gradient(137deg, #8a64d6 0%, #5d52c7 100%);
  /* для градиентного текста на светлом фоне */
  --grad-ink: linear-gradient(137deg, #a275f5 0%, #5a4bdc 100%);

  --shadow: 0 0 25px rgba(44, 47, 67, .10);
  --shadow-lift: 0 18px 40px -18px rgba(57, 41, 114, .35);
  --radius: 15px;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-strong); }
b, strong { font-weight: 700; }
sup { font-size: .62em; line-height: 0; vertical-align: super; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(900px, 100% - 40px); }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary {
  background: var(--grad-btn); color: var(--white);
  box-shadow: 0 12px 30px -12px rgba(115, 103, 240, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(115, 103, 240, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-lg { min-height: 64px; font-size: 18px; padding: 0 10px 0 30px; }
.btn-primary:has(.btn-check) { padding-right: 10px; }
.btn-check {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(137deg, #7b62e0 0%, #4c3fbf 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 6px 14px -6px rgba(35, 20, 110, .8);
}
.btn-check svg { width: 20px; height: 20px; color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-ghost {
  min-height: 64px; padding: 0 28px;
  color: var(--white); background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .28);
}
.btn-ghost:hover { border-color: var(--lilac); background: rgba(206, 159, 252, .08); }
.btn-white { background: var(--white); color: var(--ink); padding: 0 10px 0 26px; min-height: 60px; }
.btn-white .btn-check { background: var(--grad-btn); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(16, 16, 16, .6); }
.btn-block { width: 100%; justify-content: space-between; }
.link-btn {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; font-size: inherit;
}

/* ---------- Шапка ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background-color .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled {
  background: rgba(16, 16, 16, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-row { height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(115, 103, 240, .9); }
.brand-mark svg { width: 26px; height: 26px; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: var(--lilac); }
.menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .25);
  font-weight: 600; font-size: 14px;
}
.menu-toggle-bars { display: grid; gap: 4px; }
.menu-toggle-bars span { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--white); padding: 128px 0 56px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 45%, rgba(115, 103, 240, .28), transparent 70%),
    linear-gradient(90deg, rgba(13, 10, 24, 1) 0%, rgba(13, 10, 24, .93) 34%, rgba(13, 10, 24, .5) 64%, rgba(13, 10, 24, .3) 100%),
    linear-gradient(0deg, rgba(13, 10, 24, 1) 0%, rgba(13, 10, 24, 0) 30%),
    url("assets/hero-night.jpg") right center / cover no-repeat;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(11px, .96vw, 14px); letter-spacing: .01em; line-height: 1.3; text-wrap: balance;
}
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px 2px rgba(206, 159, 252, .7); }
.hero h1 {
  margin: 26px 0 20px; max-width: 13.5em;
  font-weight: 700; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -.035em;
}
.hl {
  background: var(--grad-btn); color: var(--white);
  padding: 0 .16em; border-radius: .16em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-sub { max-width: 37em; color: rgba(255, 255, 255, .78); font-size: clamp(16px, 1.25vw, 18px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 14px; max-width: 32em; font-size: 14px; color: rgba(255, 255, 255, .6); }

.hero-demo { position: relative; display: flex; flex-direction: column; align-items: center; }
.clock {
  position: absolute; z-index: 3; top: -18px; left: max(0px, calc(50% - 250px));
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 14px; border-radius: 18px;
  background: rgba(19, 15, 34, .8); border: 1px solid rgba(206, 159, 252, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .7);
  pointer-events: none; user-select: none;
}
.clock b {
  font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.clock span { font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .78); }
.phone {
  position: relative; z-index: 1;
  width: min(340px, 88vw); height: 668px;
  display: flex; flex-direction: column; overflow: hidden;
  background: #13111d; border: 10px solid #0a0910; border-radius: 48px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14), 0 40px 90px -30px rgba(115, 103, 240, .75);
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 999px; background: #0a0910; z-index: 2; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 44px 16px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .02); }
.chat-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #3a3450; font-weight: 700; font-size: 15px; }
.chat-title { display: grid; line-height: 1.25; }
.chat-title b { font-size: 15px; }
.chat-title small { font-size: 12px; color: rgba(255, 255, 255, .55); }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 12px 12px 12px; overflow: hidden; }
.msg { position: relative; max-width: 88%; padding: 8px 11px 18px; border-radius: 16px; font-size: 13px; line-height: 1.4; }
.msg time { position: absolute; right: 10px; bottom: 4px; font-size: 10.5px; opacity: .6; }
.msg.in { align-self: flex-start; background: #262236; border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: linear-gradient(137deg, #8d6ef0 0%, #6152e0 100%); border-bottom-right-radius: 6px; }
.msg-who { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; opacity: .8; }
.typing { display: none; align-self: flex-end; gap: 4px; margin: 0 12px 12px auto; padding: 12px 14px; border-radius: 16px; border-bottom-right-radius: 6px; background: #6152e0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .9); animation: blink 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.toast-stack { position: absolute; z-index: 2; right: -18px; bottom: 96px; display: grid; gap: 10px; width: 292px; }
.toast {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  font-size: 13px; line-height: 1.35;
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, .55);
}
.toast b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.toast-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-btn); }
.toast-ico svg { width: 18px; height: 18px; color: var(--white); }
.demo-caption { position: relative; z-index: 1; margin-top: 18px; max-width: 360px; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .55); }

/* состояние «идёт показ» включает скрипт */
.hero-demo.is-anim .msg:not(.is-shown) { display: none; }
.hero-demo.is-anim .msg.is-shown { animation: pop .38s ease both; }
.hero-demo.is-anim .typing.is-on { display: flex; }
.hero-demo.is-anim .toast { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.hero-demo.is-anim .toast.is-shown { opacity: 1; transform: none; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.hero-stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero-stats b {
  display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats span { display: block; margin-top: 8px; max-width: 17em; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .66); }

/* ---------- Секции ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.section-lavender { background: var(--lavender); }
.section-dark { overflow: hidden; background: var(--ink); color: var(--white); }
.section-grad { overflow: hidden; background: var(--grad-deep); color: var(--white); }
.glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(115, 103, 240, .32), transparent 66%); }
.glow-a { top: -260px; right: -200px; }
.glow-b { bottom: -300px; left: -220px; }

.section-head { position: relative; max-width: 840px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin-top: 18px; font-weight: 400; font-size: clamp(28px, 3.3vw, 44px); line-height: 1.15; letter-spacing: -.025em; }
.section-head h2 b { font-weight: 700; }
.lead { margin-top: 18px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--text-2); }
.section-dark .lead { color: rgba(255, 255, 255, .72); }
.label {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  background: var(--grad-btn); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.2;
  box-shadow: 0 10px 24px -12px rgba(115, 103, 240, .9);
}
.dots { display: inline-flex; gap: 5px; padding: 8px 11px; border-radius: 999px; background: var(--grad); box-shadow: 0 8px 20px -10px rgba(115, 103, 240, .9); }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .95); }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.footnote { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--mist); }
.footnote.center, .center { text-align: center; }
.note-line { margin-top: 28px; text-align: center; font-size: 16px; color: var(--text-2); }
.inline-ico { width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; color: var(--violet); }
.center-cta { margin-top: 40px; text-align: center; }
.num {
  display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-text { background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* боль */
.pain-card { display: flex; flex-direction: column; }
.pain-card h3 { margin-bottom: 12px; font-size: 20px; line-height: 1.25; }
.pain-card > p { font-size: 16px; color: var(--text-2); }
.pain-card > p b { color: var(--ink); }
.pain-card blockquote { position: relative; margin-top: auto; padding: 18px 18px 16px 18px; border-radius: 12px; background: var(--lavender-2); }
.pain-card > p + blockquote { margin-top: 20px; }
.pain-card blockquote::before {
  content: "“"; position: absolute; top: -14px; left: 14px;
  font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pain-card blockquote p { font-size: 15px; line-height: 1.5; font-weight: 500; }
.pain-card blockquote footer { margin-top: 8px; font-size: 12.5px; color: var(--mist); }
.stat-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.stat-tile { padding: 28px 30px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.stat-tile .num { font-size: clamp(30px, 3.2vw, 46px); }
.stat-tile p { margin-top: 10px; font-size: 16px; color: var(--text-2); }
.stat-tile small { display: block; margin-top: 10px; font-size: 12.5px; color: var(--mist); }
.bridge { max-width: 30em; margin: 56px auto 0; text-align: center; font-size: clamp(20px, 2.1vw, 28px); font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }

/* цифры */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.numbers li { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.numbers .num { font-size: clamp(30px, 3vw, 44px); }
.numbers span { display: block; margin-top: 12px; font-size: 15.5px; color: var(--text-2); }

/* шаги */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(206, 159, 252, .14); }
.step-no {
  display: block; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin-bottom: 10px; font-size: 20px; line-height: 1.25; }
.step p { font-size: 15.5px; color: rgba(255, 255, 255, .72); }
.timing { position: relative; margin-top: 32px; text-align: center; font-size: 17px; color: rgba(255, 255, 255, .8); }
.timing b { color: var(--white); }
.split { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.card-dark { padding: 30px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08); }
.card-dark-accent { background: linear-gradient(137deg, rgba(206, 159, 252, .16), rgba(115, 103, 240, .24)); border-color: rgba(206, 159, 252, .35); }
.card-dark h3 { margin-bottom: 16px; font-size: 22px; }
.checks li { position: relative; margin: 12px 0; padding-left: 34px; font-size: 16px; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-btn); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.owner { position: relative; display: flex; align-items: center; gap: 18px; max-width: 780px; margin: 40px auto 0; padding: 18px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px dashed rgba(206, 159, 252, .45); }
.owner p { font-size: 16px; color: rgba(255, 255, 255, .82); }
.owner b { color: var(--white); }
.owner-photo { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #221f2e; color: rgba(255, 255, 255, .5); }
.owner-photo svg { width: 60%; height: 60%; }

/* интеграции */
.tabs { position: relative; }
.tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 6px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); }
.tab { border: 0; cursor: pointer; padding: 13px 20px; border-radius: 999px; background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; transition: background-color .2s; }
.tab:hover { background: var(--lavender-2); }
.tab[aria-selected="true"] { background: var(--grad-btn); color: var(--white); box-shadow: 0 8px 20px -10px rgba(115, 103, 240, .9); }
.tab-panel { max-width: 860px; margin: 26px auto 0; padding: 34px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.chips li { padding: 13px 22px; border-radius: 999px; background: var(--lavender-2); border: 1px solid #e3dcfb; color: var(--violet-deep); font-weight: 700; font-size: 18px; }
.tab-panel p { font-size: 17px; color: var(--text-2); }

/* возможности */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.f-ico, .g-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--lavender-2); color: var(--violet); }
.f-ico svg, .g-ico svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.25; }
.feature p { font-size: 15px; line-height: 1.5; color: var(--text-2); }

/* путь сообщения */
.flow { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.flow::before { content: ""; position: absolute; top: 26px; left: 3%; right: 3%; height: 2px; background: rgba(255, 255, 255, .35); }
.flow li { position: relative; }
.flow-no, .flow-time {
  position: relative; z-index: 1; display: inline-grid; place-items: center;
  min-width: 52px; height: 52px; padding: 0 14px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  background: var(--white); color: var(--violet-strong);
  box-shadow: 0 12px 26px -12px rgba(30, 16, 90, .8);
}
.flow-time { background: var(--ink); color: var(--white); }
.flow p { margin-top: 16px; font-size: 15.5px; line-height: 1.45; color: rgba(255, 255, 255, .94); }
.flow-out { max-width: 30em; margin: 48px auto 0; text-align: center; font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.35; }

/* ИИ-сотрудники */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.role { display: flex; flex-direction: column; padding: 26px 28px 28px; transition: transform .2s ease, box-shadow .2s ease; }
.role:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.role img { width: 112px; height: 112px; margin: -4px 0 12px -10px; }
.role h3 { margin-bottom: 10px; font-size: 20px; }
.role p { font-size: 15.5px; color: var(--text-2); }
.role .role-for { align-self: flex-start; margin-top: auto; padding: 8px 12px; border-radius: 999px; background: var(--lavender-2); color: var(--violet-deep); font-size: 13px; font-weight: 600; line-height: 1.3; }
.role p + .role-for { margin-top: 16px; }

/* кейсы */
.case { display: flex; flex-direction: column; padding: 30px; }
.case-tag { font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--violet-deep); }
.case-num { margin-top: 14px; font-size: clamp(34px, 3.1vw, 44px); }
.case-num-label { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.case dl { margin-top: 20px; padding-top: 6px; border-top: 1px solid var(--line); }
.case dt { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 700; }
.case dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.case dd { margin: 4px 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.case-person { margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 600; }

/* данные */
.security { position: relative; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: center; }
.security-art { width: 100%; filter: drop-shadow(0 30px 60px rgba(115, 103, 240, .45)); }
.security h2 { font-weight: 400; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -.025em; }
.security h2 b { font-weight: 700; }
.sec-list li { display: flex; gap: 16px; margin-top: 24px; }
.sec-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(206, 159, 252, .12); border: 1px solid rgba(206, 159, 252, .3); color: var(--lilac); }
.sec-ico svg { width: 24px; height: 24px; }
.sec-list p { font-size: 17px; color: rgba(255, 255, 255, .78); }
.sec-list b { color: var(--white); }

/* что входит и калькулятор */
.price-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; }
.included { padding: 34px; }
.included .checks li { font-size: 16.5px; }
.included .checks li:first-letter { text-transform: uppercase; }
.how-price { padding: 34px; background: var(--ink); color: var(--white); }
.how-price h3 { margin-bottom: 14px; font-size: 24px; }
.how-price p { margin-bottom: 14px; color: rgba(255, 255, 255, .75); }
.how-price .btn { margin-top: 10px; }
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); margin-top: 20px; padding: 0; overflow: hidden; }
.calc-inputs { padding: 34px; }
.calc-inputs h3 { margin-bottom: 26px; font-size: 24px; line-height: 1.25; }
.field-range { display: block; margin-bottom: 26px; }
.fr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 16px; }
.fr-top output { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--violet-strong); white-space: nowrap; }
.field-range small { display: block; margin: 4px 0 14px; font-size: 13px; color: var(--mist); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, #8f6cf0 var(--pct, 15%), #e7e3f0 var(--pct, 15%));
}
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 6px solid #7a60ea; box-shadow: 0 6px 14px -4px rgba(57, 41, 114, .5); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 6px solid #7a60ea; box-shadow: 0 6px 14px -4px rgba(57, 41, 114, .5); }
.calc-result { display: flex; flex-direction: column; justify-content: center; padding: 34px; background: var(--grad-deep); color: var(--white); }
.calc-result > p { font-size: 16px; color: rgba(255, 255, 255, .85); }
.calc-managers { display: block; margin: 6px 0 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; }
.calc-money { display: grid; gap: 6px; margin-bottom: 26px; font-size: 16px; color: rgba(255, 255, 255, .85); }
.calc-money b { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--white); }
.calc-note { grid-column: 1 / -1; padding: 18px 34px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--mist); }

/* гарантии */
.guarantee { position: relative; overflow: hidden; padding: 32px 30px 30px; }
.guarantee::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.guarantee h3 { margin-bottom: 10px; font-size: 20px; }
.guarantee p { font-size: 15.5px; color: var(--text-2); }
.honest { max-width: 780px; margin: 40px auto 0; text-align: center; font-size: 17px; color: var(--text-2); }
.honest b { color: var(--ink); }

/* кому не нужно */
.notfor li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; padding: 22px 24px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.nf-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f1eff5; color: #8a8f9c; }
.nf-ico svg { width: 18px; height: 18px; }
.notfor p { font-size: 16.5px; color: var(--text-2); }
.notfor b { color: var(--ink); }

/* вопросы */
.faq details { margin-bottom: 12px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.faq summary { position: relative; padding: 22px 70px 22px 26px; cursor: pointer; list-style: none; font-size: 17.5px; font-weight: 700; line-height: 1.35; border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq-ico { position: absolute; right: 20px; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #cfc4f7; color: var(--violet); transform: translateY(-50%); transition: transform .25s ease, background-color .25s ease; }
.faq-ico svg { width: 18px; height: 18px; }
.faq details[open] .faq-ico { transform: translateY(-50%) rotate(45deg); background: var(--grad-btn); border-color: transparent; color: var(--white); }
.faq details p { padding: 0 26px 24px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.ask { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 24px; margin-top: 56px; padding: 40px 44px; overflow: visible; }
.ask h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.ask p { margin: 12px 0 22px; font-size: 16.5px; color: var(--text-2); }
.ask .hand { width: 300px; margin: -110px 0 -40px; filter: drop-shadow(0 30px 40px rgba(57, 41, 114, .25)); }

/* заявка */
.apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; padding: 48px; }
.apply-copy h2 { margin: 18px 0 26px; font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.025em; }
.apply-copy h2 b { font-weight: 700; }
.after { counter-reset: after; }
.after li { position: relative; counter-increment: after; margin-bottom: 18px; padding-left: 52px; font-size: 16.5px; color: var(--text-2); }
.after li::before { content: counter(after); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad-btn); color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.after b { color: var(--ink); }
.owner-quote { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--lavender); }
.owner-photo.small { width: 56px; height: 56px; background: #e9e4fb; color: #8b7fd8; }
.owner-quote blockquote p { font-size: 16px; font-weight: 600; line-height: 1.45; }
.owner-quote footer { margin-top: 6px; font-size: 13.5px; color: var(--mist); }
.apply-proof { margin-top: 20px; font-size: 15px; font-weight: 600; }
.apply-proof small { font-size: 12.5px; font-weight: 400; color: var(--mist); }
.apply-form { position: relative; }
.form { display: grid; gap: 16px; padding: 30px; border-radius: var(--radius); background: var(--lavender); border: 1px solid var(--line); }
.form[hidden] { display: none; }
.field label { display: block; margin-bottom: 7px; font-size: 14.5px; font-weight: 600; }
.opt { font-weight: 400; color: var(--mist); }
.field input, .field select {
  width: 100%; min-height: 54px; padding: 0 18px; border-radius: 14px;
  border: 1.5px solid #dcd5f3; background: var(--white); color: var(--ink);
  font: 500 16px var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7367f0 50%), linear-gradient(135deg, #7367f0 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input::placeholder { color: #9aa1b2; }
.field input:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(115, 103, 240, .18); }
.field input[aria-invalid="true"] { border-color: #d6455d; }
.field-error { margin-top: 6px; font-size: 13.5px; color: #c23650; }
.form-error { margin-top: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--violet); }
.form-hint { font-size: 13px; text-align: center; color: var(--mist); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-success { padding: 40px 30px; border-radius: var(--radius); background: var(--lavender); border: 1px solid var(--line); text-align: center; }
.form-success:focus { outline: none; }
.success-ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--grad-btn); color: var(--white); }
.success-ico svg { width: 30px; height: 30px; }
.form-success h3 { margin-bottom: 10px; font-size: 26px; }
.form-success p { margin-top: 8px; font-size: 16px; color: var(--text-2); }

/* подвал */
.site-footer { padding: 44px 0 48px; background: var(--lavender); border-top: 1px solid var(--line); font-size: 13.5px; color: #6b7384; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; align-items: start; }
.brand-dark { color: var(--ink); }
.footer-tagline { margin-top: 10px; }
.footer-legal p + p { margin-top: 6px; }
.footer-links { display: grid; justify-items: end; gap: 8px; }
.site-footer a { color: #6b7384; text-underline-offset: 3px; }
.footer-fine { grid-column: 1 / -1; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: #8a90a0; }

/* липкая кнопка на телефоне */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; }
.sticky-cta .btn { min-height: 58px; padding: 0 8px 0 22px; box-shadow: 0 16px 34px -10px rgba(57, 41, 114, .7); }
.sticky-cta .btn-check { width: 42px; height: 42px; }


/* ---------- Картинки в блоках ---------- */
.card-art { width: 96px; height: 96px; margin: -8px 0 8px -10px; }
.tile-art { width: 72px; height: 72px; margin: -6px 0 10px -8px; }
.step-art { position: absolute; top: 16px; right: 16px; width: 84px; height: 84px; filter: drop-shadow(0 12px 24px rgba(115, 103, 240, .35)); }
.tab-stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: center; max-width: 1040px; margin: 26px auto 0; }
.tab-stage .tab-panel { margin: 0; max-width: none; }
.int-art { width: 320px; height: auto; }
.f-art { width: 80px; height: 80px; margin: -6px 0 10px -8px; }
.flow::before { top: 38px; }
.flow-ico { position: relative; z-index: 1; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--white); box-shadow: 0 14px 30px -14px rgba(30, 16, 90, .85); }
.flow-ico img { width: 58px; height: 58px; }
.flow-badge {
  position: absolute; top: -8px; right: -12px; display: grid; place-items: center;
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  background: var(--ink); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
}
.flow-badge-time { right: -28px; }
.case-art { width: 96px; height: 96px; margin: -8px 0 6px -10px; }
.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.calc-head h3 { margin-bottom: 0; }
.calc-art { flex: none; width: 96px; height: 96px; }
.g-art { width: 88px; height: 88px; margin: -8px 0 10px -10px; }
.notfor-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: center; }
.notfor-art { width: 240px; height: auto; }
.faq-container { width: min(1100px, 100% - 40px); }
.faq-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.faq-aside { position: sticky; top: 110px; }
.faq-art { width: 240px; height: auto; margin: 0 auto; }
.apply-copy { position: relative; }
.apply-art { position: absolute; top: -18px; right: -12px; width: 120px; height: 120px; }


/* ---------- Большие картинки: устройства и сцены, как на референсе ---------- */
.intro-split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 48px; }
.section-head-left { max-width: none; margin: 0; text-align: left; }
.intro-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lift); }
/* боли пунктами в «Знакомо?» */
.pain-list { display: grid; gap: 12px; margin-top: 22px; }
.pain-list li { display: flex; gap: 12px; align-items: flex-start; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; color: var(--ink); }
.pl-ico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: calc((1.5em - 26px) / 2); border-radius: 50%; background: var(--white); color: var(--violet-strong); box-shadow: 0 4px 12px -6px rgba(57, 41, 114, .45); }
.pl-ico svg { width: 14px; height: 14px; }
/* ловушка для спам-ботов: поле не видно людям */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.intro-mockup { width: 100%; filter: drop-shadow(0 30px 60px rgba(115, 103, 240, .35)); }
.numbers-wrap { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px; align-items: center; }
.numbers-wrap .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.numbers-wrap .num { font-size: clamp(24px, 2.1vw, 32px); white-space: nowrap; }
.numbers-art { width: 100%; filter: drop-shadow(0 24px 40px rgba(57, 41, 114, .18)); }
.tab-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); max-width: 1180px; }
.int-art { width: 100%; filter: drop-shadow(0 24px 40px rgba(57, 41, 114, .18)); }
.features-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; align-items: start; }
.features-wrap .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features-art { position: sticky; top: 100px; }
.features-art img { width: 100%; max-width: 440px; margin: 0 auto; filter: drop-shadow(0 30px 50px rgba(57, 41, 114, .2)); }
.case { overflow: hidden; }
.case-photo { width: calc(100% + 60px); max-width: none; margin: -30px -30px 22px; aspect-ratio: 3 / 2; object-fit: cover; }
.apply-photo { width: 100%; margin-top: 4px; filter: drop-shadow(0 20px 36px rgba(57, 41, 114, .2)); }

.honest-row { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: center; max-width: 920px; margin: 44px auto 0; }
.honest-row .honest { margin: 0; text-align: left; }
.honest-art { width: 100%; filter: drop-shadow(0 20px 36px rgba(57, 41, 114, .18)); }


/* ---------- Документы: политика и согласие ---------- */
.doc-page { background: var(--lavender); }
.doc-page .site-header { position: sticky; top: env(safe-area-inset-top, 0px); }
.doc-back { min-height: 40px; margin-left: auto; }
.doc-wrap { padding: 48px 0 72px; }
.doc { width: min(860px, 100% - 32px); margin: 0 auto; padding: clamp(24px, 5vw, 56px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.doc-kicker { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--grad-btn); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.doc h1 { margin: 16px 0 8px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.doc-date { margin-bottom: 28px; font-size: 14px; color: var(--mist); }
.doc h2 { margin: 32px 0 12px; font-size: 20px; line-height: 1.3; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: var(--text-2); }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 10px 0; padding-left: 22px; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc b { color: var(--ink); }
.doc-card { margin-top: 32px; padding: 20px 22px; border-radius: 14px; background: var(--lavender); border: 1px solid var(--line); }
.doc-card p + p { margin-top: 4px; }
.doc-todo { padding: 0 4px; border-radius: 4px; background: #fff3c4; color: #7a5b00; }
.doc-overlay { position: fixed; inset: 0; z-index: 90; overflow-y: auto; padding: 40px 0; background: rgba(13, 10, 24, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.doc-overlay-inner { position: relative; width: min(860px, 100% - 32px); margin: 0 auto; }
.doc-overlay .doc { width: 100%; }
.doc-close { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--lavender-2); color: var(--violet-deep); cursor: pointer; }
.doc-close svg { width: 18px; height: 18px; }
body.doc-open { overflow: hidden; }

/* ---------- Окно о cookie ---------- */
.cookie {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  width: min(460px, calc(100% - 32px)); padding: 20px 22px; border-radius: 18px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(16, 16, 16, .45), 0 0 0 1px rgba(115, 103, 240, .14);
}
.cookie-title { margin-bottom: 6px; font-size: 16px; font-weight: 700; }
.cookie-text { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cookie-actions .btn { flex: 1 1 160px; justify-content: center; text-align: center; }
.btn-outline { background: var(--white); color: var(--violet-deep); border: 1.5px solid #cfc4f7; }
.btn-outline:hover { border-color: var(--violet); background: var(--lavender-2); }
body.cookie-open .sticky-cta { display: none; }
.footer-cookie { justify-self: end; color: #6b7384; font-size: 13.5px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .flow::before { display: none; }
  .main-nav { gap: 18px; }
}

@media (max-width: 960px) {
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0; display: none; flex-direction: column; gap: 0;
    padding: 8px 20px 20px; background: rgba(16, 16, 16, .97); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .8);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: 0; }
  .site-header.menu-open { background: rgba(16, 16, 16, .97); }

  .hero { padding-top: 112px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-bg {
    background:
      radial-gradient(70% 40% at 70% 70%, rgba(115, 103, 240, .3), transparent 70%),
      linear-gradient(180deg, rgba(13, 10, 24, .92) 0%, rgba(13, 10, 24, .85) 45%, rgba(13, 10, 24, .7) 70%, rgba(13, 10, 24, 1) 100%),
      url("assets/hero-night-m.jpg") 70% center / cover no-repeat;
  }
  .toast-stack { right: auto; left: 50%; bottom: 84px; width: min(300px, 82vw); transform: translateX(-50%); }
  .clock { top: -20px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }

  .grid-3, .numbers, .steps, .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases.grid-3 { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .security { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: left; }
  .security-art { width: 220px; margin: 0 auto; }
  .price-grid, .calc, .apply, .split { grid-template-columns: minmax(0, 1fr); }
  .apply { padding: 32px; gap: 32px; }
  .ask { grid-template-columns: minmax(0, 1fr) 220px; padding: 32px; }
  .ask .hand { width: 220px; margin: -90px 0 -30px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-items: start; }
  .site-footer { padding-bottom: 100px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .narrow { width: calc(100% - 32px); }
  .header-row { height: 68px; gap: 12px; }
  .main-nav { top: 68px; }
  html { scroll-padding-top: 76px; }
  .header-cta { display: none; }
  .brand-name { font-size: 16px; }

  .hero { padding: 96px 0 40px; }
  .hero-kicker { padding: 12px 14px; }
  .hero h1 { margin-top: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .hero-actions .btn-ghost { justify-content: center; }
  .btn-lg { font-size: 16.5px; padding-left: 22px; }
  .phone { height: 580px; border-radius: 42px; }
  .hero-stats { margin-top: 44px; }
  .hero-stats span { font-size: 13px; }

  .grid-3, .numbers, .steps, .roles, .features, .stat-pair { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .flow li { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 0; }
  .flow p { margin-top: 0; }
  .flow-no, .flow-time { justify-self: start; }
  .flow-time { padding: 0 10px; font-size: 13px; }

  .section-head { margin-bottom: 36px; }
  .card, .step, .case, .guarantee, .included, .how-price, .calc-inputs, .calc-result { padding: 24px; }
  .calc { padding: 0; }
  .calc-note { padding: 16px 24px; }
  .tab-list { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; border-radius: 18px; scrollbar-width: none; }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab-panel { padding: 24px 18px; }
  .chips li { font-size: 16px; padding: 11px 16px; }
  .owner { flex-direction: column; align-items: flex-start; text-align: left; }
  .ask { grid-template-columns: minmax(0, 1fr); padding: 28px 24px 0; text-align: left; overflow: hidden; }
  .ask .hand { width: 220px; margin: 8px auto -20px; }
  .apply { padding: 22px; }
  .form { padding: 20px; }
  .faq summary { padding: 18px 62px 18px 20px; font-size: 16.5px; }
  .faq-ico { right: 16px; }
  .faq details p { padding: 0 20px 20px; }
}

@media (max-width: 960px) {
  .tab-stage { grid-template-columns: minmax(0, 1fr); }
  .int-art { order: -1; width: 240px; margin: 0 auto; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .faq-aside { position: static; }
  .faq-art { width: 160px; }
  .notfor-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .notfor-art { order: -1; width: 180px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .step-art { top: 14px; right: 14px; width: 68px; height: 68px; }
  .flow li { grid-template-columns: 84px minmax(0, 1fr); }
  .flow-badge-time { right: -20px; }
  .apply-art { top: -8px; right: -4px; width: 84px; height: 84px; }
  .calc-art { width: 72px; height: 72px; }
  .faq-container { width: calc(100% - 32px); }
}

@media (max-width: 960px) {
  .intro-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .numbers-wrap, .features-wrap { grid-template-columns: minmax(0, 1fr); }
  .numbers-art { max-width: 560px; margin: 0 auto; }
  .features-art { position: static; }
  .features-art img { max-width: 340px; }
  .int-art { width: 100%; max-width: 460px; }
}

@media (max-width: 640px) {
  .numbers-wrap .numbers, .features-wrap .features { grid-template-columns: minmax(0, 1fr); }
  .case-photo { width: calc(100% + 48px); margin: -24px -24px 18px; }
}

@media (max-width: 640px) {
  .honest-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .honest-art { width: 200px; margin: 0 auto; }
}

@media (max-width: 960px) {
  .footer-cookie { justify-self: start; }
}

@media (max-width: 640px) {
  .cookie { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .doc-wrap { padding: 28px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
