/* ==========================================================================
   Grafto — дизайн-система портала клиник пересадки волос.
   Концепция «точность и доверие»: глубокий тёмно-синий как фирменный фон
   первых экранов и акцентных блоков, синий — только для действий и активных
   состояний, светлые прохладные поверхности для чтения и сравнения.
   Шрифт Onest (локально, OFL) + системный fallback.
   ========================================================================== */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Цвета */
  --navy: #142440;
  --navy-2: #1C3157;
  --navy-3: #0D1930;
  --navy-line: rgba(255, 255, 255, .12);
  --blue: #3864F4;
  --blue-hover: #2650DE;
  --blue-press: #1E42BD;
  --blue-soft: #EBF0FE;
  --blue-100: #D6E1FD;
  --blue-ink: #2449C4;
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #EEF1F7;
  --text: #142440;
  --muted: #55627C;
  --subtle: #66738C;
  --line: #E1E6EF;
  --line-strong: #C9D2E1;
  --ok: #0F7A56;
  --ok-soft: #E2F4EC;
  --warn: #8C5A00;
  --warn-soft: #FFF2D6;
  --danger: #BC3328;
  --danger-soft: #FDEBE9;
  --star: #F2A417;

  /* Отступы 8/16/24/32/48/64 */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;

  /* Формы */
  --r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 24px; --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(20, 36, 64, .05);
  --shadow: 0 1px 2px rgba(20, 36, 64, .04), 0 8px 24px rgba(20, 36, 64, .06);
  --shadow-lift: 0 2px 6px rgba(20, 36, 64, .05), 0 20px 48px rgba(20, 36, 64, .12);
  --shadow-blue: 0 8px 20px rgba(56, 100, 244, .28);
  --focus: 0 0 0 3px rgba(56, 100, 244, .38);

  --header-h: 72px;
  --anchors-h: 56px;
  --container: 1240px;
  --gutter: 16px;
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 480px) { :root { --gutter: 20px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }
@media (max-width: 1023px) { :root { --header-h: 64px; } }

/* ---------- База ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--anchors-h) + 16px); }
@media (max-width: 1023px) { html { scroll-padding-top: calc(var(--anchors-h) + 12px); } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 17px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--blue-hover); }
h1, h2, h3, h4 { margin: 0 0 var(--s2); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--navy); overflow-wrap: anywhere; }
h1 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.03em; }
h2 { font-size: clamp(24px, 2.8vw, 36px); }
h3 { font-size: 19px; letter-spacing: -.01em; }
p { margin: 0 0 var(--s2); }
ul, ol { margin: 0 0 var(--s2); padding-left: 1.2em; }
small { font-size: 14px; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s3) 0; }
[hidden] { display: none !important; }
::selection { background: var(--blue-100); color: var(--navy); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 300; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 8px; color: #fff; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 17px; height: 17px; }
.icon--lg { width: 32px; height: 32px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); font-size: 14px; }
.nowrap { white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--blue); }
.eyebrow--light { color: #A9BCFF; }
.eyebrow--light::before { background: #6F8EFF; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--blue-ink); white-space: nowrap; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--light { color: #C9D6FF; }
.link-arrow--light:hover { color: #fff; }

/* ---------- Кнопки ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  border: 1px solid var(--blue); background: var(--blue); color: #fff;
  font: 600 16px/1.2 var(--font); letter-spacing: -.005em; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; box-shadow: var(--shadow-blue); }
.btn:active { background: var(--blue-press); transform: translateY(1px); }
.btn:focus-visible { box-shadow: var(--focus); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn--secondary { background: var(--surface); color: var(--navy); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--surface); color: var(--blue-ink); border-color: var(--blue); box-shadow: none; }
.btn--secondary.is-loading::after { border-color: rgba(56, 100, 244, .3); border-top-color: var(--blue); }
.btn--soft { background: var(--blue-soft); color: var(--blue-ink); border-color: transparent; }
.btn--soft:hover { background: var(--blue-100); color: var(--blue-press); border-color: transparent; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--blue-ink); border-color: transparent; padding-inline: 12px; }
.btn--ghost:hover { background: var(--blue-soft); color: var(--blue-press); border-color: transparent; box-shadow: none; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: #E8EEFF; border-color: #E8EEFF; color: var(--navy); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; box-shadow: none; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 16px; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--blue-ink); }
.icon-btn[aria-pressed="true"] { color: #fff; background: var(--blue); border-color: var(--blue); }
.icon-btn--glass { background: rgba(255, 255, 255, .92); border-color: transparent; box-shadow: var(--shadow-sm); backdrop-filter: blur(6px); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Бейджи, теги, чипы ----------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1.25; background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--accent { background: var(--blue-soft); color: var(--blue-ink); }
.badge--demo { background: #FFF1C7; color: #6A4D00; }
a.badge { text-decoration: none; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); color: var(--navy); font-size: 13px; font-weight: 500; }
.tag--method { background: var(--navy); color: #fff; font-weight: 600; letter-spacing: .01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--navy);
  font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s, background .15s;
}
a.chip:hover { border-color: var(--blue); color: var(--blue-ink); }
.chip .muted { font-weight: 400; }
.chip--remove { background: var(--blue-soft); border-color: transparent; color: var(--blue-ink); }
.chip--remove::after { content: "×"; font-size: 18px; line-height: 1; margin-left: 2px; }
.chip[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Шапка ---------------------------------------------------------------- */
.header { position: relative; z-index: 60; background: rgba(255, 255, 255, .88); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.6) blur(14px); }
@media (min-width: 1024px) { .header { position: sticky; top: 0; } }
.header__inner { display: flex; align-items: center; gap: var(--s3); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 750; font-size: 22px; letter-spacing: -.03em; }
.logo:hover { color: var(--navy); }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo img { max-height: 40px; width: auto; }
.logo span { white-space: nowrap; }
.nav { display: none; gap: 2px; }
.nav__item { position: relative; display: flex; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 13px; border: 0; border-radius: 10px; background: none; color: var(--navy); text-decoration: none; font: 550 15px/1.2 var(--font); cursor: pointer; white-space: nowrap; }
.nav__link:hover, .nav__item--sub:hover > .nav__link, .nav__item--sub.is-open > .nav__link { color: var(--blue-ink); background: var(--blue-soft); }
.nav__link[aria-current="page"] { color: var(--blue-ink); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--blue); }
.nav__chevron { width: 12px; height: 12px; transition: transform .2s; }
.nav__item--sub:hover .nav__chevron, .nav__item--sub:focus-within .nav__chevron, .nav__item--sub.is-open .nav__chevron { transform: rotate(180deg); }
.nav__sub { position: absolute; left: 50%; top: calc(100% + 6px); z-index: 70; min-width: 220px; margin: 0; padding: 8px; list-style: none; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item--sub:hover > .nav__sub, .nav__item--sub:focus-within > .nav__sub, .nav__item--sub.is-open > .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__sub a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 550; white-space: nowrap; }
.nav__sub a:hover { background: var(--blue-soft); color: var(--blue-ink); }
.nav__sub a[aria-current="page"] { color: var(--blue-ink); background: var(--blue-soft); }
.nav__note { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.header__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tool-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--navy); }
.tool-link:hover { background: var(--blue-soft); color: var(--blue-ink); }
.tool-link__count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.header__cta { display: none; margin-left: 6px; }
.burger { display: inline-flex; border-color: transparent; background: var(--surface-2); }
@media (min-width: 1100px) {
  /* Логотип слева, меню по центру, инструменты справа */
  .header__inner { display: grid; grid-template-columns: auto 1fr auto; }
  .nav { display: flex; justify-self: center; }
  .header__tools { margin-left: 0; justify-self: end; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
}
/* На широком экране меню ровно по центру страницы */
@media (min-width: 1360px) {
  .header__inner { grid-template-columns: 1fr auto 1fr; }
}
@media (max-width: 400px) {
  .logo { font-size: 20px; gap: 8px; }
  .logo__mark { width: 32px; height: 32px; }
  .header__inner { gap: 6px; }
  .tool-link { width: 40px; }
}

.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(13, 25, 48, .55); backdrop-filter: blur(2px); }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(400px, 92vw); background: var(--surface);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lift); overflow-y: auto;
  padding: var(--s2) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
  animation: drawer-in .22s ease-out;
}
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s2); }
.drawer__nav { display: grid; gap: 2px; margin-bottom: var(--s2); }
.drawer__nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px; border-radius: 12px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 17px; }
.drawer__nav a:hover { background: var(--blue-soft); color: var(--blue-ink); }
.drawer__label { margin: var(--s2) 14px var(--s1); color: var(--subtle); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.drawer__panel > .btn { margin-top: auto; }

/* ---------- Подвал ------------------------------------------------------------------ */
.footer { margin-top: var(--s7); background: var(--navy); color: #B6C2D8; padding: 0 0 calc(var(--s4) + var(--mobile-bar-h, 0px)); font-size: 15px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 90% 0%, rgba(56, 100, 244, .22), transparent 70%); pointer-events: none; }
.footer .container { position: relative; }
.footer a { color: #E4EAF5; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .logo, .footer .logo:hover { color: #fff; text-decoration: none; }
.footer__cta {
  display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between;
  padding: var(--s5) 0; border-bottom: 1px solid var(--navy-line); margin-bottom: var(--s5);
}
.footer__cta-title { color: #fff; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
.footer__cta-text { max-width: 60ch; margin: 0; }
.footer__grid { display: grid; gap: var(--s4); grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand p { margin: 14px 0 6px; max-width: 36ch; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1.2fr 1fr 1fr; } .footer__brand { grid-column: auto; } }
.footer__title { color: #fff; font-size: 14px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__list .muted { color: #8D9BB6; }
.footer__bottom { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: space-between; color: #8D9BB6; font-size: 14px; }

/* ---------- Секции и общие блоки ------------------------------------------------------ */
main { display: block; min-height: 50vh; }
.section { padding: var(--s6) 0 0; }
.section--tight { padding-top: var(--s4); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s2) var(--s3); margin-bottom: var(--s4); }
.section__head h2 { margin: 0; }
.section__lead { max-width: 62ch; color: var(--muted); margin: 12px 0 0; }
.band { padding: var(--s6) 0; margin-top: var(--s6); }
.band--white { background: var(--surface); border-block: 1px solid var(--line); }
.band--soft { background: linear-gradient(180deg, #EAF0FE, #F4F6FA); }
.band--navy { background: var(--navy); color: #C3CEE2; position: relative; overflow: hidden; }
.band--navy::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.band--navy .container { position: relative; }
.band--navy h2, .band--navy h3 { color: #fff; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card--pad { padding: var(--s3); }
@media (min-width: 768px) { .card--pad { padding: var(--s4); } }
.grid { display: grid; gap: var(--s3); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.split { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: 1.1fr .9fr; } }
.list { display: grid; gap: var(--s2); }

.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--s5); font-size: clamp(22px, 2.2vw, 28px); }
.prose h3 { margin-top: var(--s4); }
.prose img { border-radius: var(--r-sm); margin: var(--s3) 0; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose blockquote { margin: var(--s3) 0; padding: var(--s2) var(--s3); border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* Шапка внутренних страниц: светлая плашка с фирменной графикой */
.page-head {
  position: relative; overflow: hidden; margin: var(--s2) 0 var(--s4);
  padding: var(--s4) var(--s3); border-radius: var(--r-xl);
  background: linear-gradient(135deg, #FFFFFF 0%, #EEF3FF 100%); border: 1px solid #E3E9F6;
}
.page-head::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 300px; opacity: .5; pointer-events: none;
  background: url("/assets/img/hero-lines.svg") no-repeat center / contain;
}
@media (min-width: 768px) { .page-head { padding: var(--s5) var(--s5); } }
@media (max-width: 767px) { .page-head::after { width: 200px; height: 180px; right: -70px; top: -30px; opacity: .3; } }
.page-head > * { position: relative; z-index: 1; }
.page-head h1 { margin-bottom: 12px; max-width: 24ch; }
.page-head__lead { color: var(--muted); max-width: 64ch; margin-bottom: 0; font-size: 17px; }
.page-head__lead p:last-child { margin-bottom: 0; }
.stat-line { display: flex; flex-wrap: wrap; gap: 8px 10px; color: var(--muted); font-size: 15px; margin: var(--s3) 0 0; }
.stat-line > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); }
.stat-line strong { color: var(--navy); }

.breadcrumbs { padding-top: var(--s2); font-size: 14px; color: var(--subtle); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid var(--line-strong); border-top: 1.5px solid var(--line-strong); transform: rotate(45deg); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-ink); text-decoration: underline; }
.breadcrumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; color: var(--navy); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-sm); background: var(--blue-soft); color: var(--navy); margin-bottom: var(--s2); }
.alert--ok { background: var(--ok-soft); }
.alert--error { background: var(--danger-soft); }
.alert--warn { background: var(--warn-soft); }
.alert p:last-child { margin: 0; }

.empty {
  text-align: center; padding: var(--s5) var(--s3); background: var(--surface); border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg); color: var(--muted);
}
.empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: var(--blue-soft); color: var(--blue); margin-bottom: var(--s2); }
.empty h2, .empty h3 { color: var(--navy); }
.empty h2 { font-size: 24px; }
.empty .chips { justify-content: center; margin-bottom: var(--s2); }

.demo-note { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r-sm); background: #FFF6D9; color: #5B4300; font-size: 14px; margin: 0 0 var(--s2); border: 1px solid #F4E2A6; }

.img-placeholder {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, #E9EEF8, #DCE4F3); color: #8E9BB5;
}

/* ---------- Пагинация ---------------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: var(--s4) 0 0; list-style: none; padding: 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); text-decoration: none; font-weight: 600;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue-ink); }
.pagination [aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .gap { border: 0; background: transparent; }

/* ---------- Формы -------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.label { font-weight: 600; font-size: 15px; color: var(--navy); }
.label small { font-weight: 400; color: var(--subtle); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--navy); font: 400 16px/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%2355627C' stroke-width='1.7' stroke-linecap='round' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.input::placeholder, .textarea::placeholder { color: #98A3B8; }
.input:hover, .select:hover, .textarea:hover { border-color: #AEB9CD; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); background: #FFFAF9; }
.input:disabled { background: var(--surface-2); color: var(--subtle); }
.hint { font-size: 14px; color: var(--subtle); margin: 0; }
.error { font-size: 14px; color: var(--danger); margin: 0; font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding-top: 8px; cursor: pointer; font-size: 15px; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.segmented { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface-2); gap: 4px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 11px; font-size: 15px; font-weight: 500; cursor: pointer; color: var(--muted); transition: background .15s, color .15s; }
.segmented input:checked + span { background: var(--surface); box-shadow: var(--shadow); color: var(--blue-ink); font-weight: 650; }
.segmented input:focus-visible + span { box-shadow: var(--focus); }
.form__result { padding: 14px 16px; border-radius: var(--r-sm); font-weight: 500; }
.form__result.is-ok { background: var(--ok-soft); color: var(--ok); }
.form__result.is-error { background: var(--danger-soft); color: var(--danger); }
.form__recipient { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); margin: 0; }
.form__recipient .icon { color: var(--blue); margin-top: 2px; }
.lead-form details > summary { list-style: none; color: var(--blue-ink); }
.lead-form details > summary::-webkit-details-marker { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Рейтинг -------------------------------------------------------------------- */
.stars { display: inline-flex; gap: 1px; vertical-align: -2px; }
.star { color: #D5DAE3; display: inline-flex; }
.star--on { color: var(--star); }
.star--on .icon { fill: currentColor; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-decoration: none; }
.rating__count { color: var(--muted); font-weight: 500; }
.rating--none { font-weight: 500; color: var(--subtle); font-size: 14px; }

/* ---------- Главная: первый экран --------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #C3CEE2; padding: var(--s5) 0 var(--s4); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 520px at 85% 20%, rgba(56, 100, 244, .35), transparent 65%), radial-gradient(600px 420px at 0% 100%, rgba(56, 100, 244, .16), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
@media (min-width: 1024px) { .hero { padding: var(--s6) 0 var(--s5); } }
.hero__grid { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.25fr .75fr; gap: var(--s5); } }
.hero__title { color: #fff; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.05; max-width: 16ch; margin-bottom: var(--s3); }
.hero__sub { font-size: clamp(16px, 1.5vw, 19px); color: #B9C6DE; max-width: 54ch; margin-bottom: var(--s4); }
.hero-search {
  display: grid; gap: 8px; padding: 8px; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); max-width: 760px;
}
@media (min-width: 720px) { .hero-search { grid-template-columns: 1fr 1fr auto; align-items: stretch; } }
.hero-search__field { position: relative; display: grid; padding: 8px 14px 6px; border-radius: 14px; transition: background .15s; }
.hero-search__field:hover { background: var(--bg); }
@media (min-width: 720px) { .hero-search__field + .hero-search__field::before { content: ""; position: absolute; left: -4px; top: 14px; bottom: 14px; width: 1px; background: var(--line); } }
.hero-search__label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.hero-search__label .icon { color: var(--blue); }
.hero-search__select { appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%23142440' stroke-width='1.7' stroke-linecap='round' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 2px center; padding: 2px 22px 4px 0; min-height: 34px; font: 600 17px/1.3 var(--font); color: var(--navy); cursor: pointer; width: 100%; }
.hero-search__select:focus { outline: none; }
.hero-search__field:focus-within { background: var(--blue-soft); }
.hero-search__btn { min-height: 60px; }
.hero__cities { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s3) 0 0; padding: 0; list-style: none; }
.hero__cities a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); color: #E4EAF5; text-decoration: none; font-size: 14px; font-weight: 500; transition: background .15s, border-color .15s; }
.hero__cities a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); color: #fff; }
.hero__cities span { color: #8EA4D6; }
.hero__visual { position: relative; min-height: 380px; display: none; }
@media (min-width: 1024px) { .hero__visual { display: block; } }
.hero__lines { position: absolute; right: -40px; top: -20px; width: 120%; max-width: none; height: auto; opacity: .95; }
.hero-card {
  position: absolute; left: 0; top: 70px; display: grid; gap: 4px; width: 300px; padding: 20px 22px; border-radius: 20px;
  background: rgba(255, 255, 255, .97); color: var(--navy); box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
}
.hero-card--small { left: auto; right: 0; top: 280px; width: 250px; background: rgba(28, 49, 87, .92); color: #fff; border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.hero-card__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.hero-card--small .hero-card__label { color: #A9BCFF; }
.hero-card__title { font-size: 17px; font-weight: 700; line-height: 1.25; }
.hero-card__meta { font-size: 14px; color: var(--muted); }
.hero-card__price { margin-top: 10px; font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.hero-card__price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.hero-card__chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.hero-card__chips span { padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 600; }
.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: var(--s5) 0 0; border-radius: var(--r); overflow: hidden; background: var(--navy-line); border: 1px solid var(--navy-line); }
@media (min-width: 900px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }
.hero__stats > div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 18px 20px; background: rgba(13, 25, 48, .55); }
.hero__stats dt { font-size: 14px; color: #93A3C2; }
.hero__stats dd { margin: 0; color: #fff; font-size: clamp(22px, 2.4vw, 30px); font-weight: 750; letter-spacing: -.02em; }

/* Города, услуги, методы */
.city-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .city-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
@media (max-width: 479px) { .city-tile { grid-template-columns: 1fr; padding: 14px; row-gap: 2px; } .city-tile__icon { grid-row: auto; width: 36px; height: 36px; border-radius: 11px; margin-bottom: 8px; } .city-tile__name { font-size: 16px; } }
.city-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--navy); transition: border-color .15s, box-shadow .2s, transform .2s; }
.city-tile:hover { border-color: var(--blue); box-shadow: var(--shadow-lift); transform: translateY(-2px); color: var(--navy); }
.city-tile__icon { grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.city-tile__name { font-weight: 700; font-size: 17px; }
.city-tile__count { color: var(--muted); font-size: 14px; }
.service-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.service-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 180px; padding: 22px;
  border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--navy); transition: background .2s, border-color .2s, transform .2s;
}
.service-tile::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid var(--blue-100); box-shadow: 0 0 0 18px rgba(56, 100, 244, .04), 0 0 0 36px rgba(56, 100, 244, .03); transition: transform .3s; }
.service-tile:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }
.service-tile:hover::after { transform: scale(1.15); border-color: rgba(255, 255, 255, .2); }
.service-tile__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 15px; background: var(--surface); color: var(--blue); box-shadow: var(--shadow-sm); }
.service-tile:hover .service-tile__icon { background: var(--blue); color: #fff; }
.service-tile__title { font-weight: 700; font-size: 19px; letter-spacing: -.01em; line-height: 1.25; }
.service-tile__meta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue-ink); }
.service-tile:hover .service-tile__meta { color: #C9D6FF; }
.method-row__label { margin: var(--s4) 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.method-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.method-pill { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 17px; color: var(--navy); text-decoration: none; letter-spacing: .01em; transition: border-color .15s, color .15s, background .15s; }
.method-pill:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-ink); }

