/* ==========================================================================
   MAWI — публичный сайт
   Палитра: холодная сталь, лёд, белый фон.
   ========================================================================== */

:root {
  --bg: #F3F6F8;
  --surface: #FFFFFF;
  --surface-2: #E6EEF2;
  --ink: #102028;
  --ink-2: #3A4E58;
  --ink-3: #6A7E88;
  --line: #D5E0E6;
  --line-strong: #B7C6CE;
  --rose: #0E7C8A;
  --rose-ink: #0A5C66;
  --rose-soft: #E5F4F6;
  --enamel: #E7F1F4;
  --enamel-2: #C5DCE3;

  --font-display: 'Commissioner', 'Golos Text', system-ui, sans-serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display-axes: "FLAR" 100, "VOLM" 25;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 117px;
  --header-top: #E4ECF0;
  --header-bottom: #F8FAFB;
  --radius: 24px;
  --shadow-lift: 0 24px 48px -28px rgba(16, 32, 40, .38);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, .95rem + .15vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
svg { flex: none; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--rose) 70%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Типографика
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--rose);
}

.hero-title,
.intro-title,
.section-title,
.cta-title {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-weight: 560;
  text-wrap: balance;
}

.hero-title em,
.intro-title em,
.section-title em,
.cta-title em {
  font-style: normal;
  color: var(--rose);
}

/* Оформление коротких текстов блоков из админки: **жирный**, *курсив*, ссылки.
   Цвет наследуем — на тёмном фоне ссылка остаётся читаемой */
:is(.section-lead, .hero-lead, .intro-lead, .cta-text, .notice-text, .price-note, .service-text, .feature-text, .plan-text, .doctor-text, .fx3d-lead, .step, .review, .quote, .gallery) strong { font-weight: 650; color: inherit; }
:is(.section-lead, .hero-lead, .intro-lead, .cta-text, .notice-text, .price-note, .service-text, .feature-text, .plan-text, .doctor-text, .fx3d-lead) a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 3px;
}
:is(.section-lead, .hero-lead, .intro-lead, .cta-text, .notice-text, .price-note, .service-text, .feature-text, .plan-text, .doctor-text, .fx3d-lead) a:hover { text-decoration-color: currentColor; }

.section-title {
  font-size: calc(clamp(2rem, 1.35rem + 2.2vw, 3.2rem) * var(--title-scale, 1));
  line-height: 1.08;
  letter-spacing: -.03em;
}

.section-lead {
  font-size: calc(clamp(1.02rem, .95rem + .3vw, 1.15rem) * var(--lead-scale, 1));
  color: var(--ink-2);
  max-width: 40em;
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; transition: translate .25s var(--ease); }
.btn:hover svg { translate: 3px 0; }

.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--enamel); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  isolation: isolate;
  transition: box-shadow .25s;
}
/* Размытие на псевдоэлементе: backdrop-filter на самой шапке сделал бы её
   контейнером для position: fixed, и мобильная шторка меню обрезалась бы */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--header-bottom) 90%, transparent);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -20px rgba(16, 32, 40, .35); }

.header-layout {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}

.header-contact { display: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
/* Логотип MAWI: буквы — цветом ссылки, искра над i — фирменной бирюзой */
.brand-logo { display: block; --logo-spark: var(--rose); }
.brand-logo svg { display: block; height: 32px; width: auto; }
.brand:focus-visible { outline-offset: 6px; border-radius: 6px; }

.main-nav { flex: 1; display: flex; justify-content: center; }

.nav-list,
.nav-sub { list-style: none; margin: 0; padding: 0; }

.nav-item { position: relative; }
.nav-row { display: flex; align-items: center; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
}
.nav-link > svg { width: 13px; height: 13px; opacity: .55; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-3);
}
.nav-toggle svg,
.nav-trigger > svg:last-child { width: 14px; height: 14px; transition: rotate .2s var(--ease); }
.is-open > .nav-row .nav-toggle svg,
.is-open > .nav-row .nav-trigger > svg:last-child { rotate: 180deg; }

.nav-title { font-weight: 500; }
.nav-text { display: grid; gap: 2px; }
.nav-desc { font-size: 13px; line-height: 1.35; color: var(--ink-3); font-weight: 400; }

.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }

.header-phones { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; }
.header-phone {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink-2);
}
.header-phone:hover { color: var(--rose-ink); }

