/* Страховые привилегии — главная, редизайн v2.
   Палитра: полисный красный / кармин / ночной индиго / графит / дымка / бумага.
   Шрифты: Unbounded — заголовки и цифры, Onest — текст и интерфейс.
   Фирменный приём: шестигранник из логотипа «СП» (щит вокруг видов страхования, значки). */

:root {
  --red: #e00235;
  --red-deep: #a8002a;
  --red-tint: #ffe9ee;
  --ink: #121633;
  --ink-80: #2a2f4d;
  --slate: #4b5168;
  --mist: #edf2f7;
  --paper: #fff;
  --line: #dfe4ee;
  --car-bg: #f7fbfe;

  --font-display: 'Unbounded', 'Onest', sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --hdr-h: 76px;
  --radius-l: 24px;
  --radius-m: 18px;
  --radius-s: 12px;
  --shadow-1: 0 1px 2px rgba(18, 22, 51, .06), 0 10px 30px -14px rgba(18, 22, 51, .22);
  --shadow-2: 0 2px 4px rgba(18, 22, 51, .06), 0 28px 60px -24px rgba(18, 22, 51, .35);
  --hex: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-y: scroll;              /* полоса прокрутки видна всегда (правило владельца) */
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: #b9001f; border-radius: 5px; }
@supports (-moz-appearance: none) { html { scrollbar-color: #b9001f var(--mist); } }
body {
  margin: 0;
  font: 400 17px/1.65 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
blockquote { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ff8aa3; outline-offset: 3px; border-radius: 6px; }
.i { height: 1em; width: auto; fill: currentColor; flex: none; }
.wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--paper); color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }
.m-only { display: none !important; }
section[id] { scroll-margin-top: var(--hdr-h); }

/* ---------- type ---------- */
.h2 {
  font: 600 clamp(28px, 3.1vw, 44px)/1.12 var(--font-display);
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: clamp(28px, 3.4vw, 48px);
  max-width: 22ch;
}
.h2--light { color: var(--paper); }
.h3 { font: 600 20px/1.2 var(--font-display); letter-spacing: -0.01em; margin-bottom: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: var(--radius-s);
  background: var(--red); color: var(--paper);
  font: 600 16px/1.2 var(--font-body); text-align: center; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(224, 2, 53, .8);
  touch-action: manipulation;
  transition: background-color .2s ease, box-shadow .2s ease, transform 160ms var(--ease-out);
}
.btn .i { font-size: 18px; transition: transform .25s var(--ease-out); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background-color: #c80230; box-shadow: 0 14px 30px -12px rgba(224, 2, 53, .9); }
  .btn:hover .i { transform: translateX(3px); }
}

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s);
}

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--hdr-h);
  background: rgba(18, 22, 51, .32);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.hdr.is-scrolled { background: rgba(18, 22, 51, .9); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.hdr__bar { display: flex; align-items: center; gap: 24px; height: 100%; }
.hdr__logo { display: flex; align-items: center; gap: 12px; flex: none; color: var(--paper); text-decoration: none; }
.hdr__logo-d { width: 54px; height: auto; padding: 5px; border-radius: 10px; background: var(--paper); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
.hdr__logo-m { display: none; }
.hdr__name { display: none; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; gap: 6px; }
.nav__list a {
  position: relative; display: flex; align-items: center; height: 44px; padding: 0 14px;
  color: rgba(255, 255, 255, .78); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: color .2s ease;
}
.nav__list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav__list a[aria-current="true"] { color: var(--paper); }
.nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.nav__list a:active { color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .nav__list a:hover { color: var(--paper); }
  .nav__list a:hover::after { transform: scaleX(1); }
}
.hdr__cta { flex: none; }
.burger { display: none; }

/* ---------- drawer (phone menu, from the right) ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(8, 10, 26, .55); opacity: 0; transition: opacity .3s var(--ease-out); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  display: flex; flex-direction: column; gap: 8px; padding: 76px 24px 28px;
  background: var(--ink); color: var(--paper); overflow-y: scroll; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .4s var(--ease-out);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close {
  position: absolute; top: 14px; right: 14px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .08);
  color: var(--paper); font-size: 18px; transition: background-color .2s ease, transform 160ms var(--ease-out);
}
.drawer__list li { opacity: 0; transform: translateX(16px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.drawer.is-open .drawer__list li { opacity: 1; transform: none; }
.drawer.is-open .drawer__list li:nth-child(2) { transition-delay: 40ms; }
.drawer.is-open .drawer__list li:nth-child(3) { transition-delay: 80ms; }
.drawer.is-open .drawer__list li:nth-child(4) { transition-delay: 120ms; }
.drawer.is-open .drawer__list li:nth-child(5) { transition-delay: 160ms; }
.drawer__list a {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid rgba(255, 255, 255, .1);
  font: 600 19px/1.2 var(--font-display); letter-spacing: -0.01em; text-decoration: none;
  transition: color .2s ease;
}
.drawer__list a:active { color: #ff8aa3; }
.drawer__cta { margin-top: 20px; }
.drawer__phone { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 4px; color: rgba(255, 255, 255, .8); font-weight: 600; text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(980px, 100svh);
  padding: calc(var(--hdr-h) + clamp(56px, 8vh, 96px)) 0 calc(10vw + 72px);
  color: var(--paper); background: var(--ink);
}
.hero__bg {
  position: absolute; inset: -8% 0 -8%; z-index: -2;
  background: url(../img/hero.jpg) 72% 38% / cover no-repeat;
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(14, 17, 40, .95) 0%, rgba(14, 17, 40, .82) 34%, rgba(14, 17, 40, .38) 62%, rgba(14, 17, 40, .12) 100%),
    linear-gradient(0deg, rgba(14, 17, 40, .85) 0%, rgba(14, 17, 40, 0) 42%);
}
.hero__copy { max-width: 720px; }
.hero__title {
  font: 600 clamp(26px, 7.4vw, 60px)/1.06 var(--font-display);
  letter-spacing: -0.03em;
}
.hero__title .line { display: inline-block; }
.hero__title em { font-style: normal; color: #ff4d73; }
.hero__sub { margin-top: 22px; font: 500 clamp(19px, 1.7vw, 24px)/1.3 var(--font-body); color: rgba(255, 255, 255, .92); }
.hero__text { margin-top: 14px; max-width: 30em; font-size: 17px; color: rgba(255, 255, 255, .72); }

.hero__grid { position: relative; margin-top: clamp(40px, 6vh, 72px); }
.tiles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 20px 18px 22px; border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: background-color .25s ease, border-color .25s ease, transform .35s var(--ease-out);
}
.tile__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; padding: 0;
  border: 0; clip-path: var(--hex); background: rgba(255, 255, 255, .12);
  color: var(--paper); font-size: 30px;
  transition: background-color .25s ease, transform 160ms var(--ease-out);
}
.tile__title { font: 700 13px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.tile__title a { display: inline-block; margin: -10px 0; padding: 10px 0; text-decoration: none; transition: color .2s ease; }
.tile__title a:active { color: #ff8aa3; }
.tile__text { font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .7); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .28); }
  .tile:hover .tile__icon { background: var(--red); }
  .tile__title a:hover { color: #ff8aa3; }
}
/* signature: the hexagon shield drawn around the six products */
.shield { position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); overflow: visible; pointer-events: none; }
.shield polygon { fill: none; }
.shield__line { stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.shield__spark { stroke: #ff4d73; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .07 .93; stroke-dashoffset: .07; opacity: 0; filter: drop-shadow(0 0 6px rgba(255, 77, 115, .9)); }
.intro-in .shield__line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-in-out) .55s; }
.intro-in .shield__spark { animation: spark 2.6s var(--ease-in-out) 2.1s 1 both; }
@keyframes spark { 0% { opacity: 0; stroke-dashoffset: .07; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -.93; } }

/* hero intro (page load) */
.js [data-intro] { opacity: 0; transform: translateY(18px); }
.intro-in [data-intro] { opacity: 1; transform: none; transition: opacity .8s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s); }

