/* =========================================================
   КМС Медицина — основной стиль. Mobile-first.
   Точки перехода: 560 / 768 / 1024 / 1180
   ========================================================= */

/* Шрифт Manrope (SIL OFL) — локально, без обращений к Google (152-ФЗ, CSP) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --blue: #1e73e8;
  --blue-600: #1763cc;
  --blue-700: #0f4fa8;
  --blue-50: #f0f6ff;
  --blue-100: #deebfd;
  --ink: #0e1b3d;
  --text: #34425f;
  --muted: #6b7a99;
  --line: #e3ebf6;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --red: #e5484d;
  --red-cta: #e31e24; /* красный из логотипа — для кнопки «Позвонить» */
  --green: #22a55b;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(22, 62, 130, .07);
  --shadow-lg: 0 18px 50px rgba(22, 62, 130, .12);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --mbar-h: 64px;

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 76px; }
}

/* ---------- Base ---------- */

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

html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
a[href^="tel:"] { white-space: nowrap; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(30, 115, 232, .45); outline-offset: 2px; border-radius: 6px; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--brand { stroke: none; border-radius: 6px; }
/* Спрайт иконок: не display:none — иначе градиенты в иконках не отрисуются */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

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

/* ---------- Sections & titles ---------- */

.section { padding-top: 44px; }
.section--tight { padding-top: 28px; }
@media (min-width: 1024px) {
  .section { padding-top: 88px; }
  .section--tight { padding-top: 40px; }
}

.section-title { font-size: clamp(24px, 4.6vw, 34px); font-weight: 700; letter-spacing: -.01em; }
.section-title--center { text-align: center; }
.section-title--center::after,
.section-head--center .section-title::after {
  content: ""; display: block; width: 36px; height: 3px; margin: 14px auto 0;
  background: linear-gradient(90deg, var(--blue) 0 70%, transparent 70% 80%, var(--blue) 80%);
  border-radius: 2px;
}
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head--center { justify-content: space-between; }
.section-head--center .section-title::after { display: none; }
@media (min-width: 1024px) {
  .section-head { margin-bottom: 32px; }
  .section-head--center { flex-direction: column; text-align: center; }
  .section-head--center .section-title::after { display: block; }
  .section-head--center .section-head__more { display: none; }
}
.section-head__more { white-space: nowrap; font-weight: 600; font-size: 15px; }
.section-lead { color: var(--muted); max-width: 720px; margin: 12px 0 24px; }
.section-title + .section-lead { margin-top: 12px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(30, 115, 232, .25); }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--outline { border-color: #b9d2f5; color: var(--blue); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-600); background: var(--blue-50); }
.btn--white { background: #fff; color: var(--blue-700); }
.btn--white:hover { background: var(--blue-50); color: var(--blue-700); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--link { color: var(--blue); min-height: 40px; font-weight: 600; }
.btn--link:hover { text-decoration: underline; }
.btn--lg { min-height: 56px; padding: 14px 26px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }

.link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; }
.link .icon { width: 18px; height: 18px; transition: transform .2s; }
.link:hover .icon { transform: translateX(3px); }

.tag {
  position: absolute; left: 12px; top: 12px;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- Header ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(22, 62, 130, .06); }
.header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo:hover { color: var(--ink); }
.logo__pic { flex: none; }
.logo__mark { display: block; width: 38px; height: 38px; }
@media (min-width: 768px) { .logo { font-size: 21px; } .logo__mark { width: 44px; height: 44px; } }

.nav, .header__contact, .header__cta { display: none; }

.header__call {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 14px;
  border: 1.5px solid #b9d2f5; border-radius: 12px; color: var(--blue); font-weight: 700; font-size: 15px;
}
.header__call .icon { width: 20px; height: 20px; }
@media (max-width: 459px) { .header__call { width: 46px; padding: 0; justify-content: center; } .header__call span { display: none; } }
.header__burger { flex: none; width: 46px; height: 46px; margin-right: -8px; display: grid; place-items: center; color: var(--ink); border-radius: 12px; }
.header__burger .icon { width: 28px; height: 28px; }

@media (min-width: 1280px) {
  .nav, .header__contact, .header__cta { display: flex; }
  .header__call, .header__burger { display: none; }
  .header__inner { gap: 24px; }
  .nav { margin: 0 auto; }
  .nav__list { display: flex; gap: 4px; }
  .nav__item { position: relative; }
  .nav__link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 10px 9px; color: var(--ink); font-size: 15px; font-weight: 600; border-radius: 8px; white-space: nowrap;
  }
  .nav__link:hover, .nav__link.is-active { color: var(--blue); }
  .nav__caret { width: 16px; height: 16px; }
  .nav__drop {
    position: absolute; left: -12px; top: 100%; min-width: 320px; padding: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
  }
  .nav__item--drop:hover .nav__drop, .nav__item--drop:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; }
  .nav__drop a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 15px; }
  .nav__drop a:hover { background: var(--blue-50); color: var(--blue); }
  .nav__drop .icon { color: var(--blue); }
  .header__contact { flex-direction: column; align-items: flex-end; line-height: 1.25; white-space: nowrap; }
  .header__phone { color: var(--ink); font-weight: 800; font-size: 17px; }
  .header__hours { color: var(--muted); font-size: 13px; }
  .header__cta { min-height: 46px; flex: none; }
  .nav__list { gap: 0; }
  .nav { min-width: 0; }
}
/* Компактная шапка: 7 пунктов меню + телефон + кнопка в контейнере 1200px */
@media (min-width: 1280px) {
  .header__inner { gap: 14px; }
  .nav__link { padding: 10px 7px; font-size: 14px; }
  .header__phone { font-size: 16px; }
  .header__cta { padding: 10px 16px; font-size: 14px; }
  .logo { font-size: 19px; }
}

/* ---------- Mobile menu ---------- */