.header-messengers { display: flex; align-items: center; gap: 6px; }
.header-messenger {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.header-messenger svg { width: 18px; height: 18px; }
.header-messenger:hover { color: var(--rose-ink); background: var(--rose-soft); }

/* Фирменные значки мессенджеров: в покое — контур акцентного цвета, при наведении — родные цвета */
.header-messenger .brand-icon { width: 22px; height: 22px; }
.header-messenger:has(.brand-icon) { color: var(--rose); }
.header-messenger:has(.brand-icon):hover { background: transparent; }
.brand-icon .bi-disc { fill: transparent; stroke: currentColor; stroke-width: 1.4; transition: fill .2s, stroke .2s; }
.brand-icon path.bi-disc { stroke: none; }
.brand-icon .bi-glyph { fill: currentColor; transition: fill .2s; }
.header-messenger--telegram:hover .bi-disc { fill: #27A7E7; stroke: #27A7E7; }
.header-messenger--telegram:hover .bi-glyph { fill: #fff; }
.header-messenger--viber:hover .bi-disc { fill: #fff; }
.header-messenger--viber:hover .bi-glyph { fill: #7360F2; }
.header-messenger--whatsapp:hover .bi-glyph { fill: #25D366; }

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
}
/* Три полоски; при открытии верхняя и нижняя сходятся в крестик, средняя растворяется */
.burger span {
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: currentColor;
  transition: translate .3s var(--ease), rotate .3s var(--ease), opacity .2s, scale .3s var(--ease);
}
.burger span:nth-child(1) { translate: 0 -7px; }
.burger span:nth-child(3) { translate: 0 7px; }
.burger[aria-expanded="true"] span:nth-child(1) { translate: 0; rotate: 45deg; }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; scale: .2 1; }
.burger[aria-expanded="true"] span:nth-child(3) { translate: 0; rotate: -45deg; }

/* Широкий экран: связь сверху, меню одной строкой снизу */
@media (min-width: 1200px) {
  .header-layout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav actions";
    column-gap: 20px;
    row-gap: 0;
    align-items: center;
    min-height: 0;
  }
  .header-layout:has(.header-contact) {
    grid-template-areas:
      "contact contact contact"
      "brand nav actions";
  }
  .header-contact {
    display: flex;
    grid-area: contact;
    align-items: center;
    gap: 14px;
    min-height: 47px;
    padding: 4px 0;
    /* Полоса другого оттенка на всю ширину экрана, без горизонтальной прокрутки */
    background: var(--header-top);
    box-shadow: 0 0 0 100vmax var(--header-top);
    clip-path: inset(0 -100vmax);
  }
  .header-actions { grid-area: actions; margin-left: 0; }
  /* Отступ справа — логотипу нужен воздух перед меню */
  .brand { grid-area: brand; padding-block: 15px; margin-right: clamp(16px, 2.5vw, 40px); }
  /* Мессенджеры — у правого края полосы, телефоны — слева */
  .header-contact .header-messengers { margin-left: auto; gap: 4px; }
  .header-contact .header-messenger { width: 38px; height: 38px; }
  .header-contact .header-messenger .brand-icon { width: 26px; height: 26px; }

  /* Листают вниз — полоса связи плавно уезжает вверх, строка с логотипом и меню остаётся как есть.
     Высоту шапки не меняем: иначе браузер подвинет прокрутку и шапка начнёт дёргаться */
  .site-header { transition: box-shadow .25s, translate .3s var(--ease); }
  .site-header.is-collapsed { translate: 0 calc(-1 * var(--strip-h, 47px)); }
  .site-header.is-collapsed .header-contact { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .3s; }
  .header-contact { transition: opacity .25s; }
  :root:has(.site-header.is-collapsed) { --header-h: 70px; }
  .main-nav { grid-area: nav; justify-content: flex-start; min-width: 0; }

  .nav-list { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 0; }

  /* Каталог — тёмная кнопка с иконкой меню; разделы раскрываются при наведении, как у остальных пунктов */
  .nav-item--catalog { margin-right: 8px; }
  .nav-item--catalog > .nav-row {
    border-radius: 12px;
    background: var(--ink);
    transition: background-color .2s;
  }
  .nav-item--catalog:hover > .nav-row,
  .nav-item--catalog.is-open > .nav-row { background: var(--rose-ink); }
  /* Селекторы сильнее общего «наведения» пунктов, иначе текст темнеет и сливается с плашкой */
  .nav-list .nav-item.nav-item--catalog > .nav-row > .nav-link,
  .nav-list .nav-item.nav-item--catalog > .nav-row > .nav-toggle { color: #fff; background: transparent; }
  .nav-item.nav-item--catalog > .nav-row > .nav-link { gap: 8px; padding: 9px 6px 9px 16px; font-weight: 500; }
  .nav-item.nav-item--catalog:not(.has-children) > .nav-row > .nav-link { padding-right: 16px; }
  .nav-item.nav-item--catalog > .nav-row > .nav-toggle { margin: 0 6px 0 0; }
  .nav-item--catalog > .nav-row > .nav-link > svg:first-child { width: 17px; height: 17px; opacity: 1; }

  .nav-item--l1 > .nav-row > .nav-link {
    white-space: nowrap;
    padding: 8px 8px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--ink);
    transition: color .2s, background-color .2s;
  }
  .nav-item--l1.has-children > .nav-row > a.nav-link { padding-right: 4px; }
  .nav-item--l1 > .nav-row > .nav-toggle { margin-left: -4px; margin-right: 2px; }
  .nav-item--l1:hover > .nav-row > .nav-link,
  .nav-item--l1.is-open > .nav-row > .nav-link { color: var(--ink); background: transparent; }
  .nav-item--l1.is-active-trail > .nav-row > .nav-link { color: var(--rose-ink); }
  /* Линия под пунктом: при наведении плавно вырастает от центра, у текущего раздела стоит сразу, без анимации */
  .nav-item--l1:not(.nav-item--catalog) > .nav-row > .nav-link .nav-title { position: relative; }
  .nav-item--l1:not(.nav-item--catalog) > .nav-row > .nav-link .nav-title::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--rose) 55%, transparent);
    transform: scaleX(0);
    transition: transform .28s var(--ease);
  }
  .nav-item--l1:not(.nav-item--catalog):hover > .nav-row > .nav-link .nav-title::after,
  .nav-item--l1:not(.nav-item--catalog).is-open > .nav-row > .nav-link .nav-title::after { transform: scaleX(1); }
  .nav-item--l1.is-active-trail:not(.nav-item--catalog) > .nav-row > .nav-link .nav-title::after { transform: scaleX(1); transition: none; }

  .nav-dropdown {
    position: absolute;
    z-index: 5;
    min-width: 300px;
    padding: 8px;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 28px 56px -28px rgba(17, 40, 45, .42);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s, translate .22s var(--ease), visibility 0s linear .22s;
  }
  /* Невидимый мостик, чтобы курсор не «ронял» меню на пути к панели */
  .nav-dropdown::before { content: ''; position: absolute; inset: -14px -14px auto; height: 14px; }

  .nav-item--l1 > .nav-dropdown { top: 100%; left: 50%; translate: -50% 10px; margin-top: 8px; }
  .nav-sub .nav-item > .nav-dropdown { top: -9px; left: 100%; translate: 10px 0; margin-left: 6px; }
  .nav-sub .nav-item > .nav-dropdown::before { inset: 0 auto 0 -14px; width: 14px; height: auto; }

  .nav-item.is-open > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  .nav-item--l1.is-open > .nav-dropdown { translate: -50% 0; }
  .nav-sub .nav-item.is-open > .nav-dropdown { translate: 0 0; }

  .nav-sub .nav-row { border-radius: 12px; transition: background-color .15s; }
  .nav-sub .nav-row:hover { background: var(--bg); }
  /* Подменю — тем же шрифтом и цветом, что и строка меню */
  .nav-sub .nav-link { flex: 1; padding: 10px 12px; font-size: 15px; color: var(--ink); }
  .nav-sub .nav-toggle { margin-right: 6px; rotate: -90deg; }
  .nav-sub .is-open > .nav-row .nav-toggle svg { rotate: 0deg; }
  .nav-sub .nav-link[aria-current="page"] .nav-title { color: var(--rose-ink); }
  .nav-sub .is-active-trail > .nav-row { background: var(--rose-soft); }

  .nav-item--more > .nav-dropdown { min-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *, .site-header { transition: none !important; animation: none !important; }
}

@media (min-width: 1200px) and (max-width: 1360px) {
  .nav-item--l1 > .nav-row > .nav-link { padding: 8px 7px; font-size: 14.5px; }
  .nav-sub .nav-link { font-size: 14.5px; }
}

@media (min-width: 1200px) and (hover: hover) {
  .nav-item:hover > .nav-dropdown { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-item--l1:hover > .nav-dropdown { translate: -50% 0; }
  .nav-sub .nav-item:hover > .nav-dropdown { translate: 0 0; }
}

/* Планшет и телефон: меню-шторка */
@media (max-width: 1199px) {
  :root { --header-h: 68px; }
  .burger { display: inline-block; }
  .header-contact { display: none; }
  .nav-item--catalog > .nav-row > .nav-link > svg:first-child { display: none; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 39;
    flex-direction: column;
    justify-content: flex-start;
    padding: 8px var(--gutter) 32px;
    background: var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: opacity .2s, translate .25s var(--ease), visibility 0s linear .25s;
  }
  body.nav-open .main-nav { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }

  .nav-item--l1 { border-bottom: 1px solid var(--line); }
  .nav-row { justify-content: space-between; gap: 12px; }
  .nav-item--l1 > .nav-row > .nav-link {
    flex: 1;
    padding: 16px 0;
    font-family: var(--font-display);
    font-variation-settings: var(--display-axes);
    font-size: 22px;
    font-weight: 540;
    letter-spacing: -.02em;
  }
  .nav-trigger { justify-content: space-between; }
  .nav-toggle { width: 44px; height: 44px; border-radius: 14px; background: var(--surface); }
  .nav-item.is-active-trail > .nav-row > .nav-link { color: var(--rose-ink); }

  .nav-dropdown { display: none; padding: 0 0 14px 2px; }
  .nav-item.is-open > .nav-dropdown { display: block; }
  .nav-sub .nav-link { flex: 1; padding: 10px 0; }
  .nav-sub .nav-title { font-size: 17px; }
  .nav-item--l2 > .nav-dropdown { padding: 0 0 8px 16px; border-left: 2px solid var(--line); margin-left: 4px; }

  .nav-mobile-extra { display: grid; gap: 10px; margin-top: 28px; justify-items: start; }
  .nav-mobile-extra .header-messengers { margin-top: 6px; }
  .nav-mobile-extra .header-messenger { width: 44px; height: 44px; background: var(--surface); }
  .nav-mobile-extra .btn { margin-top: 8px; }
  .nav-mobile-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
  }
  .nav-mobile-phone svg { width: 22px; height: 22px; color: var(--rose); }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand-logo svg { height: 28px; }
}

/* --------------------------------------------------------------------------
   Секции
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(64px, 8vw, 112px); }
.section--flush { padding-top: 0; }
.section--cta { padding-block: clamp(32px, 4vw, 56px); }
.section + .section--cta { padding-top: 0; }
.section[class*="blk--bg-"] + .section--cta { padding-top: clamp(32px, 4vw, 56px); }

.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }

/* ——— Первый экран ——— */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(56px, 8vw, 128px);
  overflow: hidden;
}

.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-title {
  margin: 20px 0 24px;
  font-size: calc(clamp(2.6rem, 1.2rem + 4.4vw, 5.1rem) * var(--title-scale, 1));
  line-height: 1.02;
  letter-spacing: -.038em;
  max-width: 17em;
}

.hero-lead {
  max-width: 34em;
  font-size: calc(clamp(1.05rem, .96rem + .38vw, 1.25rem) * var(--lead-scale, 1));
  color: var(--ink-2);
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--ink-2);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 9px; }
.hero-facts li::before {
  content: '';
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: var(--rose);
}

/* Фото на фоне даёт первому экрану больше воздуха */
.hero:is(.blk--bg-photo, .blk--bg-video) { padding-block: clamp(72px, 11vw, 168px); }

.section--shades { background: var(--surface); }
.shades-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.shades-grid .section-head { margin-bottom: 0; }
.shade-guide--wide .shade-row { max-width: 640px; }