.hero__down-wrap { position: absolute; left: 0; right: 0; bottom: calc(10vw + 6px); z-index: 2; display: flex; justify-content: center; pointer-events: none; }
.hero__down { display: grid; place-items: center; width: 48px; height: 48px; color: rgba(255, 255, 255, .8); font-size: 36px; pointer-events: auto; transition: color .2s ease; }
.hero__down .i { animation: bob 2.6s var(--ease-in-out) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (hover: hover) and (pointer: fine) { .hero__down:hover { color: var(--paper); } }
.shape { position: absolute; left: 0; width: 100%; height: auto; aspect-ratio: 10 / 1; z-index: 1; pointer-events: none; }
.shape--hero { bottom: -1px; transform: rotate(180deg); fill: var(--mist); }
.shape--urgent { top: -1px; fill: var(--red); }

/* ---------- why + steps ---------- */
.why { position: relative; background: var(--mist); padding: 40px 0 0; overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 clamp(72px, 9vw, 120px); border-block: 1px solid var(--line); }
.stat { padding: 28px 20px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { display: block; font: 500 clamp(34px, 3.8vw, 54px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--red); font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--slate); }
.steps { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: end; }
.steps__col { padding-bottom: clamp(72px, 9vw, 120px); }
.steps__list { position: relative; display: grid; gap: 18px; margin-bottom: 36px; }
.steps__list::before {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px;
  background: linear-gradient(var(--red), rgba(224, 2, 53, .12));
  transform: scaleY(0); transform-origin: top; transition: transform 1.2s var(--ease-in-out) .2s;
}
.steps__list.is-in::before, .steps__list:has(.is-in)::before { transform: scaleY(1); }
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: center; }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; clip-path: var(--hex);
  background: var(--red); color: var(--paper); font: 600 15px/1 var(--font-display);
}
.step p { font-size: 17px; line-height: 1.5; color: var(--ink-80); }
.steps__media { position: relative; display: flex; justify-content: center; align-self: end; }
.steps__media img { position: relative; width: min(350px, 100%); }

/* ---------- company (red) ---------- */
.company {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(80px, 10vw, 140px) 0;
  background: linear-gradient(160deg, #e8073c 0%, var(--red) 42%, #c20230 100%);
  color: var(--paper);
}
.company__mark { width: min(300px, 70%); margin: 40px auto 0; pointer-events: none; }
.company__mark img { width: 100%; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.company__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.company__text { font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .92); }
.company__text p + p { margin-top: 16px; }
.company__motto { margin-top: 24px !important; font: 600 18px/1.35 var(--font-display); letter-spacing: -0.01em; color: var(--paper); }
.partners { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; margin-top: clamp(56px, 7vw, 88px); }
.partners li {
  display: grid; place-items: center; height: 88px; padding: 14px;
  border-radius: 16px; background: var(--paper);
  box-shadow: 0 14px 30px -18px rgba(60, 0, 15, .7);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.partners img { max-height: 46px; width: auto; max-width: 100%; object-fit: contain; }
@media (hover: hover) and (pointer: fine) { .partners li:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -18px rgba(60, 0, 15, .8); } }

/* ---------- accordions (shared) ---------- */
.acc h3, .acc h4 { font: inherit; }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 56px; padding: 14px 0; border: 0; background: none; text-align: left;
  font: 600 17px/1.35 var(--font-body);
}
.acc__ico {
  box-sizing: content-box; padding: 8px; border-radius: 50%; font-size: 16px;
  transition: transform .35s var(--ease-out), background-color .25s ease, color .25s ease;
}
.acc__btn[aria-expanded="true"] .acc__ico { transform: rotate(45deg); }
.acc__panel { overflow: hidden; }
.acc__inner p + p { margin-top: 12px; }

.acc--glass .acc__item { border-top: 1px solid rgba(255, 255, 255, .24); }
.acc--glass .acc__item:last-child { border-bottom: 1px solid rgba(255, 255, 255, .24); }
.acc--glass .acc__btn { color: var(--paper); font-size: 18px; }
.acc--glass .acc__ico { border: 1px solid rgba(255, 255, 255, .5); }
.acc--glass .acc__btn[aria-expanded="true"] .acc__ico { background: var(--paper); color: var(--red); }
.acc--glass .acc__inner { padding: 0 48px 20px 0; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .88); }
@media (hover: hover) and (pointer: fine) { .acc--glass .acc__btn:hover .acc__ico { background: rgba(255, 255, 255, .18); } }

