/* =====================================================================
   MEDO Clinic — Городская Заправочная Тестостероном
   Design: Figma MEDO-Clinic / Главная (1440px)
   ===================================================================== */

:root {
  --dark: #0c0e11;
  --red: #ed3237;
  --blue: #bfd6fc;
  --blue-light: #ebf0f7;
  --gray: #f5f6f6;
  --gray-2: #f7f7f8;
  --card-dark: #27282b;
  --ink: #020d20;
  --white: #fff;
  --font: "Inter", "Inter Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --z: 0.9; /* масштаб холста на десктопе, уточняется в js/main.js */
  /* Единая система (см. README «Единые правила вёрстки»): две линии выравнивания и три радиуса */
  --edge: 20px;   /* край блоков и свободных секций */
  --inset: 44px;  /* отступ текста внутри блоков */
  --r-block: 28px; /* крупные блоки: hero, тёмные/серые секции */
  --r-card: 20px;  /* карточки */
  --r-row: 16px;   /* строки списков, поля, мелкие панели */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--dark);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 32; /* Inter Display cut at every size, as in Figma */
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
b, strong { font-weight: 600; }

/* Page wrapper — fixed 1440 canvas, shown at 0.9 on desktop and zoomed down further on narrower screens (see js/main.js) */
.page {
  position: relative;
  width: 1440px;
  margin: 0 auto;
  zoom: var(--z);
  overflow: hidden;
}

/* ---------- Shared ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 34px;
  border-radius: 28px;
  background: var(--dark);
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: #1c1f24; }
.btn:active { transform: scale(.98); }
.btn--sm { height: 44px; padding: 0 24px; border-radius: 22px; font-size: 16px; }
.btn--red { background: var(--red); }
.btn--red:hover { background: #d92b30; }
/* Правило: чёрная кнопка — переход/открытие записи; красная — отправка формы и кнопки на тёмном фоне */

.section-title {
  font-size: 64px;
  font-weight: 400;
  line-height: .95;
  letter-spacing: -0.03em;
  text-align: left;
}

.chev {
  display: inline-block;
  width: 13px;
  height: 8px;
  margin-left: 13px;
  background: url(../img/chevron-white.svg) center / 13px 8px no-repeat;
  transform: rotate(-90deg);
  vertical-align: middle;
  flex: none;
}
.chev--dark { background-image: url(../img/chevron-dark.svg); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  background: rgba(92, 131, 195, .12);
  color: rgba(2, 13, 32, .5);
  font-size: 15px;
  letter-spacing: -0.02em;
}
.chip i { width: 7px; height: 7px; background: var(--red); }
.chip--dark { background: rgba(255, 255, 255, .11); color: var(--white); }

.slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider::-webkit-scrollbar { display: none; }
.slider > * { flex: none; scroll-snap-align: start; }

/* Единый компонент карусели: .slider-head (заголовок + стрелки), .slider-wrap (обрез по краю контента + затухание справа),
   .slider (дорожка). Состояния is-start/is-end ставит js/main.js: гаснут стрелки, в конце исчезает затухание. */
.slider-head { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.slider-wrap { position: relative; margin-top: 48px; }
.slider-wrap::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 140px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--white) 85%);
  opacity: 1; transition: opacity .3s;
}
.slider-wrap.is-end::after { opacity: 0; }
.slider-nav { display: flex; gap: 17px; }
.slider-nav[hidden] { display: none; }
.slider-nav__btn { width: 34px; height: 34px; opacity: 1; transition: opacity .2s; }
.slider-nav__btn img { width: 34px; height: 34px; }
.slider-nav__btn:disabled { opacity: .3; cursor: default; }
.slider-nav__btn--prev img { transform: scaleX(-1); }

/* ---------- Header ---------- */
.header {
  position: relative;
  display: flex;
  align-items: center;
  height: 85px;
  padding: 0 22px 0 18px;
}
.logo { display: block; width: 164px; height: 37px; margin-top: 4px; }
.logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.nav {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex;
  gap: 40px;
  margin-top: 7px;
  font-size: 16px;
  white-space: nowrap;
}
.nav a { transition: color .2s; }
.nav a:hover { color: var(--red); }
.header__phone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: 21px;
  margin-top: 7px;
  font-size: 16px;
}
.header__phone img { width: 17px; height: 17px; }
.header .btn--sm { margin-top: -4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  gap: 12px;
  height: 764px;
  margin: 0 20px;
}
.hero__left {
  position: relative;
  width: 645px;
  height: 764px;
  padding: 117px 0 0 44px;
  border-radius: 28px;
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  flex: none;
}
.hero__lines { position: absolute; left: 34px; top: 0; width: 572px; height: 764px; }
.hero__gauge {
  position: absolute;
  left: 44px;
  top: 34px;
  width: 569px;
  height: 48px;
}
.hero__gauge img { width: 569px; height: 48px; }
.hero__gauge span {
  position: absolute;
  right: 0;
  top: 13px;
  padding-right: 0;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--white);
}
.hero__title {
  position: relative;
  width: 554px;
  font-size: 74px;
  font-weight: 400;
  line-height: .85;
  letter-spacing: -0.03em;
}
.hero__text {
  position: relative;
  width: 529px;
  margin-top: 36px;
  font-size: 24px;
  line-height: 1.1;
}
.hero__btn { position: relative; margin-top: 78px; width: 362px; }

.hero__right {
  position: relative;
  width: 743px;
  height: 764px;
  border-radius: 28px;
  overflow: hidden;
  flex: none;
}
.hero__photo { width: 100%; height: 100%; object-fit: cover; }
.hero__place {
  position: absolute;
  right: 38px;
  top: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
}

.hero__tags { display: contents; }
.tag {
  position: absolute;
  height: 92px;
  padding: 22px 30px 0 72px;
  border: 1px solid var(--white);
  border-radius: 69px;
  background: rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(12.25px);
  backdrop-filter: blur(12.25px);
  color: var(--white);
  z-index: 2;
}
.tag__icon { position: absolute; left: 30px; top: 30px; width: 30px; height: 30px; object-fit: contain; }
.tag__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.tag__text { margin-top: 6px; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; }
.tag--science { left: 501px; top: 552px; width: 307px; }
.tag--complex { left: 1013px; top: 683px; width: 344px; border-radius: 56px; }
.tag--personal { left: -25px; top: 611px; width: 397px; border-radius: 64px; padding-left: 72px; }
.tag--personal .tag__icon { width: 24px; height: 26px; left: 31px; top: 31px; }
.tag--complex .tag__icon { width: 28px; height: 28px; left: 28px; top: 30px; }
.tag--science .tag__icon { width: 24px; height: 30px; left: 33px; top: 30px; }

/* ---------- Benefits ---------- */
.benefits { position: relative; padding: 93px 20px 0; }
.benefits__head { display: flex; align-items: flex-start; gap: 78px; }
.benefits__title {
  width: 717px;
  flex: none;
  margin-left: 0;
  font-size: 64px;
  font-weight: 400;
  line-height: .95;
  letter-spacing: -0.03em;
}
.benefits__title b { color: var(--red); }
.benefits__note { width: 554px; padding-top: 0; }
.marks { position: relative; height: 24px; margin-bottom: 20px; }
.marks i { position: absolute; background: var(--red); }
.marks i:first-child { left: 14px; top: 0; width: 18px; height: 24px; }
.marks i:last-child { left: 0; top: 15px; width: 8px; height: 9px; }
.benefits__note p { font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; }
.benefits__note p + p { margin-top: 22px; }
.muted { color: rgba(12, 14, 17, .47); }

