/* ==========================================================================
   AVTODREEM — единая дизайн-система сайта
   Цвета построены на фирменном градиенте логотипа (бирюза → синий)
   ========================================================================== */

:root {
  --bg: #060a14;
  --bg-2: #0a1020;
  --surface: #0e1628;
  --surface-2: #131d33;
  --surface-3: #1a2640;
  --line: rgba(148, 163, 184, .14);
  --line-2: rgba(148, 163, 184, .24);
  --text: #e8eef8;
  --text-2: #b6c2d6;
  --muted: #8494ad;
  --teal: #2ee6d6;
  --teal-2: #5eead4;
  --blue: #3b82f6;
  --blue-2: #2563eb;
  --violet: #8b5cf6;
  --danger: #fb7185;
  --success: #34d399;
  --warning: #fbbf24;
  --grad: linear-gradient(120deg, #2ee6d6 0%, #3b9cf6 55%, #4f6ef7 100%);
  --grad-soft: linear-gradient(120deg, rgba(46, 230, 214, .16), rgba(59, 130, 246, .16));
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --glow: 0 0 0 1px rgba(46, 230, 214, .25), 0 20px 60px -20px rgba(46, 230, 214, .35);
  --container: 1200px;
  --header-h: 72px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--teal-2); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #fff; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
strong { color: #fff; font-weight: 700; }
::selection { background: rgba(46, 230, 214, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Прогресс прокрутки ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 200; transition: width .1s linear; }

/* ---------- Кнопки ---------- */
.btn {
  --b-bg: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 14px; border: 0; cursor: pointer;
  font: 700 16px/1.2 var(--font); color: #04111c; background: var(--b-bg);
  box-shadow: 0 12px 30px -12px rgba(46, 230, 214, .55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s;
  position: relative; overflow: hidden; white-space: nowrap; text-align: center;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-2px); color: #04111c; box-shadow: 0 18px 40px -14px rgba(46, 230, 214, .7); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--lg { padding: 18px 34px; font-size: 17px; border-radius: 16px; }
.btn--sm { padding: 10px 18px; font-size: 14px; border-radius: 11px; }
.btn--ghost { background: rgba(255,255,255,.05); color: #fff; border: 1px solid var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; border-color: rgba(46,230,214,.5); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Иконки мессенджеров ---------- */
.msgr { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; transition: transform .25s var(--ease), box-shadow .25s; flex-shrink: 0; border: 0; padding: 0; cursor: pointer; background: none; }
.msgr svg { width: 100%; height: 100%; display: block; }
.msgr:hover { transform: translateY(-3px) scale(1.06); }
.msgr--tg:hover { box-shadow: 0 10px 24px -8px rgba(42, 171, 238, .8); }
.msgr--wa:hover { box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .8); }
.msgr--max:hover { box-shadow: 0 10px 24px -8px rgba(124, 92, 255, .85); }
.msgr-group { display: flex; gap: 10px; align-items: center; }
.msgr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.msgr-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; font-family: var(--font); transition: transform .25s var(--ease), border-color .25s; }
.msgr-card:hover { transform: translateY(-3px); border-color: rgba(46,230,214,.45); color: #fff; }
.msgr-card .msgr { width: 48px; height: 48px; }
.msgr-card:hover .msgr { transform: none; }

/* ---------- Шапка ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.header.is-scrolled, .header--solid { background: rgba(6, 10, 20, .82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.logo:hover { color: #fff; }
.logo img { width: 44px; height: auto; }
.logo__name { font-weight: 800; font-size: 19px; letter-spacing: .06em; line-height: 1.1; display: block; }
.logo__sub { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; display: block; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link { position: relative; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 15px; white-space: nowrap; background: none; border: 0; cursor: pointer; font-family: var(--font); display: inline-flex; align-items: center; gap: 6px; }
.nav__link:hover, .nav__link.is-active { color: #fff; background: rgba(255,255,255,.06); }
.nav__link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav__link svg { width: 14px; height: 14px; transition: transform .25s; }
.nav__drop { position: relative; }
.nav__menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); min-width: 300px; padding: 10px; border-radius: 18px; background: rgba(14, 22, 40, .97); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.nav__menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu, .nav__drop.is-open .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__drop:hover > .nav__link svg, .nav__drop.is-open > .nav__link svg { transform: rotate(180deg); }
.nav__menu a { display: flex; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text); }
.nav__menu a:hover, .nav__menu a.is-active { background: rgba(255,255,255,.06); color: #fff; }
.nav__menu b { display: block; font-size: 15px; }
.nav__menu small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.nav__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-soft); color: var(--teal-2); flex-shrink: 0; }
.nav__ico svg { width: 18px; height: 18px; }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__actions .msgr { width: 36px; height: 36px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); cursor: pointer; position: relative; flex-shrink: 0; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Мобильное меню */
.drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: rgba(6, 10, 20, .98); backdrop-filter: blur(12px); padding: 24px 20px 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer__group { margin-bottom: 18px; }
.drawer__title { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin: 0 0 8px 4px; }
.drawer a.drawer__link { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; color: #fff; font-weight: 700; font-size: 17px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.drawer a.drawer__link.is-active { border-color: rgba(46,230,214,.5); }
.drawer a.drawer__link::after { content: "→"; color: var(--teal); }
.drawer .btn { margin: 10px 0 20px; }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--glow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 0%, rgba(46,230,214,.08), transparent 70%), radial-gradient(700px 360px at 90% 100%, rgba(59,130,246,.09), transparent 70%); pointer-events: none; }
.section-head { max-width: 820px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; position: relative; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head p { color: var(--text-2); font-size: 1.1rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(46,230,214,.08); border: 1px solid rgba(46,230,214,.25); color: var(--teal-2); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 70px; overflow: hidden; isolation: isolate; }
.hero--page { min-height: auto; padding: calc(var(--header-h) + 56px) 0 64px; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,10,20,.94) 0%, rgba(6,10,20,.78) 50%, rgba(6,10,20,.55) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero__grid-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); }
.hero--page .hero__grid-bg { background-color: transparent; }
.hero--page::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(700px 380px at 20% 10%, rgba(46,230,214,.14), transparent 70%), radial-gradient(800px 420px at 85% 30%, rgba(59,130,246,.16), transparent 70%), var(--bg); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__inner--single { grid-template-columns: 1fr; max-width: 900px; }
.hero h1 { margin-bottom: 22px; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 620px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 30px; }
.price-chip { display: inline-flex; flex-direction: column; padding: 10px 18px; border-radius: 14px; border: 1px dashed rgba(46,230,214,.45); background: rgba(46,230,214,.06); }
.price-chip small { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.price-chip b { font-size: 22px; color: #fff; line-height: 1.2; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: 14.5px; font-weight: 600; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }
.hero__msgr { display: flex; align-items: center; gap: 14px; margin-top: 26px; color: var(--muted); font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.hero__msgr .msgr { width: 46px; height: 46px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .6; }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Демо поисковой строки ---------- */
.search-demo { position: relative; padding: 22px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(19,29,51,.92), rgba(14,22,40,.92)); border: 1px solid var(--line-2); box-shadow: var(--shadow), var(--glow); backdrop-filter: blur(10px); }
.search-demo__top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.search-demo__top i { width: 11px; height: 11px; border-radius: 50%; background: #334155; display: block; }
.search-demo__top i:nth-child(1) { background: #f87171; }
.search-demo__top i:nth-child(2) { background: #fbbf24; }
.search-demo__top i:nth-child(3) { background: #34d399; }
.search-demo__top span { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.search-box { display: flex; align-items: center; border-radius: 14px; background: #fff; border: 2px solid #fc3f1d; overflow: hidden; }
.search-box__logo { padding: 0 6px 0 14px; font-weight: 800; font-size: 20px; color: #fc3f1d; font-family: Arial, sans-serif; letter-spacing: -.02em; }
.search-box__logo b { color: #000; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 14px 8px; font: 500 17px var(--font); color: #111; background: transparent; }
.search-box input::placeholder { color: #9ca3af; }
.search-box button { border: 0; background: #fc3f1d; color: #fff; font: 700 15px var(--font); padding: 0 18px; align-self: stretch; cursor: default; }
.caret { display: inline-block; width: 2px; height: 20px; background: #111; vertical-align: middle; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.suggest { list-style: none; margin: 8px 0 0; padding: 8px 0; border-radius: 14px; background: #fff; color: #111; min-height: 250px; box-shadow: 0 16px 40px -18px rgba(0,0,0,.6); }
.suggest li { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 15.5px; line-height: 1.35; opacity: 0; transform: translateY(6px); animation: sgIn .35s var(--ease) forwards; }
.suggest li svg { width: 15px; height: 15px; color: #9ca3af; flex-shrink: 0; }
.suggest li b { font-weight: 700; }
.suggest.is-dim li { opacity: .35 !important; transition: opacity .3s; }
.suggest li.is-yours { background: linear-gradient(90deg, rgba(46,230,214,.18), rgba(59,130,246,.12)); box-shadow: inset 3px 0 0 #14b8a6; }
.suggest li.is-bad { color: #be123c; }
.suggest li.is-bad svg { color: #e11d48; }
.suggest li .tag { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: #0f766e; color: #fff; white-space: nowrap; }
.suggest li.is-bad .tag { background: #e11d48; }
.suggest li.is-removing { animation: sgOut .5s var(--ease) forwards; }
@keyframes sgIn { to { opacity: 1; transform: none; } }
@keyframes sgOut { to { opacity: 0; transform: translateX(30px); height: 0; padding-top: 0; padding-bottom: 0; } }
.search-demo__hint { margin: 14px 2px 0; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.search-demo__hint svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--teal); }
.demo-toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line); margin-bottom: 14px; }
.demo-toggle button { border: 0; background: none; color: var(--text-2); font: 700 14px var(--font); padding: 8px 16px; border-radius: 9px; cursor: pointer; transition: background .2s, color .2s; }
.demo-toggle button.is-active { background: var(--grad); color: #04111c; }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; overflow: hidden; }
.card--hover:hover { transform: translateY(-6px); border-color: rgba(46,230,214,.35); box-shadow: 0 24px 50px -24px rgba(46,230,214,.35); }
.card h3 { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-2); }
.card__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(46,230,214,.25); color: var(--teal-2); margin-bottom: 20px; }
.card__ico svg { width: 28px; height: 28px; }
.card--spot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(46,230,214,.12), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card--spot:hover::before { opacity: 1; }
.card--feature { display: flex; gap: 20px; align-items: flex-start; }
.num { font-size: 44px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; flex-shrink: 0; min-width: 62px; }
.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--teal-2); font-weight: 700; font-size: 15px; }
.card__more::after { content: "→"; transition: transform .25s; }
.card--link:hover .card__more::after { transform: translateX(5px); }

/* ---------- Счётчики ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { padding: 32px 24px; background: var(--surface); text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.1; margin-bottom: 8px; }
.stat span { color: var(--text-2); font-size: 15px; line-height: 1.45; display: block; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--grad); color: #04111c; font-weight: 800; font-size: 17px; margin-bottom: 18px; box-shadow: 0 10px 24px -10px rgba(46,230,214,.7); }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--text-2); font-size: 15.5px; margin: 0; }

/* ---------- Контент (статьи) ---------- */
.prose { font-size: 1.07rem; color: var(--text-2); }
.prose h2 { margin: 1.8em 0 .6em; font-size: clamp(1.45rem, 2.6vw, 2rem); }
.prose h3 { margin: 1.5em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.prose ul li, .prose ol li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--teal); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.prose blockquote { margin: 1.6em 0; padding: 20px 24px; border-left: 3px solid var(--teal); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); }
.callout { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid rgba(46,230,214,.28); margin: 1.8em 0; color: var(--text); }
.callout svg { width: 26px; height: 26px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.callout p:last-child { margin: 0; }
.toc { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 20px); }
.toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 15px; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--text-2); }
.toc a:hover, .toc a.is-active { color: var(--teal-2); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }

/* ---------- Таблица ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
.table th, .table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--surface-2); color: #fff; font-size: 14px; letter-spacing: .02em; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { color: #fff; font-weight: 700; }
.table td { color: var(--text-2); }
.table .hl { background: rgba(46,230,214,.06); }
.yes { color: var(--success); font-weight: 700; }
.no { color: var(--danger); font-weight: 700; }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: zoom-in; padding: 0; display: block; width: 100%; }
.gallery__item img { width: 100%; aspect-ratio: 1196 / 440; object-fit: cover; object-position: left top; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 10px; background: rgba(6,10,20,.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center/20px no-repeat; opacity: 0; transform: scale(.8); transition: .3s var(--ease); }
.gallery__item:hover::after { opacity: 1; transform: none; }
.zoomable { cursor: zoom-in; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #fff; }
.media-frame video, .media-frame img { width: 100%; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(3,6,14,.94); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1400px, 96vw); max-height: 88vh; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.7); background: #fff; transform: scale(.96); transition: transform .3s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__close, .lightbox__nav { position: absolute; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); color: #fff; font-size: 24px; cursor: pointer; display: grid; place-items: center; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--text-2); font-size: 14px; padding: 0 20px; }

/* ---------- Отзывы ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.chip { border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: 700 14px var(--font); padding: 9px 16px; border-radius: 99px; cursor: pointer; transition: .2s; }
.chip:hover { color: #fff; border-color: rgba(46,230,214,.5); }
.chip.is-active { background: var(--grad); color: #04111c; border-color: transparent; }
.chip span { opacity: .7; font-weight: 600; margin-left: 4px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; align-items: start; }
.review { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); display: block; }
.review:hover { border-color: rgba(46,230,214,.3); }
.review.is-hidden { display: none; }
.review__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #04111c; background: var(--grad); flex-shrink: 0; font-size: 16px; }
.review__name { font-weight: 800; color: #fff; line-height: 1.3; font-size: 15.5px; }
.review__meta { font-size: 13px; color: var(--muted); line-height: 1.4; }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: 14px; margin-bottom: 10px; }
.review__text { color: var(--text-2); font-size: 15.5px; line-height: 1.7; margin: 0; position: relative; }
.review__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review__more { margin-top: 10px; border: 0; background: none; color: var(--teal-2); font: 700 14px var(--font); cursor: pointer; padding: 0; }
.review__tag { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--surface-3); color: var(--text-2); }
.review ul { color: var(--text-2); font-size: 15px; padding-left: 1.1em; }
.load-more { display: flex; justify-content: center; margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(46,230,214,.35); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-weight: 700; font-size: 1.05rem; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 24px 22px; color: var(--text-2); }
.faq__body p:last-child { margin: 0; }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.calc__inputs { padding: clamp(24px, 4vw, 40px); display: grid; gap: 26px; }
.calc__result { padding: clamp(24px, 4vw, 40px); background: linear-gradient(160deg, rgba(46,230,214,.12), rgba(59,130,246,.14)); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.range label { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; color: #fff; margin-bottom: 10px; font-size: 15.5px; }
.range output { color: var(--teal-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.range small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.45; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--teal) 0%, var(--blue) var(--p, 50%), var(--surface-3) var(--p, 50%)); outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); box-shadow: 0 4px 12px rgba(0,0,0,.4); transition: transform .15s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); }
.calc__big { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.calc__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); color: var(--text-2); font-size: 15.5px; }
.calc__row b { color: #fff; font-variant-numeric: tabular-nums; }
.calc__note { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

/* ---------- CTA-полоса ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); overflow: hidden; background: linear-gradient(120deg, #0d3b46 0%, #0f2a5c 60%, #1e1b5c 100%); border: 1px solid rgba(46,230,214,.3); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-band::before { content: ""; position: absolute; width: 480px; height: 480px; right: -120px; top: -200px; background: radial-gradient(circle, rgba(46,230,214,.35), transparent 65%); pointer-events: none; }
.cta-band h2 { margin-bottom: 10px; position: relative; }
.cta-band p { margin: 0; color: #cfe3f5; font-size: 1.1rem; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Форма ---------- */
.lead { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.lead__info h2 { margin-bottom: 16px; }
.lead__info > p { color: var(--text-2); font-size: 1.08rem; }
.checklist { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--text-2); align-items: flex-start; }
.checklist li::before { content: ""; width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; margin-top: 2px; background: rgba(52,211,153,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); position: relative; }
.form-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; pointer-events: none; }
.form-card__title { font-size: 1.45rem; margin-bottom: 6px; }
.form-card__sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; display: grid; gap: 7px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--text); }
.field > span i { color: var(--teal); font-style: normal; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border-radius: 13px; border: 1.5px solid var(--line-2); background: var(--bg-2); color: #fff; font: 500 16px var(--font); transition: border-color .2s, box-shadow .2s, background .2s; outline: none; }
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field select option { background: var(--surface); color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #5b6b85; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(46,230,214,.14); background: #0b1426; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(251,113,133,.12); }
.field.is-valid input { border-color: rgba(52,211,153,.6); }
.field__err { font-size: 13px; color: var(--danger); min-height: 0; display: none; }
.field.is-invalid .field__err { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; accent-color: var(--teal); flex-shrink: 0; margin-top: 1px; cursor: pointer; }
.consent.is-invalid { color: var(--danger); }
.hp { position: absolute !important; left: -9999px !important; }
.form__status { font-size: 15px; font-weight: 600; text-align: center; min-height: 0; }
.form__status.is-error { color: var(--danger); }
.form-success { text-align: center; padding: 30px 10px; display: none; }
.form-success.is-shown { display: block; animation: sgIn .5s var(--ease) forwards; }
.form-success__ico { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(52,211,153,.14); border: 1px solid rgba(52,211,153,.4); color: var(--success); }
.form-success__ico svg { width: 38px; height: 38px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-2); }
.form-alt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); }
.form-alt .msgr-group { justify-content: center; margin-top: 12px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(4,17,28,.3); border-top-color: #04111c; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Модальные окна ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(3,6,14,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; transform: translateY(20px) scale(.98); transition: transform .35s var(--ease); }
.modal__dialog--sm { max-width: 420px; }
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center; z-index: 2; transition: background .2s; }
.modal__close:hover { background: var(--surface-3); }
.max-box { text-align: center; }
.max-box .msgr { width: 64px; height: 64px; margin: 0 auto 16px; }
.max-box__num { font-size: 1.6rem; font-weight: 800; color: #fff; margin: 6px 0 20px; letter-spacing: .01em; }
.max-box .btn { margin-bottom: 10px; }

/* ---------- Плавающая кнопка связи ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab__list { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab__item { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: .3s var(--ease); }
.fab__item span { background: rgba(14,22,40,.95); border: 1px solid var(--line-2); color: #fff; font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 10px; white-space: nowrap; }
.fab__item .msgr { width: 50px; height: 50px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); }
.fab.is-open .fab__item { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-open .fab__item:nth-child(2) { transition-delay: .05s; }
.fab.is-open .fab__item:nth-child(3) { transition-delay: .1s; }
.fab.is-open .fab__item:nth-child(4) { transition-delay: .15s; }
.fab__btn { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); color: #04111c; display: grid; place-items: center; box-shadow: 0 14px 34px -10px rgba(46,230,214,.8); position: relative; transition: transform .3s var(--ease); }
.fab__btn::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(46,230,214,.5); animation: ring 2.4s infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.fab__btn svg { width: 28px; height: 28px; transition: transform .3s var(--ease), opacity .2s; position: absolute; }
.fab__btn .ico-close { opacity: 0; transform: rotate(-90deg); }
.fab.is-open .fab__btn .ico-chat { opacity: 0; transform: rotate(90deg); }
.fab.is-open .fab__btn .ico-close { opacity: 1; transform: none; }
.fab.is-open .fab__btn::before { animation: none; opacity: 0; }
.to-top { position: fixed; left: 20px; bottom: 20px; z-index: 89; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(14,22,40,.9); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* Тост */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 500; background: #fff; color: #04111c; font-weight: 700; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s var(--ease); font-size: 15px; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Контакты / карта ---------- */
.contacts { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .card__ico { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.contact-list .card__ico svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.contact-list b, .contact-list a { font-size: 16.5px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 400px; background: var(--surface) center/cover; position: relative; }
.map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; }
.map__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }

/* ---------- Футер ---------- */
.footer { background: #04070f; border-top: 1px solid var(--line); padding: 64px 0 30px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 44px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: #fff; }
.footer__about { color: var(--muted); margin: 16px 0 20px; line-height: 1.6; }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13.5px; }
.footer__bottom a { color: var(--muted); }

/* ---------- Прочее ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--text); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li { padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--text); transition: .25s var(--ease); }
.pill-list li:hover { border-color: rgba(46,230,214,.45); transform: translateY(-2px); }
.price-card { text-align: center; padding: 40px 32px; }
.price-card__val { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; line-height: 1; margin: 12px 0 6px; }
.price-card ul { text-align: left; }
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: sgIn .4s var(--ease) forwards; }
.note { font-size: 13.5px; color: var(--muted); }
.error-page { min-height: 80vh; display: flex; align-items: center; text-align: center; }
.error-page .big { font-size: clamp(6rem, 20vw, 12rem); font-weight: 800; line-height: 1; }

/* ---------- Анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .nav__link { padding: 10px 9px; font-size: 14.5px; }
  .header__actions .msgr-group { display: none; }
}
@media (max-width: 1024px) {
  :root { --header-h: 66px; }
  .nav, .header__actions .btn { display: none; }
  .header__actions .msgr-group { display: flex; }
  .burger { display: block; }
  .header__actions { margin-left: auto; gap: 10px; }
  .hero__inner, .split, .lead, .contacts, .calc, .article-layout { grid-template-columns: 1fr; }
  .calc__result { border-left: 0; border-top: 1px solid var(--line); }
  .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .toc { position: static; }
  .article-layout aside { order: -1; }
  .hero { min-height: auto; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .grid--2, .grid--3, .grid--4, .steps, .gallery, .form__row { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .card--feature { gap: 14px; }
  .num { font-size: 36px; min-width: 50px; }
  .cta-band { grid-template-columns: 1fr; text-align: center; }
  .cta-band .btn { width: 100%; white-space: normal; }
  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 48px; }
  .hero__cta .btn { width: 100%; }
  .hero__cta .price-chip { width: 100%; align-items: center; }
  .logo__sub { display: none; }
  .logo img { width: 38px; }
  .logo__name { font-size: 17px; }
  .header__actions .msgr { width: 34px; height: 34px; }
  .header__actions .msgr-group { gap: 7px; }
  .footer__grid { grid-template-columns: 1fr; }
  .search-demo { padding: 14px; border-radius: 22px; }
  .suggest li { font-size: 14.5px; padding: 8px 12px; }
  .suggest li .tag { font-size: 10px; padding: 3px 6px; }
  .search-box__logo { font-size: 17px; padding-left: 10px; }
  .search-box button { padding: 0 12px; font-size: 14px; }
  .fab { right: 14px; bottom: 14px; }
  .to-top { left: 14px; bottom: 14px; }
  .lightbox__nav { display: none; }
  .map, .map iframe { min-height: 320px; }
  .faq summary { padding: 18px; font-size: 1rem; }
  .faq__body { padding: 0 18px 18px; }
  .stat { padding: 24px 14px; }
  .reviews { grid-template-columns: 1fr; }
  .btn--lg { padding: 16px 22px; }
}
@media (max-width: 380px) {
  .header__actions .msgr { width: 30px; height: 30px; }
  .logo__name { font-size: 15px; letter-spacing: .03em; }
  .logo img { width: 32px; }
  .msgr-cards { grid-template-columns: 1fr; }
}

/* ---------- Видимость по устройствам ---------- */
.only-mobile { display: none !important; }
@media (max-width: 1024px) {
  .only-desktop { display: none !important; }
  .only-mobile { display: block !important; }
}

/* grid-элементы не должны распирать колонку длинным содержимым */
.hero__inner > *, .split > *, .lead > *, .contacts > *, .calc > *, .article-layout > *, .grid > *, .steps > * { min-width: 0; }
.table-hint { display: none; font-size: 13px; color: var(--muted); margin: 10px 0 0; text-align: right; }
@media (max-width: 720px) { .table-hint { display: block; } }
.hero__inner--single { display: block; }
.avatar svg { width: 22px; height: 22px; }

/* ==========================================================================
   Форма заявки v2
   ========================================================================== */
.form { gap: 18px; }
.opts { border: 0; margin: 0; padding: 0; min-width: 0; }
.opts legend { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 9px; padding: 0; }
.opts__list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 11px; border: 1.5px solid var(--line-2); background: var(--bg-2); color: var(--text-2); font-weight: 700; font-size: 14px; line-height: 1.2; transition: border-color .2s, background .2s, color .2s, transform .15s; user-select: none; }
.opt span svg { width: 16px; height: 16px; color: var(--muted); transition: color .2s; flex-shrink: 0; }
.opt:hover span { border-color: rgba(46,230,214,.45); color: #fff; }
.opt input:checked + span { border-color: var(--teal); background: rgba(46,230,214,.12); color: #fff; box-shadow: 0 0 0 3px rgba(46,230,214,.12); }
.opt input:checked + span svg { color: var(--teal); }
.opt input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.opt:active span { transform: scale(.97); }
.opt--sm span { padding: 7px 12px; font-size: 13.5px; }

.field__ctl { position: relative; display: block; }
.field__ctl > svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: color .2s; }
.field__ctl input { padding-left: 44px; padding-right: 42px; }
.field__ctl input:focus ~ svg, .field__ctl:focus-within > svg { color: var(--teal); }
.field__ok { position: absolute; right: 12px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: rgba(52,211,153,.16); color: var(--success); display: grid; place-items: center; opacity: 0; transform: scale(.5); transition: .25s var(--ease); pointer-events: none; font-style: normal; }
.field__ok svg { width: 13px; height: 13px; stroke-width: 3; }
.field.is-valid .field__ok { opacity: 1; transform: none; }
.field.is-valid .field__ctl > svg { color: var(--success); }
.field.is-invalid .field__ctl > svg { color: var(--danger); }
.field.is-invalid input { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.field textarea { min-height: 76px; }
.field input:-webkit-autofill, .field input:-webkit-autofill:focus { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #0b1426 inset; caret-color: #fff; transition: background-color 9999s; }

.form__submit { display: grid; gap: 10px; }
.form__progress { display: flex; align-items: center; gap: 12px; }
.form__bar { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.form__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .4s var(--ease); }
.form__progress small { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.form__progress.is-done small { color: var(--success); }
.form__status:empty { display: none; }
.form__status.is-error { padding: 12px 14px; border-radius: 12px; background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.35); font-size: 14px; }

/* Успех: анимированная галочка */
.check-anim { width: 100%; height: 100%; }
.check-anim circle { fill: none; stroke: var(--success); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; }
.check-anim path { fill: none; stroke: var(--success); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.is-shown .check-anim circle, .modal.is-open .check-anim circle { animation: draw .6s var(--ease) .1s forwards; }
.is-shown .check-anim path, .modal.is-open .check-anim path { animation: draw .4s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success__ico { padding: 14px; }
.form-success__ico svg { width: 100%; height: 100%; }
.form-success__ico--lg { width: 96px; height: 96px; box-shadow: 0 0 0 10px rgba(52,211,153,.06); }
.form-card.is-sent .form-card__title, .form-card.is-sent .form-card__sub { display: none; }
.form-success { padding: 20px 6px 6px; }
.success-box { text-align: center; }
.success-box .msgr-group { justify-content: center; }
.success-box__summary { margin: 4px 0 20px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); text-align: left; font-size: 14.5px; display: grid; gap: 6px; }
.success-box__summary:empty { display: none; }
.success-box__summary div { display: flex; justify-content: space-between; gap: 12px; }
.success-box__summary span { color: var(--muted); }
.success-box__summary b { text-align: right; word-break: break-word; }

/* Мобильные: модалка — шторка снизу, кнопка отправки закреплена */
@media (max-width: 720px) {
  .form { gap: 16px; }
  .form-card { padding: 22px 18px; }
  .opts__list { gap: 7px; }
  .opt span { padding: 8px 11px; font-size: 13.5px; }
  .modal:not(.modal--center) { align-items: flex-end; padding: 0; }
  .modal:not(.modal--center) .modal__dialog { max-width: none; max-height: 94vh; max-height: 94dvh; border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .4s var(--ease); overscroll-behavior: contain; }
  .modal:not(.modal--center).is-open .modal__dialog { transform: none; }
  .modal:not(.modal--center) .form-card { border-radius: 24px 24px 0 0; border-bottom: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .modal:not(.modal--center) .form-card::after { content: ""; position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: var(--line-2); }
  .modal .form__submit { position: sticky; bottom: 0; z-index: 3; margin: 0 -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(14,22,40,0), var(--surface) 22%); }
  .modal .form-alt { margin-top: 12px; }
  .modal__close { top: 16px; right: 12px; }
  .form-card__title { padding-right: 44px; }
}
.form__row { align-items: start; }
.field { align-content: start; }
.field__err { font-style: normal; font-size: 13px; line-height: 1.4; }
#leadModal .modal__dialog { max-width: 640px; }
@media (min-width: 721px) {
  .modal .form-card { padding: 32px; }
  .modal .form__submit { position: sticky; bottom: 0; z-index: 3; margin: 0 -32px; padding: 14px 32px 16px; background: linear-gradient(180deg, rgba(14,22,40,0), var(--surface) 20%); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .modal .form-alt { margin-top: 20px; }
}