.value-card { padding: var(--s4); border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid var(--navy-line); }
.value-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 15px; background: var(--blue); color: #fff; margin-bottom: var(--s3); }
.value-card h3 { margin-bottom: 10px; }
.value-card p { margin: 0; color: #B9C6DE; }

.pick { display: grid; gap: var(--s4); align-items: start; padding: var(--s4) var(--s3); border-radius: var(--r-xl); background: linear-gradient(135deg, #FFFFFF 0%, #EAF0FE 100%); border: 1px solid #E0E8FA; }
@media (min-width: 900px) { .pick { grid-template-columns: 1fr 1fr; gap: var(--s5); padding: var(--s5); } }
.pick__model { margin-top: var(--s3); padding: var(--s3); border-radius: var(--r); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.pick__model h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 8px; }
.pick__model h3 .icon { color: var(--blue); }
.pick__model p { margin: 0; color: var(--muted); font-size: 15px; }
.pick__form { padding: var(--s3); }
@media (min-width: 768px) { .pick__form { padding: var(--s4); } }

.article-list { display: grid; gap: 2px; }
.article-row { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.article-row:first-child { padding-top: 0; }
.article-row__date { font-size: 13px; color: var(--subtle); font-weight: 500; }
.article-row__title { font-weight: 700; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.article-row:hover .article-row__title { color: var(--blue-ink); }
.article-row__text { color: var(--muted); font-size: 15px; }

.tile { display: flex; flex-direction: column; gap: 6px; padding: var(--s3); text-decoration: none; color: var(--navy); transition: border-color .15s, box-shadow .2s, transform .2s; }
.tile:hover { border-color: var(--blue); color: var(--navy); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.tile__title { font-weight: 700; font-size: 18px; }
.tile__meta { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Карточка клиники --------------------------------------------------------- */
.clinic-card {
  position: relative; display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  transition: box-shadow .2s, border-color .2s;
}
.clinic-card:hover { box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.clinic-card:focus-within { border-color: var(--blue); }
@media (min-width: 720px) { .clinic-card { grid-template-columns: 240px minmax(0, 1fr); } }
@media (min-width: 1180px) { .clinic-card { grid-template-columns: 280px minmax(0, 1fr) 250px; } }
.clinic-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
@media (min-width: 720px) { .clinic-card__media { aspect-ratio: auto; min-height: 100%; grid-row: 1 / 3; } }
@media (min-width: 1180px) { .clinic-card__media { grid-row: auto; } }
.clinic-card__media img, .clinic-card__media .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clinic-card__count { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; background: rgba(13, 25, 48, .72); color: #fff; font-size: 12px; font-weight: 600; }
.clinic-card__tools { position: absolute; z-index: 3; top: 12px; right: 12px; display: flex; gap: 6px; }
.clinic-card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 4px; min-width: 0; }
@media (min-width: 720px) { .clinic-card__body { padding: 24px 24px 8px; } }
@media (min-width: 1180px) { .clinic-card__body { padding: 26px 28px; } }
.clinic-card__flags { display: flex; flex-wrap: wrap; gap: 6px; }
.clinic-card__title { font-size: clamp(19px, 1.8vw, 22px); margin: 0; line-height: 1.25; }
.clinic-card__title a { color: var(--navy); text-decoration: none; }
.clinic-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.clinic-card__title a:hover { color: var(--blue-ink); }
.clinic-card__title a:focus-visible { box-shadow: none; }
.clinic-card__loc { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 15px; margin: 0; }
.clinic-card__loc strong { color: var(--navy); font-weight: 600; }
.clinic-card__loc .icon { margin-top: 3px; color: var(--blue); }
.clinic-card__more { display: block; font-size: 14px; color: var(--subtle); margin-top: 2px; }
.clinic-card__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.clinic-card__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: auto; padding-top: 4px; }
.clinic-card__aside { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 16px 20px 20px; }
@media (min-width: 720px) { .clinic-card__aside { flex-direction: row; align-items: end; padding: 12px 24px 24px; } }
@media (min-width: 1180px) { .clinic-card__aside { flex-direction: column; align-items: stretch; padding: 26px 24px; border-left: 1px solid var(--line); background: linear-gradient(180deg, #F8FAFE, #F2F5FB); } }
.clinic-card__price { display: grid; gap: 2px; }
.clinic-card__price-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.clinic-card__actions { display: grid; gap: 8px; }
@media (min-width: 720px) and (max-width: 1179px) { .clinic-card__actions { grid-template-columns: auto auto; } .clinic-card__actions .btn { width: auto; } }
.price-big { font-size: 26px; font-weight: 750; letter-spacing: -.025em; color: var(--navy); line-height: 1.15; }
.price-unit { display: inline-flex; align-items: center; justify-self: start; padding: 2px 8px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-ink); font-size: 13px; font-weight: 600; }
.price-unknown { font-size: 18px; font-weight: 650; color: var(--muted); }
.price-extra { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- Каталог ---------------------------------------------------------------------- */
.catalog { display: grid; gap: var(--s3); align-items: start; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 300px minmax(0, 1fr); gap: var(--s4); } }
.filters { display: none; }
@media (min-width: 1024px) {
  /* Фильтр развёрнут на всю высоту, без собственной полосы прокрутки */
  .filters { display: block; }
}
/* Прилипает к верху только если целиком помещается в окно — иначе нижняя часть была бы недоступна */
@media (min-width: 1024px) and (min-height: 960px) {
  .filters { position: sticky; top: calc(var(--header-h) + 16px); }
}
.filters .card { padding: var(--s3); border-radius: var(--r-lg); }
.filters__title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: var(--s3); }
.filters__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.filters__actions { display: grid; gap: 8px; margin-top: var(--s1); }
.filters .check { padding: 10px 12px; border-radius: 12px; background: var(--bg); min-height: auto; }
.filters .check:hover { background: var(--blue-soft); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--s2); padding: 10px 10px 10px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.toolbar__count { font-weight: 700; color: var(--navy); }
.toolbar__sort { display: flex; align-items: center; gap: 8px; }
.toolbar__sort .select { min-height: 44px; width: auto; border-color: transparent; background-color: var(--bg); font-weight: 600; }
.filter-open { display: inline-flex; }
@media (min-width: 1024px) { .filter-open { display: none; } }
.sort-explain { font-size: 14px; color: var(--muted); margin: 0 0 var(--s2); }
.sort-explain summary { cursor: pointer; display: inline-flex; min-height: 32px; align-items: center; color: var(--blue-ink); font-weight: 500; }
.sort-explain p { max-width: 75ch; }

.sheet { position: fixed; inset: 0; z-index: 130; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(13, 25, 48, .55); }
.sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lift); animation: sheet-in .22s ease-out; }
@keyframes sheet-in { from { transform: translateY(30px); opacity: .4; } }
.sheet__panel::before { content: ""; align-self: center; width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin-top: 10px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--gutter) 12px; border-bottom: 1px solid var(--line); }
.sheet__body { overflow-y: auto; padding: var(--s3) var(--gutter); }
.sheet__foot { display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }

/* ---------- Профиль клиники ------------------------------------------------------------ */
.profile-head { padding: var(--s3) 0 var(--s3); }
.profile-head h1 { margin: 0 0 14px; max-width: 26ch; font-size: clamp(28px, 3.8vw, 46px); }
.profile-head__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.profile-head__meta > span, .profile-head__meta > a { display: inline-flex; align-items: center; gap: 6px; }
.profile-head__meta .icon { color: var(--blue); }
.profile-head__badges { display: flex; flex-wrap: wrap; gap: 8px; }

.profile { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
.profile > .p-gallery { order: 1; }
.profile > .p-panel { order: 2; }
.profile > .p-main { order: 3; min-width: 0; }
@media (min-width: 1024px) {
  .profile { grid-template-columns: minmax(0, 1fr) 370px; grid-template-areas: "gallery panel" "main panel"; column-gap: var(--s4); row-gap: var(--s3); }
  .profile > .p-gallery { grid-area: gallery; }
  .profile > .p-panel { grid-area: panel; }
  .profile > .p-main { grid-area: main; }
}

.gallery { display: grid; gap: 10px; grid-template-columns: 1fr; }
.gallery__main, .gallery__thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2); cursor: zoom-in; }
.gallery__main { aspect-ratio: 4 / 3; }
@media (min-width: 640px) { .gallery__main { aspect-ratio: 3 / 2; } }
.gallery__thumb { aspect-ratio: 3 / 2; }
.gallery img, .gallery .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery__thumbs { display: none; }
@media (min-width: 640px) {
  .gallery--multi { grid-template-columns: 1.85fr 1fr; }
  .gallery__thumbs { display: grid; gap: 10px; grid-template-rows: 1fr 1fr; }
  .gallery__thumb { aspect-ratio: auto; }
}
.gallery__wrap { position: relative; }
.gallery__all {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .95); color: var(--navy);
  font: 600 15px var(--font); cursor: pointer; box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.gallery__all:hover { background: #fff; color: var(--blue-ink); }
.gallery__empty { aspect-ratio: 3 / 2; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; padding: var(--s3); color: var(--muted); background: linear-gradient(135deg, #E9EEF8, #DCE4F3); }
.gallery__empty .icon { color: #8E9BB5; }
.gallery__caption { font-size: 13px; color: var(--subtle); margin: 8px 2px 0; }

/* Панель цены и обращения — фирменный тёмный блок */
.panel {
  display: grid; gap: 18px; padding: var(--s3); border-radius: var(--r-lg); background: var(--navy); color: #C3CEE2;
  box-shadow: 0 24px 50px rgba(20, 36, 64, .22); position: relative; overflow: hidden;
}
.panel::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 100, 244, .45), transparent 70%); pointer-events: none; }
.panel > * { position: relative; }
@media (min-width: 1024px) {
  .panel { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding: 28px; scrollbar-width: thin; }
}
@media (min-width: 1024px) and (max-height: 700px) { .panel { position: static; max-height: none; } }
.panel__label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #A9BCFF; margin: 0; font-weight: 600; }
.panel__price { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.panel__price .price-big { font-size: clamp(30px, 3vw, 38px); color: #fff; }
.panel__price .price-unit { background: rgba(56, 100, 244, .28); color: #DCE5FF; }
.panel__price .price-unknown { font-size: 24px; color: #fff; }
.panel__note { font-size: 14px; color: #A3B2CC; margin: 4px 0 0; }
.panel__extra { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); font-size: 14px; color: #D6DEEE; }
.panel__extra strong { color: #fff; }
.panel__actions { display: grid; gap: 10px; }
.panel__actions .btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.panel__actions .btn--secondary:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }
.panel__list { list-style: none; margin: 0; padding: 16px 0 0; display: grid; gap: 10px; font-size: 15px; border-top: 1px solid var(--navy-line); }
.panel__list li { display: flex; gap: 10px; align-items: flex-start; color: #E0E7F3; }
.panel__list .icon { color: #8EA8FF; margin-top: 3px; }
.panel__recipient span { color: #A3B2CC; font-size: 14px; }
.panel__tools { display: flex; gap: 8px; border-top: 1px solid var(--navy-line); padding-top: 14px; }
.panel__tools .btn { color: #DCE5FF; flex: 1; white-space: nowrap; padding-inline: 10px; }
.panel__tools .btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.panel__tools .btn[aria-pressed="true"] { background: rgba(56, 100, 244, .35); color: #fff; }
.panel__phone { text-align: center; }

.facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin: 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.fact dt { font-size: 13px; color: var(--subtle); line-height: 1.35; }
.fact dd { margin: 4px 0 0; font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--navy); overflow-wrap: anywhere; }
.fact__note { display: block; font-size: 12px; font-weight: 500; color: var(--subtle); margin-top: 4px; }

.anchors { position: sticky; top: 0; z-index: 40; margin: var(--s3) calc(-1 * var(--gutter)) 0; padding: 8px var(--gutter); background: rgba(244, 246, 250, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .anchors { top: var(--header-h); margin-inline: 0; padding-inline: 0; } }
.anchors ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.anchors ul::-webkit-scrollbar { display: none; }
.anchors a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; white-space: nowrap; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: background .15s, color .15s; }
.anchors a:hover { color: var(--navy); background: var(--surface); }
.anchors a.is-active { color: #fff; background: var(--navy); }

.p-section { padding-top: var(--s5); }
.p-section > h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.p-section > h2 small { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-ink); font-size: 15px; font-weight: 700; letter-spacing: 0; }

/* Прайс */
.price-group { margin-bottom: var(--s4); }
.price-group__title { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 8px; }
.price-group__title::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--blue); }
.price-group__note { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th { text-align: left; font-size: 12px; color: var(--subtle); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; background: #F7F9FC; border-bottom: 1px solid var(--line); }
.price-table td { padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.price-table tbody tr { transition: background .15s; }
.price-table tbody tr:hover { background: #FAFBFE; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table .offer-title { font-weight: 700; font-size: 16px; display: block; color: var(--navy); line-height: 1.3; }
.price-table .offer-price { display: block; font-weight: 750; font-size: 20px; white-space: nowrap; color: var(--navy); letter-spacing: -.02em; margin-bottom: 4px; }
.price-table .offer-fresh { display: block; font-size: 12.5px; color: var(--subtle); margin-top: 6px; line-height: 1.4; }
.offer-includes ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.offer-includes li { position: relative; padding-left: 18px; }
.offer-includes li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 5px; border-left: 1.8px solid var(--blue); border-bottom: 1.8px solid var(--blue); transform: rotate(-45deg); }
.offer-includes details summary { cursor: pointer; color: var(--blue-ink); font-size: 14px; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.offer-includes details ul { margin-top: 4px; }
.offer-excludes { font-size: 13px; color: var(--muted); margin-top: 8px; }
.offer-branch { display: block; font-size: 13px; color: var(--subtle); margin-top: 4px; }
.offer-cell-action { width: 1%; }
.offer-cell-action .btn { white-space: normal; width: 132px; min-height: 44px; padding-block: 8px; line-height: 1.25; }
@media (min-width: 1280px) {
  .price-table { table-layout: auto; }
  .price-table th, .price-table td { padding-inline: 14px; }
  .price-table th:first-child, .price-table td:first-child { padding-left: 18px; }
  .price-table td { overflow-wrap: break-word; }
  .price-table .col-title { width: 28%; }
  .price-table .col-price { width: 22%; }
  .price-table .col-action { width: 190px; }
  .price-table--c6 { table-layout: fixed; }
  .price-table--c6 .col-title { width: 20%; } .price-table--c6 .col-method { width: 9%; } .price-table--c6 .col-volume { width: 12%; }
  .price-table--c6 .col-price { width: 19%; } .price-table--c6 .col-incl { width: 21%; } .price-table--c6 .col-action { width: 19%; }
  .price-table .offer-price { white-space: normal; }
  .offer-cell-action .btn { width: 100%; padding-inline: 10px; }
}
tr.is-expired td { color: var(--subtle); background: #FAFBFD; }
tr.is-expired .offer-price { text-decoration: line-through; color: var(--subtle); }
@media (max-width: 1279px) {
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table { border: 0; background: transparent; overflow: visible; box-shadow: none; }
  .price-table thead { display: none; }
  .price-table tr { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
  .price-table td { border: 0; padding: 5px 0; }
  .price-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
  .price-table td.offer-cell-title { padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
  .price-table td.offer-cell-title::before, .price-table td.offer-cell-action::before { display: none; }
  .price-table td[data-label="Метод"], .price-table td[data-label="Объём"] { display: inline-block; width: 49%; vertical-align: top; }
  .price-table td.offer-cell-action { padding-top: 12px; width: 100%; }
  .price-table td.offer-cell-action .btn { width: 100%; }
  .price-table .offer-price { font-size: 24px; }
}

.cta-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: var(--s3); padding: 20px 22px; border-radius: var(--r-lg); background: linear-gradient(110deg, #EAF0FE, #F6F8FE); border: 1px solid #DCE5FC; }
.cta-strip__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 15px; background: var(--blue); color: #fff; flex: none; }
.cta-strip__text { flex: 1 1 260px; display: grid; gap: 2px; }
.cta-strip__text strong { color: var(--navy); font-size: 17px; }
.cta-strip__text span { color: var(--muted); font-size: 15px; }
@media (max-width: 559px) { .cta-strip .btn { width: 100%; } }

.cta-band { position: relative; overflow: hidden; display: grid; gap: var(--s3); align-items: center; margin-top: var(--s6); padding: var(--s4) var(--s3); border-radius: var(--r-xl); background: var(--navy); color: #C3CEE2; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 100% 0%, rgba(56, 100, 244, .45), transparent 70%); pointer-events: none; }
.cta-band::after { content: ""; position: absolute; right: -40px; bottom: -80px; width: 360px; height: 300px; background: url("/assets/img/hero-lines.svg") no-repeat center / contain; opacity: .35; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; padding: var(--s5); } }
.cta-band h2 { color: #fff; margin-bottom: 10px; font-size: clamp(22px, 2.6vw, 32px); }
.cta-band p { margin: 0; max-width: 60ch; }
.cta-band__actions { display: grid; gap: 10px; justify-items: start; }
@media (min-width: 900px) { .cta-band__actions { justify-items: end; } }
.cta-band__price { color: #fff; font-weight: 650; }
@media (max-width: 559px) { .cta-band__actions, .cta-band__actions .btn { width: 100%; } }

/* Врачи */
.doctor-grid { display: grid; gap: var(--s2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .doctor-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s3); } }
.doctor-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.doctor-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.doctor-card__photo { position: relative; display: block; aspect-ratio: 4 / 4.2; background: linear-gradient(160deg, #E4EBFA, #CFDAF1); overflow: hidden; }
.doctor-card__photo img, .doctor-card__photo .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.doctor-card__exp { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 9px; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: 13px; font-weight: 650; box-shadow: var(--shadow-sm); }
.doctor-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
@media (min-width: 768px) { .doctor-card__body { padding: 18px 20px 20px; } }
.doctor-card__name { font-size: 17px; margin: 0; line-height: 1.25; }
.doctor-card__name a { color: var(--navy); text-decoration: none; }
.doctor-card__name a:hover { color: var(--blue-ink); }
.doctor-card__spec { color: var(--muted); font-size: 14px; margin: 0; }
.doctor-card__tags { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 2px 0 0; padding: 0; }
.doctor-card__where { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--subtle); margin: 0; }
.doctor-card__where .icon { margin-top: 3px; color: var(--blue); }
.doctor-card__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
@media (max-width: 479px) { .doctor-card__actions .btn { width: 100%; } .doctor-card__body { padding: 14px; } .doctor-card__name { font-size: 16px; } }
.more-list:not(.is-open) > .is-extra { display: none; }
.no-js .more-list > .is-extra { display: flex; }

/* Профиль врача */
.doctor-hero { display: grid; gap: var(--s4); margin: var(--s2) 0 0; padding: var(--s3); border-radius: var(--r-xl); background: linear-gradient(135deg, #FFFFFF 0%, #EEF3FF 100%); border: 1px solid #E3E9F6; }
@media (min-width: 900px) { .doctor-hero { grid-template-columns: 260px minmax(0, 1fr) 340px; align-items: start; padding: var(--s5); } }
.doctor-hero__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, #E4EBFA, #CFDAF1); max-width: 260px; }
.doctor-hero__photo img, .doctor-hero__photo .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.doctor-hero h1 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 8px; }
.doctor-hero__spec { font-size: 18px; color: var(--muted); margin-bottom: var(--s3); }
.doctor-hero .panel { position: relative; top: auto; max-height: none; overflow: hidden; }
@media (max-width: 899px) { .doctor-hero__photo { max-width: 200px; } }
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts-list li { display: flex; gap: 12px; align-items: flex-start; }
.facts-list .icon { color: var(--blue); margin-top: 3px; }

/* Результаты */
.case-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.case-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--surface); }
.pair figure { position: relative; margin: 0; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pair figcaption { position: absolute; left: 10px; top: 10px; background: rgba(13, 25, 48, .78); color: #fff; font-size: 12px; font-weight: 650; padding: 4px 9px; border-radius: 8px; backdrop-filter: blur(4px); }
.pair figure:last-child figcaption { background: var(--blue); }
.case-card__body { padding: 18px 20px 20px; display: grid; gap: 8px; font-size: 15px; }
.case-card__title { font-size: 17px; margin: 0; line-height: 1.3; }
.case-card__title a { color: var(--navy); text-decoration: none; }
.case-card__title a:hover { color: var(--blue-ink); }
.case-card__params { display: flex; flex-wrap: wrap; gap: 6px; }
.disclaimer { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.disclaimer .icon { color: var(--blue); margin-top: 2px; }

/* Отзывы */
.reviews-summary { display: grid; gap: var(--s3); grid-template-columns: 1fr; padding: var(--s3); margin-bottom: var(--s2); }
@media (min-width: 720px) { .reviews-summary { grid-template-columns: 220px 1fr; align-items: center; } }
.reviews-summary__score { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--navy); margin-bottom: 6px; }
.dist { display: grid; gap: 6px; font-size: 14px; }
.dist__row { display: grid; grid-template-columns: 16px 1fr 30px; gap: 10px; align-items: center; }
.dist__bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.dist__bar span { display: block; height: 100%; border-radius: 4px; background: var(--star); }
.review { padding: var(--s3); }
.review__head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 8px; }
.review__author { font-weight: 700; color: var(--navy); }
.review__date { color: var(--subtle); font-size: 14px; }
.review p { margin: 6px 0 0; }

/* Лицензии и описание */
.license { padding: var(--s3); display: grid; gap: 12px; }
.license__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.license__head strong { font-size: 17px; color: var(--navy); }
.license dl { display: grid; grid-template-columns: minmax(130px, 220px) minmax(0, 1fr); gap: 10px 20px; margin: 0; font-size: 15px; }
.license dt { color: var(--subtle); }
.license dd { margin: 0; overflow-wrap: anywhere; color: var(--navy); }
@media (max-width: 559px) { .license dl { grid-template-columns: 1fr; gap: 2px; } .license dd { margin-bottom: 10px; } }
.about-facts { padding: var(--s3); margin-bottom: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* Филиалы */
.branch-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s2); }
.branch-tabs button { min-height: 40px; border-radius: 999px; }
.branch-tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.branches { display: grid; gap: 12px; }
@media (min-width: 900px) { .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.branch { padding: 20px 22px; display: grid; gap: 10px; align-content: start; }
.branch__title { font-size: 17px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.branch__rows { display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.branch__rows > span { display: flex; gap: 8px; align-items: flex-start; }
.branch__rows .icon { margin-top: 3px; color: var(--blue); }
.branch__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.collapse__body { position: relative; }
.collapse.is-collapsed .collapse__body { max-height: 260px; overflow: hidden; }
.collapse.is-collapsed .collapse__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(244, 246, 250, 0), var(--bg)); }

.faq-section h2 { margin-bottom: var(--s3); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, box-shadow .2s; }
.faq details[open] { border-color: var(--blue-100); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 650; list-style: none; position: relative; min-height: 56px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { position: absolute; right: 16px; top: 15px; width: 28px; height: 28px; border-radius: 9px; background: var(--blue-soft); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--blue); transition: transform .2s; }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon::after { transform: rotate(0); }
.faq__answer { padding: 0 20px 18px; color: var(--muted); }

/* Мобильная панель */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; gap: 10px; align-items: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20, 36, 64, .1); backdrop-filter: blur(12px); transition: transform .2s;
}
.mobile-bar .btn { flex: 1; }
.mobile-bar .icon-btn { width: 50px; height: 50px; border-radius: 14px; }
body.has-mobile-bar { --mobile-bar-h: 74px; padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
body.is-typing .mobile-bar, body.modal-open .mobile-bar { transform: translateY(115%); }
@media (min-width: 1024px) { .mobile-bar { display: none; } body.has-mobile-bar { padding-bottom: 0; --mobile-bar-h: 0px; } }

/* Модальное окно и лайтбокс */
.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal { align-items: center; padding: var(--s3); } }
.modal__backdrop { position: absolute; inset: 0; background: rgba(13, 25, 48, .6); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative; width: 100%; max-width: 540px; max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lift);
  padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom)); animation: sheet-in .22s ease-out;
}
@media (min-width: 640px) { .modal__dialog { border-radius: var(--r-xl); padding: var(--s4) var(--s4); } }
.modal__close { position: absolute; top: 12px; right: 12px; border-color: transparent; background: var(--surface-2); }
.modal__title { font-size: 24px; margin: 0 52px 6px 0; }
.modal__sub { color: var(--muted); font-size: 15px; margin: 0 0 var(--s3); padding: 10px 14px; border-radius: var(--r-sm); background: var(--bg); }
.modal__sub:empty { display: none; }
body.modal-open { overflow: hidden; }

.lightbox { position: fixed; inset: 0; z-index: 160; background: rgba(8, 14, 28, .96); display: flex; flex-direction: column; color: #fff; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); font-weight: 600; }
.lightbox__stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 var(--gutter); touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 14px; } .lightbox__nav--next { right: 14px; }
.lightbox .icon-btn { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; width: 48px; height: 48px; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__caption { padding: 12px var(--gutter) calc(16px + env(safe-area-inset-bottom)); text-align: center; color: #C7D2E6; font-size: 14px; }

/* Статьи */
.article-card { overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.article-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.article-card__media { aspect-ratio: 16 / 9; position: relative; background: linear-gradient(135deg, #E4EBFA, #CFDAF1); }
.article-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.article-card__title { font-size: 19px; margin: 0; line-height: 1.3; }
.article-card__title a { color: var(--navy); text-decoration: none; }
.article-card__title a:hover { color: var(--blue-ink); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin: 0; }
.article-wrap { max-width: 760px; }
.article-wrap .prose { font-size: 18px; line-height: 1.7; }

/* Сравнение */
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.compare { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 210px; font-size: 15px; }
.compare thead th, .compare thead td { background: #F7F9FC; border-bottom: 1px solid var(--line-strong); }
.compare tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); font-weight: 650; min-width: 140px; max-width: 170px; font-size: 14px; color: var(--muted); box-shadow: 1px 0 0 var(--line); }
.compare tbody tr:nth-child(even) td, .compare tbody tr:nth-child(even) th { background: #FAFBFE; }
.compare td.is-empty { color: var(--subtle); }
.compare__name a { font-weight: 700; color: var(--navy); font-size: 16px; text-decoration: none; }
.compare__name a:hover { color: var(--blue-ink); }
@media (max-width: 767px) { .compare th, .compare td { min-width: 170px; padding: 12px; } .compare tbody th { min-width: 112px; } }

/* Ошибки, спасибо, предпросмотр */
.error-page { text-align: center; padding: var(--s6) 0 0; }
.error-page__code { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 120px; padding: 0 24px; border-radius: 36px; background: var(--navy); color: #fff; font-size: 52px; font-weight: 800; letter-spacing: -.03em; margin-bottom: var(--s3); box-shadow: 0 20px 40px rgba(20, 36, 64, .25); }
.error-page__code .icon { width: 48px; height: 48px; }
.preview-bar { background: var(--warn-soft); color: var(--warn); text-align: center; padding: 10px var(--gutter); font-weight: 600; font-size: 14px; }

/* Форма подбора на отдельной странице */
.lead-page { display: grid; gap: var(--s4); margin-top: var(--s2); align-items: start; }
@media (min-width: 960px) { .lead-page { grid-template-columns: 1fr 520px; gap: var(--s5); } }
.lead-page__intro { padding: var(--s4) var(--s3); border-radius: var(--r-xl); background: var(--navy); color: #C3CEE2; position: relative; overflow: hidden; }
.lead-page__intro::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 280px; background: url("/assets/img/hero-lines.svg") no-repeat center / contain; opacity: .4; }
.lead-page__intro > * { position: relative; z-index: 1; }
@media (min-width: 768px) { .lead-page__intro { padding: var(--s5); } }
.lead-page__intro h1 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); }
.lead-page__intro .facts-list li { color: #E0E7F3; }
.lead-page__intro .facts-list .icon { color: #8EA8FF; }
.lead-page__intro a { color: #C9D6FF; }

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

@media print {
  .header, .footer, .mobile-bar, .anchors, .clinic-card__tools, .panel__actions, .cta-strip, .cta-band { display: none !important; }
  .panel { background: #fff; color: #000; box-shadow: none; }
}

/* Итерация 2: уточнения после визуальной проверки */
.footer .container > .footer__grid:first-child { padding-top: var(--s5); }
.lead-page__sub { font-size: 18px; color: #C3CEE2; margin-bottom: var(--s3); }
.lead-page__intro .facts-list { padding-top: var(--s3); border-top: 1px solid var(--navy-line); }
.doctor-hero .facts-list { font-size: 15px; }
.doctor-hero .facts-list .subtle { font-size: 14px; }
.compare thead th { border-bottom: 0; padding-bottom: 6px; vertical-align: bottom; }
.compare__actions td { padding-top: 6px; }
.compare__actions td > div { display: flex; flex-wrap: wrap; gap: 4px; }
.compare__actions .btn--ghost { padding-inline: 10px; }
@media (max-width: 767px) {
  .lead-page { gap: var(--s2); }
  .lead-page__intro { padding: var(--s3) 20px; border-radius: var(--r-lg); }
  .lead-page__intro .facts-list { display: none; }
  .lead-page__sub { font-size: 16px; margin-bottom: 0; }
  .lead-page .card--pad { padding: 20px; }
}
@media (min-width: 720px) and (max-width: 1179px) {
  .clinic-card__aside { flex-wrap: wrap; }
  .clinic-card__actions .btn { white-space: nowrap; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .price-table tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .price-table td.offer-cell-title, .price-table td.offer-cell-action { grid-column: 1 / -1; }
  .price-table td[data-label="Метод"], .price-table td[data-label="Объём"] { width: auto; }
  .price-table td.offer-cell-action .btn { width: auto; }
}
.anchors ul { position: relative; }

/* ---------- Страница «О проекте» ---------------------------------------------- */
.about-hero { width: calc(100% - 2 * var(--gutter)); max-width: var(--container); margin: var(--s2) auto 0; border-radius: var(--r-xl); padding-bottom: var(--s3); }
.about-hero .container { padding-inline: clamp(20px, 4vw, 56px); }
.about-hero .hero__title { max-width: 18ch; font-size: clamp(32px, 4.6vw, 56px); }
.about-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) { .about-hero__actions .btn { width: 100%; } .about-hero { border-radius: var(--r-lg); } }
.about-hero__visual { position: relative; min-height: 340px; display: none; }
@media (min-width: 1024px) { .about-hero__visual { display: flex; align-items: center; justify-content: center; } }
.about-hero__visual .hero__lines { right: -60px; top: -40px; width: 110%; opacity: .7; }
.price-anatomy { position: relative; width: 100%; max-width: 340px; padding: 24px; border-radius: 22px; background: #fff; color: var(--navy); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.price-anatomy__label { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.price-anatomy__sum { margin: 0 0 16px; font-size: 32px; font-weight: 750; letter-spacing: -.025em; }
.price-anatomy__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price-anatomy__rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-size: 14px; color: var(--muted); }
.price-anatomy__key { font-weight: 650; color: var(--navy); }

.versus { display: grid; grid-template-columns: 1fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
@media (min-width: 768px) { .versus { grid-template-columns: 1fr 1fr; } }
.versus__head { padding: 16px 24px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.versus__head--before { background: var(--surface-2); color: var(--subtle); }
.versus__head--after { background: var(--navy); color: #fff; }
.versus__cell { display: flex; gap: 12px; align-items: flex-start; padding: 18px 24px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.versus__cell--before { color: var(--muted); background: #FAFBFD; }
.versus__cell--after { color: var(--navy); font-weight: 600; }
.versus__mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 8px; margin-top: -1px; }
.versus__cell--before .versus__mark { background: var(--surface-2); color: var(--subtle); }
.versus__cell--after .versus__mark { background: var(--blue); color: #fff; }
@media (min-width: 768px) { .versus__cell--after { border-left: 1px solid var(--line); background: linear-gradient(90deg, #F5F8FF, #fff); } }
@media (max-width: 767px) {
  /* На телефоне — пары «обычно → у нас» друг под другом */
  .versus__head--after { display: none; }
  .versus__cell--after { border-top: 0; padding-top: 0; }
}

.benefit-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.benefit { position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, background .2s; }
.benefit:hover { background: var(--surface); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.benefit__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 15px; background: var(--blue-soft); color: var(--blue); margin-bottom: 18px; }
.benefit h3 { margin-bottom: 8px; }
.benefit p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.step__num { position: absolute; right: 18px; top: 6px; font-size: 88px; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--blue-soft); pointer-events: none; }
.step__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 15px; background: var(--navy); color: #fff; margin-bottom: 18px; }
.step h3 { position: relative; margin-bottom: 8px; }
.step p { position: relative; margin: 0; color: var(--muted); font-size: 15px; }
@media (min-width: 900px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: 52px; right: -24px; width: 24px; height: 2px; background: var(--blue-100); }
  .steps { overflow: visible; }
  .step { overflow: visible; }
}

.about-intro { max-width: 70ch; margin-top: 14px; color: #B9C6DE; font-size: 17px; }
.about-intro p:last-child { margin-bottom: 0; }
.principles { display: grid; gap: 16px; }
@media (min-width: 900px) { .principles { grid-template-columns: 1fr 1fr; gap: 24px; } }
.principle { padding: 28px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid var(--navy-line); }
.principle h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #fff; }
.principle__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; flex: none; }
.principle--do .principle__icon { background: var(--blue); color: #fff; }
.principle--dont .principle__icon { background: rgba(255, 255, 255, .1); color: #FFB4AC; }
.principle__body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.principle__body li { position: relative; padding-left: 26px; color: #D6DEEE; line-height: 1.55; }
.principle__body li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: #6F8EFF; }
.principle--dont .principle__body li::before { background: rgba(255, 255, 255, .35); }
.principle__body p { color: #B9C6DE; }
.principle__body a, .about-outro a, .about-intro a { color: #C9D6FF; }
.about-outro { margin-top: var(--s3); color: #93A3C2; font-size: 15px; }
.about-outro p { margin: 0; }

.for-clinics { display: grid; gap: var(--s3); align-items: center; padding: var(--s4) var(--s3); border-radius: var(--r-xl); background: linear-gradient(135deg, #FFFFFF 0%, #EEF3FF 100%); border: 1px solid #E3E9F6; }
@media (min-width: 900px) { .for-clinics { grid-template-columns: auto 1fr auto; gap: var(--s4); padding: var(--s5); } }
.for-clinics__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 20px; background: var(--navy); color: #fff; }
.for-clinics__icon .icon { width: 28px; height: 28px; }
.for-clinics h2 { margin-bottom: 10px; }
.for-clinics p:last-child { margin: 0; color: var(--muted); max-width: 62ch; }
@media (max-width: 559px) { .for-clinics .btn { width: 100%; } }
.about-hero__sub p { margin: 0 0 var(--s2); }
.about-hero__sub p:last-child { margin-bottom: var(--s4); }
@media (max-width: 767px) {
  .benefit { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; }
  .benefit__icon { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 13px; margin: 0; }
  .benefit h3 { font-size: 17px; margin-bottom: 4px; }
  .step { padding: 22px 20px; }
  .step__num { font-size: 64px; }
  .principle { padding: 22px 20px; }
}

/* ---------- Страница «Клиникам» ---------------------------------------------- */
.profile-check__rows { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 12px; }
.profile-check__rows li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.profile-check__rows .icon { width: 24px; height: 24px; padding: 5px; border-radius: 8px; background: var(--blue); color: #fff; }
.profile-check__badges { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }

.value-row { display: grid; gap: 16px; }
@media (min-width: 900px) { .value-row { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.value-tile { position: relative; overflow: hidden; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.value-tile::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--blue), rgba(56, 100, 244, .2)); }
.value-tile__num { position: absolute; right: 22px; top: 18px; font-size: 14px; font-weight: 700; color: var(--line-strong); letter-spacing: .05em; }
.value-tile h3 { margin: 0 0 8px; }
.value-tile p { margin: 0; color: var(--muted); font-size: 15px; }

.showcase { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 1100px) { .showcase { grid-template-columns: .85fr 1.15fr; gap: var(--s5); } }
.feature-list { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg); font-weight: 600; font-size: 15px; color: var(--navy); }
.feature-list__icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--surface); color: var(--blue); box-shadow: var(--shadow-sm); }
.showcase__sample { position: relative; padding: 20px; border-radius: var(--r-xl); background: linear-gradient(135deg, #EAF0FE, #F4F6FA); border: 1px solid #DCE5FC; display: grid; gap: 14px; }
@media (min-width: 768px) { .showcase__sample { padding: 28px; } }
.showcase__caption { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--blue-ink); }
.showcase__card .clinic-card { box-shadow: var(--shadow-lift); }
/* Внутри витрины карточка уже, чем в каталоге: колонка цены — под данными */
@media (min-width: 1100px) {
  .showcase__card .clinic-card { grid-template-columns: 200px minmax(0, 1fr); }
  .showcase__card .clinic-card__media { grid-row: 1 / 3; }
  .showcase__card .clinic-card__aside { flex-direction: row; align-items: end; border-left: 0; background: none; padding: 8px 24px 24px; flex-wrap: wrap; }
  .showcase__card .clinic-card__actions { grid-template-columns: auto auto; }
  .showcase__card .clinic-card__actions .btn { width: auto; white-space: nowrap; }
}

.send-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
@media (min-width: 768px) { .send-item { flex-direction: column; gap: 16px; padding: 22px; } }
.send-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--navy); }
.send-item__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }

.rules-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.rule h3 { font-size: 17px; margin: 16px 0 8px; display: block; }
.rule p { margin: 0; color: #B9C6DE; font-size: 15px; }
.rule__icon { background: var(--blue); color: #fff; }
.pick__model p:last-child { margin-bottom: 0; }
.about-hero__sub a { color: #C9D6FF; }
.about-hero__sub a:hover { color: #fff; }

/* «О проекте»: центрированный первый экран */
.about-hero--center { padding-top: var(--s6); }
@media (min-width: 1024px) { .about-hero--center { padding-top: 88px; } }
.about-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 880px; margin: 0 auto; }
.about-hero__title { max-width: 20ch; margin-inline: auto; }
.about-hero__accent { background: linear-gradient(90deg, #7D9BFF, #B7C8FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-hero--center .about-hero__sub { max-width: 64ch; margin-inline: auto; }
.about-hero--center .about-hero__actions { justify-content: center; }
.about-hero__points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; list-style: none; margin: var(--s4) 0 0; padding: 0; }
.about-hero__points li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: #DCE5FF; }
.about-hero__points .icon { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: rgba(56, 100, 244, .3); color: #C9D6FF; }
.about-hero__deco { position: absolute; z-index: 0; width: 440px; max-width: none; height: auto; opacity: .45; pointer-events: none; }
.about-hero__deco--right { right: -120px; top: -60px; }
.about-hero__deco--left { left: -140px; bottom: 40px; transform: scale(-1, -1); opacity: .3; }
.about-hero { position: relative; }
@media (max-width: 767px) {
  .about-hero--center { padding-top: var(--s5); }
  .about-hero__inner { align-items: flex-start; text-align: left; }
  .about-hero__title { margin-inline: 0; }
  .about-hero--center .about-hero__actions { justify-content: flex-start; }
  .about-hero__points { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; }
  .about-hero__deco--left { display: none; }
  .about-hero__deco--right { width: 260px; right: -110px; top: -40px; opacity: .3; }
}
.about-hero--center .about-hero__sub p:last-child { margin-bottom: var(--s3); }
.about-hero__deco--left { bottom: 170px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .about-hero__deco--left { display: none; }
  .about-hero__deco--right { width: 260px; right: -130px; top: -50px; opacity: .3; }
  .about-hero__points { gap: 10px 16px; }
  .about-hero__points li { font-size: 14px; }
}
.about-hero__deco--left { left: -230px; bottom: 150px; }

/* ---------- «Клиникам»: продажа размещения ---------------------------------------- */
.sales-hero .hero__title { max-width: 15ch; }
.sales-hero__visual { display: none; position: relative; }
@media (min-width: 1024px) { .sales-hero__visual { display: block; } }
.mock { position: relative; display: grid; gap: 10px; padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid var(--navy-line); transform: rotate(-2deg); }
.mock__bar { display: flex; gap: 6px; padding: 2px 4px 6px; }
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.mock__ad { padding: 10px; border-radius: 16px; background: rgba(56, 100, 244, .2); border: 1px dashed rgba(169, 188, 255, .6); }
.mock__ad-label { display: inline-block; margin: 0 0 8px 2px; padding: 2px 8px; border-radius: 6px; background: #fff; color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.mock__card { display: grid; grid-template-columns: 70px 1fr 64px; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.mock__card--ad { background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.mock__img { height: 52px; border-radius: 8px; background: rgba(255, 255, 255, .14); }
.mock__card--ad .mock__img { background: linear-gradient(135deg, #DCE5FC, #B9C9F5); }
.mock__lines { display: grid; gap: 6px; }
.mock__lines i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.mock__lines i:nth-child(1) { width: 80%; } .mock__lines i:nth-child(2) { width: 60%; } .mock__lines i:nth-child(3) { width: 40%; }
.mock__card--ad .mock__lines i { background: #E1E6EF; }
.mock__card--ad .mock__lines i:first-child { background: var(--navy); }
.mock__btn { height: 26px; border-radius: 8px; background: var(--blue); }
.mock__btn--muted { background: rgba(255, 255, 255, .14); }
.mock__pin { position: absolute; right: -14px; top: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 650; box-shadow: var(--shadow-blue); transform: rotate(2deg); }
.mock__pin .icon { transform: rotate(180deg); }

.placement-list { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 10px; }
.placement-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--bg); }
.placement-list strong { display: block; color: var(--navy); font-size: 16px; }
.placement-list li > span:last-child > span { display: block; color: var(--muted); font-size: 14px; }

.section__head--center { justify-content: center; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan__name { font-size: 22px; margin: 0 0 6px; }
.plan__lead { margin: 0 0 20px; color: var(--muted); font-size: 15px; min-height: 3em; }
.plan__price { margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 30px; font-weight: 750; letter-spacing: -.025em; color: var(--navy); line-height: 1.1; }
.plan__price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__features { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; flex: 1; align-content: start; }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--navy); line-height: 1.45; }
.plan__features .icon { width: 20px; height: 20px; padding: 4px; flex: none; border-radius: 6px; background: var(--blue-soft); color: var(--blue); margin-top: 1px; }
.plan--featured { background: var(--navy); border-color: var(--navy); color: #C3CEE2; box-shadow: 0 30px 60px rgba(20, 36, 64, .3); overflow: hidden; }
.plan--featured::before { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 100, 244, .5), transparent 70%); pointer-events: none; }
.plan--featured > * { position: relative; }
.plan--featured .plan__name, .plan--featured .plan__price { color: #fff; }
.plan--featured .plan__lead, .plan--featured .plan__price span { color: #A3B2CC; }
.plan--featured .plan__price { border-color: var(--navy-line); }
.plan--featured .plan__features li { color: #E0E7F3; }
.plan--featured .plan__features .icon { background: var(--blue); color: #fff; }
@media (min-width: 960px) { .plan--featured { transform: translateY(-12px); } }
.plan__badge { align-self: flex-start; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plans__note { display: flex; gap: 10px; align-items: flex-start; justify-content: center; max-width: 760px; margin: var(--s4) auto 0; color: var(--muted); font-size: 15px; text-align: left; }
.plans__note .icon { color: var(--blue); margin-top: 3px; }

.prepare { margin-top: var(--s3); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.prepare summary { position: relative; display: flex; align-items: center; gap: 10px; padding: 18px 56px 18px 20px; font-weight: 650; color: var(--navy); cursor: pointer; list-style: none; }
.prepare summary::-webkit-details-marker { display: none; }
.prepare summary .icon { color: var(--blue); }
.prepare[open] .faq__icon::after { transform: rotate(0); }
.prepare ul { list-style: none; margin: 0; padding: 0 20px 20px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.prepare li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.prepare li .icon { color: var(--blue); margin-top: 4px; }

.sales-form { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 1023px) { .sales-form { position: static; } }
.sales-form__title { font-size: 24px; margin-bottom: 8px; }
.sales-form__text { color: var(--muted); font-size: 15px; }
.sales-form__note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--subtle); }
.sales-form__note p { margin: 0; }

/* ---------- «Методология» ------------------------------------------------------- */
.method-head { position: relative; overflow: hidden; display: grid; gap: var(--s4); margin: var(--s2) 0 var(--s4); padding: var(--s4) var(--s3); border-radius: var(--r-xl); background: var(--navy); color: #C3CEE2; }
.method-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 100% 0%, rgba(56, 100, 244, .4), transparent 70%); pointer-events: none; }
.method-head::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.method-head > * { position: relative; z-index: 1; }
@media (min-width: 960px) { .method-head { grid-template-columns: 1.2fr .8fr; align-items: center; gap: var(--s5); padding: var(--s5); } }
.method-head h1 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); max-width: 20ch; margin-bottom: 14px; }
.method-head__lead { font-size: 17px; color: #B9C6DE; max-width: 56ch; margin: 0 0 18px; }
.method-head__lead p { margin: 0 0 8px; }
.method-head__date { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; color: #DCE5FF; }
.method-nav ol { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid var(--navy-line); }
.method-nav a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 8px 14px; border-radius: 12px; color: #E4EAF5; text-decoration: none; font-weight: 600; font-size: 15px; transition: background .15s; }
.method-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.method-nav a span { font-size: 12px; font-weight: 700; color: #8EA8FF; letter-spacing: .04em; }

.method-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.method-rule { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); }
@media (min-width: 768px) { .method-rule { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 32px; } }
.method-rule:target { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft), var(--shadow); }
.method-rule__side { display: flex; align-items: center; gap: 14px; }
@media (min-width: 768px) { .method-rule__side { flex-direction: column; align-items: flex-start; gap: 12px; } }
.method-rule__num { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--blue-100); }
@media (min-width: 768px) { .method-rule__num { font-size: 56px; } }
.method-rule__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--navy); color: #fff; }
.method-rule__body h2 { font-size: clamp(20px, 2vw, 24px); margin: 0 0 10px; }
.method-rule__text { color: var(--muted); max-width: 72ch; }
.method-rule__text p { margin: 0 0 10px; }
.method-rule__text p:last-child { margin-bottom: 0; }
.method-rule__text a { color: var(--blue-ink); }
.method-cta { margin-top: var(--s4); }
.footer .btn--light, .footer .btn--light:hover { color: var(--navy); text-decoration: none; }
.header__cta { white-space: nowrap; }
@media (min-width: 1360px) {
  .header__inner { gap: var(--s2); }
  .nav__link { padding-inline: 10px; }
  .nav__link[aria-current="page"]::after { left: 10px; right: 10px; }
}

/* Подвал: заметная плашка для представителей клиник */
.footer .footer-clinics, .footer .footer-clinics:hover { text-decoration: none; }
.footer-clinics {
  position: relative; display: grid; gap: 16px 24px; align-items: center; margin-top: var(--s5); padding: 22px 24px;
  border-radius: var(--r-lg); background: linear-gradient(110deg, #3864F4 0%, #2A4FD0 55%, #1E3FAE 100%); color: #fff;
  box-shadow: 0 18px 40px rgba(20, 36, 64, .45), inset 0 0 0 1px rgba(255, 255, 255, .18); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.footer-clinics::before { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); pointer-events: none; }
.footer-clinics:hover { transform: translateY(-2px); box-shadow: 0 24px 50px rgba(20, 36, 64, .55), inset 0 0 0 1px rgba(255, 255, 255, .3); color: #fff; }
.footer-clinics > * { position: relative; }
@media (min-width: 768px) { .footer-clinics { grid-template-columns: auto 1fr auto; padding: 26px 32px; } }
.footer-clinics__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .16); color: #fff; }
.footer-clinics__icon .icon { width: 28px; height: 28px; }
.footer-clinics__text { display: grid; gap: 4px; }
.footer-clinics__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #C9D6FF; }
.footer-clinics__text strong { font-size: clamp(18px, 2vw, 24px); line-height: 1.25; letter-spacing: -.01em; }
.footer-clinics__text > span:last-child { color: #DCE5FF; font-size: 15px; }
.footer-clinics__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; background: #fff; color: var(--navy); font-weight: 650; white-space: nowrap; }
.footer-clinics:hover .footer-clinics__btn .icon { transform: translateX(3px); }
.footer-clinics__btn .icon { transition: transform .2s; }
@media (max-width: 767px) { .footer-clinics__btn { width: 100%; } }
@media (prefers-reduced-motion: no-preference) {
  .footer-clinics__icon { animation: clinics-pulse 2.6s ease-in-out infinite; }
  @keyframes clinics-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .4); } 50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
}

/* «О проекте»: небольшой блок о редакции */
.editorial { display: flex; gap: 18px; align-items: flex-start; padding: 24px 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-left: 4px solid var(--blue); }
.editorial__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.editorial h2 { font-size: 20px; margin: 0 0 6px; }
.editorial p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 559px) { .editorial { flex-direction: column; gap: 12px; padding: 18px; } }
.method-rule__text ul { list-style: disc; }
.method-rule__text ol { list-style: decimal; }
.method-rule__text ul, .method-rule__text ol { margin: 0 0 10px; padding-left: 1.3em; }
.method-rule__text li { margin-bottom: 6px; padding-left: 2px; }
.method-rule__text li::marker { color: var(--blue); }
.method-rule__text ul:last-child, .method-rule__text ol:last-child { margin-bottom: 0; }

/* Контакты: почта, телефон и Telegram карточками */
.contact-list { list-style: none; margin: var(--s3) 0; padding: 0; display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--navy); transition: border-color .15s, box-shadow .2s, transform .2s; }
.contact-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--navy); }
.contact-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.contact-card__text { display: grid; gap: 2px; min-width: 0; }
.contact-card__label { font-size: 13px; color: var(--subtle); }
.contact-card__text strong { font-size: 18px; letter-spacing: -.01em; overflow-wrap: anywhere; }

/* Способы связи в формах: три пункта в один ряд на всю ширину */
.lead-form .segmented { display: flex; width: 100%; }
.lead-form .segmented label { flex: 1 1 0; min-width: 0; }
.lead-form .segmented span { width: 100%; justify-content: center; padding: 0 8px; gap: 6px; white-space: nowrap; }
@media (max-width: 380px) { .lead-form .segmented span { font-size: 14px; padding: 0 4px; gap: 4px; } }

/* ---------- «Вопросы и ответы» ---------------------------------------------------- */
.faq-head .method-head__lead { max-width: 52ch; }
.faq-search { display: flex; align-items: center; gap: 10px; max-width: 480px; margin-top: 4px; padding: 0 16px; border-radius: 16px; background: #fff; color: var(--subtle); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.faq-search[hidden] { display: none; }
.faq-search:focus-within { box-shadow: 0 0 0 3px rgba(111, 142, 255, .6), 0 12px 30px rgba(0, 0, 0, .25); }
.faq-search .icon { color: var(--blue); }
.faq-search input { flex: 1; min-width: 0; min-height: 54px; border: 0; background: transparent; color: var(--navy); font: 500 16px var(--font); }
.faq-search input:focus { outline: none; }
.faq-search input::placeholder { color: #98A3B8; font-weight: 400; }

.faq-layout { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s5); } }
.faq-groups { display: grid; gap: var(--s5); min-width: 0; }
.faq-group { scroll-margin-top: calc(var(--header-h) + 16px); }
.faq-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.faq-group__head h2 { margin: 0; font-size: clamp(20px, 2.2vw, 26px); }
.faq-group__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--navy); color: #fff; }
.faq-group__count { margin-left: auto; min-width: 30px; height: 30px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: 14px; font-weight: 700; }
.faq-group .faq summary { font-size: 17px; }
.faq__answer p { margin: 0 0 10px; }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__answer ul, .faq__answer ol { margin: 0 0 10px; padding-left: 1.3em; }
.faq__answer li { margin-bottom: 6px; }
.faq__answer li::marker { color: var(--blue); }
.faq__answer a { color: var(--blue-ink); }

.faq-aside { display: grid; gap: 12px; }
@media (min-width: 1024px) { .faq-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.faq-aside__card { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 26px; border-radius: var(--r-lg); background: var(--navy); color: #C3CEE2; box-shadow: 0 24px 50px rgba(20, 36, 64, .22); }
.faq-aside__card::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 100, 244, .45), transparent 70%); pointer-events: none; }
.faq-aside__card > * { position: relative; }
.faq-aside__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 15px; background: var(--blue); color: #fff; }
.faq-aside__card h2 { margin: 4px 0 0; color: #fff; font-size: 22px; }
.faq-aside__card p { margin: 0; font-size: 15px; }
.faq-aside__card .btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.faq-aside__card .btn--secondary:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }
.faq-aside__mail { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 6px; }
.faq-aside__mail a { color: #DCE5FF; }
.faq-aside__note { margin: 0; padding: 0 6px; font-size: 13px; color: var(--subtle); }

/* ---------- Статьи: список ------------------------------------------------------- */
.blog-hero { position: relative; overflow: hidden; margin: var(--s2) 0 var(--s3); padding: var(--s5) var(--s3); border-radius: var(--r-xl); background: var(--navy); color: #C3CEE2; }
.blog-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 90% 0%, rgba(56, 100, 244, .42), transparent 70%); pointer-events: none; }
.blog-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent 20%, #000); pointer-events: none; }
@media (min-width: 768px) { .blog-hero { padding: 64px var(--s5); } }
.blog-hero__deco { position: absolute; z-index: 0; right: -60px; top: -50px; width: 420px; max-width: none; height: auto; opacity: .5; pointer-events: none; }
@media (max-width: 767px) { .blog-hero__deco { width: 260px; right: -90px; opacity: .3; } }
.blog-hero__inner { position: relative; z-index: 1; max-width: 640px; }
.blog-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); margin-bottom: 14px; }
.blog-hero__lead { font-size: 18px; color: #B9C6DE; margin: 0 0 20px; }
.blog-hero__lead p { margin: 0; }
.blog-hero__count { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .09); font-size: 14px; font-weight: 600; color: #DCE5FF; }

.blog-cats { display: flex; gap: 8px; margin-bottom: var(--s4); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.blog-cats::-webkit-scrollbar { display: none; }
.blog-cats__item { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.blog-cats__item:hover { border-color: var(--blue); color: var(--blue-ink); }
.blog-cats__item[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.post-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s, border-color .2s; }
.post-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: var(--line-strong); }
.post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.post-card__media img:not(.post-card__lines), .post-card__media .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__media img:not(.post-card__lines) { transform: scale(1.04); }
.post-card__media--art, .post-cover--art { background: linear-gradient(135deg, #142440 0%, #1F3A7A 60%, #3864F4 140%); }
.post-card__lines { position: absolute; right: -40px; top: -30px; width: 75%; max-width: none; height: auto; opacity: .55; }
.post-card__art-icon { position: absolute; left: 22px; bottom: 20px; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(4px); }
.post-card__art-icon .icon { width: 28px; height: 28px; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--subtle); }
.post-card__cat { padding: 4px 10px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 650; }
.post-card__read { display: inline-flex; align-items: center; gap: 5px; }
.post-card__title { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.015em; }
.post-card__title a { color: var(--navy); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card__title a:hover { color: var(--blue-ink); }
.post-card__excerpt { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--blue-ink); text-decoration: none; }
.post-card:hover .post-card__more .icon { transform: translateX(3px); }
.post-card__more .icon { transition: transform .2s; }

.post-card--featured { background: var(--navy); border-color: var(--navy); color: #C3CEE2; margin-bottom: var(--s3); box-shadow: 0 24px 50px rgba(20, 36, 64, .25); }
.post-card--featured:hover { border-color: var(--navy); }
@media (min-width: 900px) { .post-card--featured { flex-direction: row; } .post-card--featured .post-card__media { flex: 1.1; aspect-ratio: auto; min-height: 380px; } .post-card--featured .post-card__body { flex: 1; justify-content: center; padding: 40px 44px; } }
.post-card--featured .post-card__meta { color: #93A3C2; }
.post-card--featured .post-card__cat { background: rgba(56, 100, 244, .3); color: #DCE5FF; }
.post-card--featured .post-card__title { font-size: clamp(26px, 3vw, 38px); }
.post-card--featured .post-card__title a { color: #fff; }
.post-card--featured .post-card__title a:hover { color: #C9D6FF; }
.post-card--featured .post-card__excerpt { color: #B9C6DE; font-size: 17px; -webkit-line-clamp: 4; }
.post-card--featured .post-card__more { margin-top: 10px; align-self: flex-start; min-height: 48px; padding: 0 22px; border-radius: 14px; background: #fff; color: var(--navy); }
.post-card--featured .post-card__art-icon { left: 28px; bottom: 28px; width: 72px; height: 72px; border-radius: 22px; }
.post-card--featured .post-card__art-icon .icon { width: 34px; height: 34px; }

.post-grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Статьи: страница статьи -------------------------------------------- */
.read-progress { position: fixed; z-index: 200; left: 0; top: 0; height: 3px; width: 0; background: var(--blue); box-shadow: 0 0 8px rgba(56, 100, 244, .6); transition: width .1s linear; }
.post-head { padding: var(--s3) 0 var(--s3); }
.post-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; font-size: 14px; color: var(--subtle); }
.post-head__cat { padding: 5px 12px; border-radius: 9px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 650; text-decoration: none; }
.post-head__cat:hover { background: var(--blue-100); color: var(--blue-press); }
.post-head__read { display: inline-flex; align-items: center; gap: 6px; }
.post-head h1 { max-width: 28ch; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.03em; margin-bottom: 16px; }
.post-head__lead { max-width: 62ch; margin: 0 0 20px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); line-height: 1.55; }
.post-head__people { display: flex; flex-wrap: wrap; gap: 8px 12px; list-style: none; margin: 0; padding: 0; }
.post-head__people li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.post-head__people .icon { color: var(--blue); }
.post-head__people strong { color: var(--navy); font-weight: 650; }

.post-cover { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-height: 560px; margin-bottom: var(--s4); border-radius: var(--r-xl); background: var(--surface-2); box-shadow: var(--shadow); }
.post-cover img:not(.post-card__lines), .post-cover .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-cover--art { aspect-ratio: auto; height: 200px; }
@media (min-width: 768px) { .post-cover--art { height: 260px; } }
.post-cover--art .post-card__lines { width: 520px; right: -40px; top: -60px; }
.post-cover--art .post-card__art-icon { left: 32px; bottom: 32px; width: 80px; height: 80px; border-radius: 24px; }
.post-cover--art .post-card__art-icon .icon { width: 38px; height: 38px; }

.post-layout { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 1024px) { .post-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s5); } }
.post-body { min-width: 0; padding: var(--s3); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .post-body { padding: var(--s5); } }
.post-text { font-size: 18px; line-height: 1.75; color: #24324D; overflow-wrap: break-word; }
.post-text > :first-child { margin-top: 0; }
.post-text p { margin: 0 0 1.1em; }
.post-text h2 { margin: 1.8em 0 .6em; font-size: clamp(24px, 2.4vw, 32px); scroll-margin-top: calc(var(--header-h) + 20px); }
.post-text h3 { margin: 1.5em 0 .5em; font-size: 22px; scroll-margin-top: calc(var(--header-h) + 20px); }
.post-text ul, .post-text ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.post-text li { margin-bottom: .45em; }
.post-text li::marker { color: var(--blue); font-weight: 700; }
.post-text a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-text strong { color: var(--navy); }
.post-text img { max-width: 100%; height: auto; margin: 1.4em 0; border-radius: var(--r); }
.post-text blockquote { margin: 1.6em 0; padding: 20px 24px; border-left: 4px solid var(--blue); border-radius: 0 var(--r) var(--r) 0; background: var(--blue-soft); color: var(--navy); font-size: 1.05em; }
.post-text blockquote p:last-child { margin-bottom: 0; }
.post-text table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; }
.post-text th, .post-text td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.post-text th { background: var(--bg); }

.post-sources { margin-top: var(--s4); padding: var(--s3); border-radius: var(--r); background: var(--bg); }
.post-sources h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; }
.post-sources h2 .icon { color: var(--blue); }
.post-sources .post-text { font-size: 15px; line-height: 1.6; }
.post-disclaimer { display: flex; gap: 10px; align-items: flex-start; margin: var(--s4) 0 0; padding: 14px 16px; border-radius: var(--r-sm); background: var(--blue-soft); color: var(--navy); font-size: 14px; }
.post-disclaimer .icon { color: var(--blue); margin-top: 2px; }

.post-aside { display: grid; gap: 16px; }
@media (min-width: 1024px) { .post-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.post-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.post-toc a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.4; border-left: 3px solid transparent; transition: background .15s, color .15s; }
.post-toc a:hover { background: var(--blue-soft); color: var(--blue-ink); }
.post-toc a.is-active { background: var(--blue-soft); color: var(--blue-ink); border-left-color: var(--blue); font-weight: 600; }
.post-toc__l3 a { padding-left: 24px; font-size: 14px; }
.post-toc--aside { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.post-toc__title { margin: 0 0 10px 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.post-toc--mobile { margin-bottom: var(--s3); border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.post-toc--mobile summary { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 56px 0 16px; font-weight: 650; color: var(--navy); cursor: pointer; list-style: none; }
.post-toc--mobile summary::-webkit-details-marker { display: none; }
.post-toc--mobile summary .icon { color: var(--blue); }
.post-toc--mobile[open] .faq__icon::after { transform: rotate(0); }
.post-toc--mobile ol { padding: 0 8px 10px; }
.post-toc--mobile summary .faq__icon { top: 12px; right: 12px; }
@media (min-width: 1024px) { .post-toc--mobile { display: none; } }
@media (max-width: 1023px) { .post-toc--aside { display: none; } }

.post-help { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 26px; border-radius: var(--r-lg); background: var(--navy); color: #C3CEE2; box-shadow: 0 24px 50px rgba(20, 36, 64, .22); }
.post-help::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 100, 244, .45), transparent 70%); pointer-events: none; }
.post-help > * { position: relative; }
.post-help__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 15px; background: var(--blue); color: #fff; }
.post-help h2 { margin: 4px 0 0; color: #fff; font-size: 21px; }
.post-help p { margin: 0; font-size: 15px; }
.post-help .btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.post-help .btn--secondary:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }
.post-cover { width: 100%; max-height: none; }
@media (min-width: 1024px) { .post-cover:not(.post-cover--art) { aspect-ratio: 21 / 9; } }

/* ---------- Профиль клиники: источник, факты, внешний рейтинг, форма отзыва ---------- */
.section-source { display: flex; align-items: flex-start; gap: 8px; margin: -4px 0 var(--s3); color: var(--muted); font-size: 14px; }
.section-source .icon { flex: none; width: 18px; height: 18px; padding: 3px; margin-top: 1px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); }
.section-source a { color: var(--blue-ink); }

.fact { position: relative; }
.fact--icon { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.fact--icon dd, .fact--icon dt { grid-column: 2; }
.fact__icon { grid-column: 1; grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
@media (min-width: 640px) { .fact--wide { grid-column: span 2; } }
.fact dd { font-size: 17px; }

.price-table .col-method, .price-table .col-volume { white-space: nowrap; }
.price-table--c3 .offer-cell-title { width: auto; }

/* Рейтинг на сторонней площадке (Яндекс Карты и др.) */
.ext-rating { display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center; margin: 0 0 var(--s3); padding: 20px 22px; border-radius: var(--r-lg); background: linear-gradient(135deg, #FFF8E6, #FFFDF6); border: 1px solid #F3E2B0; }
@media (min-width: 720px) { .ext-rating { grid-template-columns: auto 1fr auto; } }
.ext-rating__badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: #FFE9A8; color: #B97800; }
.ext-rating__badge .icon { width: 26px; height: 26px; fill: currentColor; }
.ext-rating__main { display: grid; gap: 4px; min-width: 0; }
.ext-rating__label { font-size: 13px; font-weight: 650; letter-spacing: .02em; color: #7A5A00; }
.ext-rating__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ext-rating__score { font-size: 32px; line-height: 1; letter-spacing: -.03em; color: var(--navy); }
.ext-rating__count { font-size: 15px; color: var(--muted); }
.ext-rating__meta { font-size: 13px; color: var(--subtle); }
.ext-rating__link { justify-self: start; grid-column: 1 / -1; }
@media (min-width: 720px) { .ext-rating__link { grid-column: auto; justify-self: end; } }

/* Форма отзыва: всегда раскрыта */
.review-form { margin-top: var(--s4); padding: var(--s3); border-radius: var(--r-xl); background: linear-gradient(135deg, #FFFFFF 0%, #EEF3FF 100%); border: 1px solid #DCE5FC; box-shadow: var(--shadow); }
@media (min-width: 768px) { .review-form { padding: var(--s4) var(--s5); } }
.review-form__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: var(--s3); }
.review-form__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.review-form__head h3 { margin: 0 0 4px; font-size: 22px; }
.review-form__head p { margin: 0; color: var(--muted); font-size: 15px; }
.review-form .alert { margin-bottom: var(--s2); }
.review-form__form { max-width: 720px; }
.review-form__rating { border: 0; padding: 0; margin: 0; }
.review-form__rating .label { display: block; margin-bottom: 8px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { display: inline-flex; cursor: pointer; padding: 4px; color: #CFD6E4; transition: color .12s, transform .12s; }
.star-input label .icon { width: 36px; height: 36px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--star); }
.star-input label:hover .icon, .star-input input:checked + label .icon { fill: currentColor; }
.star-input input:checked ~ label .icon { fill: currentColor; }
.star-input label:hover ~ label .icon { fill: currentColor; }
.star-input label:active { transform: scale(.92); }
.star-input input:focus-visible + label { outline: 3px solid rgba(56, 100, 244, .45); border-radius: 10px; }
.review-form .input, .review-form .textarea { background: #fff; }
@media (max-width: 559px) { .review-form .btn { width: 100%; } .star-input label .icon { width: 40px; height: 40px; } }

/* ---------- Страница результата пациента ------------------------------------------- */
.result-head { padding: var(--s3) 0 var(--s3); }
.result-head h1 { max-width: 26ch; font-size: clamp(28px, 4vw, 46px); margin-bottom: var(--s3); }
.result-facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; max-width: 940px; }
.result-fact { padding: 14px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.result-fact dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.result-fact dd { margin: 4px 0 0; font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.result-fact a { color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--blue-100); }
.result-fact a:hover { color: var(--blue-ink); border-color: var(--blue); }

.result-layout { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 1024px) { .result-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s5); } }
.result-main { display: grid; gap: var(--s3); min-width: 0; }
.result-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-pair figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2); aspect-ratio: 1 / 1; box-shadow: var(--shadow); }
.result-pair img, .result-pair .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.result-pair figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.result-pair__tag { padding: 6px 12px; border-radius: 10px; background: rgba(13, 25, 48, .8); color: #fff; font-size: 13px; font-weight: 700; text-shadow: none; backdrop-filter: blur(4px); }
.result-pair__tag--after { background: var(--blue); }
.result-text { font-size: 17px; line-height: 1.7; color: #24324D; }
.result-text p { margin: 0 0 1em; }
.result-source { display: flex; align-items: center; gap: 6px; margin: 0; }

.result-aside { display: grid; gap: 16px; }
@media (min-width: 1024px) { .result-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.res-label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.res-clinic, .res-doctor { overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.res-clinic__photo { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-2); }
.res-clinic__photo img, .res-clinic__photo .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.res-clinic__body { display: grid; gap: 12px; padding: 20px 22px 22px; }
.res-clinic__title { margin: 0; font-size: 22px; line-height: 1.25; }
.res-clinic__title a, .res-doctor__name a { color: var(--navy); text-decoration: none; }
.res-clinic__title a:hover, .res-doctor__name a:hover { color: var(--blue-ink); }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.res-list li { display: flex; gap: 10px; align-items: flex-start; }
.res-list .icon { flex: none; margin-top: 2px; color: var(--blue); }
.res-list strong { color: var(--navy); }
.res-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.res-badges:empty { display: none; }
.res-doctor { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px; }
.res-doctor__photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: linear-gradient(160deg, #E4EBFA, #CFDAF1); }
.res-doctor__photo img, .res-doctor__photo .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.res-doctor__body { display: grid; gap: 4px; min-width: 0; }
.res-doctor__name { margin: 0; font-size: 18px; line-height: 1.25; }
.res-doctor__spec { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.result-cta { position: static; max-height: none; }
@media (max-width: 559px) { .result-pair { gap: 6px; } .result-pair figure { border-radius: var(--r); } .result-fact { padding: 12px 14px; } }
@media (min-width: 1280px) {
  .price-table td.offer-cell-action { width: 190px; }
  .price-table:not(.price-table--c6) .col-action { width: 190px; }
  .price-table--c6 td.offer-cell-action { width: auto; }
}
.result-cta { position: relative; overflow: hidden; max-height: none; top: auto; }
/* Факты с иконкой (адрес, метро, филиалы) — на телефоне во всю ширину, слова не рвутся */
@media (max-width: 639px) { .fact--icon { grid-column: 1 / -1; } }
.fact--icon dd { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.fact__note { overflow-wrap: break-word; }

/* Форма отзыва: фото до и после */
.review-photos { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.review-photos .label small { font-weight: 400; color: var(--subtle); }
.review-photos__grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.photo-pick { position: relative; display: block; cursor: pointer; border-radius: var(--r); border: 2px dashed var(--line-strong); background: var(--surface); overflow: hidden; transition: border-color .15s, background .15s; min-height: 170px; }
.photo-pick:hover, .photo-pick:focus-within { border-color: var(--blue); background: var(--blue-soft); }
.photo-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-pick__body { position: relative; display: grid; place-items: center; align-content: center; gap: 6px; padding: 20px 12px; min-height: 170px; text-align: center; color: var(--muted); }
.photo-pick__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.photo-pick__body strong { color: var(--navy); font-size: 16px; }
.photo-pick__body small { font-size: 13px; overflow-wrap: anywhere; }
.photo-pick__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-pick.has-file { border-style: solid; border-color: var(--blue); }
.photo-pick.has-file .photo-pick__icon { display: none; }
.photo-pick.has-file .photo-pick__body strong, .photo-pick.has-file .photo-pick__body small { position: relative; z-index: 1; align-self: end; padding: 4px 10px; border-radius: 8px; background: rgba(13, 25, 48, .75); color: #fff; }
.photo-pick.has-file .photo-pick__body { align-content: end; justify-items: start; }
.review-photos__consent { font-size: 14px; }

/* Фото в опубликованном отзыве */
.review__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 10px; margin-top: 12px; }
.review__photo { position: relative; display: block; overflow: hidden; border-radius: var(--r-sm); aspect-ratio: 4 / 3; background: var(--surface-2); }
.review__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.review__photo:hover img { transform: scale(1.04); }
.review__photo span { position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 8px; background: rgba(13, 25, 48, .8); color: #fff; font-size: 12px; font-weight: 700; }
@media (max-width: 479px) { .review__photos { grid-template-columns: 1fr 1fr; } .photo-pick, .photo-pick__body { min-height: 150px; } }
/* Карточка врача: кнопки на всю ширину блока */
.doctor-card__actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; padding-top: 10px; }
.doctor-card__actions .btn { width: 100%; }

/* Факты под фото: по два в ряд на компьютере */
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact--wide { grid-column: auto; }
}/* Таблица цен: когда колонок меньше шести, кнопка не растягивается */
@media (min-width: 1280px) {
  .price-table:not(.price-table--c6) { table-layout: fixed; }
  .price-table:not(.price-table--c6) .col-title { width: 34%; }
  .price-table--c5 .col-title { width: 26%; }
  .price-table:not(.price-table--c6) .col-price { width: auto; }
  .price-table:not(.price-table--c6) .col-action,
  .price-table:not(.price-table--c6) td.offer-cell-action { width: 190px; }
}

/* Иконки фактов: на телефоне во всю ширину только длинные (адрес, метро, филиалы) */
@media (max-width: 639px) { .fact--icon { grid-column: auto; } .fact--icon.fact--wide { grid-column: 1 / -1; } }

/* Прайс: названия услуг и цены — полужирным, а не жирным */
.price-table .offer-title { font-weight: 550; }
.price-table .offer-price { font-weight: 600; }

/* «Где принимает» у врача: карточки как на странице результата */
.res-clinics { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .res-clinics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .res-clinics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.res-clinic--mini { display: flex; flex-direction: column; }
.res-clinic--mini .res-clinic__body { flex: 1; align-content: start; }
.res-clinic--mini .btn { margin-top: auto; }

/* Подсказка «кто получит заявку» в формах скрыта (разметка и данные сохранены) */
.form__recipient { display: none; }