.mmenu { position: fixed; inset: 0; z-index: 80; }
.mmenu__backdrop { position: absolute; inset: 0; background: rgba(14, 27, 61, .45); animation: fade .2s; }
.mmenu__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%);
  background: #fff; overflow-y: auto; padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  animation: slide-in .25s ease-out;
}
.mmenu__head { display: flex; align-items: center; justify-content: space-between; height: 52px; margin-bottom: 8px; }
.mmenu__close { width: 46px; height: 46px; display: grid; place-items: center; color: var(--ink); }
.mmenu__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 8px 0; }
.mmenu__services a { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.mmenu__services .icon { color: var(--blue); }
.mmenu__nav { margin: 16px 0; }
.mmenu__nav a { display: block; padding: 10px 0; color: var(--ink); font-size: 18px; font-weight: 700; }
.mmenu__contact { display: grid; gap: 10px; }
.mmenu__msg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mmenu__hours { text-align: center; color: var(--muted); font-size: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { padding-top: 14px; font-size: 13px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .icon { width: 14px; height: 14px; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---------- Home hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, #e7f0fd 0%, rgba(231, 240, 253, 0) 60%),
    linear-gradient(180deg, #f6f9fe 0%, #fff 100%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 42%; column-gap: 8px;
  grid-template-areas: "title title" "lead media" "actions actions" "trust trust";
  padding-top: 20px; padding-bottom: 8px;
}
.hero__content { display: contents; }
.hero__title { grid-area: title; }
.hero__lead { grid-area: lead; }
.hero__actions { grid-area: actions; }
.trust { grid-area: trust; }
.hero__title { font-size: clamp(30px, 8.2vw, 52px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.hero__lead { margin-top: 14px; font-size: 15px; max-width: 520px; position: relative; z-index: 2; }
.hero__actions { display: grid; gap: 12px; margin-top: 22px; }
.hero__media { grid-area: media; align-self: center; margin: 10px calc(var(--gutter) * -1) 0 -24px; }
.hero__media img {
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.trust__item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.3; color: var(--text);
}
.trust__item span { min-width: 0; overflow-wrap: break-word; }
.trust__item b { display: block; color: var(--ink); font-weight: 700; }
.trust__item .icon { width: 30px; height: 30px; color: var(--blue); stroke-width: 1.5; }
@media (max-width: 400px) { .trust__item { padding: 12px 10px; gap: 8px; font-size: 13px; } .trust__item .icon { width: 26px; height: 26px; } }

@media (min-width: 560px) {
  .hero__actions { display: flex; flex-wrap: wrap; }
  .hero__lead { font-size: 16px; }
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; grid-template-areas: none; align-items: center; padding-top: 40px; padding-bottom: 40px; column-gap: 24px; }
  .hero__content { display: block; grid-column: 1; grid-row: 1; }
  .hero__title, .hero__lead, .hero__actions, .trust { grid-area: auto; }
  .hero__lead { font-size: 18px; }
  .hero__actions { margin-top: 32px; }
  .hero__media { grid-row: 1 / span 2; grid-column: 2; margin: 0 calc(var(--gutter) * -1) 0 0; width: auto; }

  .trust { grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; max-width: 540px; margin-top: 36px; }
  .trust__item { padding: 0; border: 0; box-shadow: none; background: none; font-size: 15px; gap: 14px; }
  .trust__item .icon { width: 36px; height: 36px; }
  .trust__item b { font-weight: 700; display: block; }
}

/* ---------- Slider (горизонтальная прокрутка на мобильном) ---------- */

.slider { position: relative; }
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 4px; }
.slider__btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); }
.slider__btn .icon { width: 20px; height: 20px; }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 8px; height: 8px; border-radius: 50%; background: #c9d8ee; transition: .2s; }
.slider__dots button[aria-current="true"] { background: var(--blue); width: 22px; border-radius: 4px; }

@media (min-width: 560px) { .slider__track { grid-auto-columns: 48%; } }
@media (min-width: 1024px) {
  .slider__track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 24px; }
  .slider__nav { display: none; }
}

/* ---------- Services ---------- */

.service {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.service:hover { box-shadow: var(--shadow-lg); border-color: #cfe0f8; transform: translateY(-2px); }
.service__icon { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; color: var(--blue); }
.service__icon .icon { width: 34px; height: 34px; stroke-width: 1.5; }
.service__title { font-size: 17px; font-weight: 700; }
.service__title a { color: var(--ink); }
.service__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service__note { color: var(--muted); font-size: 14px; margin-top: 4px; }
.service__text { display: none; }
.service__more { display: none; }
.services__also { margin-top: 12px; font-size: 14px; color: var(--muted); }

@media (min-width: 1024px) {
  .service { flex-direction: column; gap: 14px; padding: 26px 24px 22px; }
  .service__icon { width: auto; height: auto; background: none; border-radius: 0; }
  .service__icon .icon { width: 44px; height: 44px; stroke-width: 1.3; }
  .service__title { font-size: 19px; }
  .service__note { display: none; }
  .service__text { display: block; color: var(--muted); font-size: 15px; margin-top: 10px; }
  .service__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; color: var(--blue); font-weight: 700; font-size: 15px; }
  .service__more .icon { width: 18px; height: 18px; }
  .service__body { flex: 1; }
  .services__also { text-align: center; margin-top: 24px; }
}

/* ---------- Panel / Why ---------- */

.panel { background: linear-gradient(180deg, #f3f8ff 0%, #f8fbff 100%); border: 1px solid #e6eef9; border-radius: 24px; padding: 28px 18px; }
@media (min-width: 1024px) { .panel { padding: 44px 40px; } }

.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; margin-top: 24px; }
.why__list li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-size: 14px; color: var(--text); }
.why__list li:last-child { grid-column: 1 / -1; }
.why__list .icon { width: 40px; height: 40px; color: var(--blue); stroke-width: 1.4; }
@media (min-width: 768px) {
  .why__list { grid-template-columns: repeat(5, 1fr); margin-top: 32px; }
  .why__list li:last-child { grid-column: auto; }
  .why__list li { font-size: 15px; }
}

/* ---------- Cases ---------- */

.cases { display: grid; gap: 10px; margin-top: 20px; }
.case {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.35; transition: .2s;
}
.case:hover { border-color: var(--blue); color: var(--ink); background: var(--blue-50); }
.case > .icon:first-child { width: 30px; height: 30px; color: var(--blue); }
.case span { flex: 1; }
.case__arrow { color: var(--muted); width: 20px; height: 20px; }
@media (min-width: 768px) { .cases { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; } .case { padding: 20px; font-size: 17px; } }
@media (min-width: 1024px) { .cases li:last-child { grid-column: 1 / -1; } }

/* ---------- Fleet ---------- */

.fleet {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.fleet::-webkit-scrollbar { display: none; }
.fleet__card { scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.fleet__card img { width: 100%; aspect-ratio: 2 / 1.05; object-fit: cover; }
.fleet__body { padding: 14px 16px 18px; }
.fleet__body h3 { font-size: 17px; }
.fleet__body p { color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (min-width: 768px) {
  .fleet { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 24px; }
  .fleet__body { padding: 18px 22px 22px; }
  .fleet__body h3 { font-size: 19px; }
}

/* ---------- Equipment ---------- */

.equip { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
.equip__item { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.equip__icon { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; color: var(--blue); }
.equip__icon .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.equip__item h3 { font-size: 16px; }
.equip__item p { color: var(--muted); font-size: 14px; margin-top: 2px; line-height: 1.4; }
@media (min-width: 480px) { .equip { grid-template-columns: 1fr 1fr; } .equip__item { flex-direction: column; align-items: flex-start; } }
@media (min-width: 1024px) { .equip { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; } .equip__item { padding: 24px; } .equip__item h3 { font-size: 18px; } }

/* ---------- Steps ---------- */

.steps { display: grid; gap: 0; margin-top: 24px; counter-reset: step; }
.step { position: relative; padding: 0 0 22px 60px; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--blue-100); }
.step:last-child::before { display: none; }
.step__num {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 16px rgba(30, 115, 232, .3);
}
.step h3 { font-size: 17px; padding-top: 10px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 4px; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 40px; }
  .step { padding: 64px 0 0; }
  .step::before { left: 52px; right: -24px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .step h3 { padding-top: 0; }
}

/* ---------- About ---------- */

.about { display: grid; gap: 28px; }
.about__text p { margin-top: 14px; }
.about__text .btn { margin-top: 22px; }
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 2 / 1; object-fit: cover; }
.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: -32px 12px 0; position: relative; padding: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.stats li { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.stats b { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stats small { font-size: 13px; font-weight: 700; }
.stats span { font-size: 13px; color: var(--muted); line-height: 1.3; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) {
  .about { grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
  .stats { margin: -56px 40px 0 -24px; padding: 24px; }
  .stats b { font-size: 30px; }
}

/* ---------- B2B ---------- */

.b2b {
  display: grid; gap: 24px; padding: 28px 20px; border-radius: 24px; color: #e6efff;
  background: radial-gradient(120% 120% at 100% 0%, #2b84f5 0%, #1763cc 45%, #0e3f8f 100%);
}
.b2b .section-title, .b2b .eyebrow { color: #fff; }
.b2b p { margin-top: 14px; }
.b2b .checklist { margin-top: 18px; }
.b2b__actions { display: grid; gap: 12px; align-content: center; }
.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; stroke-width: 2.4; margin-top: 1px; }
@media (min-width: 1024px) { .b2b { grid-template-columns: 1.6fr 1fr; padding: 48px; gap: 48px; } }

/* ---------- Articles ---------- */

.acard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.acard__img { position: relative; }
.acard__img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.acard__img .tag { top: auto; bottom: 0; left: 16px; border-radius: 8px 8px 0 0; background: #fff; color: var(--blue); }
.acard__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.acard__title { font-size: 17px; line-height: 1.3; }
.acard__title a { color: var(--ink); }
.acard__title a::after { content: ""; position: absolute; inset: 0; }
.acard__title a:hover { color: var(--blue); }
.acard__text { color: var(--muted); font-size: 14px; }
.acard__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.acard__soon { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-soft); padding: 3px 10px; border-radius: 999px; }
.articles--grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .articles--grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .articles--grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } .acard__title { font-size: 18px; } }

/* ---------- FAQ ---------- */

.faq-wrap { display: grid; gap: 22px; }
.faq-wrap__head p { color: var(--muted); margin: 12px 0 18px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: 1fr 1.8fr; gap: 56px; align-items: start; } .faq-wrap__head { position: sticky; top: calc(var(--header-h) + 24px); } }

.faq { display: grid; gap: 10px; }
.section-title + .faq { margin-top: 20px; }
@media (min-width: 1024px) { .section-title + .faq { margin-top: 28px; } }
.faq__item { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: #cfe0f8; box-shadow: var(--shadow); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.35; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .icon { color: var(--blue); width: 20px; height: 20px; transition: transform .2s; }
.faq__item[open] .faq__q .icon { transform: rotate(180deg); }
.faq__a { padding: 0 18px 18px; color: var(--text); font-size: 15px; }

/* ---------- Final CTA ---------- */

.final { display: grid; gap: 24px; }
.final__text p { margin-top: 12px; color: var(--muted); }
.final__phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 26px; font-weight: 800; color: var(--ink); }
.final__phone .icon { color: var(--blue); width: 28px; height: 28px; }
.final__msg { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.final__msg .icon { width: 20px; height: 20px; }
@media (min-width: 1024px) { .final { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } .final__phone { font-size: 32px; } }

/* ---------- Cards & forms ---------- */

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px; }
@media (min-width: 768px) { .card { padding: 28px; } }
.card__title { display: block; font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.card__text { color: var(--muted); font-size: 14px; margin: -8px 0 16px; }
.card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.card__head .card__title { margin: 0; }
.card__hint { font-size: 13px; color: var(--muted); }

.lead-form { display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field__label b { color: var(--red); }
.field__label small { font-weight: 500; color: var(--muted); }
.field__control { position: relative; display: flex; align-items: center; }
.field__control > .icon { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--blue); pointer-events: none; }
.field__control input, .field__control select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px 12px 46px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 16px; /* 16px — iOS не зумит поле при фокусе */
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { padding-left: 14px; resize: vertical; min-height: 96px; }
.field__control--select::after {
  content: ""; position: absolute; right: 16px; width: 9px; height: 9px; margin-top: -4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.field__control--select select { padding-right: 40px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 115, 232, .12); }
.field__error { display: none; color: var(--red); font-size: 13px; }
.field.is-invalid input { border-color: var(--red); }
.field.is-invalid .field__error { display: block; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.lead-form__status { font-size: 14px; text-align: center; min-height: 0; }
.lead-form__status.is-ok { color: var(--green); font-weight: 700; }
.lead-form__status.is-error { color: var(--red); }
.lead-form.is-sent .field, .lead-form.is-sent .check, .lead-form.is-sent button[type=submit] { display: none; }
.lead-form.is-sent .lead-form__status { padding: 24px 0; font-size: 16px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--bg-soft); border-radius: 12px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 10px; text-align: center; border-radius: 9px; font-weight: 600; font-size: 14px; cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid rgba(30, 115, 232, .45); }

/* ---------- CTA band ---------- */

.cta-band { display: grid; gap: 18px; padding: 24px 20px; background: linear-gradient(180deg, #f1f7ff, #f8fbff); border: 1px solid #e3edfa; border-radius: 24px; }
.cta-band__icon { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--blue); box-shadow: var(--shadow); }
.cta-band__icon .icon { width: 36px; height: 36px; stroke-width: 1.5; }
.cta-band__title { font-size: 22px; }
.cta-band__text p { margin-top: 8px; color: var(--muted); }
.cta-band__actions { display: grid; gap: 10px; }
@media (min-width: 1024px) {
  .cta-band { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 32px 40px; }
  .cta-band__actions { grid-auto-flow: column; }
  .cta-band__icon { width: 96px; height: 96px; }
}

/* ---------- Page hero (внутренние страницы) ---------- */

.phero {
  position: relative; overflow: hidden;
  background: radial-gradient(100% 90% at 100% 0%, #e8f1fd 0%, rgba(232, 241, 253, 0) 60%);
}
.phero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 22px; padding-bottom: 24px; }
.phero__content { position: relative; z-index: 2; min-width: 0; }
.phero__title { font-size: clamp(30px, 8.4vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; max-width: 62%; }
.phero__sub { display: block; font-size: .5em; font-weight: 700; color: var(--text); margin-top: 6px; letter-spacing: 0; }
.phero__lead { margin-top: 14px; max-width: 58%; font-size: 15px; }
.phero__media { position: absolute; right: calc(var(--gutter) * -1 - 10px); top: 10px; width: 52%; max-width: 420px; z-index: 1; pointer-events: none; }
.phero__media img {
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 25%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 25%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
/* Длинный заголовок: на мобильном картинка над текстом */
@media (max-width: 1023px) {
  .phero--stack .phero__media { position: static; order: -1; width: 72%; margin: -8px calc(var(--gutter) * -1) -28px auto; }
  .phero--stack .phero__title, .phero--stack .phero__lead { max-width: none; }
}
@media (min-width: 768px) {
  .phero__title, .phero__lead { max-width: 60%; }
  .phero__lead { font-size: 17px; }
}
@media (min-width: 1024px) {
  .phero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding-top: 28px; padding-bottom: 40px; }
  .phero__title, .phero__lead { max-width: 560px; }
  .phero__media { position: relative; right: auto; top: auto; width: auto; max-width: none; margin-right: calc(var(--gutter) * -1); }
  .phero__media--wide img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
}

/* ---------- Contacts ---------- */

.ccards { display: grid; gap: 12px; position: relative; z-index: 2; }
.ccard { display: flex; gap: 16px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ccard > .icon { width: 40px; height: 40px; color: var(--blue); stroke-width: 1.5; }
.ccard div { display: grid; gap: 2px; }
.ccard__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.ccard__value { font-size: 18px; font-weight: 800; color: var(--ink); }
a.ccard__value { color: var(--blue); }
.ccard--main .ccard__value { font-size: 22px; }
.ccard__sub { font-size: 14px; color: var(--muted); }
@media (min-width: 640px) { .ccards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .ccards { grid-template-columns: repeat(4, 1fr); } .ccard { align-items: flex-start; } .ccard__value, .ccard--main .ccard__value { font-size: 17px; } }

.contacts-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .contacts-grid { grid-template-columns: 1.4fr 1fr; gap: 24px; } .contacts-grid > .card { height: 100%; } }

.map { position: relative; border-radius: 14px; overflow: hidden; background: #eef3f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 60h120M60 0v120M0 20h120M20 0v120' stroke='%23dde6f2' stroke-width='6'/%3E%3C/svg%3E"); aspect-ratio: 4 / 3; }
@media (min-width: 1024px) { .map { aspect-ratio: auto; height: calc(100% - 44px); min-height: 320px; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 20px; }
.map__placeholder p { background: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; }

.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.channel { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-align: center; transition: .2s; height: 100%; }
.channel:hover { border-color: var(--blue); background: var(--blue-50); color: var(--ink); }
.channel > .icon { width: 30px; height: 30px; color: var(--blue); }
.channel--max > .icon { border-radius: 9px; }
.channel__name { font-weight: 700; font-size: 14px; }
.channel__val, .channel__act { display: none; }
@media (min-width: 768px) {
  .channel { display: grid; grid-template-columns: auto 1fr; align-items: center; justify-items: start; text-align: left; column-gap: 14px; row-gap: 2px; padding: 18px; }
  .channel > .icon { grid-row: span 3; width: 34px; height: 34px; }
  .channel__val, .channel__act { display: block; font-size: 14px; }
  .channel__val { color: var(--text); }
  .channel__act { color: var(--blue); font-weight: 600; font-size: 13px; }
}
@media (max-width: 767px) { .channels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 420px) and (max-width: 767px) { .channels { grid-template-columns: repeat(4, 1fr); } }

.depts { display: grid; gap: 12px; }
.dept { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.dept > .icon { width: 30px; height: 30px; color: var(--blue); }
.dept h3 { font-size: 16px; }
.dept p { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.dept a { display: block; font-weight: 800; color: var(--ink); }
.dept span { font-size: 13px; color: var(--blue); }
@media (min-width: 640px) { .depts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .depts { grid-template-columns: repeat(4, 1fr); } }

.reqs { display: grid; gap: 8px; margin: 0 0 16px; font-size: 14px; }
.reqs div { display: grid; grid-template-columns: 1fr; gap: 0; }
.reqs dt { font-weight: 700; color: var(--ink); }
.reqs dd { margin: 0; word-break: break-word; }
@media (min-width: 480px) { .reqs div { grid-template-columns: 170px 1fr; gap: 12px; } }
.reqs__title { font-size: 16px; margin: 20px 0 10px; }
.licenses { display: grid; gap: 10px; margin-bottom: 18px; }
.licenses li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); font-size: 13px; line-height: 1.45; }
.licenses .icon { color: var(--blue); width: 22px; height: 22px; margin-top: 1px; }
.licenses b { display: block; color: var(--ink); font-size: 14px; }
.licenses span { color: var(--muted); }
.ask { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; font-size: 14px; }

/* ---------- Calculator ---------- */

.features { display: grid; gap: 14px; margin-top: 22px; }
.features li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.features .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--blue-50); color: var(--blue); }
.features b { display: block; color: var(--ink); }
.features span { color: var(--muted); }
@media (min-width: 768px) { .features { grid-template-columns: repeat(3, 1fr); } .features li { flex-direction: column; } }

.flow { display: grid; gap: 12px; margin-top: 24px; }
.flow li { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.flow__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-weight: 800; margin-bottom: 10px; }
.flow h3 { font-size: 17px; }
.flow p { color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (min-width: 768px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 36px; }
  .flow li:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 20px; }
}

.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.calc > * { min-width: 0; }
@media (min-width: 1024px) { .calc { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; } .calc__result { position: sticky; top: calc(var(--header-h) + 16px); } }
.calc__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.calc__head .card__title { margin: 0; }
.calc__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; color: var(--blue); flex: none; }

.tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -18px 20px; padding: 0 18px; border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn { flex: none; padding: 12px 10px; font-weight: 600; font-size: 15px; color: var(--text); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs__btn.is-active { color: var(--blue); border-color: var(--blue); }
@media (min-width: 768px) { .tabs { margin: 0 -28px 24px; padding: 0 28px; } }

.calc__grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .calc__grid { grid-template-columns: 1fr 1fr; gap: 16px 18px; } }
.calc__equip { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.calc__equip legend { margin-bottom: 10px; }
@media (min-width: 640px) { .calc__equip { grid-template-columns: 1fr 1fr; } }
.calc__privacy { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 20px; }
.calc__privacy .icon { width: 18px; height: 18px; color: var(--blue); }

.calc__lines { display: grid; gap: 8px; margin: 0; font-size: 14px; }
.calc__lines div { display: flex; justify-content: space-between; gap: 16px; }
.calc__lines dt { color: var(--muted); }
.calc__lines dd { margin: 0; text-align: right; color: var(--ink); font-weight: 600; }
.calc__total { margin: 20px 0 12px; padding: 18px; border-radius: 14px; background: var(--blue-50); }
.calc__total span { font-weight: 700; color: var(--ink); }
.calc__total output { display: block; font-size: 34px; font-weight: 800; color: var(--blue); line-height: 1.2; margin: 4px 0 6px; }
.calc__total p { font-size: 13px; color: var(--text); }
.calc__note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.calc__result .btn + .btn { margin-top: 10px; }

.benefits { display: grid; gap: 18px; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; }
.benefits .icon { width: 40px; height: 40px; color: var(--blue); stroke-width: 1.4; }
.benefits b { display: block; color: var(--ink); }
.benefits span { color: var(--muted); }
@media (min-width: 640px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, 1fr); padding: 28px 32px; } }

.auto { display: grid; gap: 24px; }
.auto__steps { display: grid; gap: 18px; }
.auto__steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.auto__steps .icon { grid-row: span 2; width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: var(--blue-50); color: var(--blue); }
.auto__steps h3 { font-size: 16px; }
.auto__steps p { color: var(--muted); font-size: 14px; }
.auto__media img { border-radius: var(--radius); width: 100%; }
@media (min-width: 768px) { .auto__steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .auto { grid-template-columns: 1.8fr 1fr; align-items: center; gap: 40px; }
  .auto__steps { grid-template-columns: repeat(4, 1fr); }
  .auto__steps li { grid-template-columns: 1fr; row-gap: 8px; }
  .auto__steps .icon { grid-row: auto; }
}

/* ---------- Materials ---------- */

.search { position: relative; display: flex; align-items: center; margin-top: 22px; max-width: 460px; }
.search .icon { position: absolute; left: 16px; color: var(--blue); }
.search input { width: 100%; min-height: 54px; padding: 12px 16px 12px 50px; border: 1.5px solid var(--line); border-radius: 14px; font-size: 16px; background: #fff; }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 115, 232, .12); }

.mtypes {
  display: grid; grid-auto-flow: column; grid-auto-columns: 40%; gap: 10px; overflow-x: auto; scrollbar-width: none;
  margin: 18px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 8px; scroll-padding: 0 var(--gutter); scroll-snap-type: x mandatory;
}
.mtypes::-webkit-scrollbar { display: none; }
.mtype {
  scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 700; color: var(--ink); transition: .2s;
}
.mtype .icon { width: 36px; height: 36px; color: var(--blue); stroke-width: 1.4; }
.mtype b { color: var(--blue); }
.mtype.is-active { border-color: var(--blue); background: var(--blue-50); }
@media (min-width: 560px) { .mtypes { grid-auto-columns: 1fr; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); margin: 22px 0 0; padding: 0; max-width: 460px; } .mtype { font-size: 13px; } }

.mats { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 400px) { .mats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .mats { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.mat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mat__img { position: relative; }
.mat__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mat__body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.mat__title { font-size: 15px; line-height: 1.3; }
.mat__text { font-size: 13px; color: var(--muted); }
.mat__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--muted); }
.mat__foot .link { font-size: 14px; }
@media (min-width: 768px) { .mat__body { padding: 18px; } .mat__title { font-size: 16px; } }
.mats__empty { padding: 24px; text-align: center; color: var(--muted); }

.dirs__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
@media (min-width: 560px) { .dirs__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .dirs__list { grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 32px; } }
.dir { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: 14px; text-align: center; border: 1.5px solid transparent; transition: .2s; }
.dir:hover, .dir.is-active { background: #fff; border-color: #cfe0f8; }
.dir .icon { width: 40px; height: 40px; color: var(--blue); stroke-width: 1.4; }
.dir b { font-size: 14px; color: var(--ink); line-height: 1.3; }
.dir span { font-size: 13px; color: var(--muted); }

.disclaimer { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 28px; padding: 18px 20px; border-radius: 14px; background: #fff8ec; color: #6b4e16; font-size: 14px; text-align: center; }
.disclaimer .icon { color: #d99a1e; margin-bottom: 6px; }
@media (min-width: 768px) { .disclaimer { font-size: 15px; padding: 22px 24px; } }

/* ---------- Price ---------- */

.price-actions { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 560px) { .price-actions { display: flex; flex-wrap: wrap; } }
.price-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .price-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; } .price-file { position: sticky; top: calc(var(--header-h) + 16px); } }
.prose-card p + p { margin-top: 12px; }
.price-file { text-align: center; }
.price-file__icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; color: var(--blue); }
.price-file__icon .icon { width: 38px; height: 38px; stroke-width: 1.4; }
.price-file__title { font-size: 20px; }
.price-file__meta { margin-top: 4px; font-size: 14px; color: var(--blue); font-weight: 600; }
.price-file__text { margin: 12px 0 18px; font-size: 14px; color: var(--muted); }
.price-file__note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.benefits--top { margin-top: 20px; }
.case--static:hover { border-color: var(--line); background: #fff; }
.price-links { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 768px) { .price-links { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (min-width: 1180px) { .price-links { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Посадочные страницы ---------- */

.btn--cta { background: var(--red-cta); color: #fff; box-shadow: 0 8px 20px rgba(227, 30, 36, .28); }
.btn--cta:hover { background: #c8161c; color: #fff; }
.section-lead--center { text-align: center; margin-left: auto; margin-right: auto; }

.lhero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f6f9fe 0%, #fff 100%); }
.lhero__bg img { width: 100%; height: 220px; object-fit: cover; object-position: 60% 50%; }
.lhero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 20px; padding-bottom: 28px; position: relative; z-index: 2; }
.lhero__title { font-size: clamp(30px, 8vw, 52px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.lhero__title .accent { display: block; font-size: .72em; margin-top: 4px; }
.lhero__lead { margin-top: 14px; font-size: 16px; max-width: 560px; }
.lhero__actions { display: grid; gap: 10px; margin-top: 20px; }
.lhero__trust { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 22px; }
.lhero__trust li { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.lhero__trust .icon { width: 30px; height: 30px; color: var(--blue); stroke-width: 1.5; flex: none; }
.lhero__trust b { display: block; color: var(--ink); font-size: 14px; }
@media (min-width: 560px) { .lhero__actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 1024px) {
  .lhero { min-height: 600px; display: flex; align-items: center; }
  .lhero__bg { position: absolute; inset: 0 0 0 30%; z-index: 0; }
  .lhero__bg img { height: 100%; object-position: 70% 50%; }
  .lhero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f6f9fe 0%, rgba(246, 249, 254, .85) 22%, rgba(246, 249, 254, 0) 55%); }
  .lhero__inner { grid-template-columns: minmax(0, 1fr) 390px; align-items: center; gap: 40px; padding-top: 48px; padding-bottom: 56px; width: 100%; }
  .lhero__content { max-width: 600px; }
  .lhero__lead { font-size: 18px; }
  .lhero__trust { grid-template-columns: repeat(2, minmax(0, 260px)); gap: 12px; margin-top: 30px; }
  .lhero__trust li { background: rgba(255, 255, 255, .85); padding: 10px 14px 10px 10px; border-radius: 12px; backdrop-filter: blur(6px); box-shadow: var(--shadow); }
}

.lform { box-shadow: var(--shadow-lg); }
/* Форма в первом экране на ПК: короткие поля попарно, чтобы экран был ниже */
@media (min-width: 1024px) {
  .lhero .lform .lead-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; }
  .lhero .lform .field__control input, .lhero .lform .field__control select { min-width: 0; width: 100%; }
  .lhero .lform .lead-form > * { grid-column: 1 / -1; }
  .lhero .lform .lead-form > .field:has(select):not(.field--full),
  .lhero .lform .lead-form > .field:has(input[type="datetime-local"]),
  .lhero .lform .lead-form > .field:has(input[type="tel"]),
  .lhero .lform .lead-form > .field--half { grid-column: auto; }
  .lhero .lform .field__control input, .lhero .lform .field__control select { min-height: 48px; }
  .lhero .lform { padding: 22px 22px 18px; }
  .lhero .lform__text { margin-bottom: 12px; }
}
/* Полоса «лицензия + оснащение» под первым экраном */
.lstrip-sec { padding-top: 20px; }
.lstrip { display: grid; gap: 18px; padding: 20px; }
.lstrip__lic { display: flex; gap: 14px; align-items: flex-start; }
.lstrip__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.lstrip__icon .icon { width: 24px; height: 24px; }
.lstrip__lic b { display: block; color: var(--ink); }
.lstrip__lic span { display: block; margin: 2px 0 6px; font-size: 14px; color: var(--muted); }
.lstrip__label { font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.lstrip__eq ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; list-style: none; margin: 0; padding: 0; }
.lstrip__eq li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; line-height: 1.3; }
.lstrip__eq li .icon { width: 30px; height: 30px; color: var(--blue); }
@media (min-width: 1024px) {
  .lstrip-sec { padding-top: 0; margin-top: -36px; position: relative; z-index: 2; }
  .lstrip { grid-template-columns: 320px minmax(0, 1fr); align-items: center; gap: 28px; padding: 22px 28px; }
  .lstrip__eq { border-left: 1px solid var(--line); padding-left: 28px; }
  .lstrip__eq ul { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* Финальный блок с формой консультации */
.lfinal.lfinal--form { position: relative; isolation: isolate; overflow: hidden; gap: 24px; padding: 28px 18px 18px; background: #0e3f8f; }
.lfinal__bg { position: absolute; inset: 0; z-index: -1; }
.lfinal__bg picture, .lfinal__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lfinal__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 45, 110, .94) 0%, rgba(14, 63, 143, .9) 55%, rgba(23, 99, 204, .86) 100%); }
.lfinal--form .lfinal__text { display: grid; gap: 14px; justify-items: start; align-content: start; }
.lfinal__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 13px; font-weight: 700; }
.lfinal__eyebrow .icon { width: 18px; height: 18px; }
.lfinal.lfinal--form .lfinal__text h2 { font-size: clamp(26px, 6vw, 38px); line-height: 1.15; }
.lfinal.lfinal--form .lfinal__text > p { margin: 0; font-size: 16px; line-height: 1.6; color: #d6e4ff; max-width: 560px; }
.lfinal__list { display: grid; gap: 12px; margin: 6px 0 4px; padding: 0; list-style: none; }
.lfinal__list li { display: flex; align-items: flex-start; gap: 12px; color: #fff; font-weight: 600; line-height: 1.45; }
.lfinal__check { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.lfinal__check .icon { width: 15px; height: 15px; color: #fff; }
.lfinal__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); width: 100%; }
.lfinal__call { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.2; }
.lfinal__call:hover { color: #fff; }
.lfinal__call small { display: block; font-size: 13px; font-weight: 500; color: #bcd3ff; }
.lfinal__call-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--red-cta); box-shadow: 0 8px 22px rgba(227, 30, 36, .4); }
.lfinal__call-icon .icon { width: 22px; height: 22px; color: #fff; }
.lfinal__or { font-size: 14px; color: #bcd3ff; }
.lfinal--form .lform { color: var(--text); box-shadow: 0 24px 60px rgba(4, 22, 60, .35); }
.lfinal--form .lform p { margin-top: 0; }
.lfinal--form .lform .lform__text { margin: 6px 0 16px; }
@media (min-width: 1024px) {
  .lfinal.lfinal--form { grid-template-columns: minmax(0, 1fr) 440px; align-items: center; gap: 56px; padding: 56px; }
  .lfinal__bg::after { background: linear-gradient(90deg, rgba(10, 45, 110, .96) 0%, rgba(14, 63, 143, .92) 50%, rgba(23, 99, 204, .78) 100%); }
  .lfinal--form .lform { padding: 26px 26px 18px; }
}
/* Первый экран без формы: фото шире, текст слева */
@media (min-width: 1024px) {
  .lhero--noform .lhero__inner { grid-template-columns: minmax(0, 1fr); }
  .lhero--noform .lhero__bg { inset: 0 0 0 36%; }
  .lhero--noform .lhero__bg img { object-position: 60% 50%; }
}
/* Форма рядом с блоком «Когда…» */
@media (min-width: 1024px) {
  .lwhen-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
  .lwhen-wrap .lwhen { grid-template-columns: repeat(3, 1fr); }
  .lwhen-wrap .lwhen li:last-child { grid-column: auto; }
  .lwhen-wrap .lform { position: sticky; top: calc(var(--header-h) + 16px); }
}
.lwhen-wrap .lform { margin-top: 24px; }
@media (min-width: 1024px) { .lwhen-wrap .lform { margin-top: 0; } }
.lform__title { font-size: 22px; font-weight: 800; color: var(--ink); }
.lform__text { font-size: 14px; color: var(--muted); margin: 6px 0 16px; }
.lform__safe { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lform__safe .icon { width: 14px; height: 14px; }
.lform { scroll-margin-top: calc(var(--header-h) + 16px); }

.lwhen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.lwhen li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 14px; color: var(--ink); font-weight: 600; line-height: 1.35; }
.lwhen li:last-child { grid-column: 1 / -1; }
.lwhen__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; color: var(--blue); }
.lwhen__icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }
@media (min-width: 1024px) { .lwhen { grid-template-columns: repeat(5, 1fr); gap: 16px; } .lwhen li:last-child { grid-column: auto; } .lwhen li { padding: 24px 16px; font-size: 15px; } }

.lscen { display: grid; gap: 14px; margin-top: 22px; }
.lscen__card { scroll-margin-top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #fff, #f8fbff); box-shadow: var(--shadow); }
.lscen__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.lscen__icon .icon { width: 26px; height: 26px; }
.lscen__card h3 { font-size: 19px; }
.lscen__card p { color: var(--muted); font-size: 15px; flex: 1; }
.lscen__card .link { align-self: flex-start; }
@media (min-width: 768px) { .lscen { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; } }

.ltrans { display: grid; gap: 14px; margin-top: 22px; }
.ltrans__card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.ltrans__card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ltrans__body { position: relative; padding: 18px 20px 22px; }
.ltrans__icon { position: absolute; top: -24px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(30, 115, 232, .3); }
.ltrans__icon .icon { width: 24px; height: 24px; }
.ltrans__body h3 { font-size: 19px; }
.ltrans__body p { margin-top: 6px; color: var(--muted); font-size: 15px; }
@media (min-width: 768px) { .ltrans { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; } }

.ldocs { display: grid; gap: 14px; align-items: center; padding: 20px; border: 1px solid #cfe0f8; border-radius: var(--radius); background: var(--blue-50); }
.ldocs__icon { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--blue); box-shadow: var(--shadow); }
.ldocs__icon .icon { width: 28px; height: 28px; }
.ldocs h2 { font-size: 20px; }
.ldocs p { margin-top: 4px; color: var(--text); font-size: 15px; }
@media (min-width: 768px) { .ldocs { grid-template-columns: auto 1fr auto; gap: 22px; padding: 24px 28px; } }

.ladv { display: grid; gap: 14px; margin-top: 22px; }
.ladv li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ladv .icon { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #fdecec; color: var(--red-cta); stroke-width: 2.6; }
.ladv b { display: block; color: var(--ink); font-size: 16px; }
.ladv span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
@media (min-width: 640px) { .ladv { grid-template-columns: 1fr 1fr; } }

.lduo { display: grid; gap: 20px; }
@media (min-width: 1024px) { .lduo { grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; } }
.lincl .section-title, .lteam .section-title { font-size: clamp(22px, 4.4vw, 28px); }
.lcheck { display: grid; gap: 10px; margin-top: 16px; }
.lcheck li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.lcheck .icon { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--blue-100); color: var(--blue); stroke-width: 2.4; margin-top: 1px; }
.lincl__note { display: flex; gap: 10px; margin-top: 18px; font-size: 14px; color: #6b4e16; background: #fff8ec; padding: 12px 14px; border-radius: 12px; }
.lincl__note .icon { color: #d99a1e; flex: none; }
.lteam { padding: 0; overflow: hidden; display: grid; }
.lteam img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.lteam__body { padding: 20px 22px 24px; }
@media (min-width: 768px) { .lteam__body { padding: 24px 28px 28px; } }

.lprice { display: grid; gap: 18px; padding: 24px 20px; border-radius: 24px; background: linear-gradient(180deg, #f1f7ff, #f8fbff); border: 1px solid #e3edfa; }
.lprice__icon { width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--blue); }
.lprice__icon .icon { width: 30px; height: 30px; }
.lprice__text p { margin-top: 10px; color: var(--text); }
.lprice__factors { display: grid; gap: 6px; margin-top: 12px; }
.lprice__factors li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.lprice__factors .icon { width: 18px; height: 18px; color: var(--blue); stroke-width: 2.4; margin-top: 3px; flex: none; }
.lprice__actions { display: grid; gap: 12px; justify-items: start; align-content: center; }
@media (min-width: 1024px) { .lprice { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding: 36px 40px; } .lprice__factors { grid-template-columns: 1fr 1fr; column-gap: 24px; } }

@media (min-width: 1024px) { .larts.slider__track { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

.lfinal { display: grid; gap: 16px; padding: 26px 20px; border-radius: 24px; color: #e6efff; background: radial-gradient(120% 140% at 100% 0%, #2b84f5 0%, #1763cc 45%, #0e3f8f 100%); }
.lfinal__icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; color: #fff; }
.lfinal__icon .icon { width: 30px; height: 30px; }
.lfinal h2 { color: #fff; font-size: clamp(22px, 5vw, 28px); }
.lfinal p { margin-top: 6px; }
.lfinal__phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 22px; font-weight: 800; }
.lfinal__phone:hover { color: #fff; }
.lfinal__phone small { display: block; font-size: 13px; font-weight: 500; opacity: .8; }
.lfinal__phone .icon { width: 26px; height: 26px; }
@media (min-width: 1024px) { .lfinal { grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; padding: 32px 40px; } }

/* ---------- Статья / материал ---------- */

.entry { padding-top: 16px; }
.entry__head { max-width: 860px; }
.entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.entry__tag { background: var(--blue-50); color: var(--blue); font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.entry__title { margin-top: 14px; font-size: clamp(26px, 6.4vw, 42px); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.entry__lead { margin-top: 12px; font-size: 17px; color: var(--text); }
.entry__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 24px; }
@media (min-width: 1024px) { .entry__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; } .entry__aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.entry__main { min-width: 0; max-width: 780px; }
.entry__image { margin: 0; }
.entry__image img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); }

.entry__answer { margin-top: 24px; padding: 18px 20px; border-left: 4px solid var(--blue); background: var(--blue-50); border-radius: 0 14px 14px 0; font-size: 16px; color: var(--ink); }
.entry__answer-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }

.entry__toc { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; }
.entry__toc-title { font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.entry__toc ol { list-style: decimal; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.entry__toc a { color: var(--text); }
.entry__toc a:hover { color: var(--blue); }

.entry__body { font-size: 17px; line-height: 1.65; color: var(--text); }
.entry__section { margin-top: 32px; scroll-margin-top: calc(var(--header-h) + 16px); }
.entry__section h2 { font-size: clamp(21px, 4.4vw, 26px); margin-bottom: 12px; }
.entry__body p + p, .entry__body p + ul, .entry__body p + ol, .entry__body ul + p, .entry__body ol + p, .entry__body .entry__table + p, .entry__body p + .entry__table, .entry__body p + .entry__check { margin-top: 12px; }
.entry__body ul, .entry__body ol { padding-left: 22px; display: grid; gap: 6px; }
.entry__body ul { list-style: disc; }
.entry__body ol { list-style: decimal; }
.entry__body li::marker { color: var(--blue); font-weight: 700; }
.entry__body b { color: var(--ink); }
.entry__body a, .entry__answer a { text-decoration: underline; text-decoration-color: rgba(30, 115, 232, .35); text-underline-offset: 3px; }

.entry__table { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.entry__table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.entry__table th { background: var(--bg-soft); color: var(--ink); text-align: left; font-weight: 700; }
.entry__table th, .entry__table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry__table tr:last-child td { border-bottom: 0; }

.entry__check { list-style: none !important; padding-left: 0 !important; display: grid; gap: 8px; margin-top: 12px; }
.entry__check label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.entry__check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); }
.entry__check input:checked + span { color: var(--muted); text-decoration: line-through; }

.entry__note { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #fff8ec; color: #6b4e16; font-size: 15px; line-height: 1.5; }
.entry__note .icon { color: #d99a1e; flex: none; }
.entry__note--medical { margin-top: 32px; }

.entry__pdf { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; padding: 16px 18px; border: 1px solid #cfe0f8; border-radius: 14px; background: var(--blue-50); }
.entry__pdf > .icon { width: 36px; height: 36px; color: var(--blue); }
.entry__pdf div { flex: 1; min-width: 200px; display: grid; }
.entry__pdf b { color: var(--ink); }
.entry__pdf span { font-size: 14px; color: var(--muted); }

.entry__faq { margin-top: 36px; }
.entry__faq h2 { font-size: clamp(21px, 4.4vw, 26px); margin-bottom: 16px; }
.entry__author { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.entry__cta-title { font-size: 19px; font-weight: 800; color: var(--ink); }
.entry__cta-text { font-size: 14px; color: var(--muted); margin: 8px 0 16px; }
.entry__cta .btn + .btn { margin-top: 10px; }
.entry__cta-link { display: flex; margin-top: 12px; font-size: 15px; }

.mat__link { color: inherit; }
.mat__link::after { content: ""; position: absolute; inset: 0; }
.mat { position: relative; }

/* ---------- Печать / сохранение в PDF (инструкции) ---------- */
.print-head { display: none; }
@media print {
  @page { margin: 16mm 14mm; }
  body { padding: 0; font-size: 12pt; color: #000; }
  .header, .footer, .mbar, .cookie, .breadcrumbs, .noprint, .modal, .mmenu, .skip-link { display: none !important; }
  .print-head { display: flex !important; justify-content: space-between; align-items: center; border-bottom: 2px solid #1e73e8; padding-bottom: 8px; margin-bottom: 14px; font-size: 10pt; }
  .entry__layout { display: block; }
  .entry__main { max-width: none; }
  .entry__image img { aspect-ratio: auto; max-height: 70mm; object-fit: cover; }
  .entry__section { break-inside: avoid-page; }
  .faq__item { border: 0; }
  .faq__a { display: block !important; }
  a { color: #000; text-decoration: none; }
}

/* ---------- Footer ---------- */

.footer { margin-top: 56px; padding: 40px 0 24px; border-top: 1px solid var(--line); background: #fbfcfe; font-size: 14px; }
@media (min-width: 1024px) { .footer { margin-top: 96px; } }
.footer__grid { display: grid; gap: 28px; }
.footer__brand p { margin-top: 12px; color: var(--muted); max-width: 300px; }
.footer__title { font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.footer__col ul { display: grid; gap: 8px; }
.footer__col a { color: var(--text); }
.footer__col a:hover { color: var(--blue); }
.footer__phone { font-weight: 800; color: var(--ink) !important; font-size: 16px; }
.footer__contacts .btn { margin-top: 16px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.socials a:hover { background: var(--blue); color: #fff; }
.socials .icon { width: 20px; height: 20px; }
.footer__bottom { display: grid; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer__bottom a { color: var(--text); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__legal { display: grid; gap: 4px; }
.footer__copy { color: var(--ink); font-weight: 600; }
.footer__docs { display: grid; gap: 6px; align-content: start; }
@media (min-width: 1024px) { .footer__docs { text-align: right; max-width: 340px; } }
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.3fr 1.2fr 1fr 1.1fr; gap: 40px; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: start; gap: 24px; }
}

/* ---------- Mobile bottom bar ---------- */

.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(22, 62, 130, .08);
}
.mbar__btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 48px; border-radius: 12px; border: 1.5px solid #cfe0f8; color: var(--blue); font-weight: 700; font-size: 14px; }
.mbar__btn .icon { width: 20px; height: 20px; }
.mbar__btn--call {
  background: var(--red-cta); border-color: var(--red-cta); color: #fff; font-size: 15px;
  box-shadow: 0 6px 16px rgba(227, 30, 36, .35);
  animation: call-pulse 2.2s ease-out infinite;
}
.mbar__btn--call:hover, .mbar__btn--call:active { background: #c8161c; border-color: #c8161c; color: #fff; }
.mbar__btn--call .icon { animation: call-ring 2.2s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes call-pulse {
  0%   { box-shadow: 0 6px 16px rgba(227, 30, 36, .35), 0 0 0 0 rgba(227, 30, 36, .45); }
  70%  { box-shadow: 0 6px 16px rgba(227, 30, 36, .35), 0 0 0 10px rgba(227, 30, 36, 0); }
  100% { box-shadow: 0 6px 16px rgba(227, 30, 36, .35), 0 0 0 0 rgba(227, 30, 36, 0); }
}
@keyframes call-ring {
  0%, 60%, 100% { transform: rotate(0); }
  65% { transform: rotate(-14deg); } 70% { transform: rotate(12deg); }
  75% { transform: rotate(-10deg); } 80% { transform: rotate(8deg); } 85% { transform: rotate(0); }
}
@media (min-width: 1024px) { .mbar { display: none; } }

/* ---------- Modal ---------- */

.modal { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(14, 27, 61, .5); animation: fade .2s; }
.modal__dialog {
  position: relative; width: 100%; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 22px 22px 0 0; padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  animation: sheet-up .25s ease-out;
}
.modal__close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); }
.modal__title { font-size: 22px; font-weight: 800; color: var(--ink); padding-right: 40px; }
.modal__text { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 640px) {
  .modal { align-items: center; justify-items: center; padding: 24px; }
  .modal__dialog { max-width: 480px; border-radius: 22px; padding: 32px; }
}
body.is-locked { overflow: hidden; }

/* ---------- Cookie ---------- */

.cookie {
  position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(var(--mbar-h) + 16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 13px;
}
@media (min-width: 1024px) { .cookie { left: auto; right: 24px; bottom: 24px; max-width: 460px; } }

/* ---------- Text pages ---------- */

.prose { max-width: 820px; padding-top: 24px; }
.prose h1 { font-size: clamp(28px, 6vw, 40px); margin-bottom: 16px; }
.prose h2 { font-size: 20px; margin: 28px 0 10px; }
.prose p, .prose li { margin-bottom: 10px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose__note { padding: 12px 16px; background: #fff8ec; border-radius: 12px; font-size: 14px; color: #6b4e16; }

.notfound { padding-top: 48px; text-align: center; }
.notfound__code { font-size: 96px; font-weight: 800; color: var(--blue-100); line-height: 1; }
.notfound p { margin: 12px auto 0; max-width: 480px; color: var(--muted); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-top: 32px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