.benefits__scene { position: relative; height: 1287px; margin-top: 116px; --body-w: 644px; --body-h: 966px; --body-top: 110px; /* фигура 75% от макета, центр совпадает с кольцами */ }
.benefits__circles { position: absolute; left: 76px; top: 8px; width: 1227px; height: 1170px; }
.benefits__body {
  position: absolute;
  left: 50%;
  top: var(--body-top);
  width: var(--body-w);
  height: var(--body-h);
  transform: translateX(-50%);
  object-fit: cover;
}
.bcard {
  position: absolute;
  padding: 21px 37px 28px 26px;
  border: 1px solid rgba(237, 50, 55, .1);
  border-radius: 20px;
  background: var(--blue-light);
  z-index: 1;
}
.bcard__title { font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; }
.bcard__text { margin-top: 10px; font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; }
.bcard--1 { left: 206px; top: 27px; }
.bcard--2 { left: 886px; top: 68px; }
.bcard--3 { left: 876px; top: 387px; }
.bcard--3 .bcard__text { white-space: nowrap; }
.bcard--4 { left: 199px; top: 398px; }
.bcard--5 { left: 153px; top: 793px; }
.bcard--5 .bcard__title { width: 233px; white-space: normal; }
.bcard--6 { left: 884px; top: 785px; }
.bcard--6 .bcard__text { width: 225px; }
.bdot { position: absolute; width: 10px; height: 10px; background: var(--red); z-index: 2; }
.bdot--1 { left: 473px; top: 81px; }
.bdot--2 { left: 875px; top: 133px; }
.bdot--3 { left: 1181px; top: 452px; }
.bdot--4 { left: 143px; top: 865px; }
.bdot--5 { left: 189px; top: 452px; }
.bdot--6 { left: 1189px; top: 850px; }

/* ---------- С чего начать ---------- */
.start { padding: 116px 20px 0; }
.start__grid {
  display: grid;
  grid-template-columns: 453fr 217fr 335fr 335fr;
  grid-template-rows: 323px 323px;
  gap: 20px;
  margin-top: 47px;
}
.scard {
  position: relative;
  display: block;
  padding: 32px 29px;
  border-radius: 20px;
  background: var(--dark) no-repeat;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.scard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90.8deg, rgba(12, 14, 17, .27) 1%, rgba(12, 14, 17, 0) 40%);
  z-index: 0;
}
.scard { z-index: 0; }
.scard__img {
  position: absolute;
  background: url(../img/start-composite.webp) no-repeat;
  z-index: -1;
}
.scard__glow { position: absolute; z-index: 0; pointer-events: none; max-width: none; }
.scard__title {
  position: relative;
  display: block;
  width: 298px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  z-index: 1;
}
.scard__link {
  position: absolute;
  left: 29px;
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  z-index: 1;
}
.scard--1 { grid-column: 1; grid-row: 1; }
.scard--1 .scard__img { left: 141px; top: -21px; width: 1287px; height: 858px; background-size: 1287px auto; }
.scard--1 .scard__glow { left: 110px; top: -56px; width: 236px; height: 432px; }
.scard--2 { grid-column: 2 / 4; grid-row: 1; }
.scard--2 .scard__title { width: 319px; }
.scard--2 .scard__img { left: 219px; top: -23px; width: 849px; height: 858px; background-size: 1287px auto; background-position: -438px 0; }
.scard--2 .scard__glow { left: 153px; top: -64px; width: 360px; height: 432px; }
.scard--5 { grid-column: 4; grid-row: 1 / 3; }
.scard--5 .scard__title { width: 257px; }
.scard--5 .scard__img { left: -31px; top: 121px; width: 537px; height: 545px; background-size: 1661px auto; background-position: -1124px 0; }
.scard--5 .scard__glow { left: -50px; top: 13px; width: 444px; height: 307px; }
.scard--3 { grid-column: 1 / 3; grid-row: 2; }
.scard--3 .scard__img { left: 134px; top: -439px; width: 1287px; height: 858px; background-size: 1287px auto; }
.scard--3 .scard__glow { left: 289px; top: -70px; width: 487px; height: 432px; }
.scard--4 { grid-column: 3; grid-row: 2; padding-left: 33px; }
.scard--4 .scard__link { left: 33px; }
.scard--4 .scard__img { left: 92px; top: 32px; width: 565px; height: 369px; background-size: 1137px auto; background-position: -572px -389px; }
.scard--4 .scard__glow { left: 51px; top: -44px; width: 341px; height: 432px; }

/* ---------- Подберем маршрут ---------- */
.quiz { position: relative; display: flex; justify-content: space-between; padding: 109px 20px 0; min-height: 903px; }
.quiz__left { position: relative; width: 690px; padding-left: 0; }
.quiz__text { width: 379px; margin-top: 48px; font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; }
.quiz__img { position: absolute; left: -70px; top: 324px; width: 571px; height: 460px; object-fit: contain; }
.quiz__panel {
  position: relative;
  width: 690px;
  height: 794px;
  margin-top: -13px;
  padding: 46px 44px;
  border-radius: 28px;
  background: var(--gray);
}
.quiz .qpager {
  position: absolute; right: 33px; top: 36px;
  display: flex; align-items: center; justify-content: space-between;
  width: 162px; height: 44px; padding: 0 14px 0 12px; border-radius: 33px;
  background: rgba(12, 14, 17, .06); color: #a1a2a3; font-size: 16px; letter-spacing: -0.02em;
}
.quiz .qpager button { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; opacity: .35; transition: opacity .2s; }
.quiz .qpager button:not(:disabled) { opacity: 1; }
.quiz .qpager button img { width: 12.5px; height: 7.5px; }
.quiz .qpager__prev img { transform: rotate(90deg); }
.quiz .qpager__next img { transform: rotate(-90deg); }
.quiz .qstep { display: none; }
.quiz .qstep.is-active { display: block; }
.quiz__btn[disabled], .quiz__btn[aria-disabled="true"] { background: #e8e9e9; color: #a1a2a3; cursor: default; }
.quiz__btn[disabled]:hover, .quiz__btn[aria-disabled="true"]:hover { background: #e8e9e9; }
.quiz__heading { font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; padding-right: 180px; }
.quiz__list { min-height: 490px; margin-top: 67px; }
.quiz__list li + li { margin-top: 37px; }
.check { display: flex; align-items: center; gap: 19px; cursor: pointer; font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check i {
  position: relative;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--white);
  flex: none;
}
.check i::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e4e5e7;
  transition: background .15s;
}
.check input:checked + i::after { background: var(--red); }
.check input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 2px; }
.quiz__btn { width: 611px; margin: 43px 0 0 2px; }