/* ——— Шапка внутренней страницы ——— */

.intro { padding-block: clamp(28px, 4vw, 56px) clamp(40px, 5vw, 72px); }
.intro--plain { padding-bottom: 0; }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 clamp(20px, 3vw, 40px);
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-3);
}
.breadcrumbs li + li::before { content: '/'; margin: 0 10px; color: var(--line-strong); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px 64px;
  align-items: end;
}

.intro-title {
  margin: 18px 0 20px;
  font-size: calc(clamp(2.3rem, 1.3rem + 3.3vw, 4.2rem) * var(--title-scale, 1));
  line-height: 1.04;
  letter-spacing: -.036em;
}
.intro-title:first-child { margin-top: 0; }
.intro-lead { max-width: 38em; font-size: calc(clamp(1.05rem, .98rem + .3vw, 1.22rem) * var(--lead-scale, 1)); color: var(--ink-2); }

/* Каталог, раздел и товар: заголовок на 10% мельче, чем на остальных страницах */
.intro--catalog { --title-scale: .9; padding-bottom: clamp(28px, 3.5vw, 48px); }
/* Подробное описание раздела справа от заголовка */
.intro-grid--details { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
.intro-details { max-width: none; margin-left: 38px; font-size: 16px; line-height: 1.6; }
.intro-details > :first-child { margin-top: 0; }

/* Справа фото или табличка условий: текст слева, колонки выровнены по верху */
.intro-grid--side { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
.intro-grid--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.intro-copy { max-width: 46em; }

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: clamp(24px, 3vw, 34px);
}
.intro-price {
  margin-left: 10px;
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
  line-height: 1.2;
}
.intro-price span { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.intro-price b { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; }

/* «Шильдик»: табличка с условиями, как на корпусе холодильника */
.intro-specs {
  position: relative;
  margin: 0;
  padding: 10px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.intro-specs::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 26px;
  width: 36px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--rose);
}
.intro-spec {
  display: grid;
  grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
}
.intro-spec + .intro-spec { border-top: 1px dashed var(--line-strong); }
.intro-spec dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.intro-spec dd {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: 1.18rem;
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -.01em;
}
/* С фото — полосой из ячеек под всей шапкой */
.intro-specs--row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: clamp(28px, 4vw, 48px);
  padding: 4px 0;
}
.intro-specs--row .intro-spec { grid-template-columns: none; gap: 6px; padding: 18px 26px; }
.intro-specs--row .intro-spec + .intro-spec { border-top: 0; border-left: 1px dashed var(--line-strong); }

.intro-media { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.intro-media img { width: 100%; height: 100%; object-fit: cover; }

.blk--on-dark .intro-specs { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.blk--on-dark .intro-specs::before { background: #C5DCE3; }

/* ——— Текст ——— */

.rich-grid { display: grid; gap: 48px; }
.rich-grid--aside { grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 88px); align-items: start; }

.prose { max-width: 720px; }
.prose > * + * { margin-top: 1em; }
.prose .section-title { margin-bottom: .6em; }
.prose h2 { font-family: var(--font-display); font-variation-settings: var(--display-axes); font-size: 1.75rem; letter-spacing: -.02em; margin-top: 1.6em; }
.prose h3,
.prose h4 { font-family: var(--font-display); font-variation-settings: var(--display-axes); font-size: 1.35rem; font-weight: 560; letter-spacing: -.015em; margin-top: 1.6em; }
.prose p,
.prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--rose); }
.prose ol li::marker { font-family: var(--font-mono); font-size: .9em; }
.prose a { color: var(--rose-ink); text-underline-offset: 3px; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--rose); }

.rich-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px;
  border-radius: var(--radius);
  background: var(--enamel);
}
.rich-aside-title {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: 1.3rem;
  font-weight: 580;
  margin-bottom: 8px;
}
.rich-aside p:not(.rich-aside-title) { color: var(--ink-2); }

/* ——— Услуги ——— */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow .3s var(--ease), translate .3s var(--ease);
}
.service-card.is-link:hover { box-shadow: var(--shadow-lift); translate: 0 -3px; }

.service-title {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.service-text { color: var(--ink-2); margin-bottom: 28px; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }

.price-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg);
}

.service-more {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  transition: background-color .25s, color .25s;
}
.service-more svg { width: 18px; height: 18px; }
.service-card:hover .service-more { background: var(--rose); color: #fff; }

/* ——— Этапы ——— */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step { position: relative; display: grid; gap: 10px; align-content: start; }
.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
}
/* Линия, соединяющая этапы, — последовательность здесь настоящая */
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 60px;
  right: -12px;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.step-title {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: 1.3rem;
  font-weight: 560;
  letter-spacing: -.015em;
}
.step p { color: var(--ink-2); }
.step .step-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
}
.step-note svg { width: 16px; height: 16px; }

/* ——— Врачи ——— */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 32px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doctor-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 15%, rgba(255, 255, 255, .6), transparent 60%),
    var(--tone);
}
.doctor-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doctor-monogram {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 380;
  letter-spacing: -.04em;
  color: rgba(17, 40, 45, .5);
}
.doctor-exp {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
}
.doctor-name {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: 1.3rem;
  font-weight: 560;
  letter-spacing: -.015em;
}
.doctor-role { margin-top: 4px; font-size: 14.5px; color: var(--rose-ink); font-weight: 500; }
.doctor-text { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* ——— Цены ——— */

.price-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 20px;
}
.price-group { padding: clamp(22px, 3vw, 32px); background: var(--surface); border-radius: var(--radius); }
.price-group-title {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -.015em;
  margin-bottom: 10px;
}
.price-list { margin: 0; }
.price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.price-row:last-child { border-bottom: 0; padding-bottom: 0; }
.price-row dt { flex: 1; color: var(--ink-2); }
.price-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-note { margin-top: 24px; max-width: 62em; font-size: 14px; color: var(--ink-3); }

/* ——— Отзывы ——— */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.review { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--surface); border-radius: var(--radius); }
.review-stars { display: flex; gap: 2px; color: var(--rose); }
.review-stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0; flex: 1; font-size: 16.5px; }
.review-author { display: grid; font-size: 14.5px; }
.review-author span { color: var(--ink-3); }

/* ——— Вопросы ——— */

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  transition: rotate .25s var(--ease), background-color .2s;
}
.faq-icon svg { width: 16px; height: 16px; }
.faq-item[open] .faq-icon { rotate: 45deg; background: var(--rose-soft); }
.faq-answer { padding: 0 56px 24px 0; color: var(--ink-2); }

/* ——— Призыв ——— */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 32px;
}
.cta-title { font-size: calc(clamp(1.7rem, 1.2rem + 1.7vw, 2.6rem) * var(--title-scale, 1)); line-height: 1.1; letter-spacing: -.03em; max-width: 20ch; }
.cta-text { margin-top: 12px; max-width: 38em; }
.cta .btn { flex: none; }
.cta-text { color: var(--ink-2); }
/* Цвет плашки задаёт фон из вкладки «Внешний вид» (.blk--bg-*); «Как у страницы» — плашка с рамкой */
.cta--none { border: 1.5px solid var(--line-strong); }

/* ——— Запись ——— */

.section--booking { background: var(--surface-2); } /* заявка на странице товара */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.booking-copy .section-head { margin-bottom: 32px; }
.booking-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 560;
  letter-spacing: -.02em;
  text-decoration: none;
}
.booking-phone svg { width: 26px; height: 26px; color: var(--rose); }
.booking-note { margin-top: 6px; color: var(--ink-3); }

.booking-form {
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 40px 80px -48px rgba(17, 40, 45, .45);
}

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field-label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field-label i { font-style: normal; font-weight: 400; color: var(--ink-3); }

