/* RSL-скульптурирование · Клиника современной медицины · версия 2 (02.10.2026)
   Цвета только заказчицы: #D5E5F4, #B8DBFB, #394D88 и белый (плюс их прозрачность).
   Сетка: контейнер 1320, 12 колонок, поле 20/48. Шрифты: Open Runde (заголовки, цифры, кнопки, цены),
   текст тоже Open Runde Regular (Алексей выбрал вариант A, 02.10). */

@font-face { font-family: "Open Runde"; src: url("../fonts/OpenRunde-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Runde"; src: url("../fonts/OpenRunde-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Open Runde"; src: url("../fonts/OpenRunde-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Runde"; src: url("../fonts/OpenRunde-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --sky: #D5E5F4;     /* фон страницы */
  --deep: #B8DBFB;    /* акцент: выделения, наведение */
  --ink: #394D88;     /* текст, кнопки, тёмные блоки */
  --white: #FFFFFF;
  --ink-a: 57, 77, 136;
  --line: rgba(var(--ink-a), .16);

  --round: "Open Runde", system-ui, sans-serif;
  --text: "Open Runde", system-ui, sans-serif;

  --g: clamp(20px, 3.4vw, 48px);
  --max: 1320px;
  --pad: clamp(72px, 8.4vw, 136px);           /* вертикальный ритм секций */
  --r-lg: clamp(24px, 2.4vw, 36px);
  --r: clamp(20px, 1.8vw, 28px);

  --fs: clamp(16px, .75rem + .5vw, 19px);     /* абзацы: 16 на телефоне, 19 на 1440 */
  --fs-lead: clamp(18px, .85rem + .55vw, 22px);
  --h1: clamp(42px, .9rem + 4.9vw, 96px);
  --h2: clamp(34px, 1rem + 2.9vw, 60px);
  --h3: clamp(20px, .95rem + .45vw, 24px);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 0 rgba(var(--ink-a), .04), 0 18px 40px -18px rgba(var(--ink-a), .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 var(--fs)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, canvas, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
b { font-weight: 700; }
/* старая цена: свой зачёркивающий штрих ровно по середине цифр (у шрифтов line-through ложится низко) */
s { position: relative; text-decoration: none; white-space: nowrap; }
s::after { content: ""; position: absolute; left: -.08em; right: -.08em; top: 50%; height: max(2px, .08em); margin-top: -.02em; border-radius: 1px; background: currentColor; }
.was { font-family: var(--round); font-weight: 500; }
.nw { white-space: nowrap; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.hero :focus-visible, .offer :focus-visible, .ftr :focus-visible, .hdr:not(.is-solid) :focus-visible { outline-color: var(--white); }
.skip { position: absolute; left: var(--g); top: -100px; z-index: 100; padding: 10px 18px; background: var(--white); border-radius: 999px; font: 600 16px var(--round); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - var(--g) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: var(--pad); }
.section--white { background: var(--white); }

.h2 {
  font: 700 var(--h2)/1.04 var(--round);
  letter-spacing: -.035em;
  text-wrap: balance;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--white);
  font: 600 17px/1 var(--round); letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .25s var(--ease);
}
.btn:hover { box-shadow: 0 0 0 4px var(--deep); }
.btn:active { transform: scale(.98); }
.btn--lg { height: 60px; padding: 0 32px; font-size: 18px; }
.btn--xl { height: 72px; padding: 0 48px; font-size: 21px; }
.btn--sm { height: 42px; padding: 0 20px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--deep); box-shadow: none; }
.btn--light { background: var(--white); color: var(--ink); }
.section--white .btn--light, .outro .btn--light { background: var(--sky); }
.btn--light:hover { background: var(--deep); box-shadow: none; }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: var(--white); color: var(--ink); box-shadow: none; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(var(--ink-a), .45); }
.btn--line:hover { background: var(--deep); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- шапка ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 40;
  color: var(--white);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.hdr__in { display: flex; align-items: center; gap: 32px; height: 80px; padding-inline: var(--g); }
.hdr__logo { display: block; position: relative; flex: none; }
.hdr__logo img { height: 44px; width: auto; transition: opacity .3s; }
.hdr__logo-dark { position: absolute; inset: 0; opacity: 0; }
.hdr__nav { display: flex; gap: 28px; margin-left: auto; }
.hdr__nav a, .hdr__phone {
  font: 600 16px/1 var(--round); text-decoration: none;
  padding: 8px 0; border-bottom: 1.5px solid transparent; transition: border-color .2s;
}
.hdr__nav a:hover, .hdr__phone:hover { border-color: currentColor; }
.hdr__actions { display: flex; align-items: center; gap: 20px; }
.hdr__phone { font-size: 17px; white-space: nowrap; }
.hdr__call {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6);
}
.hdr .btn { background: var(--white); color: var(--ink); }
.hdr .btn:hover { background: var(--deep); box-shadow: none; }

.hdr.is-solid {
  color: var(--ink);
  background: rgba(213, 229, 244, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.hdr.is-solid .hdr__logo-light { opacity: 0; }
.hdr.is-solid .hdr__logo-dark { opacity: 1; }
.hdr.is-solid .hdr__call { box-shadow: inset 0 0 0 1.5px rgba(var(--ink-a), .35); }
.hdr.is-solid .btn { background: var(--ink); color: var(--white); }
.hdr.is-solid .btn:hover { box-shadow: 0 0 0 4px var(--deep); }

/* ---------- 1. первый экран ---------- */
/* фон: ткань из бывшего блока оффера под синим затемнением (правка Алексея 05.10 вечером, до неё фон был однотонный по правке заказчицы);
   ролика с насадкой, закрепа и прокрутки кадров нет */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--white); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(var(--ink-a), .78) 0, rgba(var(--ink-a), .45) 55%, rgba(var(--ink-a), .55) 100%); }
.hero__stage { position: relative; height: 100svh; min-height: 640px; }
/* текст от левого поля, ровно под логотипом; блок текста по центру высоты между шапкой и плашками,
   отступ над линией плашек не меньше 64 px, под плашками 36 px */
.hero__content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column;
  padding: 104px var(--g) 36px;
}
.hero__text { margin-block: auto; padding-block: 24px 64px; max-width: 1240px; }
.hero__kicker { font: 500 var(--fs-lead)/1.4 var(--text); color: rgba(255, 255, 255, .9); margin-bottom: 20px; }
.hero__title {
  font: 700 min(var(--h1), 10.4svh)/1 var(--round);
  letter-spacing: -.04em;
  max-width: 14.5em;   /* на ПК заголовок в две строки на всю ширину: справа больше нет ролика */
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--deep); }
.hero__price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 32px 0; }
.hero__price b { font: 700 clamp(36px, 1rem + 2.2vw, 52px)/1 var(--round); letter-spacing: -.03em; }
.hero__price span { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: var(--fs-lead); line-height: 1.2; color: rgba(255, 255, 255, .9); }
.hero__perks {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
  max-width: 1320px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .28);
  font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, .88);
}
.hero__perks b { display: block; margin-bottom: 4px; font: 600 19px/1.3 var(--round); color: var(--white); }