.acc--cards { display: grid; gap: 12px; }
.acc--cards .acc__item { border-radius: var(--radius-m); background: var(--paper); box-shadow: 0 16px 34px -24px rgba(60, 0, 15, .8); }
.acc--cards .acc__btn { padding: 20px 24px; color: var(--ink); font-size: 18px; }
.acc--cards .acc__ico { background: var(--red-tint); color: var(--red); }
.acc--cards .acc__btn[aria-expanded="true"] .acc__ico { background: var(--red); color: var(--paper); }
.acc--cards .acc__inner { padding: 0 24px 22px; font-size: 16px; line-height: 1.7; color: var(--slate); }
@media (hover: hover) and (pointer: fine) { .acc--cards .acc__btn:hover .acc__ico { background: #ffd3dd; } .acc--cards .acc__btn[aria-expanded="true"]:hover .acc__ico { background: var(--red-deep); } }

/* ---------- offer (tabs) ---------- */
.offer { position: relative; padding: clamp(80px, 10vw, 140px) 0; background: #eef1f6 url(../img/tabs-bg.jpg) center / cover no-repeat fixed; }
.offer__card {
  max-width: 1080px; margin: 0 auto; padding: clamp(28px, 4.4vw, 60px);
  border-radius: 28px; background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-2);
}
.tabs { margin-bottom: 32px; }
.tabs__list { position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 16px; background: var(--mist); }
.tabs__pill {
  position: absolute; inset: 5px; border-radius: 12px; background: var(--paper);
  clip-path: inset(var(--t, 0px) calc(100% - var(--r, 0px)) calc(100% - var(--b, 0px)) var(--l, 0px) round 12px);
  opacity: 0;
  transition: clip-path .4s var(--ease-out), opacity .2s ease;
}
.tabs__list.is-ready .tabs__pill { opacity: 1; }
.tabs__tab {
  position: relative; z-index: 1; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: none;
  font: 600 14px/1 var(--font-body); letter-spacing: .06em; color: var(--slate);
  transition: color .2s ease, transform 160ms var(--ease-out);
}
.tabs__tab[aria-selected="true"] { color: var(--red); }
.tabs__tab:active { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .tabs__tab:hover { color: var(--ink); } .tabs__tab[aria-selected="true"]:hover { color: var(--red); } }
.tabs__panel { padding-top: 32px; }
.tabs__panel.is-shown { animation: panelIn .45s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.tabs__h { font: 600 clamp(22px, 2.2vw, 30px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.tabs__lead { margin-top: 12px; max-width: 46em; color: var(--slate); }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.feats li { padding: 22px; border-radius: var(--radius-m); background: #f5f7fb; border: 1px solid #e8ecf3; }
.feats__ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 16px; background: var(--red-tint); color: var(--red); font-size: 32px; }
.feats h4 { font: 700 17px/1.35 var(--font-body); color: var(--ink); }
.feats p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--slate); }
.tabs__note { margin-top: 20px; padding-left: 16px; border-left: 3px solid var(--red); font-size: 15px; line-height: 1.6; color: var(--slate); }

/* ---------- FAQ (red) ---------- */
.faq { position: relative; padding: clamp(80px, 10vw, 130px) 0 clamp(120px, 14vw, 180px); background: var(--red); color: var(--paper); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.faq__cert { position: sticky; top: calc(var(--hdr-h) + 40px); padding-top: 96px; }
.faq__cert img { width: 100%; max-width: 350px; margin-left: auto; transform: rotate(-4deg); }

/* ---------- urgent ---------- */
.urgent { position: relative; overflow: hidden; padding: calc(10vw + 72px) 0 clamp(80px, 10vw, 140px); background: var(--car-bg); }
.urgent__bg { position: absolute; inset: 0; overflow: hidden; }
/* машина въезжает слева, пока секция поднимается к середине экрана (site.js, data-fx="bg-x"):
   --park — где встаёт, --drive — откуда едет (доли ширины секции); фон картинки = фон секции, края слоя не видны */
.urgent__layer { --park: -0.14; --drive: 0.6; position: absolute; top: 0; left: 0; width: 140%; height: 100%; background: url(../img/car.jpg) left bottom / cover no-repeat; will-change: transform; }
.urgent__inner { position: relative; z-index: 2; display: flex; justify-content: flex-end; }
.urgent__card { width: min(520px, 100%); padding: 40px; border-radius: var(--radius-l); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-2); }
.urgent .h2 { margin-bottom: 24px; }
.urgent__phone { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.urgent__ico {
  display: grid; place-items: center; width: 60px; height: 60px; flex: none; clip-path: var(--hex);
  background: var(--red); color: var(--paper); font-size: 28px; transition: background-color .2s ease, transform 160ms var(--ease-out);
}
.urgent__num { font: 600 clamp(24px, 2.4vw, 32px)/1.1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.urgent__text { margin: 18px 0 22px; color: var(--slate); }
@media (hover: hover) and (pointer: fine) { .urgent__phone:hover .urgent__ico { background: var(--red-deep); } }

/* ---------- about / team / news ---------- */
.about { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper); }
.about__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; margin-bottom: clamp(80px, 10vw, 130px); }
.about__photo { position: relative; max-width: 520px; }
.about__photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--red); border-radius: var(--radius-l); }
.about__photo img { position: relative; width: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow-2); will-change: transform; }
.about__logo { width: min(230px, 56%); margin-bottom: 24px; }
.about__quote { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; color: var(--red); }
.about__quote .i { font-size: 34px; margin-top: 2px; }
.about__quote p { font: 600 clamp(24px, 2.4vw, 32px)/1.2 var(--font-display); letter-spacing: -0.02em; }
.about__body { color: var(--ink-80); font-size: 17px; }
.about__body p + p { margin-top: 16px; }
.about__h { margin-bottom: 32px; }