.booking-form input[type="text"],
.booking-form input[type="tel"],
.booking-form input[type="email"],
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 14px;
  transition: border-color .2s, background-color .2s;
}
.booking-form textarea { resize: vertical; min-height: 96px; }
.booking-form select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2311282D' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
.booking-form :is(input, select, textarea):hover { border-color: var(--line-strong); }
.booking-form :is(input, select, textarea):focus { outline: none; border-color: var(--ink); background-color: #fff; }
.booking-form [aria-invalid="true"] { border-color: var(--rose); background-color: var(--rose-soft); }

.check { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 22px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rose); }
.check a { color: var(--rose-ink); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-error { margin: -6px 0 16px; font-size: 14px; color: var(--rose-ink); font-weight: 500; }
.form-success { padding: 32px 8px; text-align: center; }
.form-success-title {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: 1.7rem;
  font-weight: 560;
  margin-bottom: 8px;
}
.form-success-title::before {
  content: '';
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--rose-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23C8435D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 28px no-repeat;
}
.form-success p:not(.form-success-title) { color: var(--ink-2); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ——— Контакты ——— */

.contacts { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { margin: 0; }
.contact-list > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list > div:first-child { border-top: 1px solid var(--line); }
.contact-list dt { display: flex; align-items: center; gap: 10px; align-self: start; font-size: 14px; color: var(--ink-3); padding-top: 2px; }
.contact-list dt svg { width: 18px; height: 18px; }
.contact-list dd { margin: 0; font-weight: 500; }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { color: var(--rose-ink); }
.contact-list small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-3); }
.contact-line { display: block; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.contact-links a { text-decoration: underline; text-underline-offset: 3px; }
.route-card { padding: clamp(24px, 3vw, 36px); background: var(--surface); border-radius: var(--radius); }
.route-card h2:first-child,
.route-card h3:first-child { margin-top: 0; }

/* ——— 404 ——— */

.not-found { padding-block: clamp(64px, 10vw, 140px); }

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */

.site-footer { padding-top: clamp(56px, 7vw, 88px); background: var(--ink); color: rgba(255, 255, 255, .7); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; }
.brand--light { color: #fff; }
.brand--light .brand-logo { --logo-spark: #3CC4D2; }
/* В подвале логотип крупный — втрое больше, чем в шапке */
.footer-brand .brand-logo svg { height: clamp(64px, 7vw, 96px); }
.footer-brand .brand-tag { margin: 10px 0 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
.footer-about { margin-top: 18px; max-width: 30em; }
.footer-about p { margin: 0; }
.footer-about p + p { margin-top: .75em; }
.footer-about strong { color: #fff; font-weight: 650; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; }
.footer-col-title { display: block; margin-bottom: 12px; color: #fff; font-weight: 600; text-decoration: none; }
a.footer-col-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-col a:not(.footer-col-title) { text-decoration: none; }
.footer-col a:not(.footer-col-title):hover { color: #fff; }
.footer-contacts { display: grid; gap: 10px; align-content: start; }
.footer-contacts a { text-decoration: none; }
.footer-contacts a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-block: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}
.footer-legal { max-width: 60em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a,
.footer-links .link-btn { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer-links a:hover,
.footer-links .link-btn:hover { color: #fff; text-decoration: underline; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; text-align: left; }
.footer-phones { display: grid; gap: 6px; }
.footer-phone {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: 1.5rem;
  font-weight: 560;
  color: #fff;
  letter-spacing: -.01em;
  text-decoration: none;
}
.footer-phones a.footer-phone:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Каталог
   -------------------------------------------------------------------------- */

/* Слева разделы и фильтры; справа сверху поиск, под ним товары и страницы */
.section--catalog { padding-top: clamp(4px, 1vw, 12px); }
.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-areas: "aside search" "aside results";
  grid-template-rows: auto 1fr;
  gap: 28px clamp(28px, 3.5vw, 56px);
  align-items: start;
}
.catalog-search { grid-area: search; }
.catalog-aside { grid-area: aside; }
.catalog-results { grid-area: results; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.catalog-aside-toggle { display: none; }
.catalog-side { display: grid; gap: 4px; }
.catalog-search { display: flex; gap: 8px; }
.catalog-search input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.catalog-search input:hover { border-color: var(--ink-3); }
.catalog-search input:focus-visible { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
.catalog-search .btn { flex: none; padding-inline: 28px; }

.catalog-group { padding: 14px 0; border-top: 1px solid var(--line); }
.catalog-side > .catalog-group:first-child { border-top: 0; padding-top: 0; }
.catalog-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: 1.08rem;
  font-weight: 560;
  letter-spacing: -.01em;
  color: var(--ink);
  list-style: none;
}
summary.catalog-group-title { cursor: pointer; user-select: none; }
.catalog-group-title::-webkit-details-marker { display: none; }
.catalog-group-title svg { width: 14px; height: 14px; flex: none; color: var(--ink-3); transition: rotate .2s var(--ease); }
.catalog-group[open] > .catalog-group-title svg { rotate: 180deg; }
/* Отступ под заголовком группы — внутри списка, чтобы он сворачивался вместе с ним без скачка */
summary.catalog-group-title { margin-bottom: 0; }
.catalog-group.is-closing > .catalog-group-title svg { rotate: 0deg; }

.catalog-cats { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.catalog-cat {
  display: block;
  padding: 7px 10px;
  margin-inline: -10px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.catalog-cat:hover { background: var(--surface); color: var(--ink); }
.catalog-cat.is-on { background: var(--rose-soft); color: var(--rose-ink); font-weight: 600; }

.catalog-options { display: grid; gap: 0; max-height: 330px; overflow-y: auto; margin: 0 -10px; padding: 8px 0 0; border: 0; }
.catalog-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
}
.catalog-option:hover { background: var(--surface); color: var(--ink); }
.catalog-option input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--rose); }
.catalog-option input:checked + span { color: var(--ink); font-weight: 600; }
.catalog-option span { flex: 1; }
.catalog-option small { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }

.catalog-side-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
/* Без скрипта здесь кнопка «Показать», со скриптом — только «Сбросить», если есть что сбрасывать */
.js .catalog-side-actions:has(.catalog-reset[hidden]) { display: none; }
.catalog-reset { font-size: 14px; color: var(--rose-ink); text-underline-offset: 3px; }
/* Со скриптом фильтр применяется сразу — кнопка «Показать» нужна только без JS */
.js .catalog-apply { display: none; }

.catalog-results { min-width: 0; transition: opacity .15s; }
.catalog-aside-toggle b:not([hidden]) {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 12.5px;
}
.catalog-results[aria-busy="true"] { opacity: .55; }
.catalog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(28px, 3vw, 40px);
}
.catalog-count { margin: 0; color: var(--ink-3); font-size: 14.5px; }

/* Переключатель страниц */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pager-link {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: border-color .15s, background-color .15s, color .15s;
}
a.pager-link:hover { border-color: var(--ink); }
.pager-link.is-on { border-color: var(--rose); background: var(--rose); color: #fff; font-weight: 600; }
.pager-link svg { width: 14px; height: 14px; }
.pager-link--prev svg { rotate: 90deg; }
.pager-link--next svg { rotate: -90deg; }
span.pager-link--prev,
span.pager-link--next { opacity: .35; }
.pager-gap { min-width: 24px; color: var(--ink-3); text-align: center; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
/* Фото карточки: рамка 4:3. Фото с близкими пропорциями заполняет кадр (.is-cover),
   остальные вписаны целиком — холодильник не режется. Поля — цвет краёв фото (--tone,
   его считает админка при загрузке) или размытая копия фото (Настройки → Каталог) */
.product-photo {
  --tone-fallback: #E9EEF1;
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tone-fallback);
}
.product-photo--empty {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .4), transparent 40%),
    linear-gradient(160deg, #16323C, #0E7C8A 70%);
}
.product-photo-track {
  display: flex;
  gap: 12px;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.product-photo-track::-webkit-scrollbar { display: none; }
.product-photo-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; }
.product-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product-photo-img.is-cover { object-fit: cover; }
/* Поля при contain — это фон самой картинки, поэтому цвет краёв ложится ровно в них */
.product-card--bg-tone .product-photo-img { background: var(--tone, var(--tone-fallback)); }
/* Размытая копия фото — фон полей. Лёгкая миниатюра, растянутая и размытая */
.photo-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.15);
  transform: scale(1.2);
  opacity: .85;
  pointer-events: none;
}
.product-photo-dots {
  position: absolute;
  right: 12px;
  bottom: 8px;
  left: 12px;
  display: flex;
  gap: 4px;
  pointer-events: none;
}
/* Полоски видны на любом фото: светлые с тонкой тёмной обводкой */
.product-photo-dots i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .75); box-shadow: 0 0 0 .5px rgba(16, 32, 40, .3); transition: background-color .2s; }
.product-photo-dots i.is-active { background: var(--rose); }
.product-card-body { display: grid; gap: 8px; padding: 16px 18px 18px; }
.product-card-title { font-size: 1.15rem; letter-spacing: -.02em; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-3); font-size: 13.5px; }
.price-tag--lg { font-size: 1.6rem; }
.catalog-empty { margin: 0; padding: 8px 0; color: var(--ink-2); }
/* Блок «Товары из каталога»: пустой результат и подсказка в превью админки */
.products-empty { margin: 0; color: var(--ink-2); }
.products-note { margin: 0 0 16px; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--ink-3); font-size: 14px; }

.product-layout {
  display: grid;
  /* Фото чуть больше половины ширины, справа — название, цена и главное */
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
/* Галерея товара: фото как есть — в своих пропорциях, без фона и рамок, по центру невидимого
   места пропорции из настроек (страница не прыгает при листании). Слева — лента миниатюр.
   Сама карусель — .pc; здесь только место под фото, лента и расположение */
.pg { --pg-ar: 1 / 1; min-width: 0; }
.pg--r-3-4 { --pg-ar: 3 / 4; }
.pg--r-4-3 { --pg-ar: 4 / 3; }
.pg--many { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "rail stage"; gap: 12px; }
.pg-stage { grid-area: stage; min-width: 0; }
.pg .pc-zoom,
.pg-empty {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  aspect-ratio: var(--pg-ar);
  border-radius: 0;
  background: none;
  overflow: visible;
}
.pg-empty { border-radius: var(--radius); }
/* Картинка размером с само фото — скругление идёт по его контуру, вокруг ничего */
.pg .pc-img {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  border-radius: 16px;
}
.pg .pc-arrow { top: 50%; }
.pg .pc-count { top: auto; bottom: 12px; }
/* Лента миниатюр слева: высотой с большое фото, листается колёсиком и кнопками ▲▼.
   Миниатюры тоже как есть, вписаны в квадратную ячейку; выбранная — обводка по контуру фото */
.pg-rail { grid-area: rail; position: relative; contain: size; min-height: 0; }
.pg .pg-thumbs {
  flex-direction: column;
  gap: 6px;
  height: 100%;
  margin: 0;
  padding: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.pg .pg-thumbs::-webkit-scrollbar { display: none; }
.pg .pc-thumb {
  position: relative;
  width: 100%;
  height: auto;
  min-width: 0;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  background: none;
  opacity: .55;
  overflow: visible;
}
.pg .pc-thumb img {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  border-radius: 8px;
  transition: outline-color .2s;
}
.pg .pc-thumb:hover { opacity: .85; }
.pg .pc-thumb.is-active { opacity: 1; }
.pg .pc-thumb.is-active img { outline: 2px solid var(--rose); outline-offset: 2px; }
.pg-rail-btn {
  position: absolute;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  box-shadow: 0 4px 14px -6px rgba(16, 32, 40, .5);
  translate: -50% 0;
}
.pg-rail-btn[hidden] { display: none; }
.pg-rail-btn--up { top: 4px; }
.pg-rail-btn--down { bottom: 4px; }
.pg-rail-btn svg { width: 18px; height: 18px; }
.pg-rail-btn:disabled { opacity: 0; pointer-events: none; }
.product-kicker { margin-bottom: 12px; }
.product-kicker a { color: var(--rose-ink); text-decoration: none; }
.product-price { margin: 18px 0 8px; font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem); letter-spacing: -.03em; }
.spec-list { display: grid; gap: 0; margin: 22px 0 0; }
.spec-list div {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.spec-list dt { color: var(--ink-3); }
.spec-list dd { margin: 0; }
.related { margin-top: 8px; }
/* Название товара — заметно мельче заголовков остальных страниц: главное здесь фото */
.product-title {
  margin: 0;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.03em;
}
/* Главные характеристики рядом с фото: компактно */
.spec-list--key { margin-top: 20px; font-size: 15px; }
.spec-list--key div { padding: 8px 0; }
.product-all-specs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--rose-ink);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
}
.product-all-specs:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-all-specs svg { width: 14px; height: 14px; }
.product-layout .hero-actions { margin-top: 28px; }

/* Раскрывающиеся разделы под карточкой товара — белые карточки, как у товаров в каталоге */
.product-details { padding-top: clamp(8px, 2vw, 24px); }
.product-acc-list { display: grid; gap: 12px; max-width: 860px; }
.product-acc { padding: 0 clamp(18px, 3vw, 32px); border-radius: 22px; background: var(--surface); }
.product-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  font-weight: 560;
  letter-spacing: -.02em;
  cursor: pointer;
  list-style: none;
}
.product-acc summary::-webkit-details-marker { display: none; }
.product-acc[open]:not(.is-closing) .faq-icon { rotate: 45deg; background: var(--rose-soft); }
.product-acc-body { padding-bottom: clamp(20px, 3vw, 28px); }
.product-acc-body .spec-list { margin: 0; }
.product-acc-body .spec-list div:first-child { border-top: 0; }
.product-acc-body .prose { max-width: none; }

/* --------------------------------------------------------------------------
   Баннер cookie
   -------------------------------------------------------------------------- */

/* Справа внизу: слева в том же углу живёт панель администратора */
.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  width: min(100% - 32px, 460px);
  padding: 22px;
  border-radius: 22px;
  background: var(--ink);
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  box-shadow: 0 28px 60px -24px rgba(16, 32, 40, .7);
}
.cookie-banner[hidden],
body.nav-open .cookie-banner { display: none; }
.cookie-inner { display: grid; gap: 18px; }
.cookie-title { font-weight: 600; font-size: 16px; color: #fff; margin-bottom: 6px; }
.cookie-text a { color: #fff; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 auto; justify-content: center; }
.cookie-actions .btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.cookie-actions .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

/* --------------------------------------------------------------------------
   Панель администратора поверх сайта
   -------------------------------------------------------------------------- */

.admin-bar {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 16px 40px -16px rgba(17, 40, 45, .6);
}
.admin-bar > span { padding: 6px 12px; border-radius: 999px; background: var(--rose); font-weight: 600; }
.admin-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}
.admin-bar a:hover { background: rgba(255, 255, 255, .12); }
.admin-bar svg { width: 16px; height: 16px; }

/* ——— Цитата, фото, цифры ——— */

.section--flush-top { padding-top: clamp(28px, 4vw, 48px); }

.pullquote {
  margin: 0;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface-2);
  border-radius: var(--radius);
}
.pullquote p {
  margin: 0;
  max-width: 22em;
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: calc(clamp(1.45rem, 1.15rem + 1vw, 2.05rem) * var(--title-scale, 1));
  font-weight: 560;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.pullquote footer { display: grid; gap: 2px; margin-top: 22px; font-size: 14.5px; }
.pullquote footer span { color: var(--ink-3); }

.figure { margin: 0; }
.figure-img,
.photo-empty {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}
.figure-img { height: auto; }
.photo-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  background:
    repeating-linear-gradient(-45deg, rgba(16, 32, 40, .04) 0 10px, transparent 10px 20px),
    var(--surface-2);
  color: var(--ink-3);
  font-size: 14px;
}
.figure figcaption,
.gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }

.container--narrow { max-width: 860px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery figure { margin: 0; }
.gallery-img,
.gallery .photo-empty { aspect-ratio: 4 / 3; object-fit: cover; min-height: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.split--left .split-photo { order: -1; }
.split-copy .section-title { margin-bottom: 16px; }
.split-copy .prose { color: var(--ink-2); }
.split-img,
.split-photo .photo-empty { width: 100%; min-height: 0; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split-photo { margin: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stat-grid li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
  background: var(--surface);
  border-radius: var(--radius);
}
.stat-grid b {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: clamp(1.8rem, 1.3rem + 1.2vw, 2.6rem);
  font-weight: 560;
  letter-spacing: -.03em;
  line-height: 1;
}
.stat-grid span { color: var(--ink-3); font-size: 14.5px; }

/* --------------------------------------------------------------------------
   Раскладка блоков и новые блоки — вкладка «Раскладка» в редакторе страницы
   -------------------------------------------------------------------------- */

/* Пропорции картинок */
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.gallery--ratio-original :is(.gallery-img, .photo-empty) { aspect-ratio: auto; height: auto; }
.gallery--ratio-1-1 :is(.gallery-img, .photo-empty) { aspect-ratio: 1 / 1; }
.gallery--ratio-16-9 :is(.gallery-img, .photo-empty) { aspect-ratio: 16 / 9; }
.split-photo--ratio-original :is(.split-img, .photo-empty) { aspect-ratio: auto; height: auto; }
.split-photo--ratio-1-1 :is(.split-img, .photo-empty) { aspect-ratio: 1 / 1; }
.split-photo--ratio-16-9 :is(.split-img, .photo-empty) { aspect-ratio: 16 / 9; }

/* Колонки: на планшете не больше двух, на телефоне — одна (см. «Адаптив») */
.gallery--cols-2, .service-grid--cols-2, .team-grid--cols-2, .product-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--cols-3, .service-grid--cols-3, .team-grid--cols-3, .product-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--cols-4, .service-grid--cols-4, .team-grid--cols-4, .product-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-grid--cols-1 { grid-template-columns: minmax(0, 1fr); max-width: 980px; }

/* Галерея: подпись и описание */
.gallery figcaption { display: grid; gap: 4px; }
.gallery figcaption b { color: var(--ink); font-size: 15.5px; font-weight: 600; }
.gallery figcaption span { color: var(--ink-2); font-size: 14.5px; }

/* Картинка во весь экран */
.blk--w-full > .container { max-width: none; }
.section--figure.blk--w-full > .container { padding-inline: 0; }
.section--figure.blk--w-full .figure-img { border-radius: 0; width: 100%; }
.section--figure.blk--w-full figcaption { padding-inline: var(--gutter); }

/* Текст: две колонки и буквица */
.prose--cols-2 { max-width: none; columns: 2 320px; column-gap: clamp(32px, 5vw, 72px); }
.prose--cols-2 > * { break-inside: avoid-column; }
.prose--cols-2 > .section-title { column-span: all; }
.prose--dropcap > p:first-of-type::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: 3.6em;
  font-weight: 600;
  line-height: .82;
  color: var(--rose);
}
.blk--on-dark .prose--dropcap > p:first-of-type::first-letter { color: #C5DCE3; }

/* Крупный факт */
.pullquote--fact { background: none; padding-inline: 0; }
.pullquote--fact p {
  max-width: 16em;
  font-size: calc(clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem) * var(--title-scale, 1));
  line-height: 1.05;
  letter-spacing: -.035em;
}
.pullquote--fact footer b { font-weight: 500; color: var(--ink-2); }

/* Карточки: фото, кнопка, плитки */
.service-card--photo { padding-top: 0; overflow: hidden; }
.service-img { display: block; width: calc(100% + 56px); max-width: none; margin: 0 -28px 22px; object-fit: cover; }
.service-grid--cols-1 .service-card--photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; padding: 0; }
.service-grid--cols-1 .service-card--photo .service-img { grid-row: span 3; width: 100%; height: 100%; margin: 0; }
.service-grid--cols-1 .service-card--photo > :not(.service-img) { padding-right: 32px; }
.service-grid--cols-1 .service-card--photo .service-title { padding-top: 32px; font-size: 1.8rem; }
.service-grid--cols-1 .service-card--photo .service-foot { padding-bottom: 32px; }
.service-foot .btn { min-height: 44px; }
.service-card--tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 300px;
  justify-content: flex-end;
  background: #102028;
  color: #fff;
}
.service-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease); }
.service-card--tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 22, 28, .1), rgba(10, 22, 28, .78)); }
.service-card--tile .service-title { margin-top: auto; }
.service-card--tile .service-text { margin-bottom: 20px; color: rgba(255, 255, 255, .82); }
.service-card--tile .service-foot { margin-top: 0; }
.service-card--tile :is(.price-tag, .service-more) { background: rgba(255, 255, 255, .16); color: #fff; }
.service-card--tile.is-link:hover .service-bg { scale: 1.04; }

/* Этапы: таймлайн */
.steps--timeline { grid-template-columns: minmax(0, 1fr); max-width: 760px; gap: 0; }
.steps--timeline .step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; padding-bottom: 32px; }
.steps--timeline .step > :not(.step-num) { grid-column: 2; }
.steps--timeline .step-num { grid-row: span 3; margin: 0; }
.steps--timeline .step:not(:last-child)::before {
  top: 56px;
  bottom: 8px;
  left: 23px;
  right: auto;
  width: 1.5px;
  height: auto;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px);
}