/* невысокие ноутбуки (1366×657 и т.п.): всё первого экрана, включая плашки, помещается без обрезки */
@media (min-width: 900px) and (max-height: 760px) {
  .hero__content { padding-top: 90px; padding-bottom: 22px; }
  .hero__text { padding-block: 8px 36px; }
  .hero__kicker { margin-bottom: 12px; }
  .hero__title { font-size: min(var(--h1), 9.6svh); }
  .hero__price { margin: 20px 0; }
  .hero__perks { padding-top: 18px; font-size: 15px; }
  .hero__perks b { font-size: 17px; }
}

/* блоки «60 минут» и «Кто проводит процедуру» убраны по правке заказчицы 05.10 */

/* ---------- общий ряд «заголовок слева, текст справа» ---------- */
.head-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; margin-bottom: clamp(40px, 4.5vw, 64px); }
.head-row .h2 { grid-column: 1 / span 5; }
.head-row__text { grid-column: 7 / span 6; font-size: var(--fs-lead); line-height: 1.5; }
.head-row__text p + p { margin-top: 16px; }

/* ---------- 3. аппарат ---------- */
/* настоящее фото процедуры справа, чётко и без наложений (правка заказчицы 05.10: сгенерированная установка убрана);
   текст слева на голубой карточке */