.slider { position: relative; min-width: 0; }
.slider__viewport { overflow: hidden; touch-action: pan-y; min-width: 0; }
.slider__track { display: flex; will-change: transform; }
.slider__track.is-anim { transition: transform .6s var(--ease-in-out); }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; }
.slider__arrow {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 16px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .slider__arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); } }
.slider__dots { display: flex; }
.slider__dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; }
.slider__dot::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--ink); opacity: .16; transition: opacity .3s ease, transform .3s var(--ease-out); }
.slider__dot[aria-current="true"]::before { opacity: 1; background: var(--red); transform: scaleX(1.4); }
.slider__count { display: none; min-width: 72px; text-align: center; font: 500 15px/1 var(--font-display); color: var(--slate); font-variant-numeric: tabular-nums; }
.slider__count b { font-weight: 600; color: var(--ink); }

.slider--team { margin-bottom: clamp(80px, 10vw, 130px); }
.slider--team .slider__track { gap: 16px; }
.person { position: relative; flex: 0 0 calc((100% - 48px) / 4); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 20px; background: var(--mist); }
.person img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.person__cap {
  position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 2px; padding: 56px 18px 18px;
  background: linear-gradient(0deg, rgba(14, 17, 40, .92) 0%, rgba(14, 17, 40, .6) 55%, rgba(14, 17, 40, 0) 100%);
  color: var(--paper);
}
.person__cap b { font-size: 16px; line-height: 1.3; }
.person__cap span { font-size: 14px; color: rgba(255, 255, 255, .85); }
.person__cap small { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .66); }
@media (hover: hover) and (pointer: fine) { .person:hover img { transform: scale(1.04); } }

.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--paper); border: 1px solid #eceff5; box-shadow: var(--shadow-1); transition: transform .35s var(--ease-out), box-shadow .35s ease; }
.post__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post__badge { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; background: var(--red); color: var(--paper); font: 600 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.post__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.post__title { font: 700 18px/1.4 var(--font-body); color: var(--ink); }
.post__title a { text-decoration: none; }
.post__excerpt { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--slate); }
.post__more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; padding-top: 14px; color: var(--red); font-weight: 600; font-size: 15px; text-decoration: none; }
.post__more .i { transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .post:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
  .post:hover .post__img img { transform: scale(1.05); }
  .post__more:hover .i { transform: translateX(3px); }
  .post__title a:hover { color: var(--red); }
}