/* ---------- Услуги ---------- */
.services { padding: 91px 20px 0; }
.svc {
  position: relative;
  display: block;
  width: 430px;
  height: 527px;
  padding: 47px 38px;
  border-radius: 20px;
  overflow: hidden;
  color: var(--dark);
}
.svc__title { display: block; font-size: 40px; font-weight: 500; line-height: .95; letter-spacing: -0.03em; }
.svc__text { display: block; width: 285px; margin-top: 36px; font-size: 24px; line-height: .95; letter-spacing: -0.03em; }
.svc__link { position: absolute; left: 38px; bottom: 38px; display: inline-flex; align-items: center; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.svc--blue { background: linear-gradient(224.5deg, #bfd6fc 22%, #ebf0f7 97%); }
.svc--dark { background: var(--dark) url(../img/service-lines.svg) -15px -60px / 460px 615px no-repeat; color: var(--white); }
.svc--red { background: var(--red) url(../img/gzt-card.webp) center / cover no-repeat; color: var(--white); }
.svc--red .svc__title, .svc--red .svc__text { position: relative; z-index: 1; }
.svc--red .svc__link { z-index: 1; }
.svc--red .svc__text { width: 333px; }
.svc--gray { background: var(--gray); }
.svc--gray .svc__text { width: 275px; }
.svc--checkup { padding-left: 39px; background: #0c0e11 url(../img/checkup-card.webp) center / cover no-repeat; color: var(--white); }
.svc--checkup .svc__link { left: 39px; }
.svc--checkup .svc__text { width: 276px; }
.svc--checkup .svc__title, .svc--checkup .svc__text { position: relative; z-index: 1; }
.svc--checkup .svc__link { z-index: 1; }
.svc__ring { position: absolute; left: 192.5px; width: 407px; height: auto; max-width: none; }
.svc__ring--1 { top: 217.2px; }
.svc__ring--2 { top: 250px; }
.svc__ring--3 { top: 282.1px; }
.svc__ring--4 { top: 315px; }
.svc__ring--5 { top: 350.7px; }
.svc__ring--6 { left: 328px; top: 342.3px; width: 26.5px; }

/* ---------- Как работает клиника ---------- */
.how { position: relative; padding-top: 131px; overflow: hidden; }
.how__title { padding: 0 20px; }
.how__scene { position: relative; height: 880px; margin-top: -67px; }
.how__map {
  position: absolute;
  left: 0;
  top: -252px;
  width: 1440px;
  height: 1347px;
  pointer-events: none;
}
.how__map img { width: 100%; height: 100%; }
.how__route { position: absolute; left: 176px; top: 216px; width: 1073px; height: 418px; overflow: visible; }
.how__path { transition: stroke-dashoffset 2.8s cubic-bezier(.45, 0, .25, 1); }
.step { position: absolute; width: 305px; }
.step__pin {
  position: absolute;
  width: 158px;
  height: 158px;
  opacity: 0;
  transform: translateY(-40px) scale(.6);
  transform-origin: 50% 85%;
  transition: opacity .35s ease, transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
.step__card { opacity: 0; transform: translateY(18px); transition: opacity .55s ease .2s, transform .55s cubic-bezier(.22, 1, .36, 1) .2s; }
.step.is-visible .step__pin { opacity: 1; transform: none; }
.step.is-visible .step__card { opacity: 1; transform: none; }
.step__card {
  position: absolute;
  width: 305px;
  padding: 30px;
  border: 1px solid rgba(191, 214, 252, .2);
  border-radius: 20px;
  background: var(--gray);
  box-shadow: 0 10px 40px rgba(12, 14, 17, .06);
}
.step__title { font-size: 25.4px; font-weight: 500; line-height: .95; letter-spacing: -0.03em; }
.step__text { margin-top: 24px; font-size: 15.9px; line-height: .95; letter-spacing: -0.03em; }
.step--1 { left: 20px; top: 185px; }
.step--1 .step__pin { left: 74px; top: 0; }
.step--1 .step__card { left: 0; top: 107px; }
.step--2 { left: 337px; top: 462px; }
.step--2 .step__pin { left: 74px; top: 0; }
.step--2 .step__card { left: 0; top: 111px; }
.step--3 { left: 848px; top: 139px; }
.step--3 .step__pin { left: 74px; top: 0; }
.step--3 .step__card { left: 0; top: 115px; }
.step--4 { left: 1026px; top: 516px; }
.step--4 .step__pin { left: 80px; top: 0; }
.step--4 .step__card { left: 0; top: 117px; }

/* ---------- Организм тоже требует ТО ---------- */
.to {
  position: relative;
  height: 778px;
  margin: 62px 20px 0;
  border-radius: 28px;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}
.to__lines { position: absolute; top: 0; width: 669px; height: 895px; }
.to__lines--l { left: 0; }
.to__lines--r { left: 741px; }
.to__title {
  position: absolute;
  left: 44px;
  top: 67px;
  font-size: 64px;
  font-weight: 400;
  line-height: .95;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.to__tabs { position: absolute; left: 44px; top: 314px; }
.to__tabs li + li { margin-top: 35px; }
.to__tabs .to__marker + li { margin-top: 0; }
.to__marker {
  position: absolute;
  left: 0;
  top: 4px;
  width: 8px;
  height: 15px;
  margin: 0 !important;
  background: var(--red);
  transition: top .45s cubic-bezier(.4, 0, .2, 1), left .45s cubic-bezier(.4, 0, .2, 1);
}
.to__tabs button {
  position: relative;
  padding-left: 60px;
  font-size: 24px;
  line-height: .95;
  letter-spacing: -0.03em;
  color: var(--white);
  opacity: .9;
  transition: opacity .2s;
}
.to__tabs button.is-active { font-weight: 600; opacity: 1; }
.to__tabs button:hover { opacity: 1; }
.to__figure {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.06) translateY(14px);
  transition: opacity .7s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.to__figure.is-active { opacity: 1; transform: none; }
.to__pic { position: absolute; }
.to__pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.to__figure--1 { left: 348px; top: -20px; width: 799px; height: 1052px; }
.to__img {
  position: absolute;
  left: 84px;
  top: 51px;
  width: 631px;
  height: 950px;
  object-fit: contain;
  transform: rotate(-10.86deg);
  transform-origin: center;
}
.to__figure--2 { left: 445px; top: 190px; width: 768px; height: 588px; }
.to__figure--2 .to__pic { inset: 0; }
.to__figure--3 { left: 451.1px; top: 116.55px; width: 540.79px; height: 664.36px; }
.to__figure--3 .to__pic { left: 20.58px; top: 15.99px; width: 499.63px; height: 632.38px; transform: rotate(3.83deg); }
.to__figure--4 { left: 360px; top: 113px; width: 761px; height: 721.74px; }
.to__figure--4 .to__pic { left: 51.45px; top: 56.56px; width: 658.09px; height: 608.63px; transform: rotate(-10.86deg); }
.to__figure--5 { left: 456.14px; top: 170.91px; width: 553.8px; height: 691.31px; }
.to__figure--5 .to__pic { left: 47.74px; top: 33.08px; width: 458.32px; height: 625.15px; transform: rotate(-170.65deg) scaleY(-1); }
.to__figure--6 { left: 331.36px; top: 117.43px; width: 761.7px; height: 988.08px; }
.to__figure--6 .to__pic { left: 78.45px; top: 49.02px; width: 604.8px; height: 890.05px; transform: rotate(-10.86deg); }
.to__card {
  position: absolute;
  left: 866px;
  top: 322px;
  width: 461px;
  height: 305px;
  padding: 48px 41px;
  border-radius: 20px;
  background: var(--red);
  overflow: hidden;
}
.to__card-title { font-size: 40px; font-weight: 500; line-height: .95; letter-spacing: -0.03em; }
.to__card--in .to__card-title { animation: toIn .55s cubic-bezier(.22, 1, .36, 1) both; }
.to__card--in .to__card-text { animation: toIn .55s cubic-bezier(.22, 1, .36, 1) .08s both; }
@keyframes toIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.to__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: rgba(255, 255, 255, .55);
  border-radius: 0 3px 3px 0;
}
.to__progress.is-running { width: 100%; transition: width 5s linear; }
.to__card-text { position: absolute; left: 41px; bottom: 43px; width: 315px; font-size: 24px; line-height: .95; letter-spacing: -0.03em; }

/* ---------- Врачи ---------- */
.doctors { padding: 128px 20px 0; }
.doc {
  position: relative;
  width: 430px;
  height: 527px;
  padding: 9px;
  border-radius: 20px;
  background: var(--gray); /* один тон для всех карточек врачей (2026-09-29); tone в doctors.yaml больше не влияет на вид */
  color: var(--dark);
  transition: background .2s;
}
.doc:hover { background: #eceeef; }
.doc__photo {
  position: relative;
  width: 412px;
  height: 326px;
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}
.doc__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.doc__badge {
  position: absolute;
  left: 24px;
  top: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 143px;
  height: 35px;
  border-radius: 51px;
  background: rgba(12, 14, 17, .06);
  color: var(--dark);
  font-size: 16px;
  line-height: .95;
  letter-spacing: -0.03em;
}
.doc__name { margin: 33px 0 0 15px; font-size: 32px; font-weight: 600; line-height: .95; letter-spacing: -0.03em; }
.doc__role { margin: 15px 0 0 15px; font-size: 16px; line-height: .95; letter-spacing: -0.03em; opacity: .47; }
.doc__link { position: absolute; left: 24px; bottom: 37px; display: inline-flex; align-items: center; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }

/* ---------- Сервис под ключ ---------- */
.service { padding: 128px 20px 0; }
.service__block {
  position: relative;
  height: 993px;
  padding: 49px 0 0 44px;
  border-radius: 28px;
  background: url(../img/service-bg.webp) center top / 100% auto no-repeat;
  color: var(--white);
}
.service__slash { position: absolute; top: 5px; width: 139px; height: 63px; }
.service__slash--1 { left: 845px; }
.service__slash--2 { left: 886px; }
.service__slash--3 { left: 927px; }
.service__title { font-size: 64px; font-weight: 400; line-height: .95; letter-spacing: -0.03em; }
.service__cards { position: absolute; left: 27px; top: 700px; display: flex; gap: 20px; }
.fcard {
  position: relative;
  width: 319px;
  height: 293px;
  padding: 21px 37px 28px 26px;
  border-radius: 20px;
  background: var(--blue-light);
  color: var(--dark);
}
.fcard:last-child { width: 325px; }
.fcard--red { background: var(--red); color: var(--white); }
.fcard__title { font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.fcard__text { position: absolute; left: 26px; bottom: 28px; width: 255px; font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; }
.service__btn { min-width: 371px; margin-top: 28px; }

/* ---------- Приборная панель ---------- */
.dash {
  position: relative;
  height: 734px;
  margin: 72px 20px 0;
  border-radius: 28px;
  background: var(--gray);
  overflow: hidden;
}
.dash__lines { position: absolute; left: 661px; top: -42px; width: 669px; height: 895px; }
.dash__title { position: absolute; left: 44px; top: 67px; width: 561px; }
.dash__text { position: absolute; left: 44px; top: 244px; font-size: 20px; letter-spacing: -0.02em; }
.dash__btn { position: absolute; left: 44px; top: 615px; min-width: 300px; }
.dash__btn i { display: none; }
.dash__btn--legacy i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin-right: 15px;
  border-radius: 50%;
  background: var(--white);
}
.dash__btn i img { width: 12px; height: 10px; }
.dash__phone { position: absolute; left: 779px; top: 83px; width: 423px; height: 672px; }
.dash__device { width: 423px; height: 672px; object-fit: contain; }
.dash__screen {
  position: absolute;
  left: 13px;
  top: 259px;
  width: 396px;
  height: 390px;
  border-radius: 15.4px;
  overflow: hidden;
  transform: rotate(4.01deg);
  background: var(--white);
}
.dash__screen img {
  position: absolute;
  left: -15.84%;
  top: -80.35%;
  width: 131.67%;
  height: 237.81%;
  max-width: none;
  object-fit: cover;
}

/* ---------- Реальные истории ---------- */
.stories { padding: 109px 20px 0; }
.review {
  position: relative;
  width: 430px;
  height: 257px;
  padding: 22px 21px;
  border-radius: 20px;
  background: var(--gray);
}
.review__rate { display: flex; align-items: center; gap: 8px; font-size: 20px; letter-spacing: -0.02em; color: rgba(12, 14, 17, .5); }
.review__name { margin-top: 24px; font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.review__sub { margin-top: 11px; font-size: 20px; letter-spacing: -0.02em; color: rgba(12, 14, 17, .5); }
.review__text { width: 360px; margin-top: 32px; font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; }

/* ---------- Цены ---------- */
.prices {
  position: relative;
  height: 734px;
  margin: 128px 20px 0;
  padding: 43px 44px 0;
  border-radius: 28px;
  background: var(--dark);
  color: var(--white);
}
.prices__head { display: flex; justify-content: space-between; align-items: flex-start; }
.prices__title { width: 472px; font-size: 64px; font-weight: 400; line-height: .95; letter-spacing: -0.03em; }
.prices__title b { color: var(--red); }
.prices__side { display: flex; flex-direction: column; align-items: flex-end; }
.prices__note { width: 329px; margin-top: 50px; margin-right: 5px; font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; text-align: right; color: #d9d9d9; }
.prices__grid { display: grid; grid-template-columns: 321px 320px 320px 321px; gap: 14px; margin-top: 35px; }
.pcard {
  position: relative;
  height: 465px;
  padding: 26px;
  border-radius: 20px;
  background: var(--card-dark) no-repeat;
  overflow: hidden;
}
.pcard__title { width: 204px; font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.pcard--2 .pcard__title { width: 178px; }
.pcard--3 .pcard__title { width: 217px; }
.pcard--4 .pcard__title { width: 249px; }
.pcard__price { position: absolute; left: 26px; top: 133px; font-size: 20px; letter-spacing: -0.02em; }
.pcard { background-size: cover; background-position: center; }
.pcard--1 { background-image: url(../img/price-1.webp); }
.pcard--2 { background-image: url(../img/price-2.webp); }
.pcard--3 { background-image: url(../img/price-3.webp); }
.pcard--4 { background-image: url(../img/price-4.webp); }

/* ---------- FAQ ---------- */
.faq { padding: 114px 20px 0; }
.faq__title { font-size: 64px; font-weight: 400; line-height: .95; letter-spacing: -0.03em; text-align: left; color: var(--ink); }
.faq__list { margin-top: 57px; }
.faq__item {
  margin-bottom: 12px;
  border-radius: 20px;
  background: var(--gray-2);
  color: var(--ink);
}
.faq__item summary {
  position: relative;
  display: block;
  padding: 42px 120px 42px 38px;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 51px;
  top: 45px;
  width: 25px;
  height: 25px;
  background: url(../img/faq-plus.svg) center / contain no-repeat;
}
.faq__item[open] summary::after { background-image: url(../img/faq-minus.svg); }
.faq__body {
  width: 995px;
  padding: 0 38px 40px;
  margin-top: -18px;
  font-size: 20px;
  line-height: 1.21;
  letter-spacing: -0.02em;
  color: rgba(2, 13, 32, .38);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  height: 460px;
  margin: 100px 20px 0;
  border-radius: 28px;
  background: linear-gradient(44.6deg, #ed3237 55%, #f19699 111%);
  color: var(--white);
  overflow: hidden;
}
.cta__pattern { position: absolute; top: 0; width: 669px; height: 460px; }
.cta__pattern--l { left: -87px; }
.cta__pattern--r { left: 660px; }
.cta__title { position: absolute; left: 44px; top: 60px; font-size: 64px; font-weight: 400; line-height: .95; letter-spacing: -0.03em; white-space: nowrap; }
.cta__text { position: absolute; left: 44px; top: 168px; font-size: 32px; line-height: 1.21; letter-spacing: -0.02em; }
.cta__btn { position: absolute; left: 44px; top: 350px; width: 371px; }
.cta__photo { position: absolute; left: 744px; top: 0; width: 654px; height: 460px; border-radius: 28px; overflow: hidden; }
.cta__photo img {
  position: absolute;
  left: -152.45%;
  top: -60.98%;
  width: 278.74%;
  height: 264.19%;
  max-width: none;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  height: 548px;
  margin: 73px 20px 0; /* те же поля, что у hero и контента шапки */
  padding: 43px 26px 0 14px;
  background: url(../img/footer-bg.svg) center / 100% 100% no-repeat;
  color: var(--white);
}
.footer__tab { position: absolute; top: 1px; width: 112px; height: 44px; }
.footer__tab--1 { left: 982px; }
.footer__tab--2 { left: 1013px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; height: 137px; }
.footer__logo { display: block; width: 420px; height: 111px; }
.footer__logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.footer__socials {
  position: relative;
  display: flex;
  gap: 0;
  width: 197.6px;
  height: 30px;
  margin-top: -29px;
  background: url(../img/socials.svg) 0 0 / 197.6px 30px no-repeat;
}
.footer__socials a { flex: 1; height: 30px; }
.footer__cols { position: relative; display: flex; margin-top: 63px; padding-left: 12px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.footer__col:nth-child(1) { width: 225px; }
.footer__col:nth-child(2) { width: 272px; }
.footer__col:nth-child(3) { width: 309px; }
.footer__col:nth-child(4) { width: 330px; }
.footer__h { margin-bottom: 17px; font-size: 20px; font-weight: 500; line-height: 1.21; letter-spacing: -0.02em; }
.footer__col a, .footer__col span { font-size: 16px; font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 15px; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--red); }
.footer__col:nth-child(3) a:nth-of-type(4) { width: 217px; }
.footer__col:nth-child(4) span { width: 193px; }
.footer__red { color: var(--red); }
.footer__col a.footer__red:first-of-type { font-weight: 400; }
.footer__dim { color: rgba(255, 255, 255, .49); }
.footer__legal { width: 212px; font-size: 10px; line-height: 1.1; letter-spacing: -0.02em; color: rgba(255, 255, 255, .47); }

/* =====================================================================
   Mobile (< 768px): fluid layout, own composition for every section
   ===================================================================== */
.burger, .mmenu { display: none; }

@media (max-width: 767px) {
  /* длинные слова в заголовках («Техобслуживание») переносятся на узких экранах */
  h1, h2, h3, .section-title { overflow-wrap: anywhere; }
  :root { --pad: 16px; --radius: 22px; }
  .page { width: 100%; zoom: 1; overflow: visible; }
  body { font-size: 16px; letter-spacing: -0.01em; }
  body.menu-open { overflow: hidden; }

  /* ---- type ---- */
  .section-title, .hero__title, .benefits__title, .to__title, .service__title, .prices__title, .cta__title {
    font-size: 36px; line-height: .98; letter-spacing: -0.03em;
  }
  .faq__title { font-size: 30px; }
  .btn { height: 56px; padding: 14px 24px; font-size: 17px; border-radius: 28px; }
  .chev { margin-left: 10px; }

  /* ---- header + burger menu ---- */
  .header {
    position: sticky; top: 0; z-index: 50;
    height: 64px; padding: 0 var(--pad);
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .logo { width: 132px; height: 30px; margin: 0; }
  .nav, .header__phone, .header .btn--sm { display: none; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 0 10px;
    border-radius: 50%; background: var(--dark);
  }
  .burger span { display: block; height: 2px; border-radius: 2px; background: var(--white); transition: transform .3s, opacity .2s; }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mmenu {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 64px 0 0; z-index: 40;
    padding: 24px var(--pad) 28px;
    background: var(--white); color: var(--dark);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
  }
  .mmenu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .mmenu__nav { display: flex; flex-direction: column; }
  .mmenu__nav a { padding: 14px 0; border-bottom: 1px solid rgba(12, 14, 17, .08); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
  .mmenu__bottom { display: flex; flex-direction: column; gap: 14px; }
  .mmenu__phone { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; }
  .mmenu__place { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(12, 14, 17, .55); }
  .mmenu__place img { filter: invert(1); }
  .mmenu__btn { width: 100%; background: var(--red); }
  .mmenu__btn:hover { background: #d92b30; }

  /* ---- hero ---- */
  .hero { flex-direction: column; height: auto; gap: 12px; margin: 8px var(--pad) 0; }
  .hero__left { width: 100%; height: auto; padding: 96px 20px 24px; border-radius: var(--radius); }
  .hero__lines { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
  .hero__gauge { left: 20px; top: 24px; width: calc(100% - 40px); height: 44px; }
  .hero__gauge img { width: 100%; height: 40px; object-fit: cover; object-position: left; }
  .hero__gauge span { top: 48px; right: auto; left: 0; font-size: 12px; letter-spacing: .04em; opacity: .85; }
  .hero__title { width: 100%; font-size: 40px; line-height: .95; }
  .hero__text { width: 100%; margin-top: 20px; font-size: 17px; line-height: 1.25; }
  .hero__btn { width: 100%; margin-top: 28px; }
  .hero__right { width: 100%; height: 430px; border-radius: var(--radius); }
  .hero__photo { object-position: 58% 50%; }
  .hero__place { right: 16px; top: 16px; gap: 7px; padding: 8px 14px; border-radius: 30px; background: rgba(12, 14, 17, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 14px; }
  .hero__place img { width: 12px; height: 14px; }
  .hero__tags { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
  .tag {
    position: relative; left: auto !important; top: auto !important; width: auto !important; height: auto;
    padding: 14px 16px 14px 62px; border: 1px solid #e3e6eb; border-radius: 20px;
    background: var(--gray); color: var(--dark); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .tag__icon { left: 14px !important; top: 50% !important; width: 36px !important; height: 36px !important; padding: 8px; border-radius: 50%; background: var(--dark); transform: translateY(-50%); object-fit: contain; }
  .tag__title { font-size: 16px; }
  .tag__text { margin-top: 3px; font-size: 13px; color: rgba(12, 14, 17, .55); }

  /* ---- benefits ---- */
  .benefits { padding: 56px var(--pad) 0; }
  .benefits__head { flex-direction: column; gap: 22px; }
  .benefits__title { width: 100%; margin: 0; }
  .benefits__note { width: 100%; }
  .marks { height: 20px; margin-bottom: 14px; }
  .marks i:first-child { left: 11px; width: 14px; height: 20px; }
  .marks i:last-child { top: 12px; width: 6px; height: 8px; }
  .benefits__note p { font-size: 16px; line-height: 1.25; }
  .benefits__note p + p { margin-top: 12px; }
  .benefits__scene { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: auto; margin-top: 28px; }
  .benefits__circles, .bdot { display: none; }
  .benefits__body { position: relative; left: auto; top: auto; grid-column: 1 / -1; width: 100%; height: 360px; margin: 0 auto 6px; transform: none; object-fit: contain; }
  .bcard { position: static; display: flex; flex-direction: column; justify-content: flex-start; padding: 16px 14px 18px; border-radius: 16px; }
  .bcard__title { font-size: 18px; white-space: normal; }
  .bcard__text { margin-top: 6px; font-size: 13px; line-height: 1.2; width: auto !important; white-space: normal; overflow-wrap: anywhere; }
  .benefits__scene { min-width: 0; }
  .bcard { min-width: 0; }
  .bcard--5 .bcard__title { width: auto; }
  .bcard--3 .bcard__text { white-space: normal; }

  /* ---- start ---- */
  .start { padding: 56px var(--pad) 0; }
  .start__grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 10px; margin-top: 24px; }
  .scard { grid-column: auto !important; grid-row: auto !important; height: 300px; padding: 22px 20px; border-radius: 20px; }
  .scard::before { background: linear-gradient(180deg, rgba(12, 14, 17, .88) 0%, rgba(12, 14, 17, .35) 42%, rgba(12, 14, 17, 0) 70%); }
  .scard__glow { display: none; }
  .scard__img { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; background-size: 900px auto !important; }
  .scard--1 .scard__img { background-position: 60px 30px; }
  .scard--2 .scard__img { background-position: -250px 30px; }
  .scard--5 .scard__img { background-position: -560px 30px; }
  .scard--3 .scard__img { background-position: -80px -270px; }
  .scard--4 .scard__img { background-position: -396px -270px; }
  .scard__title { width: 100% !important; font-size: 24px; }
  .scard__link { left: 20px; bottom: 20px; font-size: 15px; }

  /* ---- quiz ---- */
  .quiz { flex-direction: column; padding: 56px var(--pad) 0; min-height: 0; }
  .quiz__left { width: 100%; padding: 0; }
  .quiz__text { width: 100%; margin-top: 16px; font-size: 16px; line-height: 1.25; }
  .quiz__img { position: static; display: block; width: 300px; max-width: 100%; height: auto; margin: 8px auto 0; }
  .quiz__panel { width: 100%; height: auto; margin-top: 20px; padding: 26px 20px 20px; border-radius: 22px; }
  .quiz__heading { font-size: 24px; padding-right: 0; }
  .quiz .qpager { position: static; width: 140px; height: 40px; margin-top: 14px; }
  .quiz__list { min-height: 0; margin-top: 24px; }
  .quiz__list li + li { margin-top: 0; }
  .quiz__list li { border-top: 1px solid rgba(12, 14, 17, .06); }
  .quiz__list li:first-child { border-top: 0; }
  .check { gap: 14px; padding: 13px 0; font-size: 16px; }
  .check i { width: 26px; height: 26px; }
  .check i::after { left: 9px; top: 9px; width: 8px; height: 8px; }
  .quiz__btn { width: 100%; margin: 20px 0 0; }

  /* ---- services ---- */
  .services { padding: 56px 0 0; }
  .services .chip { margin-left: var(--pad); height: 40px; padding: 10px 16px; font-size: 14px; }
  .services .section-title { margin-top: 14px; padding: 0 var(--pad); text-align: left; }
  .slider-head { flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 var(--pad); }
  .slider-nav { display: none; }
  .slider-wrap { margin-top: 22px; }
  .slider-wrap::after { display: none; }
  .services__slider { padding: 0 var(--pad); gap: 12px; scroll-padding-left: var(--pad); }
  .svc { width: 292px; height: 380px; padding: 26px 24px; border-radius: 22px; }
  .svc__title { font-size: 28px; }
  .svc__text { width: 100% !important; margin-top: 16px; font-size: 17px; line-height: 1.05; }
  .svc__link { left: 24px; bottom: 24px; font-size: 15px; }
  .svc--dark { background-size: 330px auto; }
  .svc--checkup { padding-left: 24px; }
  .svc--checkup .svc__link { left: 24px; }
  .svc__ring { left: 96px; width: 300px; }
  .svc__ring--1 { top: 176px; } .svc__ring--2 { top: 200px; } .svc__ring--3 { top: 224px; } .svc__ring--4 { top: 248px; } .svc__ring--5 { top: 274px; }
  .svc__ring--6 { left: 196px; top: 268px; width: 20px; }

  /* ---- how: vertical timeline ---- */
  .how { padding: 56px var(--pad) 0; overflow: visible; }
  .how__scene { position: relative; display: flex; flex-direction: column; gap: 14px; height: auto; margin-top: 24px; padding-left: 0; }
  .how__scene::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; border-left: 2px dashed rgba(237, 50, 55, .45); }
  .how__map, .how__route { display: none; }
  .step { position: relative; left: auto !important; top: auto !important; display: flex; gap: 12px; align-items: flex-start; width: auto; }
  .step__pin { position: static; width: 56px; height: 56px; flex: none; filter: drop-shadow(0 6px 10px rgba(237, 50, 55, .25)); transform: translateY(-14px) scale(.6); }
  .step__card { position: static; flex: 1; width: auto; padding: 18px 18px 20px; border-radius: 18px; box-shadow: none; }
  .step__title { font-size: 20px; line-height: 1.05; }
  .step__text { margin-top: 10px; font-size: 14px; line-height: 1.25; }

  /* ---- TO ---- */
  .to { height: auto; margin: 56px var(--pad) 0; padding: 30px 0 20px; border-radius: 26px; }
  .to__lines { width: 100%; height: 100%; }
  .to__lines--r { display: none; }
  .to__title { position: static; padding: 0 20px; white-space: normal; }
  .to__tabs {
    position: static; display: flex; gap: 8px; margin-top: 22px; padding: 0 20px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .to__tabs::-webkit-scrollbar { display: none; }
  .to__tabs li + li { margin: 0; }
  .to__tabs li { flex: none; }
  .to__marker { display: none; }
  .to__tabs button {
    padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 30px;
    font-size: 14px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; opacity: 1;
    transition: background .25s, border-color .25s;
  }
  .to__tabs button.is-active { font-weight: 500; background: var(--red); border-color: var(--red); }
  .to__figures { position: relative; height: 360px; margin-top: 10px; overflow: hidden; }
  .to__figure { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; transform: none; transition: opacity .6s ease; }
  .to__figure.is-active { transform: none; }
  .to__pic { inset: 0 !important; width: auto !important; height: auto !important; transform: none !important; }
  .to__pic img { object-fit: contain; object-position: center bottom; }
  .to__figure--3 .to__pic img, .to__figure--4 .to__pic img { object-position: center; }
  .to__figure--3 .to__pic { inset: 8px 40px !important; }
  .to__figure--4 .to__pic { inset: 0 16px !important; }
  .to__figure--5 .to__pic { transform: scaleX(-1) !important; }
  .to__figure--6 .to__pic { inset: 0 0 -60px !important; }
  .to__img { left: 50%; top: -52px; width: 367px; height: 440px; margin-left: -183px; }
  .to__card { position: relative; left: auto; top: auto; width: auto; height: auto; margin: 0 16px; padding: 22px 22px 26px; border-radius: 18px; }
  .to__card-title { font-size: 26px; }
  .to__card-text { position: static; width: 100% !important; margin-top: 14px; font-size: 16px; line-height: 1.15; }

  /* ---- doctors ---- */
  .doctors { padding: 56px 0 0; }
  .doctors__slider { padding: 0 var(--pad); gap: 12px; scroll-padding-left: var(--pad); }
  .doc { width: 280px; height: auto; padding: 8px 8px 22px; border-radius: 22px; }
  .doc__photo { width: 100%; height: 250px; border-radius: 16px; }
  .doc__badge { left: 20px; top: 20px; width: auto; height: 30px; padding: 0 12px; font-size: 13px; }
  .doc__name { margin: 20px 0 0 12px; font-size: 22px; }
  .doc__role { margin: 8px 0 0 12px; font-size: 14px; }
  .doc__link { position: static; display: inline-flex; margin: 22px 0 0 12px; font-size: 15px; }

  /* ---- service ---- */
  .service { padding: 56px var(--pad) 0; }
  .service__block {
    height: auto; padding: 28px 12px 12px; border-radius: 24px;
    background: #0c0e11 url(../img/service-bg.webp) 62% 0 / auto 420px no-repeat;
  }
  .service__slash { display: none; }
  .service__title { padding: 0 10px; }
  .service__cards { position: static; display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 210px; }
  .fcard { width: 100% !important; height: auto; padding: 18px 18px 20px; border-radius: 16px; }
  .fcard__title { font-size: 21px; }
  .fcard__text { position: static; width: 100%; margin-top: 16px; font-size: 15px; line-height: 1.2; }
  .service__btn { margin-top: 10px; }

  /* ---- dash ---- */
  .dash { height: auto; margin: 40px var(--pad) 0; padding: 30px 20px 0; border-radius: 24px; overflow: hidden; }
  .dash__lines { left: auto; right: -260px; top: 0; opacity: .6; }
  .dash__title { position: static; width: 100%; }
  .dash__text { position: static; margin-top: 14px; font-size: 16px; line-height: 1.25; }
  .dash__btn { position: static; min-width: 0; margin-top: 22px; }
  .dash__phone { position: relative; left: 50%; top: auto; width: 290px; height: 420px; margin: 28px 0 0 -145px; }
  .dash__device { width: 290px; height: 460px; object-fit: contain; object-position: top; }
  .dash__screen { left: 8px; top: 176px; width: 272px; height: 268px; }

  /* ---- stories ---- */
  .stories { padding: 56px 0 0; }
  .stories__title { font-size: 34px; }
  .stories__slider { padding: 0 var(--pad); gap: 12px; scroll-padding-left: var(--pad); }
  .review { width: 280px; height: auto; padding: 20px 20px 22px; border-radius: 18px; }
  .review__rate { font-size: 16px; }
  .review__rate img { width: 18px; height: 18px; }
  .review__name { margin-top: 16px; font-size: 22px; }
  .review__sub { margin-top: 6px; font-size: 14px; }
  .review__text { width: 100%; margin-top: 16px; font-size: 15px; line-height: 1.25; }
  .dots { margin-top: 20px; }

  /* ---- prices ---- */
  .prices { height: auto; margin: 56px var(--pad) 0; padding: 28px 12px 12px; border-radius: 24px; }
  .prices__head { flex-direction: column; gap: 18px; padding: 0 8px; }
  .prices__title { width: 100%; }
  .prices__side { align-items: flex-start; }
  .prices__side .chip { height: 40px; padding: 10px 16px; font-size: 14px; }
  .prices__note { width: 100%; margin: 14px 0 0; text-align: left; font-size: 15px; line-height: 1.25; }
  .prices__grid { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .pcard { height: 330px; padding: 20px; border-radius: 16px; background-size: cover; background-position: center bottom; }
  .pcard__title { width: 100%; font-size: 22px; }
  .pcard__price { position: static; margin-top: 10px; font-size: 17px; }

  /* ---- faq ---- */
  .faq { padding: 56px var(--pad) 0; }
  .faq__list { margin-top: 22px; }
  .faq__item { margin-bottom: 8px; border-radius: 18px; }
  .faq__item summary { padding: 20px 56px 20px 18px; font-size: 17px; line-height: 1.2; }
  .faq__item summary::after { right: 18px; top: 22px; width: 18px; height: 18px; }
  .faq__body { width: 100%; padding: 0 18px 20px; margin-top: -4px; font-size: 14px; line-height: 1.3; }

  /* ---- cta ---- */
  .cta { height: auto; margin: 40px var(--pad) 0; padding: 30px 20px 230px; border-radius: 24px; }
  .cta__pattern--r { display: none; }
  .cta__pattern--l { left: 0; width: 100%; height: 100%; }
  .cta__title { position: static; white-space: normal; }
  .cta__text { position: static; margin-top: 14px; font-size: 19px; line-height: 1.2; }
  .cta__btn { position: static; width: 100%; margin-top: 24px; }
  .cta__photo { left: 0; top: auto; bottom: 0; width: 100%; height: 230px; border-radius: 0 0 24px 24px; }
  .cta__photo img { left: -85%; top: -12%; width: 215%; height: 150%; }

  /* ---- footer ---- */
  .footer { height: auto; margin: 40px 0 0; padding: 36px var(--pad) 32px; background: var(--dark); border-radius: 28px 28px 0 0; }
  .footer__tab { display: none; }
  .footer__top { flex-direction: column; align-items: flex-start; height: auto; gap: 22px; }
  .footer__logo { width: 100%; max-width: 260px; height: 66px; }
  .footer__socials { margin: 0; }
  .footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; margin-top: 36px; padding: 0; }
  .footer__col { width: 100% !important; }
  .footer__h { margin-bottom: 12px; font-size: 17px; }
  .footer__col a, .footer__col span { margin-bottom: 11px; font-size: 15px; }
  .footer__col:nth-child(3) a:nth-of-type(4), .footer__col:nth-child(4) span { width: auto; }
  .footer__legal { grid-column: 1 / -1; width: 100%; margin-top: 6px; font-size: 11px; line-height: 1.3; }
}

/* very narrow phones */
@media (max-width: 360px) {
  .section-title, .hero__title, .benefits__title, .to__title, .service__title, .prices__title, .cta__title { font-size: 32px; }
  .hero__right { height: 380px; }
  .benefits__scene { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .to__figure, .to__marker, .to__progress, .how__path, .step__pin, .step__card { transition: none !important; }
  .to__card--in .to__card-title, .to__card--in .to__card-text { animation: none !important; }
}

/* =====================================================================
   Benefits scene — animation
   ===================================================================== */
.benefits__pulse, .benefits__scan { position: absolute; pointer-events: none; }
.benefits__pulse { left: 76px; top: 8px; width: 1227px; height: 1170px; }
.benefits__pulse i { position: absolute; inset: 0; border: 1.5px solid var(--red); border-radius: 50%; opacity: 0; transform: scale(.22); }
.benefits__scan {
  left: 50%; top: var(--body-top); width: var(--body-w); height: var(--body-h); margin-left: calc(var(--body-w) / -2); overflow: hidden;
  -webkit-mask: url(../img/body.webp) center / 100% 100% no-repeat;
  mask: url(../img/body.webp) center / 100% 100% no-repeat;
}
.benefits__scan::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 220px;
  background: linear-gradient(180deg, rgba(237, 50, 55, 0) 0%, rgba(237, 50, 55, .55) 78%, rgba(255, 255, 255, .95) 96%, rgba(237, 50, 55, 0) 100%);
  transform: translateY(-240px);
}
.bdot::after { content: ""; position: absolute; inset: 0; background: var(--red); opacity: 0; }

@media (min-width: 768px) {
  .benefits__scene { --mx: 0; --my: 0; }
  .benefits__circles { opacity: 0; scale: .82; transition: opacity 1.2s ease .15s, scale 1.6s cubic-bezier(.22, 1, .36, 1) .15s; }
  .benefits__body { opacity: 0; scale: .94; filter: blur(8px); transition: opacity 1s ease, scale 1.4s cubic-bezier(.22, 1, .36, 1), filter 1s ease; translate: calc(var(--mx) * -6px) calc(var(--my) * -4px); }
  .benefits__scan { translate: calc(var(--mx) * -6px) calc(var(--my) * -4px); }
  .bcard { opacity: 0; translate: calc(var(--mx) * var(--depth, 10) * 1px) calc(var(--my) * var(--depth, 10) * 1px); transition: box-shadow .3s ease, border-color .3s ease, background .3s ease; }
  .bdot { opacity: 0; scale: 0; translate: calc(var(--mx) * 5px) calc(var(--my) * 5px); transition: opacity .4s ease, scale .6s cubic-bezier(.34, 1.56, .64, 1); }
  .bcard--1, .bcard--4, .bcard--5 { --dx: -60px; }
  .bcard--2, .bcard--3, .bcard--6 { --dx: 60px; }
  .bcard--1 { --d: .55s; --depth: 14; --float: 7s; }
  .bcard--2 { --d: .7s;  --depth: 9;  --float: 8s; }
  .bcard--4 { --d: .85s; --depth: 16; --float: 6.5s; }
  .bcard--3 { --d: 1s;   --depth: 11; --float: 7.5s; }
  .bcard--5 { --d: 1.15s; --depth: 8; --float: 8.5s; }
  .bcard--6 { --d: 1.3s; --depth: 13; --float: 6.8s; }

  .benefits__scene.is-in .benefits__circles { opacity: 1; scale: 1; }
  .benefits__scene.is-in .benefits__body { opacity: 1; scale: 1; filter: none; }
  .benefits__scene.is-in .bcard {
    animation: bcardIn .9s cubic-bezier(.22, 1, .36, 1) var(--d) both,
               bcardFloat var(--float) ease-in-out calc(var(--d) + .9s) infinite;
  }
  .benefits__scene.is-in .bdot { opacity: 1; scale: 1; }
  .benefits__scene.is-in .bdot--1 { transition-delay: 1s; }
  .benefits__scene.is-in .bdot--2 { transition-delay: 1.15s; }
  .benefits__scene.is-in .bdot--5 { transition-delay: 1.3s; }
  .benefits__scene.is-in .bdot--3 { transition-delay: 1.45s; }
  .benefits__scene.is-in .bdot--4 { transition-delay: 1.6s; }
  .benefits__scene.is-in .bdot--6 { transition-delay: 1.75s; }
  .benefits__scene.is-in .bdot::after { animation: bdotPing 2.6s ease-out 2s infinite; }
  .benefits__scene.is-in .bdot--2::after, .benefits__scene.is-in .bdot--4::after { animation-delay: 2.9s; }
  .benefits__scene.is-in .bdot--3::after, .benefits__scene.is-in .bdot--5::after { animation-delay: 3.7s; }
  .benefits__scene.is-in .benefits__pulse i { animation: bPulse 6s cubic-bezier(.2, .6, .35, 1) 1.2s infinite; }
  .benefits__scene.is-in .benefits__pulse i:nth-child(2) { animation-delay: 3.2s; }
  .benefits__scene.is-in .benefits__pulse i:nth-child(3) { animation-delay: 5.2s; }
  .benefits__scene.is-in .benefits__scan::before { animation: bScan 5.5s cubic-bezier(.45, 0, .55, 1) .9s infinite; }

  .bcard:hover { background: var(--white); border-color: rgba(237, 50, 55, .55); box-shadow: 0 18px 40px rgba(237, 50, 55, .16); animation-play-state: paused, paused; }
  .bcard--1:hover ~ .bdot--1, .bcard--2:hover ~ .bdot--2, .bcard--3:hover ~ .bdot--3,
  .bcard--4:hover ~ .bdot--5, .bcard--5:hover ~ .bdot--4, .bcard--6:hover ~ .bdot--6 { scale: 1.9; transition-delay: 0s; }
}

@media (max-width: 767px) {
  .benefits__pulse { display: none; }
  .benefits__scan { position: absolute; left: 50%; top: 0; width: 280px; height: 420px; margin-left: -140px; }
  .benefits__scan::before { height: 90px; transform: translateY(-100px); }
  .benefits__body { opacity: 0; transition: opacity .9s ease; }
  .bcard { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
  .benefits__scene.is-in .benefits__body { opacity: 1; }
  .benefits__scene.is-in .bcard { opacity: 1; transform: none; }
  .benefits__scene.is-in .bcard--2 { transition-delay: .08s; } .benefits__scene.is-in .bcard--3 { transition-delay: .16s; }
  .benefits__scene.is-in .bcard--4 { transition-delay: .24s; } .benefits__scene.is-in .bcard--5 { transition-delay: .32s; }
  .benefits__scene.is-in .bcard--6 { transition-delay: .4s; }
  .benefits__scene.is-in .benefits__scan::before { animation: bScanM 4.5s cubic-bezier(.45, 0, .55, 1) .6s infinite; }
}

@keyframes bcardIn { from { opacity: 0; transform: translateX(var(--dx, 0)) scale(.92); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes bcardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes bdotPing { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(4.2); } }
@keyframes bPulse { 0% { opacity: 0; transform: scale(.22); } 12% { opacity: .55; } 100% { opacity: 0; transform: scale(1.04); } }
@keyframes bScan { 0% { transform: translateY(-240px); } 55%, 100% { transform: translateY(1300px); } }
@keyframes bScanM { 0% { transform: translateY(-100px); } 60%, 100% { transform: translateY(430px); } }

@media (prefers-reduced-motion: reduce) {
  .benefits__circles, .benefits__body, .bcard, .bdot { opacity: 1 !important; scale: 1 !important; filter: none !important; transform: none; animation: none !important; transition: none !important; }
  .benefits__pulse, .benefits__scan { display: none; }
}

/* якорь опроса: отступ сверху, на мобильном с учётом липкой шапки */
.quiz { scroll-margin-top: 24px; }
@media (max-width: 767px) { .quiz { scroll-margin-top: 76px; } }

/* ---------- Квиз: шаг контактов и результат (общие для главной и /services) ---------- */
.qfields { display: flex; flex-direction: column; gap: 12px; width: 520px; max-width: 100%; margin-top: 56px; }
.qfield { height: 60px; padding: 0 24px; border: 0; border-radius: 30px; background: var(--white); font: inherit; font-size: 18px; letter-spacing: -0.02em; color: var(--dark); }
.qfield::placeholder { color: #a4a8af; }
.qfield:focus { outline: 0; box-shadow: 0 0 0 2px var(--red); }
.qagree { margin-top: 4px; font-size: 14px; line-height: 1.25; letter-spacing: -0.02em; color: rgba(12, 14, 17, .55); }
.qagree a { color: var(--red); text-decoration: underline; text-underline-position: from-font; }
.quiz__btn.is-hint, .qpanel__btn.is-hint { background: rgba(237, 50, 55, .12) !important; color: var(--red) !important; }
.qresult[hidden] { display: none; }
.qresult__title { font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.qresult__text { margin-top: 14px; font-size: 17px; line-height: 1.3; letter-spacing: -0.02em; color: rgba(12, 14, 17, .75); }
.qresult__label { margin: 22px 0 10px; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; color: rgba(12, 14, 17, .5); }
.qresult__list { display: flex; flex-direction: column; gap: 8px; }
.qresult__item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-radius: 16px; background: var(--white); color: var(--dark); transition: box-shadow .2s; }
.qresult__item:hover { box-shadow: 0 6px 20px rgba(12, 14, 17, .08); }
.qresult__item b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.qresult__item small { display: block; margin-top: 2px; font-size: 13px; color: rgba(12, 14, 17, .55); }
.qresult__item .chev { flex: none; }
.qresult__btn { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--dark); color: var(--white); font-size: 14px; letter-spacing: -0.02em; white-space: nowrap; }
.qresult__note { margin-top: 18px; font-size: 14px; line-height: 1.3; color: rgba(12, 14, 17, .55); }
.qresult__again { margin-top: 12px; font-size: 15px; color: var(--red); text-decoration: underline; text-underline-position: from-font; }
.quiz__panel.is-done { height: auto; min-height: 794px; }
.quiz__panel.is-done .quiz__heading { display: none; }
.quiz__panel .qpager[hidden], .quiz__btn[hidden] { display: none; }
@media (max-width: 767px) {
  .qfields { width: 100%; margin-top: 20px; }
  .qfield { height: 54px; padding: 0 18px; font-size: 16px; }
  .qresult__title { font-size: 24px; }
  .qresult__text { font-size: 15px; }
  .qresult__item b { font-size: 15px; }
  .quiz__panel.is-done { min-height: 0; }
}

/* ---------- Плавающие виджеты: плашка ИИ, cookie-баннер, мобильная нижняя панель (partials/_widgets.html.twig) ---------- */
.aifab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: 26px;
  background: var(--dark); color: var(--white); font-size: 15px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(12, 14, 17, .25);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s;
}
.aifab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.aifab:hover { background: #1c1f24; }
.aifab__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: aifab-pulse 2s ease-out infinite; }
@keyframes aifab-pulse {
  0% { box-shadow: 0 0 0 0 rgba(237, 50, 55, .6); }
  70% { box-shadow: 0 0 0 10px rgba(237, 50, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(237, 50, 55, 0); }
}
.cookies {
  position: fixed; left: 50%; bottom: 24px; z-index: 61; transform: translateX(-50%); /* по центру; выше плашки ИИ */
  display: flex; align-items: center; gap: 18px; width: max-content; max-width: 640px; padding: 16px 16px 16px 22px; border-radius: 20px;
  background: var(--white); color: var(--dark); box-shadow: 0 10px 30px rgba(12, 14, 17, .15);
  font-size: 14px; line-height: 1.3; letter-spacing: -0.01em;
}
.cookies[hidden] { display: none; }
.cookies p { margin: 0; }
.cookies a { color: var(--red); text-decoration: underline; text-underline-position: from-font; }
.cookies .btn { flex: none; }
.mbar { display: none; }
body.modal-open .aifab, body.modal-open .cookies, body.modal-open .mbar, body.menu-open .aifab, body.menu-open .cookies, body.menu-open .mbar { opacity: 0; pointer-events: none; }
@media (max-width: 767px) {
  .aifab { right: 12px; bottom: 84px; height: 46px; padding: 0 16px 0 14px; font-size: 14px; }
  .cookies { left: 12px; right: 12px; bottom: 84px; width: auto; max-width: none; transform: none; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(12, 14, 17, .08); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transform: translateY(110%); transition: transform .3s, opacity .3s;
  }
  .mbar.is-on { transform: none; }
  .mbar__call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1; height: 48px; border-radius: 24px; background: var(--gray); color: var(--dark); font-size: 15px; font-weight: 500; letter-spacing: -0.02em; }
  .mbar__book { flex: 1.3; height: 48px; padding: 0; font-size: 15px; }
}