.device {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
  min-height: clamp(560px, calc(100svh - 160px), 780px);
  border-radius: var(--r-lg); background: var(--sky);
}
.device__photo { position: relative; background: var(--deep); }
.device__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.device__body {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(32px, 4.4vw, 64px);
}
.device .h2 { margin-bottom: 28px; }
.device__text { font-size: var(--fs-lead); line-height: 1.5; }
.device__text p + p { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px 40px; }
.facts li { padding-top: 18px; border-top: 1px solid rgba(var(--ink-a), .28); font-size: 16px; line-height: 1.4; max-width: 13em; }
.facts__num { display: block; font: 700 clamp(36px, 1rem + 1.8vw, 52px)/1 var(--round); letter-spacing: -.04em; margin-bottom: 10px; white-space: nowrap; }

/* ---------- 4. как всё проходит ---------- */
.sub { font: 600 var(--h3)/1.3 var(--round); margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--white); border-radius: var(--r); padding: 32px 28px 36px; }
.step__num { display: block; font: 700 clamp(44px, 1rem + 2.4vw, 60px)/1 var(--round); letter-spacing: -.04em; margin-bottom: clamp(28px, 3vw, 48px); }
.step__title { font: 700 var(--h3)/1.25 var(--round); letter-spacing: -.01em; margin-bottom: 12px; }
.step p { font-size: clamp(16px, .8rem + .25vw, 18px); }

/* ---------- 5. цены ---------- */
.prices .h2 { margin-bottom: clamp(40px, 4vw, 56px); }
.prices__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 2.6vw, 40px); border-radius: var(--r-lg); background: var(--sky); }
.plan__title { font: 600 var(--h3)/1.3 var(--round); }
.plan__price { font: 700 clamp(40px, 1rem + 2.6vw, 58px)/1 var(--round); letter-spacing: -.035em; margin: 20px 0 18px; white-space: nowrap; }
.plan__price s { font-size: .4em; font-weight: 500; letter-spacing: 0; opacity: .65; margin-left: 8px; vertical-align: .35em; }
.plan__text { flex: 1; margin-bottom: 28px; font-size: clamp(16px, .8rem + .25vw, 18px); }
.plan--main { background: var(--ink); color: var(--white); }
.plan--list { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.others { width: 100%; margin-top: 16px; }
.others li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.4; }
.others b { font: 700 20px/1.2 var(--round); white-space: nowrap; }
.others .others__note { display: block; border: 0; padding: 14px 0 0; color: rgba(var(--ink-a), .85); }
.others .others__note + .others__note { padding-top: 6px; }