/* ---------- reviews ---------- */
.reviews { padding: clamp(80px, 10vw, 130px) 0; background: var(--mist); }
.reviews__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.slider--rev { display: flex; flex-direction: column; }
.slider--rev .slider__viewport { flex: 1; display: flex; }
.slider--rev .slider__track { gap: 16px; align-items: stretch; width: 100%; }
.rev { flex: 0 0 100%; display: flex; flex-direction: column; padding: 26px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-1); }
.rev__head { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.rev__head img, .rev__ava { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; }
.rev__ava { display: grid; place-items: center; background: var(--red-tint); color: var(--red); font: 600 16px/1 var(--font-display); }
.rev__head cite { display: flex; flex-direction: column; flex: 1; min-width: 0; font-style: normal; }
.rev__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.rev__city { font-size: 13px; color: var(--slate); }
.rev__src { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.rev__src .i { font-size: 13px; }
.rev__src--flamp { background: #eaf0ff; color: #2d5be3; }
.rev__src--2gis { background: #e6f6e6; color: #0b8a10; }
.rev__text { position: relative; margin-top: 18px; padding-top: 18px; border-top: 1px solid #eef1f6; font-size: 16px; line-height: 1.65; color: var(--ink-80); }

/* ---------- contacts ---------- */
.contacts { position: relative; min-height: 760px; padding: 80px 0; }
.contacts__map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.contacts__inner { position: relative; z-index: 1; pointer-events: none; }
.contacts__card {
  width: min(460px, 100%); padding: 40px; pointer-events: auto;
  border-radius: var(--radius-l); background: rgba(18, 22, 51, .9); color: var(--paper);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -24px rgba(18, 22, 51, .7);
}
.contacts__logo { width: 76px; margin-bottom: 22px; }
.contacts__addr { font: 600 22px/1.35 var(--font-display); letter-spacing: -0.01em; margin-bottom: 24px; }
.contacts__addr span { font: 400 15px/1.5 var(--font-body); color: rgba(255, 255, 255, .68); }
.contacts__list { display: grid; gap: 6px; margin-bottom: 24px; }
.contacts__row { display: flex; align-items: center; gap: 14px; min-height: 52px; color: rgba(255, 255, 255, .92); text-decoration: none; font-size: 17px; transition: color .2s ease; }
.contacts__ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: rgba(255, 255, 255, .08); font-size: 20px; transition: background-color .2s ease; }
.contacts__big { font: 600 20px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--paper); }
.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--paper); color: var(--red); font-size: 24px;
  transition: transform 160ms var(--ease-out), background-color .2s ease, color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .contacts__row:hover .contacts__ico { background: var(--red); }
  .social a:hover { background: var(--red); color: var(--paper); }
}

/* ---------- footer ---------- */
.ftr { background: #0d1029; color: rgba(255, 255, 255, .62); border-top: 3px solid var(--red); }
.ftr__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; font-size: 13.5px; line-height: 1.5; }
.ftr__promo { max-width: 34em; }

/* ---------- связь: кнопка с кольцами, меню и чат с менеджером (по образцу fenecogroup.ru) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.contact__fab {
  position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 30; width: 60px; height: 60px;
  transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 0s linear 0s;
}
/* пока открыто окно чата, кнопка уступает ему угол: гаснет и чуть уменьшается */
.contact__fab[data-open="true"] { opacity: 0; transform: scale(0.9); visibility: hidden; pointer-events: none; transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 0s linear 150ms; }
.contact__fab[data-menu="true"] { z-index: 50; }
.contact__btn {
  position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; padding: 0;
  border: 0; border-radius: 50%; background: var(--red); color: var(--paper);
  box-shadow: 0 14px 30px -10px rgba(224, 2, 53, .8);
  transition: transform 160ms var(--ease-out), background-color .2s ease;
}
.contact__ico { grid-area: 1 / 1; font-size: 26px; transition: opacity 150ms ease, transform 200ms var(--ease-out); }
.contact__ico--close { font-size: 24px; }
.contact__fab[data-menu="true"] .contact__ico--chat, .contact__fab[data-menu="false"] .contact__ico--close { opacity: 0; transform: rotate(-60deg) scale(0.7); }
.contact__badge, .dial__badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font: 700 11px/20px var(--font-body); text-align: center; font-variant-numeric: tabular-nums; color: var(--paper); }
.contact__badge { position: absolute; top: -3px; right: -3px; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); }
.dial__badge { display: inline-block; margin-left: 8px; background: var(--red); }
/* кольца расходятся от кнопки и тают — привлекают внимание */
.contact__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); opacity: 0; pointer-events: none; animation: ring 2.4s var(--ease-out) infinite; }
.contact__ring--2 { animation-delay: 1.2s; }
@keyframes ring { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
.contact__fab[data-menu="true"] .contact__ring { animation: none; }
/* меню связи: пункты выезжают вверх от кнопки по очереди, уходят быстрее и разом */
.dial { position: absolute; right: 0; bottom: calc(100% + 14px); display: flex; flex-direction: column; align-items: flex-end; gap: 12px; visibility: hidden; transition: visibility 0s linear 180ms; }
.contact__fab[data-menu="true"] .dial { visibility: visible; transition-delay: 0s; }
.dial__item { opacity: 0; transform: translateY(12px) scale(0.9); transform-origin: bottom right; transition: opacity 140ms ease, transform 160ms var(--ease-out); }
.contact__fab[data-menu="true"] .dial__item { opacity: 1; transform: none; transition: opacity 180ms ease calc(var(--i) * 50ms), transform 220ms var(--ease-out) calc(var(--i) * 50ms); }
.dial__link { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 52px; padding: 0; border: 0; background: none; color: inherit; text-decoration: none; text-align: right; }
.dial__label { padding: 9px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 14px/1.2 var(--font-body); white-space: nowrap; box-shadow: 0 8px 24px -10px rgba(18, 22, 51, .45); transition: background-color .15s ease; }
.dial__label b { margin-left: 4px; font-weight: 700; color: var(--slate); font-variant-numeric: tabular-nums; }
.dial__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--red); color: var(--paper); font-size: 22px; box-shadow: 0 10px 24px -10px rgba(224, 2, 53, .7); transition: transform 160ms var(--ease-out), background-color .15s ease; }
/* окно чата растёт из угла кнопки и уходит тем же путём */
.chat {
  position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 45; width: 23rem;
  visibility: hidden; opacity: 0; transform: scale(0.96); transform-origin: bottom right;
  transition: opacity 180ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
.chat[data-open="true"] { visibility: visible; opacity: 1; transform: none; transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 0s; }
.chat__box { display: flex; flex-direction: column; height: min(34rem, calc(100dvh - 48px)); overflow: hidden; border: 1px solid #e6eaf2; border-radius: var(--radius-l); background: var(--paper); box-shadow: 0 30px 70px -24px rgba(18, 22, 51, .55); }
.chat__close {
  position: absolute; left: -12px; top: -12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 18px;
  box-shadow: 0 6px 16px -6px rgba(18, 22, 51, .4); transition: transform 160ms var(--ease-out), background-color .15s ease, color .15s ease;
}
.chat__head { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 16px 18px 40px; overflow: hidden; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath d='M14 1h28l13 23-13 23H14L1 24z' fill='none' stroke='%23fff' stroke-opacity='.09' stroke-width='2'/%3E%3C/svg%3E") right -10px top -6px / 56px 48px; color: var(--paper); }
.chat__title { position: relative; flex: 1; min-width: 0; }
.chat__h { font: 600 16px/1.2 var(--font-display); letter-spacing: -0.01em; }
.chat__status { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.chat__dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .22); }
.chat__call { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--paper); font-size: 17px; transition: background-color .15s ease, transform 160ms var(--ease-out); }
.chat__list { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.chat__quick { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-top: auto; }
.chat__q { min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--red); border-radius: 999px; background: var(--paper); color: var(--red); font: 600 14px/1.25 var(--font-body); text-align: right; transition: background-color .15s ease, color .15s ease, transform 160ms var(--ease-out); }
.msg { display: flex; }
.msg--me { justify-content: flex-end; }
.msg__b { max-width: 85%; padding: 9px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--me .msg__b { border-bottom-right-radius: 6px; background: var(--red); color: var(--paper); }
.msg--mgr .msg__b { border-bottom-left-radius: 6px; background: var(--mist); color: var(--ink); }
.msg__name { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--red); }
.msg.is-new { animation: msgIn .28s var(--ease-out); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.ask { max-width: 92%; margin-top: 4px; padding: 12px 14px; border-radius: 18px; background: var(--mist); font-size: 15px; line-height: 1.45; color: var(--ink); }
.ask__form { display: flex; gap: 8px; margin-top: 10px; }
.ask__form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1.5px solid #dce2ec; border-radius: 12px; background: var(--paper); font-size: 16px; font-variant-numeric: tabular-nums; transition: border-color .15s ease, box-shadow .15s ease; }
.ask__form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(224, 2, 53, .14); }
.ask__err { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--red); }
.ask__skip { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--slate); font-size: 13px; font-weight: 600; }
.chat__composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #edf0f5; transition: box-shadow .15s ease; }
.chat__composer:focus-within { box-shadow: inset 0 2px 0 var(--red); }
.chat__field { flex: 1; min-width: 0; }
.chat__field textarea { display: block; width: 100%; min-height: 44px; max-height: 128px; padding: 11px 6px; border: 0; background: transparent; resize: none; font: 400 16px/1.35 var(--font-body); color: var(--ink); }
.chat__field textarea:focus, .chat__field textarea:focus-visible { outline: none; }
.chat__field textarea::placeholder { color: #9aa1b4; }
.chat__send { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%; background: var(--mist); color: var(--slate); font-size: 18px; transition: background-color .15s ease, color .15s ease, transform 160ms var(--ease-out); }
.chat__send:not(:disabled) { background: var(--red); color: var(--paper); }
.chat__send:disabled { cursor: default; }
.chat__err { padding: 0 16px 12px; font-size: 13px; font-weight: 600; color: var(--red); }
@media (hover: hover) and (pointer: fine) {
  .contact__btn:hover { background-color: #c80230; }
  .dial__link:hover .dial__icon { background-color: #c80230; }
  .dial__link:hover .dial__label { background-color: var(--red-tint); }
  .chat__q:hover { background-color: var(--red-tint); }
  .chat__close:hover { background-color: var(--ink); color: var(--paper); }
  .chat__call:hover { background-color: rgba(255, 255, 255, .2); }
  .chat__send:not(:disabled):hover { background-color: #c80230; }
}

/* ---------- modals ---------- */
.modal {
  width: min(560px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 24px);
  margin: auto; padding: 0; border: 0; border-radius: var(--radius-l); background: transparent; color: var(--ink);
  overflow: visible; overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(8, 10, 26, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .32s var(--ease-out); }
.modal[open]::backdrop { animation: fadeIn .32s var(--ease-out); }
.modal.is-closing { animation: modalOut .22s var(--ease-out) forwards; }
.modal.is-closing::backdrop { animation: fadeOut .22s var(--ease-out) forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(8px) scale(0.97); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal__box { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--paper); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .16); color: var(--paper); font-size: 15px;
  transition: background-color .2s ease, transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .modal__close:hover { background: rgba(255, 255, 255, .28); } }

.modal__head {
  display: flex; align-items: center; gap: 18px; padding: 28px 72px 28px 28px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); color: var(--paper);
}
.modal__head img { width: 64px; border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.modal__head h2 { font: 600 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.form { display: grid; gap: 16px; padding: 28px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-80); }
.form input, .form select {
  width: 100%; min-height: 54px; padding: 0 16px;
  border: 1.5px solid #dce2ec; border-radius: 14px; background: #f8fafc; color: var(--ink);
  font-size: 17px; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.form input::placeholder { color: #9aa1b4; }
.form input:focus, .form select:focus { outline: none; border-color: var(--red); background: var(--paper); box-shadow: 0 0 0 4px rgba(224, 2, 53, .14); }
.form input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(224, 2, 53, .14); }
.form__err { font-size: 14px; line-height: 1.4; color: var(--red); }
.form__err:empty { display: none; }
.form__select { position: relative; }
.form__select select { appearance: none; padding-right: 44px; }
.form__select .i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--slate); pointer-events: none; }
.form__submit { margin-top: 6px; }
.form__note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--mist); font-size: 15px; line-height: 1.45; color: var(--ink-80); }
.form__note .i { font-size: 20px; color: var(--red); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__fail { padding: 12px 14px; border-radius: 14px; background: var(--red-tint); color: var(--red-deep); font-size: 15px; line-height: 1.45; }
.form__fail a { color: inherit; font-weight: 700; white-space: nowrap; }
.form__submit[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form__done { display: grid; justify-items: center; gap: 10px; padding: 36px 28px 28px; text-align: center; }
.form__done-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red-tint); color: var(--red); font-size: 32px; animation: pop .45s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
.form__done-h { font: 600 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.form__done-h:focus { outline: none; }
.form__done-t { max-width: 26em; margin-bottom: 8px; color: var(--slate); }

.modal--promo .modal__box {
  padding: clamp(40px, 6vw, 56px);
  background: radial-gradient(120% 90% at 100% 0%, #ff2e5f 0%, var(--red) 42%, var(--red-deep) 100%);
  color: var(--paper);
}
.modal--promo .modal__box > * { animation: rise .5s var(--ease-out) both; }
.modal--promo .modal__box > :nth-child(3) { animation-delay: 60ms; }
.modal--promo .modal__box > :nth-child(4) { animation-delay: 120ms; }
.modal--promo .modal__box > :nth-child(5) { animation-delay: 180ms; }
.modal--promo .modal__box > :nth-child(6) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.promo__big { display: flex; flex-direction: column; font-family: var(--font-display); letter-spacing: -0.04em; line-height: .95; }
.promo__word { font-size: clamp(40px, 7vw, 56px); font-weight: 600; }
.promo__pct { font-size: clamp(76px, 15vw, 128px); font-weight: 800; }
.promo__pct sup { font-size: .4em; vertical-align: 1.1em; }
.promo__mid { margin-top: 18px; font: 500 20px/1.3 var(--font-body); color: rgba(255, 255, 255, .9); }
.promo__code {
  display: inline-block; margin-top: 10px; padding: 10px 20px;
  border: 2px dashed rgba(255, 255, 255, .75); border-radius: 16px;
  font: 700 clamp(28px, 5vw, 40px)/1.1 var(--font-display); letter-spacing: -0.02em;
}
.promo__small { margin-top: 26px; font: 600 18px/1.3 var(--font-body); }
.promo__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; margin-top: 14px; padding: 0 28px;
  border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55);
  transition: transform 160ms var(--ease-out), background-color .2s ease;
}
.promo__btn .i { color: #229ed9; font-size: 20px; }
.modal--promo .modal__close { background: rgba(255, 255, 255, .18); }
@media (hover: hover) and (pointer: fine) { .promo__btn:hover { background: #f4f6fa; } }

/* ---------- tablet ≤1080 ---------- */
@media (max-width: 1080px) {
  .nav__list a { padding: 0 10px; font-size: 14px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partners { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .person { flex-basis: calc((100% - 32px) / 3); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .offer { background-attachment: scroll; }
}
@media (max-width: 900px) {
  .nav, .hdr__cta { display: none; }
  .burger {
    display: grid; place-items: center; width: 48px; height: 48px; margin-left: auto; padding: 0;
    border: 0; border-radius: 14px; background: rgba(255, 255, 255, .1);
    transition: background-color .2s ease, transform 160ms var(--ease-out);
  }
  .burger__lines, .burger__lines::before, .burger__lines::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--paper); }
  .burger__lines { position: relative; }
  .burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
  .burger__lines::before { top: -6px; }
  .burger__lines::after { top: 6px; }
  .company__cols, .about__cols, .faq__grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .company__mark { display: none; }
  .faq__cert { display: none; }
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews__cols { grid-template-columns: minmax(0, 1fr); }
  .steps__col { padding-bottom: 0; }
  .feats { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- phone ≤767 ---------- */
@media (max-width: 767px) {
  :root { --hdr-h: 64px; }
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .d-only { display: none !important; }
  .m-only { display: flex !important; }
  .hdr__logo-d { display: none; }
  .hdr__logo-m { display: block; width: 44px; height: 44px; border-radius: 12px; }
  .hdr__name { display: block; font: 600 14px/1.15 var(--font-display); letter-spacing: -0.01em; }

  .hero { min-height: 0; padding: calc(var(--hdr-h) + 40px) 0 calc(10vw + 64px); }
  .hero__bg { background-position: 70% 30%; }
  .hero::before { background: linear-gradient(180deg, rgba(14, 17, 40, .55) 0%, rgba(14, 17, 40, .88) 46%, rgba(14, 17, 40, .95) 100%); }
  .hero__grid { margin-top: 36px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 16px 14px 18px; }
  .tile__icon { width: 50px; height: 50px; font-size: 26px; margin-bottom: 6px; }
  .tile__title { font-size: 12px; }
  .tile__text { font-size: 12.5px; }
  .shield { inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); }
  .hero__down-wrap { display: none; }

  .why { padding-top: 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 14px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; border-left: 0; }
  .steps { gap: 24px; }
  .steps__media img { width: 280px; }
  .step p { font-size: 16px; }
  .btn--lg { width: 100%; }

  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .partners li { height: 76px; padding: 12px; }
  .partners img { max-height: 40px; }

  .offer__card { border-radius: 22px; }
  .tabs__list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tabs__tab { padding: 0 10px; }

  .acc--cards .acc__btn { padding: 18px; font-size: 16px; }
  .acc--cards .acc__inner { padding: 0 18px 20px; font-size: 15px; }
  .acc--glass .acc__btn { font-size: 16px; }

  .urgent { padding: calc(10vw + 40px) 0 300px; }
  .urgent__layer { --park: -0.2; --drive: 0.7; background-image: url(../img/car-mobile.jpg); background-position: 50% 100%; }
  .urgent__card { padding: 28px 22px; }
  .urgent__num { font-size: 22px; }

  .about__photo { margin: 0 22px 22px 0; }
  .person { flex-basis: 78%; }
  .slider__dots { display: none; }
  .slider__count { display: block; }
  .slider__nav { gap: 12px; }
  .news { grid-template-columns: minmax(0, 1fr); }
  .rev { padding: 22px; }

  .contacts { min-height: 0; padding: 0; display: flex; flex-direction: column; }
  .contacts__map { position: relative; height: 320px; order: 2; }
  .contacts__inner { width: 100%; padding: 0; }
  .contacts__card { width: 100%; border-radius: 0; padding: 32px 18px; background: var(--ink); box-shadow: none; }
  .ftr__inner { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 96px; }

  .contact__fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 56px; height: 56px; }
  .chat { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; }
  .chat__box { height: min(34rem, calc(100dvh - 24px)); }
  .chat__close { left: auto; right: 12px; top: 12px; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: var(--paper); box-shadow: none; }
  .chat__head { padding: 16px 64px 16px 18px; }
  .chat__call { display: none; }

  .modal { width: 100%; max-height: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; overflow-y: scroll; }
  .modal__box { border-radius: 24px 24px 0 0; }
  .modal[open] { animation: sheetIn .38s var(--ease-out); }
  .modal.is-closing { animation: sheetOut .25s var(--ease-out) forwards; }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  @keyframes sheetOut { to { transform: translateY(100%); } }
  .modal__head { padding: 24px 68px 24px 20px; }
  .modal__head img { width: 52px; }
  .modal__head h2 { font-size: 19px; }
  .form { padding: 22px 20px 28px; }
}

/* ---------- press feedback: 100 ms on pointer-down. Last in the file so no hover rule can override it ---------- */
.btn:active { transform: scale(0.97); background-color: var(--red-deep); transition-duration: 100ms; }
.tile .tile__icon:active { transform: scale(0.94); background-color: var(--red-deep); transition-duration: 100ms; }
.urgent__phone:active .urgent__ico { transform: scale(0.94); background-color: var(--red-deep); transition-duration: 100ms; }
.slider__arrow:active { transform: scale(0.92); background-color: var(--ink); border-color: var(--ink); color: var(--paper); transition-duration: 100ms; }
.contacts__row:active .contacts__ico { background-color: var(--red); transition-duration: 100ms; }
.social a:active { transform: scale(0.94); background-color: var(--red-deep); color: var(--paper); transition-duration: 100ms; }
.contact__btn:active { transform: scale(0.94); background-color: var(--red-deep); transition-duration: 100ms; }
.dial__link:active .dial__icon { transform: scale(0.94); background-color: var(--red-deep); transition-duration: 100ms; }
.dial__link:active .dial__label { background-color: var(--red-tint); transition-duration: 100ms; }
.chat__q:active { transform: scale(0.97); background-color: var(--red); color: var(--paper); transition-duration: 100ms; }
.chat__close:active { transform: scale(0.92); background-color: var(--mist); color: var(--ink); transition-duration: 100ms; }
.chat__call:active { transform: scale(0.94); background-color: rgba(255, 255, 255, .24); transition-duration: 100ms; }
.chat__send:not(:disabled):active { transform: scale(0.92); background-color: var(--red-deep); transition-duration: 100ms; }
.ask__skip:active { color: var(--ink); }
.modal__close:active { transform: scale(0.92); background-color: rgba(255, 255, 255, .36); transition-duration: 100ms; }
.promo__btn:active { transform: scale(0.97); background-color: #e6e9f0; transition-duration: 100ms; }
.drawer__close:active, .burger:active { transform: scale(0.94); background-color: rgba(255, 255, 255, .22); transition-duration: 100ms; }
.tabs__tab:active { transform: scale(0.97); transition: transform 100ms var(--ease-out), color 100ms ease; }

/* ---------- reduced motion: gentler, not dead (владелец смотрит с включённым reduce — эффекты должны быть видны) ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: translateY(10px); }
  .js .reveal.is-in { transition: opacity .7s ease var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s); }
  .js [data-intro] { transform: translateY(8px); }
  .intro-in [data-intro] { transition: opacity .8s ease var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
  .intro-in .shield__line { transition-duration: 2.2s; }
  .intro-in .shield__spark { animation-duration: 4.2s; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
  .hero__down .i { animation-duration: 3.6s; }
  @keyframes ring { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
  .contact__ring { animation-duration: 3.6s; }
  .contact__ring--2 { display: none; }
  .dial__item { transform: translateY(4px); }
  .chat { transform: scale(0.99); }
  @keyframes msgIn { from { opacity: 0; transform: translateY(2px); } }
  @keyframes pop { from { opacity: 0; transform: scale(0.9); } }
  .tabs__pill { transition-duration: .25s, .2s; }
  .tabs__panel.is-shown { animation: panelInSoft .35s var(--ease-out); }
  @keyframes panelInSoft { from { opacity: 0; transform: translateY(3px); } }
  .slider__track.is-anim { transition-duration: .45s; }
  @keyframes modalIn { from { opacity: 0; transform: scale(0.985); } }
  @keyframes modalOut { to { opacity: 0; transform: scale(0.99); } }
  @keyframes rise { from { opacity: 0; transform: translateY(5px); } }
  .drawer__panel { transform: translateX(32px); opacity: 0; transition: transform .35s var(--ease-out), opacity .25s ease; }
  .drawer.is-open .drawer__panel { transform: none; opacity: 1; }
  .drawer__list li { transform: translateX(6px); }
  @media (max-width: 767px) {
    @keyframes sheetIn { from { opacity: 0; transform: translateY(24px); } }
    @keyframes sheetOut { to { opacity: 0; transform: translateY(16px); } }
  }
}

/* ---------- страницы статей и новостей (tools/build-pages.py) ---------- */
.phero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--hdr-h) + clamp(40px, 6vw, 72px)) 0 clamp(56px, 7vw, 88px);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath d='M14 1h28l13 23-13 23H14L1 24z' fill='none' stroke='%23fff' stroke-opacity='.05' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 56px 48px;
  color: var(--paper);
}
.phero::after { content: ""; position: absolute; z-index: -1; right: -12%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 2, 53, .35), rgba(224, 2, 53, 0)); pointer-events: none; }
.phero--article { padding-bottom: clamp(88px, 10vw, 120px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, .85); text-decoration: none; transition: color .2s ease; }
.phero__title { max-width: 24ch; margin-top: 8px; font: 600 clamp(28px, 4.2vw, 54px)/1.1 var(--font-display); letter-spacing: -0.025em; }
.phero__lead { max-width: 40em; margin-top: 16px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .75); }
.phero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.phero__meta .post__badge { position: static; }
.ptabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 28px; padding: 5px; border-radius: 16px; background: rgba(255, 255, 255, .1); }
.ptabs a { display: flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 12px; color: rgba(255, 255, 255, .8); font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.ptabs a[aria-current="page"] { background: var(--paper); color: var(--red); }
.listing { padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); background: var(--mist); }
.news--grid { row-gap: 28px; }
.post__date { margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--slate); }
.article { padding-bottom: clamp(64px, 8vw, 110px); background: var(--paper); }
.article__wrap { max-width: 840px; }
.article__cover { position: relative; z-index: 1; margin: calc(clamp(56px, 7vw, 72px) * -1) 0 clamp(32px, 4vw, 48px); aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-l); background: var(--mist); box-shadow: var(--shadow-2); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.75; color: var(--ink-80); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; font: 600 clamp(22px, 2.4vw, 28px)/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.prose h3 { margin-top: 1.6em; font: 600 20px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.prose h4 { margin-top: 1.4em; font: 700 18px/1.4 var(--font-body); color: var(--ink); }
.prose strong { color: var(--ink); }
.prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }
.prose ul { padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 9px; height: 9px; clip-path: var(--hex); background: var(--red); }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose ol li::marker { color: var(--red); font-weight: 700; }
.prose li + li { margin-top: .5em; }
.prose img, .prose video { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 16px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 10px; font-size: 14px; text-align: center; color: var(--slate); }
.prose blockquote { margin: 1.6em 0; padding: 20px 24px; border-left: 4px solid var(--red); border-radius: 0 16px 16px 0; background: var(--mist); color: var(--ink); }
.prose cite { display: block; margin-top: 8px; font-size: 15px; font-style: normal; font-weight: 600; color: var(--slate); }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; }
.prose td, .prose th { padding: 10px 12px; border: 1px solid var(--line); }
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-l); background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); color: var(--paper); box-shadow: 0 24px 50px -24px rgba(224, 2, 53, .7); }
.cta__h { font: 600 clamp(20px, 2vw, 24px)/1.25 var(--font-display); letter-spacing: -0.02em; }
.cta__t { margin-top: 8px; color: rgba(255, 255, 255, .85); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn { background: var(--paper); color: var(--red); box-shadow: none; }
.cta .btn--ghost { background: rgba(255, 255, 255, .14); color: var(--paper); }
.btn--outline { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.more { padding: clamp(64px, 8vw, 100px) 0; background: var(--mist); }
.more__all { display: flex; justify-content: center; margin-top: 32px; }
@media (hover: hover) and (pointer: fine) {
  .crumbs a:hover { color: var(--paper); }
  .ptabs a:not([aria-current="page"]):hover { background: rgba(255, 255, 255, .12); color: var(--paper); }
  .prose a:hover { color: var(--red-deep); }
  .cta .btn:hover { background: #fff3f5; }
  .cta .btn--ghost:hover { background: rgba(255, 255, 255, .24); }
  .btn--outline:hover { background: var(--red); color: var(--paper); }
}
.ptabs a:active { background: rgba(255, 255, 255, .2); }
.cta .btn:active { transform: scale(0.97); background: #ffe1e7; transition-duration: 100ms; }
.cta .btn--ghost:active { background: rgba(255, 255, 255, .3); }
.btn--outline:active { background: var(--red-deep); color: var(--paper); }
@media (max-width: 767px) {
  .phero__lead { font-size: 16px; }
  .prose { font-size: 17px; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta__btns .btn { flex: 1 1 100%; }
  .ptabs { display: flex; width: 100%; }
  .ptabs a { flex: 1; justify-content: center; padding: 0 10px; }
}