/* Команда: форма фото и соцсети */
.team-grid--ratio-1-1 .doctor-photo { aspect-ratio: 1 / 1; }
.team-grid--ratio-circle .doctor-photo { aspect-ratio: 1 / 1; border-radius: 50%; }
.team-grid--ratio-circle .doctor { text-align: center; }
.team-grid--ratio-circle .doctor-links { justify-content: center; }
.doctor-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.doctor-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.doctor-links a:hover { background: var(--rose); color: #fff; }
.doctor-links svg { width: 19px; height: 19px; }

/* Отзывы: аватар, один отзыв крупно, карусель */
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author p { display: grid; margin: 0; }
.review-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review-avatar--initials { display: grid; place-items: center; background: var(--enamel); color: var(--ink-2); font-weight: 600; font-size: 15px; }
.reviews:has(> .review:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.review:only-child { padding: clamp(28px, 4vw, 48px); }
.review:only-child blockquote { font-family: var(--font-display); font-variation-settings: var(--display-axes); font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); line-height: 1.35; }
.review:only-child .review-avatar { width: 64px; height: 64px; }
.blk--align-center .reviews:has(> .review:only-child) { margin-inline: auto; text-align: center; }
.blk--align-center .review:only-child :is(.review-author, .review-stars) { justify-content: center; }
.carousel { position: relative; }
.reviews--carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(86%, 360px), calc((100% - 32px) / 3));
  grid-template-columns: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.reviews--carousel::-webkit-scrollbar { display: none; }
.reviews--carousel > .review { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.carousel-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.carousel-btn:hover:not(:disabled) { border-color: var(--ink); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn svg { width: 20px; height: 20px; }

/* Карусель фото: сцена фиксированной высоты, фото любых пропорций вписаны целиком */
.pc { --pc-h: clamp(260px, 52vw, 560px); min-width: 0; }
.pc--h-s { --pc-h: clamp(220px, 40vw, 420px); }
.pc--h-l { --pc-h: clamp(300px, 64vw, min(720px, 78vh)); }
.pc-stage { position: relative; }
.pc-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  /* Зазор между фото: при дробной ширине браузер округляет прокрутку, и без него по краю
     оставалась полоска соседнего фото. Листаем с шагом «ширина + зазор» (site.js) */
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  border-radius: var(--radius);
}
.pc-track::-webkit-scrollbar { display: none; }
.pc-track:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.pc-slide { scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.pc-slide figure { margin: 0; }
.pc-zoom,
.pc-slide .photo-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: var(--pc-h);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: zoom-in;
  overflow: hidden;
}
.pc-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pc-caption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.blk--on-dark .pc-caption { color: rgba(255, 255, 255, .72); }
.blk--on-dark :is(.pc-zoom, .pc-slide .photo-empty) { background: rgba(255, 255, 255, .08); }
.pc-arrow {
  position: absolute;
  top: calc(var(--pc-h) / 2);
  translate: 0 -50%;
  border: 0;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 18px -8px rgba(16, 32, 40, .45);
}
.pc-arrow--prev { left: 12px; }
.pc-arrow--next { right: 12px; }
.pc-arrow:hover:not(:disabled) { background: #fff; }
.pc-arrow:disabled { opacity: 0; pointer-events: none; }
.pc-count {
  position: absolute;
  top: calc(var(--pc-h) - 44px);
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 32, 40, .62);
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.pc-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.pc-thumb {
  flex: none;
  display: grid;
  place-items: center;
  height: 64px;
  min-width: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--surface-2);
  opacity: .62;
  overflow: hidden;
  transition: opacity .2s, border-color .2s;
}
.pc-thumb img { display: block; height: 100%; width: auto; max-width: 120px; object-fit: contain; }
.pc-thumb:hover { opacity: 1; }
.pc-thumb.is-active { opacity: 1; border-color: var(--rose); }
@media (max-width: 640px) {
  .pc-arrow { width: 40px; height: 40px; }
  .pc-arrow--prev { left: 8px; }
  .pc-arrow--next { right: 8px; }
  .pc-thumb { height: 52px; }
}

/* Фото на весь экран */
.pc-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 16, 20, .94);
  color: #fff;
}
.pc-lightbox::backdrop { background: rgba(8, 16, 20, .94); }
.pc-lightbox .pc-stage { height: 100%; }
.pc-lightbox .pc-track { height: 100%; border-radius: 0; }
.pc-lightbox .pc-slide figure { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100dvh; padding: 56px clamp(8px, 6vw, 88px) 24px; }
.pc-lightbox .pc-img { max-height: calc(100dvh - 120px); cursor: zoom-in; touch-action: pan-x; transition: transform .2s var(--ease); }
/* Увеличение в окне: клик или тап — крупнее, перетаскивание двигает фото, щипок и Ctrl+колёсико — масштаб */
.pc-lightbox .pc-stage.is-zoomed .pc-track { overflow: hidden; }
.pc-lightbox .pc-stage.is-zoomed .pc-img { cursor: grab; touch-action: none; }
.pc-lightbox .pc-stage.is-zoomed .pc-img.is-dragging { cursor: grabbing; transition: none; }
.pc-lightbox .pc-stage.is-zoomed :is(.pc-arrow, .pc-count) { opacity: 0; pointer-events: none; }
.pc-lightbox .pc-slide figure { overflow: hidden; }
.pc-lightbox .pc-caption { color: rgba(255, 255, 255, .78); text-align: center; }
.pc-lightbox .pc-arrow { top: 50%; }
.pc-lightbox .pc-count { top: 16px; left: 16px; right: auto; }
.pc-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.pc-lightbox-close:hover { background: rgba(255, 255, 255, .24); }
.pc-lightbox .pc-arrow { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.pc-lightbox .pc-arrow:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }

/* Вопросы в две колонки */
.faq-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(32px, 5vw, 72px); margin: 0; }
.faq-qa { padding-top: 20px; border-top: 1px solid var(--line); }
.faq-qa dt { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.faq-qa dd { margin: 0; color: var(--ink-2); }

/* Форма без левой колонки */
.booking--solo { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.booking--solo .booking-copy:empty { display: none; }
.blk--align-center .booking--solo { margin-inline: auto; }

/* Заголовок */
.section--heading .section-head { margin-bottom: 0; }

/* Видео */
.video-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.video-split--right .video-frame { order: 2; }
.video-split--top,
.video-split--solo { grid-template-columns: minmax(0, 1fr); }
.video-split--top .split-copy { max-width: 760px; }
.video-frame { min-width: 0; }
.video {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #102028;
  color: #fff;
  text-decoration: none;
}
.video-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease); }
.video:hover .video-cover { scale: 1.03; }
.video-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
  transition: scale .25s var(--ease);
}
.video:hover .video-play { scale: 1.08; }
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }
.video--empty { gap: 12px; align-content: center; color: rgba(255, 255, 255, .7); font-size: 14px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Своё видео из медиатеки — родной плеер браузера */
.video--file { display: block; width: 100%; object-fit: contain; }
.video--file[autoplay] { object-fit: cover; }

/* Преимущества */
.features { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.features--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { display: grid; gap: 16px; align-content: start; }
.features--cards .feature { padding: 28px; background: var(--surface); border-radius: var(--radius); }
.features--photo.features--cards .feature { padding: 0 0 24px; overflow: hidden; }
.features--photo.features--cards .feature-copy { padding-inline: 24px; }
.features--plain { gap: 32px 40px; }
.features--plain.features--cols-2 .feature:not(:has(.feature-photo)) { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--rose-soft);
  color: var(--rose);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-icon--img { object-fit: contain; padding: 8px; }
.blk--on-dark .feature-icon { background: rgba(255, 255, 255, .12); color: #C5DCE3; }
.feature-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); min-height: 0; }
.features--cards .feature-photo { border-radius: 0; }
.feature-title {
  font-family: var(--font-display);
  font-variation-settings: var(--display-axes);
  font-size: 1.25rem;
  font-weight: 560;
  letter-spacing: -.015em;
  line-height: 1.25;
}
.feature-text { margin-top: 6px; color: var(--ink-2); }
.blk--align-center .features--cards .feature { justify-items: center; text-align: center; }

/* Тарифы */
.plans { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; align-items: stretch; }
.plans--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
.plans--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.blk--align-center .plans--cols-2 { margin-inline: auto; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
}
.plan.is-highlight { border-color: var(--rose); box-shadow: var(--shadow-lift); }
.blk--on-dark .plan.is-highlight { border-color: #C5DCE3; }
.plan-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.plan-name { font-family: var(--font-display); font-variation-settings: var(--display-axes); font-size: 1.35rem; font-weight: 560; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan-price b { font-family: var(--font-display); font-variation-settings: var(--display-axes); font-size: clamp(2rem, 1.5rem + 1.3vw, 2.8rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.plan-price span { color: var(--ink-3); font-size: 14.5px; }
.plan-text { color: var(--ink-2); }
.plan-features { display: grid; gap: 10px; margin: 6px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.plan-features svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--rose); }
.blk--on-dark .plan-features svg { color: #C5DCE3; }
.plan .plan-btn { margin-top: auto; }

/* Логотипы */
.logos { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.logos--row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.logos--row-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.logos--row-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.logo {
  display: grid;
  place-items: center;
  height: 96px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.logo img { max-width: 100%; max-height: 52px; object-fit: contain; transition: filter .25s, opacity .25s; }
.logos--gray .logo img { filter: grayscale(1); opacity: .7; }
.logos--gray .logo:hover img { filter: none; opacity: 1; }
.blk--on-dark .logos--gray .logo img { filter: grayscale(1) brightness(1.8); }

/* Плашка-объявление */
.section--notice { padding-block: clamp(20px, 3vw, 36px); }
.notice-bar {
  display: flex;
  align-items: center;
  gap: 16px 20px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--notice-bg);
  color: var(--notice-ink);
  border: 1px solid var(--notice-line);
}
.notice-bar--info { --notice-bg: #E5F4F6; --notice-ink: #0A5C66; --notice-line: #BFE2E7; }
.notice-bar--news { --notice-bg: #FFFFFF; --notice-ink: #102028; --notice-line: #D5E0E6; }
.notice-bar--warning { --notice-bg: #FFF3DB; --notice-ink: #5E3A00; --notice-line: #F2D49B; }
.notice-bar--success { --notice-bg: #E3F4EC; --notice-ink: #11663F; --notice-line: #BFE3CF; }
.notice-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .7); }
.notice-bar--news .notice-icon { background: var(--rose-soft); color: var(--rose); }
.notice-icon svg { width: 22px; height: 22px; }
.notice-copy { flex: 1; min-width: 0; }
.notice-title { font-weight: 650; }
.notice-text { margin-top: 2px; font-size: 15px; opacity: .85; }
.notice-link { display: inline-flex; align-items: center; gap: 8px; flex: none; font-weight: 600; text-decoration: none; white-space: nowrap; }
.notice-link svg { width: 16px; height: 16px; transition: translate .25s var(--ease); }
.notice-link:hover svg { translate: 3px 0; }

/* Карта в контактах */
.contact-map { margin-top: clamp(28px, 4vw, 48px); overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.contact-map iframe { display: block; width: 100%; height: clamp(320px, 40vw, 460px); border: 0; }

@media (max-width: 1080px) {
  .gallery--cols-4, .service-grid--cols-4, .team-grid--cols-4, .product-grid--cols-4,
  .features--cols-4, .plans--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos--row-5, .logos--row-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .gallery--cols-3, .service-grid--cols-3, .team-grid--cols-3, .product-grid--cols-3,
  .features--cols-3, .plans--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-split { grid-template-columns: minmax(0, 1fr); }
  .video-split--right .video-frame { order: 0; }
  .service-grid--cols-1 .service-card--photo { grid-template-columns: minmax(0, 1fr); }
  .service-grid--cols-1 .service-card--photo > :not(.service-img) { padding-inline: 28px; }
  .service-grid--cols-1 .service-card--photo .service-img { grid-row: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .gallery--cols-2, .gallery--cols-3, .gallery--cols-4,
  .service-grid--cols-2, .service-grid--cols-3, .service-grid--cols-4,
  .features--cols-2, .features--cols-3, .features--cols-4,
  .plans--cols-2, .plans--cols-3, .plans--cols-4,
  .product-grid--cols-2, .product-grid--cols-3, .product-grid--cols-4,
  .faq-columns { grid-template-columns: minmax(0, 1fr); }
  /* Команда на телефоне — по двое: портреты на всю ширину слишком крупные */
  .team-grid--cols-2, .team-grid--cols-3, .team-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .logos--row-4, .logos--row-5, .logos--row-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notice-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .notice-link { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   Оформление блока — вкладка «Внешний вид» в редакторе страницы.
   Только готовые варианты: цвет текста подстраивается под фон сам.
   -------------------------------------------------------------------------- */

/* Фон. Цвета заданы числами: на тёмном фоне токены ниже переопределяются */
.blk--bg-white { background: #FFFFFF; --surface: #F3F6F8; --surface-2: #F3F6F8; }
.blk--bg-white .service-card :is(.price-tag, .service-more) { background: #FFFFFF; }
.blk--bg-tinted { background: #E6EEF2; --surface-2: #FFFFFF; --enamel: #FFFFFF; }
.blk--bg-enamel { background: #E7F1F4; --surface-2: #FFFFFF; --enamel: #FFFFFF; }
.blk--bg-dark { background: #102028; }
.blk--bg-rose { background: #0E7C8A; }
.blk--bg-photo,
.blk--bg-video { background: #102028; }

/* Светлый текст на тёмном, цветном и фото-фоне. Карточки становятся полупрозрачными */
.blk--on-dark {
  --ink: #FFFFFF;
  --ink-2: rgba(255, 255, 255, .8);
  --ink-3: rgba(255, 255, 255, .64);
  --line: rgba(255, 255, 255, .18);
  --line-strong: rgba(255, 255, 255, .36);
  --surface: rgba(255, 255, 255, .09);
  --surface-2: rgba(255, 255, 255, .09);
  --bg: rgba(255, 255, 255, .12);
  --enamel: rgba(255, 255, 255, .1);
  --rose-soft: rgba(255, 255, 255, .16);
  --rose-ink: #C5DCE3;
  color: var(--ink);
}
.blk--bg-rose {
  --ink-2: rgba(255, 255, 255, .88);
  --ink-3: rgba(255, 255, 255, .72);
  --surface: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .5);
}
.blk--on-dark :is(.hero-title, .intro-title, .section-title, .cta-title) em { color: #C5DCE3; }
.blk--on-dark :is(.eyebrow, .hero-facts li)::before { background: #C5DCE3; }
.blk--on-dark :is(.review-stars, .booking-phone svg) { color: #C5DCE3; }
.blk--on-dark .prose li::marker { color: #C5DCE3; }
.blk--on-dark .prose blockquote { border-left-color: #C5DCE3; }
.blk--on-dark .btn-primary:hover { background: #0A5C66; }
.blk--on-dark .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.blk--on-dark .service-card:hover .service-more { background: #fff; color: #102028; }
.blk--on-dark .photo-empty { color: rgba(255, 255, 255, .7); }
/* На цветном фоне основная кнопка того же цвета — делаем её белой */
.blk--bg-rose .btn-primary { background: #fff; color: #102028; }
.blk--bg-rose .btn-primary:hover { background: #E7F1F4; }
/* Форма и бирки остаются светлыми — у них свой белый фон */
.blk--on-dark :is(.booking-form, .doctor-exp) {
  --ink: #102028;
  --ink-2: #3A4E58;
  --ink-3: #6A7E88;
  --line: #D5E0E6;
  --line-strong: #B7C6CE;
  --surface: #FFFFFF;
  --bg: #F3F6F8;
  --rose-soft: #E5F4F6;
  --rose-ink: #0A5C66;
  color: var(--ink);
}

/* Фото на фоне с затемнением: без него текст теряется на светлых участках снимка */
.blk--bg-photo,
.blk--bg-video { position: relative; isolation: isolate; overflow: hidden; }
.blk-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blk--bg-photo::after,
.blk--bg-video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 22, 28, .55), rgba(10, 22, 28, .72));
}
.blk--shade-soft::after { background: linear-gradient(180deg, rgba(10, 22, 28, .32), rgba(10, 22, 28, .5)); }
.blk--shade-strong::after { background: linear-gradient(180deg, rgba(10, 22, 28, .7), rgba(10, 22, 28, .85)); }

/* Отступы сверху и снизу */
.blk.blk--pad-s { padding-block: clamp(32px, 4vw, 56px); }
.blk.blk--pad-l { padding-block: clamp(96px, 11vw, 168px); }
.section--cta.blk--pad-s { padding-block: clamp(16px, 2vw, 28px); }
.section--cta.blk--pad-l { padding-block: clamp(56px, 7vw, 96px); }

/* Ширина содержимого */
.blk--w-narrow > .container { max-width: 860px; }
.blk--w-wide > .container { max-width: calc(1480px + var(--gutter) * 2); }

/* Выравнивание заголовка */
.blk--align-center .section-head { justify-items: center; margin-inline: auto; text-align: center; }
.blk--align-center .prose > .section-title,
.blk--align-center .pullquote,
.blk--align-center .figure figcaption { text-align: center; }
.blk--align-center .pullquote p { margin-inline: auto; }
.blk--align-center .cta { flex-direction: column; justify-content: center; text-align: center; }
.blk--align-center .cta-title { margin-inline: auto; }
.blk--align-center .cta-text { margin-inline: auto; }
.hero.blk--align-left .hero-copy { justify-items: start; text-align: left; }
.hero.blk--align-left :is(.hero-actions, .hero-facts) { justify-content: flex-start; }

/* Размер текста */
.blk--text-s { --title-scale: .8; --lead-scale: .92; font-size: .94em; }
.blk--text-l { --title-scale: 1.16; --lead-scale: 1.1; font-size: 1.07em; }

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  /* Галерея товара на телефоне и планшете: фото на всю ширину, лента миниатюр под ним */
  .pg--many { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "rail"; }
  .pg-rail { contain: none; }
  .pg .pg-thumbs { flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .pg .pc-thumb { flex: none; width: 64px; }
  .pg-rail-btn { display: none; }
  .product-layout,
  .catalog-layout,
  .shades-grid,
  .faq-grid,
  .booking,
  .contacts,
  .rich-grid--aside,
  .split,
  .intro-grid,
  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .faq-grid .section-head,
  .rich-aside { position: static; }
  .intro-specs { padding: 4px 18px; }
  .intro-specs::before { left: 18px; }
  .intro-spec { grid-template-columns: minmax(0, 6.2em) minmax(0, 1fr); gap: 12px; padding: 13px 0; }
  .intro-spec dd { font-size: 1.05rem; }
  .intro-specs--row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .intro-specs--row .intro-spec { padding: 14px 18px; }
  .intro-specs--row .intro-spec:nth-child(odd) { border-left: 0; }
  .intro-specs--row .intro-spec:nth-child(n + 3) { border-top: 1px dashed var(--line-strong); }
  .intro-grid--details { gap: 20px; }
  .intro-details { margin-left: 0; }
  .catalog-layout { grid-template-areas: "search" "aside" "results"; grid-template-rows: none; gap: 14px; }
  .catalog-results { margin-top: 10px; }

  /* Колонка каталога сворачивается в кнопку над товарами. Без скрипта она просто открыта */
  .js .catalog-aside-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 10px 22px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    text-align: left;
  }
  .catalog-aside-toggle span { flex: 1; }
  .catalog-aside-toggle svg { width: 14px; height: 14px; color: var(--ink-3); transition: rotate .2s var(--ease); }
  .catalog-aside-toggle[aria-expanded="true"] svg { rotate: 180deg; }
  .js .catalog-aside:not(.is-open) .catalog-side { display: none; }
  .catalog-aside.is-open .catalog-side { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--surface); }
  .catalog-aside.is-open :is(.catalog-cat, .catalog-option):hover { background: var(--bg); }
  .shade-row { padding-top: 56px; }
  .step:not(:last-child)::before { display: none; }
}

@media (max-width: 640px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta .btn { width: 100%; justify-content: center; }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .faq-answer { padding-right: 0; }
  .admin-bar { left: 8px; right: 8px; bottom: 8px; justify-content: center; flex-wrap: wrap; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}

/* ——— Показ блока по устройствам (настройка «Показывать на» в редакторе страницы) ———
   Границы совпадают с переключением шапки: от 1200px — компьютер */
@media (min-width: 1200px) { .hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1199px) { .hide-tablet { display: none !important; } }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