/* ---------- 2. с чем приходят ---------- */
.cases .h2 { margin-bottom: clamp(40px, 4vw, 56px); }
.cases__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cases__photo { grid-column: 1 / span 5; position: sticky; top: 104px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--deep); }
.cases__photo img { width: 100%; height: 100%; object-fit: cover; }
.cases__list { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); padding: clamp(26px, 2.4vw, 36px); }
.case__title { font: 700 var(--h3)/1.25 var(--round); margin-bottom: 12px; }
.case p { font-size: clamp(16px, .8rem + .25vw, 18px); }
.case__answer {
  margin-top: auto; padding-top: 20px; position: relative;
  font-weight: 500;
}
.case__answer::before {
  content: ""; display: block; width: 100%; height: 1px; margin: 4px 0 18px; background: var(--line);
}
.outro {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  margin-top: 20px; padding: 24px 24px 24px clamp(24px, 2.6vw, 40px);
  background: var(--white); border-radius: var(--r-lg);
}
.outro__text { font: 600 clamp(20px, .9rem + .8vw, 26px)/1.3 var(--round); letter-spacing: -.01em; }

/* ---------- 6. фраза на фото ---------- */
/* идёт сразу после белого блока цен, поэтому свой отступ сверху */
.phrase-wrap { padding-top: var(--pad); }
.phrase { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); }
/* синий дуотон: яркость фото + цвет фона */
.phrase img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: 70% 50%; mix-blend-mode: luminosity; opacity: .95; }
.phrase::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--ink-a), .92) 0, rgba(var(--ink-a), .7) 38%, rgba(var(--ink-a), .1) 72%, rgba(var(--ink-a), 0) 100%); }
.phrase__text {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center;
  padding: clamp(28px, 5vw, 80px);
  color: var(--white);
}
.phrase__text p { max-width: 17em; font: 700 clamp(28px, 1rem + 2.5vw, 54px)/1.1 var(--round); letter-spacing: -.03em; text-wrap: balance; }

/* ---------- 7. когда результат ---------- */
.result .h2 { margin-bottom: clamp(40px, 4.5vw, 64px); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: rgba(var(--ink-a), .25); }
.timeline li { position: relative; padding-top: 48px; padding-right: 24px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px var(--sky); }
.timeline li:nth-child(2)::before { background: var(--white); box-shadow: inset 0 0 0 5px var(--ink), 0 0 0 6px var(--sky); }
.timeline li:nth-child(3)::before { background: var(--deep); box-shadow: inset 0 0 0 5px var(--ink), 0 0 0 6px var(--sky); }
.timeline__label { display: block; font: 700 clamp(24px, 1rem + 1vw, 32px)/1.15 var(--round); letter-spacing: -.02em; margin-bottom: 12px; }
.timeline p { font-size: var(--fs-lead); line-height: 1.45; max-width: 20em; }

/* ---------- 8. частые вопросы ---------- */
.faq { position: relative; padding-block: var(--pad); overflow: clip; }
.faq__bg { position: absolute; inset: 0; }
.faq__bg img { width: 100%; height: 100%; object-fit: cover; }
.faq__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky) 0, rgba(213, 229, 244, 0) 18%, rgba(213, 229, 244, 0) 82%, var(--sky) 100%); }
.faq__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.faq__side { grid-column: 1 / span 4; position: sticky; top: 104px; }
.faq__side .h2 { margin-bottom: 32px; }
.faq__macro { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow); background: var(--ink); }
.faq__macro img { width: 100%; height: 100%; object-fit: cover; }
.faq__main { grid-column: 6 / span 7; }
.chips { display: none; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.js .chips { display: flex; }
.chip {
  height: 46px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .72); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(var(--ink-a), .12);
  font: 600 16px/1 var(--round);
  transition: background-color .25s, color .25s;
}
.chip:hover { background: var(--white); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
.qgroup + .qgroup { margin-top: 40px; }
.qgroup__title { font: 600 var(--h3)/1.3 var(--round); margin-bottom: 16px; }
.js .qgroup + .qgroup { margin-top: 0; }
.js .qgroup:not(.is-active) { display: none; }
.js .qgroup__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .qgroup.is-active { animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q { background: var(--white); border-radius: 22px; box-shadow: var(--shadow); }
.q + .q { margin-top: 12px; }
.q__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 22px 22px 22px 28px;
  border: 0; background: none; cursor: pointer; text-align: left;
  font: 600 clamp(18px, .9rem + .35vw, 21px)/1.3 var(--round); letter-spacing: -.01em;
  border-radius: 22px;
}
.q__icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sky); transition: background-color .3s, transform .4s var(--ease); }
.q__icon::before, .q__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--ink); transition: background-color .3s; }
.q__icon::after { transform: rotate(90deg); }
.q__btn:hover .q__icon { background: var(--deep); }
.q__btn[aria-expanded="true"] .q__icon { background: var(--ink); transform: rotate(135deg); }
.q__btn[aria-expanded="true"] .q__icon::before, .q__btn[aria-expanded="true"] .q__icon::after { background: var(--white); }
.q__a { display: grid; grid-template-rows: 1fr; }
.js .q__a { grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.js .q.is-open .q__a { grid-template-rows: 1fr; }
.q__a > div { overflow: hidden; }
.q__a p { padding: 0 28px 26px; max-width: 40em; font-size: clamp(16px, .8rem + .25vw, 18px); }

/* ---------- 9. оффер ---------- */
.offer {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: center;
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--r-lg);
  background: var(--ink); color: var(--white);
}
.offer__main { grid-column: 1 / span 6; }
.offer__label { font: 600 clamp(20px, .9rem + .7vw, 26px)/1.2 var(--round); margin-bottom: 12px; }
.offer__price { font: 700 clamp(64px, 1.5rem + 5.6vw, 128px)/.92 var(--round); letter-spacing: -.05em; white-space: nowrap; }
.offer__was { margin-top: 14px; font-size: var(--fs-lead); color: rgba(255, 255, 255, .85); }
.offer__list { margin-top: 32px; max-width: 460px; }
.offer__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); font-size: var(--fs-lead); }
.offer__list li:first-child { border-top: 1px solid rgba(255, 255, 255, .25); }
.offer__list b { font: 700 clamp(20px, .9rem + .6vw, 26px)/1 var(--round); white-space: nowrap; }
.offer__note { margin-top: 18px; font-size: var(--fs-lead); color: rgba(255, 255, 255, .9); }

/* ---------- способы записи (внутри оффера) ---------- */
.ways { grid-column: 8 / span 5; padding: clamp(24px, 3vw, 44px); border-radius: var(--r-lg); background: var(--white); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(20, 30, 70, .45); }
.offer .ways :focus-visible { outline-color: var(--ink); }
.ways__title { font: 700 clamp(22px, 1rem + .6vw, 28px)/1.2 var(--round); letter-spacing: -.02em; margin-bottom: 24px; }
.ways .btn + .btn { margin-top: 12px; }
.ways__or { margin-top: 28px; font-size: 17px; }
.ways__phone { display: inline-block; margin-top: 4px; font: 700 clamp(26px, 1rem + 1.1vw, 34px)/1.1 var(--round); letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.ways__phone:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.ways__note { margin-top: 10px; font-size: 16px; color: rgba(var(--ink-a), .8); }

/* ---------- контакты ---------- */
.contacts__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.contacts__info { grid-column: 1 / span 5; }
.contacts__phone { display: inline-block; margin: 20px 0 32px; font: 700 clamp(30px, 1rem + 2vw, 46px)/1.05 var(--round); letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.contacts__phone:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contacts__list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.contacts__list > div:last-child { border-bottom: 1px solid var(--line); }
.contacts__list dt { font: 600 15px/1.3 var(--round); color: rgba(var(--ink-a), .75); margin-bottom: 4px; }
.contacts__list dd { font-size: clamp(16px, .8rem + .25vw, 18px); line-height: 1.5; }
.contacts .actions { margin-top: 32px; }
.map { grid-column: 7 / span 6; position: relative; min-height: 520px; border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__stub { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font: 600 18px var(--round); color: rgba(var(--ink-a), .7); }

/* ---------- подвал ---------- */
.ftr { background: var(--ink); color: var(--white); padding: clamp(56px, 6vw, 88px) 0 40px; }
.ftr__important { max-width: 52em; }
.ftr__label { font: 700 18px/1.2 var(--round); margin-bottom: 12px; }
.ftr__important p:not(.ftr__label) { font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.ftr__important p + p { margin-top: 8px; }
.ftr__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: 16px; color: rgba(255, 255, 255, .85);
}
.ftr__row a { text-decoration: none; }
.ftr__row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ftr__logo { margin-right: auto; }
.ftr__logo img { height: 40px; width: auto; }

/* ---------- страница политики ---------- */
.legal { padding: calc(80px + clamp(40px, 5vw, 72px)) 0 var(--pad); }
.legal__in { max-width: 46em; }
.legal__back { display: inline-block; margin-bottom: 24px; font: 600 16px/1 var(--round); text-underline-offset: 4px; }
.legal h1 { font: 700 clamp(30px, 1rem + 2.4vw, 52px)/1.06 var(--round); letter-spacing: -.035em; text-wrap: balance; }
.legal__date { margin-top: 16px; color: rgba(var(--ink-a), .75); }
.legal h2 { margin: 44px 0 14px; font: 700 var(--h3)/1.25 var(--round); letter-spacing: -.01em; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 12px; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal a { text-underline-offset: 3px; }
.legal__req { margin-top: 12px; }
.legal__req div { display: grid; grid-template-columns: minmax(120px, 11em) 1fr; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.legal__req div:last-child { border-bottom: 1px solid var(--line); }
.legal__req dt { font: 600 15px/1.5 var(--round); color: rgba(var(--ink-a), .75); }

/* ---------- сообщение о cookie (показывается, только когда в js/main.js вписан счётчик Метрики) ---------- */
.cookie {
  position: fixed; left: var(--g); right: var(--g); bottom: 16px; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  max-width: 760px; margin-inline: auto; padding: 18px 22px;
  border-radius: var(--r); background: var(--white); color: var(--ink); box-shadow: var(--shadow);
  font-size: 16px; line-height: 1.45;
}
.cookie p { flex: 1 1 280px; }
.cookie a { text-underline-offset: 3px; }
.cookie__btns { display: flex; gap: 10px; }
.ftr__cookie { padding: 0; border: 0; background: none; cursor: pointer; }
.ftr__cookie:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .hdr__nav { display: none; }
  .hdr__actions { margin-left: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan--list { grid-column: 1 / -1; }
  .cases__photo { grid-column: 1 / span 4; }
  .cases__list { grid-column: 5 / span 8; grid-template-columns: 1fr; }
  /* в узкой колонке рядом с фото цифры аппарата идут списком */
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts li { display: grid; grid-template-columns: 124px 1fr; align-items: baseline; gap: 12px; padding: 16px 0; max-width: none; }
  .facts__num { margin: 0; font-size: 36px; }
}

@media (max-width: 899px) {
  .hdr__in { height: 64px; gap: 12px; }
  .hdr__logo img { height: 34px; }
  .hdr__phone { display: none; }
  .hdr__call { display: inline-flex; }
  .hdr__actions { gap: 10px; }
  .btn--sm { height: 42px; padding: 0 18px; font-size: 15px; }

  /* первый экран: текст сразу под шапкой на синем фоне, высота по содержимому */
  .hero__stage { height: auto; min-height: 0; }
  .hero__content { height: auto; padding: 104px var(--g) 48px; }
  .hero__text { padding: 0; }
  .hero__title { font-size: var(--h1); }
  .hero__text { margin: 0; }
  .hero__kicker { font-size: 16px; margin-bottom: 14px; }
  .hero__price { margin: 24px 0 20px; }
  .hero .actions { flex-direction: column; }
  .hero .btn--lg { width: 100%; height: 56px; font-size: 17px; }
  .hero__perks { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; font-size: 16px; }

  .head-row, .cases__grid, .faq__grid, .contacts__grid, .offer { grid-template-columns: 1fr; }
  .head-row .h2, .head-row__text, .cases__photo, .cases__list,
  .faq__side, .faq__main, .ways, .contacts__info, .map, .offer__main { grid-column: 1 / -1; }
  .head-row { gap: 20px; }
  .device { grid-template-columns: 1fr; min-height: 0; }
  .device__photo { order: -1; aspect-ratio: 4 / 3; }
  .device__body { padding: 28px 24px; gap: 28px; }
  .device .h2 { margin-bottom: 20px; }
  .facts li { padding: 18px 0; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 24px 24px 28px; }
  .step__num { font-size: 40px; margin-bottom: 20px; }
  .prices__grid { grid-template-columns: 1fr; }
  .cases__photo { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .cases__list { gap: 12px; }
  .outro { padding: 24px; }
  .outro .actions { width: 100%; }
  .outro .btn { flex: 1; }
  .phrase img { aspect-ratio: 4 / 5; object-position: 72% 50%; }
  .phrase::after { background: linear-gradient(180deg, rgba(var(--ink-a), .2) 0, rgba(var(--ink-a), .85) 55%, rgba(var(--ink-a), .92) 100%); }
  .phrase__text { align-items: flex-end; }
  .timeline { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { left: 9px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .timeline li { padding: 0 0 0 48px; }
  .faq__side { position: relative; top: 0; }
  .faq__side .h2 { margin-bottom: 24px; }
  .faq__macro { aspect-ratio: 16 / 9; margin-bottom: 16px; }
  .chips { gap: 8px; }
  .chip { height: 42px; padding: 0 16px; font-size: 15px; }
  .q__btn { padding: 18px 16px 18px 20px; }
  .q__icon { width: 34px; height: 34px; }
  .q__a p { padding: 0 20px 22px; }
  .offer { gap: 32px; }
  .offer { padding: 28px 20px 20px; grid-template-columns: minmax(0, 1fr); }
  .offer__main { padding-inline: 4px; }
  .ways { padding: 24px 20px; }
  .contacts__grid { gap: 32px; }
  .contacts .actions .btn { flex: 1 1 auto; }
  .map { min-height: 380px; }
  .ftr__row { flex-direction: column; align-items: flex-start; }
  .legal { padding-top: calc(64px + 32px); }
  .legal__req div { grid-template-columns: 1fr; }
  .cookie { bottom: 12px; padding: 16px 18px; }
  .cookie__btns { width: 100%; }
  .cookie__btns .btn { flex: 1; }
}

@media (max-width: 380px) {
  .hdr .btn--sm { padding: 0 14px; }
  .hdr__logo img { height: 30px; }
  .outro .actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- страницы под запросы (страницы.py, 22.10) ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; padding: 10px 18px; border: 1px solid var(--line);
  border-radius: 999px; font: 600 16px/1 var(--round); text-decoration: none; color: inherit; background: #fff; transition: border-color .2s, background .2s; }
.back:hover { border-color: currentColor; }
.topic__kicker { margin-bottom: 12px; font: 500 var(--fs-lead)/1.4 var(--text); color: rgba(var(--ink-a), .75); }
.topic__lead { margin: 20px 0 8px; font: 500 clamp(19px, .9rem + .6vw, 24px)/1.45 var(--round); }
.topic__actions { margin-top: 40px; }
.topic-more h2 { font: 700 var(--h3)/1.25 var(--round); margin-bottom: 18px; }
.topic-more__list { display: grid; gap: 10px; margin-bottom: 32px; }
.topic-more__list a { font: 600 18px/1.4 var(--round); text-underline-offset: 4px; }
.case__more { display: inline-block; margin-top: 14px; font: 600 16px/1.3 var(--round); text-underline-offset: 4px; color: inherit; }
