:root {
  --blue-950: #061f36;
  --blue-900: #0a2d4d;
  --blue-800: #13406a;
  --blue-700: #1a6bb3;
  --blue-600: #2180d4;
  --blue-500: #3b97e6;
  --blue-400: #6bb4ef;
  --blue-100: #e6f2fb;
  --blue-50: #f2f8fd;
  --ink: #14202b;
  --ink-soft: #3a4b5c;
  --muted: #6a7b8c;
  --line: #d5e1ec;
  --paper: #ffffff;
  --paper-soft: #f5f8fb;
  --sand: #eef3f7;
  --ok: #1d7a4c;
  --ok-bg: #e8f6ef;
  --danger: #b42318;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 16px 48px rgba(10, 45, 77, 0.1);
  --shadow-sm: 0 8px 24px rgba(10, 45, 77, 0.08);
  --header-h: 76px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --map-h: 280px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-800); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  font-weight: 700;
  color: var(--blue-900);
}
h1 { font-size: clamp(1.9rem, 4.4vw, 3.15rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); }
h3 { font-size: 1.12rem; margin-bottom: 0.4em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container-wide {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 46rem; }
.muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgba(213, 225, 236, 0.9);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-header .container-wide {
  width: min(1280px, calc(100% - 2rem));
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--blue-900);
  flex-shrink: 0;
}

.logo img { width: auto; height: 65px; }

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav a:hover { color: var(--blue-700); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-clinic {
  display: none;
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-clinic:hover { color: var(--blue-800); }

.header-clinic-mobile { display: none; }

.header-phone {
  display: inline;
  color: var(--blue-900);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}

.header-phone:hover { color: var(--blue-700); }

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 920px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

@media (min-width: 1100px) {
  .header-clinic { display: inline; }
}

@media (max-width: 919px) {
  :root {
    --header-h: 64px;
  }

  .site-header .container-wide {
    width: min(1280px, calc(100% - 1.5rem));
  }

  .site-header__inner {
    gap: 0.6rem;
  }

  .logo img {
    height: 44px;
  }

  .header-actions {
    gap: 0.45rem;
    flex-shrink: 0;
    min-width: 0;
  }

  .header-phone {
    font-size: 0.84rem;
    letter-spacing: -0.01em;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .nav {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.25s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .header-clinic-mobile {
    display: block;
    color: var(--blue-700);
  }
}

@media (max-width: 380px) {
  .logo img {
    height: 40px;
  }

  .header-phone {
    font-size: 0.78rem;
  }

  .site-header .container-wide {
    width: min(1280px, calc(100% - 1.25rem));
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--blue-600), var(--blue-700));
  color: #fff;
  box-shadow: 0 10px 24px rgba(33, 128, 212, 0.28);
}

.btn-primary:hover { color: #fff; background: linear-gradient(180deg, #2a8adf, #175fa1); }

.btn-secondary {
  background: #fff;
  color: var(--blue-800);
  border-color: #b7d3ea;
}

.btn-secondary:hover { background: var(--blue-50); color: var(--blue-900); }

.btn-ghost {
  background: transparent;
  color: var(--blue-800);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: auto;
  padding: 0.4rem 0.2rem;
}

.btn-ghost:hover { color: var(--blue-700); transform: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero {
  --hero-curve: 12%;
  --hero-inline: max(1rem, calc((100vw - 1280px) / 2));
  position: relative;
  isolation: isolate;
  min-height: clamp(460px, 72vh, 620px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  background:
    radial-gradient(circle at 14% 18%, rgba(59, 151, 230, 0.07), transparent 32%),
    linear-gradient(180deg, #fbfcfe 0%, #f2f7fc 100%);
  overflow: hidden;
}

.hero__copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    clamp(2.25rem, 5vw, 4rem)
    clamp(1.25rem, 3vw, 2.5rem)
    clamp(2.25rem, 5vw, 4rem)
    var(--hero-inline);
  min-width: 0;
  max-width: 100%;
}

.hero__copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(27, 107, 181, 0.13) 1.15px, transparent 1.15px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1rem;
  color: #b7661e;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  animation: rise 0.7s var(--ease) both;
  text-transform: uppercase;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.35rem;
  animation: rise 0.7s var(--ease) both;
}

.hero__brand-name {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--blue-800);
  letter-spacing: -0.03em;
  line-height: 1;
  position: relative;
  display: inline-block;
  width: fit-content;
  padding-top: 0.55em;
}

.hero__brand-name::before {
  content: "";
  position: absolute;
  left: 0;
  width: 118%;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4BA3E3 0%, #1B6BB5 55%, transparent 100%);
}

.hero__brand-sub {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.4vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
  animation: rise 0.75s 0.08s var(--ease) both;
  max-width: min(20ch, 100%);
}

.hero h1 .line { display: inline; }

.hero h1 .accent {
  color: var(--blue-600);
}

.hero__lead {
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  max-width: 36ch;
  margin-bottom: 1.1rem;
  color: var(--ink-soft);
  animation: rise 0.75s 0.14s var(--ease) both;
}

.hero__phone {
  display: inline-block;
  width: fit-content;
  margin-bottom: 1.25rem;
  color: var(--blue-900);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  animation: rise 0.75s 0.17s var(--ease) both;
}

.hero__phone:hover { color: var(--blue-700); }

.hero__note {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  animation: rise 0.75s 0.24s var(--ease) both;
}

.hero .btn-row {
  animation: rise 0.75s 0.2s var(--ease) both;
  gap: 0.7rem 0.85rem;
  margin-top: 0;
}

.hero__media {
  position: relative;
  z-index: 1;
  min-height: 100%;
}

.hero__media-photo {
  position: absolute;
  inset: 0;
  clip-path: polygon(var(--hero-curve) 0, 100% 0, 100% 100%, 0 100%);
}

.hero__media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  display: block;
}

.hero__media-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(242, 247, 252, 0.98) 0%,
    rgba(242, 247, 252, 0.35) 7%,
    transparent 18%
  );
  clip-path: polygon(var(--hero-curve) 0, 100% 0, 100% 100%, 0 100%);
}

.hero__curve {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__curve svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.hero__callout {
  position: absolute;
  z-index: 4;
  right: 5%;
  bottom: 8%;
  max-width: 13.5rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(215, 226, 236, 0.95);
  border-left: 3px solid var(--blue-500);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11, 44, 74, 0.12);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--blue-900);
  line-height: 1.35;
  animation: rise 0.9s 0.35s var(--ease) both;
  backdrop-filter: blur(6px);
}

.hero--compact { min-height: clamp(420px, 64vh, 560px); }
.hero--corsets .hero__media-photo img { object-position: 60% center; }

.hero--home h1 {
  max-width: min(18em, 100%);
}

.hero--home h1 .line:first-child {
  display: block;
  font-size: 1.08em;
  letter-spacing: -0.04em;
}

.hero--home h1 .accent {
  display: block;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 0.2em;
  color: var(--blue-700);
}

.hero--home .hero__lead {
  max-width: min(42ch, 100%);
}

.limits-note--after {
  margin-top: 1.5rem;
}

.btn-row--after {
  margin-top: 1.5rem;
}

.shorts--after {
  margin-top: 1.5rem;
}

#year .year-media {
  aspect-ratio: 1 / 1;
  background: #ebe6df;
}

#year .year-media img {
  object-fit: contain;
  object-position: center;
  padding: 0.85rem;
}

#year .year-outcomes {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

@media (min-width: 860px) {
  #year .year-outcomes {
    grid-template-columns: 1fr;
  }
}

#year .year-note {
  margin-top: 1rem;
  margin-bottom: 0;
}

@media (min-width: 880px) {
  #year .year-split {
    align-items: stretch;
    grid-template-columns: 0.95fr 1.05fr;
  }

  #year .year-split__media,
  #year .year-split__body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }

  #year .year-split__body {
    justify-content: space-between;
    gap: 0.35rem;
  }

  #year .year-outcomes {
    flex: 1;
    align-content: stretch;
    gap: 0.95rem;
    margin-top: 1.5rem;
  }

  #year .year-note {
    margin-top: 1.15rem;
  }
}

#doctor .care-umbrella a {
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: none;
}

#doctor .care-umbrella a:hover {
  color: var(--blue-900);
  text-decoration: underline;
}

/* Ношение: текст с пунктами + фото без пустой дыры */
.wear-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 880px) {
  .wear-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.9fr);
    gap: 3rem;
  }
}

.wear-layout__copy h2 {
  margin-bottom: 0.65rem;
}

.wear-layout__lead {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}

.wear-points {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(20, 32, 43, 0.12);
}

.wear-point {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(20, 32, 43, 0.1);
}

.wear-point:last-child {
  border-bottom: 0;
}

.wear-point__icon {
  display: grid;
  place-items: start;
  margin-top: 0.15rem;
  color: var(--blue-700);
}

.wear-point__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.wear-point strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--blue-900);
  font-size: 1.02rem;
  line-height: 1.3;
}

.wear-point p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

.wear-layout__note {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(20, 32, 43, 0.12);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.wear-layout__media {
  margin: 0;
}

.media-frame.wear-layout__photo {
  aspect-ratio: 3 / 4;
}

.media-frame.wear-layout__photo img {
  object-position: center 18%;
}

@media (min-width: 880px) {
  .wear-layout__media {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .hero__media {
    order: -1;
    min-width: 0;
    min-height: 300px;
    aspect-ratio: 16 / 11;
  }

  .hero__media-photo {
    position: absolute;
    clip-path: none;
  }

  .hero__media-fade {
    clip-path: none;
    background: linear-gradient(180deg, transparent 45%, rgba(242, 247, 252, 0.92) 88%, #f2f7fc 100%);
  }

  .hero__curve { display: none; }

  .hero__copy {
    padding: 0.35rem 1.25rem 2.25rem;
  }

  .hero__callout { display: none; }

  .hero--hide-media-mobile .hero__media {
    display: none;
  }

  .hero--hide-media-mobile .hero__copy {
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
  }
}

.section {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}

.section--compact {
  padding: clamp(1.6rem, 3.5vw, 2.4rem) 0;
}

.section--soft {
  background:
    radial-gradient(1200px 420px at 10% 0%, rgba(33, 128, 212, 0.08), transparent 60%),
    linear-gradient(180deg, var(--paper-soft), var(--paper));
}

.section--xray,
.section--fit,
.section--hands,
.section--fond {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e8f1f8;
  border-block: 1px solid #d7e5f0;
}

.xray__bg,
.fit__bg,
.hands__bg,
.fond__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.xray__bg picture,
.xray__bg img,
.fit__bg picture,
.fit__bg img,
.hands__bg picture,
.hands__bg img,
.fond__bg picture,
.fond__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.xray__bg::after,
.fit__bg::after,
.hands__bg::after,
.fond__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(232, 241, 248, 0.72) 0%, rgba(232, 241, 248, 0.28) 42%, rgba(232, 241, 248, 0.08) 100%),
    linear-gradient(180deg, rgba(232, 241, 248, 0.35) 0%, transparent 28%, transparent 72%, rgba(232, 241, 248, 0.4) 100%);
}

.fond__bg img {
  object-position: 78% 45%;
}

.fond__bg::after {
  background:
    linear-gradient(90deg, rgba(232, 241, 248, 0.78) 0%, rgba(232, 241, 248, 0.4) 38%, rgba(232, 241, 248, 0.12) 100%),
    linear-gradient(180deg, rgba(232, 241, 248, 0.4) 0%, transparent 30%, transparent 70%, rgba(232, 241, 248, 0.45) 100%);
}

@media (max-width: 760px) {
  .fond__bg img {
    object-position: center 40%;
  }
}

.hands__bg img {
  object-position: 70% 55%;
}

.hands__bg::after {
  background:
    linear-gradient(90deg, rgba(232, 241, 248, 0.7) 0%, rgba(232, 241, 248, 0.22) 40%, rgba(232, 241, 248, 0.02) 100%),
    linear-gradient(180deg, rgba(232, 241, 248, 0.28) 0%, transparent 26%, transparent 74%, rgba(232, 241, 248, 0.34) 100%);
}

@media (max-width: 760px) {
  .hands__bg img {
    object-position: center 62%;
  }
}

.section--xray > .container,
.section--fit > .container,
.section--hands > .container,
.section--fond > .container {
  position: relative;
  z-index: 1;
}

.section--ink {
  background:
    radial-gradient(900px 380px at 90% 10%, rgba(59, 151, 230, 0.18), transparent 55%),
    linear-gradient(160deg, var(--blue-950), var(--blue-900));
  color: #fff;
}

.section--ink h2,
.section--ink h3 { color: #fff; }
.section--ink p,
.section--ink .lead { color: rgba(255,255,255,0.82); }
.section--ink .eyebrow { color: var(--blue-400, #6bb4ef); }

.section__head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section__head p { margin-bottom: 0; }

.split {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 880px) {
  .split { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 2.5rem; }
  .split--reverse > :first-child { order: 2; }
}

@media (max-width: 879px) {
  .path__media { display: none; }
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--blue-100);
  aspect-ratio: 4 / 3;
}

.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 16 / 10; }
.media-frame--video { aspect-ratio: 16 / 9; }

.media-frame img,
.media-frame video,
.media-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.media-caption {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.dir-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .dir-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    align-items: stretch;
  }
}

.dir-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(213, 225, 236, 0.9);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 32px rgba(10, 45, 77, 0.06);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.dir-tile:hover,
.dir-tile:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(33, 128, 212, 0.4);
  box-shadow: 0 20px 44px rgba(10, 45, 77, 0.12);
  color: inherit;
}

.dir-tile:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}

.dir-tile__media {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--blue-100);
}

.dir-tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.dir-tile:hover .dir-tile__media img,
.dir-tile:focus-visible .dir-tile__media img {
  transform: scale(1.045);
}

.dir-tile__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
  padding: 1.25rem 1.25rem 1.4rem;
}

.dir-tile__index {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--blue-700);
}

.dir-tile h3 {
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 1.52rem);
  color: var(--blue-900);
}

.dir-tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.dir-tile__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.85rem;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--blue-700);
}

.dir-tile__more::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.dir-tile:hover .dir-tile__more::after,
.dir-tile:focus-visible .dir-tile__more::after {
  transform: translateX(4px);
}

@media (min-width: 800px) {
  .dir-tile__body {
    padding: 1.35rem 1.4rem 1.5rem;
  }
}

.clinic-line {
  margin-top: 1.25rem;
  padding: 0.95rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.clinic-line a {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.clinic-line a:hover {
  text-decoration: underline;
}

.quiz-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .quiz-grid { grid-template-columns: 1fr 1fr; }
}

.quiz-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.quiz-item:hover {
  border-color: #9fc7e8;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: inherit;
}

.quiz-item__mark {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-800);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.quiz-item strong { display: block; color: var(--blue-900); margin-bottom: 0.15rem; }
.quiz-item span { color: var(--muted); font-size: 0.9rem; }

@media (min-width: 720px) {
  .quiz-item--wide { grid-column: 1 / -1; }
}

.pillars {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillar {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.pillar__num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.7rem;
}

.pillar h3 { font-size: 1.2rem; }
.pillar p { margin: 0; }

.people {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .people { grid-template-columns: 1fr 1fr; }
}

.person {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}

@media (min-width: 520px) {
  .person { grid-template-columns: 120px 1fr; align-items: start; }
}

.person__photo {
  width: 120px;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--blue-100);
}

.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person__photo--initials {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), transparent 45%),
    linear-gradient(160deg, var(--blue-500), var(--blue-800));
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.person h3 { margin-bottom: 0.25rem; }
.person__role {
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}

.person ul { display: grid; gap: 0.3rem; }
.person li {
  position: relative;
  padding-left: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.care {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 960px) {
  .care {
    grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.15fr);
    gap: 2.4rem;
    align-items: stretch;
  }
}

.care__media {
  margin: 0;
}

.care__media .media-frame {
  max-height: 34rem;
}

.care__media .media-frame img {
  object-position: center 30%;
}

@media (max-width: 959px) {
  .care__media .media-frame,
  .care__media .media-frame--tall {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .care__media .media-frame img {
    object-position: center 28%;
  }
}

@media (min-width: 960px) {
  .care__media {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    align-self: start;
  }

  .care__media .media-frame--tall {
    aspect-ratio: 3 / 4;
    height: min(34rem, calc(100vh - var(--header-h) - 3rem));
    max-height: none;
  }
}

.care__body {
  min-width: 0;
}

.care__lead {
  max-width: 38rem;
  font-size: 1.05rem;
  margin-bottom: 1.35rem;
}

.care__actions {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.7rem;
  justify-items: start;
}

.care__phone {
  display: inline-block;
  width: fit-content;
  color: var(--blue-900);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1.2;
}

.care__phone:hover { color: var(--blue-700); }

.care__contact-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.care__actions .btn-row {
  margin-top: 0.7rem;
}

.limits-note {
  max-width: 46rem;
  margin: 0;
  padding-left: 0.95rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.limits-note strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.care-umbrella {
  display: grid;
  gap: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(11, 44, 74, 0.04);
}

.care-umbrella__item {
  display: grid;
  gap: 0.65rem;
  padding: 1.15rem 1.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.care-umbrella__item:last-child {
  border-bottom: 0;
}

.care-umbrella__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  opacity: 0.35;
}

.care-umbrella__item:first-child::before {
  opacity: 1;
}

@media (min-width: 640px) {
  .care-umbrella__item {
    grid-template-columns: 2.6rem 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 1.2rem 1.35rem 1.2rem 1.25rem;
  }
}

.care-umbrella__mark {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--blue-700);
  line-height: 1.4;
  padding-top: 0.15rem;
}

.care-umbrella__item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.care-umbrella__item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.person li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-500);
}

.gallery {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 760px) {
  .gallery { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .gallery__item--lg { grid-row: 1 / span 2; }
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 160px;
  background: var(--blue-100);
  cursor: zoom-in;
  text-align: left;
  color: inherit;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.03); }

.gallery__item:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(transparent, rgba(6,31,54,0.78));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.proof-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 760px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
}

.proof-card {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.proof-card strong {
  color: var(--blue-900);
  font-size: 1.05rem;
}

.proof-card p { margin: 0; color: var(--ink-soft); }

.proof-card__score {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue-700);
  line-height: 1;
}

.proof-card__meta {
  color: var(--muted) !important;
  font-size: 0.9rem;
}

.proof-card--link {
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.proof-card--link:hover {
  border-color: #9fc7e8;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: inherit;
}

.section--rehab {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(820px 360px at 92% 8%, rgba(33, 128, 212, 0.12), transparent 58%),
    radial-gradient(640px 280px at 6% 90%, rgba(29, 122, 76, 0.07), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, #eef4f9 100%);
  border-top: 1px solid #d9e5ef;
  border-bottom: 1px solid #d9e5ef;
}

.section--production {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(760px 320px at 8% 0%, rgba(33, 128, 212, 0.1), transparent 55%),
    radial-gradient(680px 300px at 100% 80%, rgba(10, 45, 77, 0.06), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
}

.section--inogorodnim {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.2rem, 6vw, 5rem);
  color: #fff;
}

.inogorodnim__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.inogorodnim__bg picture,
.inogorodnim__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.inogorodnim__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 31, 54, 0.72) 0%, rgba(6, 31, 54, 0.58) 42%, rgba(6, 31, 54, 0.78) 100%),
    linear-gradient(90deg, rgba(6, 31, 54, 0.55) 0%, rgba(6, 31, 54, 0.25) 55%, rgba(6, 31, 54, 0.45) 100%);
}

.inogorodnim {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.4rem);
}

.inogorodnim__intro {
  max-width: 44rem;
}

.section--inogorodnim .eyebrow {
  color: var(--blue-400);
}

.section--inogorodnim h2,
.section--inogorodnim h3 {
  color: #fff;
}

.section--inogorodnim .lead,
.section--inogorodnim p {
  color: rgba(255, 255, 255, 0.86);
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.city-tags li {
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.inogorodnim__perks {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 700px) {
  .inogorodnim__perks {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (min-width: 1000px) {
  .inogorodnim__perks {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ingo-perk {
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ingo-perk__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: rgba(107, 180, 239, 0.22);
  color: #d7ecff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ingo-perk h3 {
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}

.ingo-perk p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.inogorodnim__stay {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.25rem;
  border-radius: calc(var(--radius-lg) + 4px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 18px 48px rgba(4, 18, 32, 0.28);
}

@media (min-width: 900px) {
  .inogorodnim__stay {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 22rem);
    gap: 1.5rem;
    padding: 1.35rem 1.4rem;
    align-items: center;
  }
}

.inogorodnim__stay-copy {
  max-width: 34rem;
}

.inogorodnim__stay-copy .eyebrow {
  margin-bottom: 0.55rem;
}

.inogorodnim__stay-copy h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin-bottom: 0.65rem;
}

.inogorodnim__stay-copy .btn-row {
  margin-top: 1.15rem;
}

.section--inogorodnim .btn-ghost {
  color: #e8f3fc;
  text-decoration-color: rgba(232, 243, 252, 0.45);
}

.section--inogorodnim .btn-ghost:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.inogorodnim__video {
  margin: 0;
  max-width: 22rem;
  width: 100%;
  justify-self: end;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.55);
}

.inogorodnim__video .clip-card__body {
  padding: 0.75rem 0.9rem 0.85rem;
}

.inogorodnim__video .clip-card__body h3 {
  color: var(--blue-900);
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.inogorodnim__video .clip-card__body p {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.maker {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .maker {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.4rem;
    align-items: center;
  }
}

.maker__copy {
  max-width: 38rem;
}

.maker__copy .eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
}

.maker__copy h2 {
  margin-bottom: 0.7rem;
}

.maker__copy h3 {
  margin: 1.35rem 0 0.4rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.maker__role {
  margin: 0 0 0.7rem;
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.98rem;
}

.maker__photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--blue-100);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.maker__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.mosaic {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(140px, 28vw);
  margin-bottom: 1.6rem;
}

.mosaic__item--hero {
  grid-column: 1 / -1;
  min-height: 220px;
}

@media (min-width: 760px) {
  .mosaic {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(72px, 10.5vw));
    grid-auto-rows: unset;
  }
}

.mosaic__item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  background: var(--blue-100);
  min-height: 140px;
  text-align: left;
  box-shadow: 0 10px 28px rgba(10, 45, 77, 0.08);
}

.mosaic__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 31, 54, 0.72));
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.mosaic__item:hover img,
.mosaic__item:focus-visible img {
  transform: scale(1.06);
}

.mosaic__item:hover::after,
.mosaic__item:focus-visible::after {
  opacity: 1;
}

.mosaic__item:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}

.mosaic__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0.85rem 1rem;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Порядок ячеек: 1 hero · 2 top-right · 3 mid-right · 4–6 bottom row */
@media (min-width: 760px) {
  .mosaic__item { min-height: 0; }
  .mosaic__item:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 5; }
  .mosaic__item:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 3; }
  .mosaic__item:nth-child(3) { grid-column: 8 / 13; grid-row: 3 / 5; }
  .mosaic__item:nth-child(4) { grid-column: 1 / 5; grid-row: 5 / 7; }
  .mosaic__item:nth-child(5) { grid-column: 5 / 9; grid-row: 5 / 7; }
  .mosaic__item:nth-child(6) { grid-column: 9 / 13; grid-row: 5 / 7; }
}

.mosaic__item--tall img {
  object-position: center top;
}

.rehab-videos {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .rehab-videos { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
}

.clip-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(183, 211, 234, 0.95);
  box-shadow:
    0 16px 36px rgba(11, 44, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.clip-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--blue-950);
}

.clip-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.clip-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.clip-card__body h3 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.clip-card__body p {
  margin: 0;
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(4, 18, 32, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] { display: none !important; }

.lightbox__figure {
  margin: 0;
  max-width: min(1040px, 100%);
  max-height: calc(100vh - 2.4rem);
  display: grid;
  gap: 0.7rem;
  justify-items: center;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 5.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox__figure figcaption {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox__nav--prev { left: 0.8rem; }
.lightbox__nav--next { right: 0.8rem; }

@media (max-width: 700px) {
  .lightbox__nav { display: none; }
}

.outcomes {
  display: grid;
  gap: 0.8rem;
}

@media (min-width: 760px) {
  .outcomes { grid-template-columns: repeat(3, 1fr); }
}

.outcome {
  padding: 1.2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.outcome strong {
  display: block;
  color: var(--blue-900);
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

#money {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(720px 280px at 12% 12%, rgba(29, 122, 76, 0.07), transparent 60%),
    radial-gradient(820px 300px at 88% 88%, rgba(33, 128, 212, 0.1), transparent 58%),
    linear-gradient(180deg, #f7fafc 0%, #f2f6fa 100%);
  border-top: 1px solid #dde7f0;
  border-bottom: 1px solid #dde7f0;
}

.money-outcomes {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 860px) {
  .money-outcomes {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
  }
}

.money-outcome {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 10px 28px rgba(11, 44, 74, 0.05);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.money-outcome--ok {
  background: linear-gradient(165deg, #f3fbf6 0%, #fff 55%);
  border-color: rgba(29, 122, 76, 0.18);
}

.money-outcome--mid {
  background: linear-gradient(165deg, #f3f8fd 0%, #fff 55%);
  border-color: rgba(33, 128, 212, 0.18);
}

.money-outcome--pay {
  background: linear-gradient(165deg, #fcf7f0 0%, #fff 55%);
  border-color: rgba(201, 133, 44, 0.22);
}

.money-outcome__icon {
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.money-outcome--ok .money-outcome__icon {
  color: var(--ok);
  background: rgba(29, 122, 76, 0.12);
}

.money-outcome--mid .money-outcome__icon {
  color: var(--blue-700);
  background: rgba(33, 128, 212, 0.12);
}

.money-outcome--pay .money-outcome__icon {
  color: #a86a1f;
  background: rgba(201, 133, 44, 0.14);
}

.money-outcome__body { min-width: 0; }

.money-outcome strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--blue-900);
  font-size: 1.08rem;
  line-height: 1.25;
}

.money-outcome p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (hover: hover) and (pointer: fine) {
  .money-outcome:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(11, 44, 74, 0.09);
  }
}

.money-paths {
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: calc(var(--radius-lg) + 2px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(197, 214, 230, 0.95);
  box-shadow: 0 14px 34px rgba(11, 44, 74, 0.05);
}

.money-paths__lead {
  margin: 0 0 0.95rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 600;
}

.money-paths__list {
  display: grid;
  gap: 0.65rem;
}

.money-path {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  background: var(--paper-soft);
  border: 1px solid transparent;
}

.money-path--focus {
  background: linear-gradient(135deg, rgba(33, 128, 212, 0.08), rgba(33, 128, 212, 0.03));
  border-color: rgba(33, 128, 212, 0.22);
  box-shadow: inset 3px 0 0 var(--blue-500);
}

.money-path__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
}

.money-path__main strong {
  color: var(--blue-900);
  font-size: 1.02rem;
}

.money-path__hint {
  color: var(--muted);
  font-size: 0.86rem;
}

.money-path__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(33, 128, 212, 0.12);
  color: var(--blue-800);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.money-path__meta {
  display: grid;
  gap: 0.55rem 1.25rem;
  margin: 0;
}

@media (min-width: 640px) {
  .money-path__meta {
    grid-template-columns: 1fr 1fr;
  }
}

.money-path__meta dt {
  margin: 0 0 0.12rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.money-path__meta dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .money-outcome { transition: none; }
  .money-outcome:hover { transform: none; }
}

.branches-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 900px) {
  .branches-layout {
    grid-template-columns: minmax(16rem, 0.92fr) minmax(0, 1.2fr);
    gap: 2.4rem;
    align-items: stretch;
  }
}

.branches-intro {
  display: grid;
  gap: 1.15rem;
}

.branches-intro__media {
  margin: 0;
}

.branches-intro__media .media-frame {
  aspect-ratio: 5 / 4;
  max-height: 22rem;
  box-shadow: 0 18px 40px rgba(10, 45, 77, 0.12);
}

.branches-intro__media .media-frame img {
  object-position: 50% 42%;
}

.branches-intro__copy h2 {
  margin-bottom: 0.65rem;
}

.branches-intro__copy > p {
  max-width: 30rem;
}

.branches-intro__note {
  margin: 0.2rem 0 0;
  color: var(--blue-800);
  font-size: 0.95rem;
  font-weight: 600;
  max-width: 30rem;
}

.branch-stack {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 0.15rem 0;
}

@media (min-width: 900px) {
  .branch-stack {
    justify-content: space-between;
    min-height: 100%;
  }
}

.branch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.45rem 0 1.55rem;
  border-bottom: 1px solid rgba(197, 214, 230, 0.85);
}

.branch:first-child {
  padding-top: 0.25rem;
}

.branch:last-child {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}

.branch__ask {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.branch h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.28;
}

.branch--accent h3 {
  color: var(--blue-800);
}

.branch > p:not(.branch__ask) {
  margin: 0.1rem 0 0;
  font-size: 0.97rem;
  color: var(--ink-soft);
  max-width: 38rem;
  line-height: 1.55;
}

.branch__link {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: color 0.2s;
}

.branch__link:hover {
  color: var(--blue-900);
}

.branch--accent .branch__link {
  color: var(--blue-800);
}

@media (max-width: 899px) {
  .branches-intro__media .media-frame {
    aspect-ratio: 16 / 10;
    max-height: none;
  }
}

.path {
  display: grid;
  gap: 0.75rem;
  counter-reset: path;
}

.path__step {
  display: grid;
  gap: 0.5rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  counter-increment: path;
}

@media (min-width: 720px) {
  .path__step {
    grid-template-columns: 56px 1fr;
    align-items: start;
  }
}

.path__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 800;
}

.path__num::before { content: counter(path); }

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.95rem;
}

table.data th,
table.data td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data th {
  background: var(--blue-50);
  color: var(--blue-900);
  font-weight: 700;
}

table.data tr:last-child td { border-bottom: 0; }

/* Эксперимент: редакционный стиль, разделение воздухом и линиями */
#fit.section--soft {
  background: var(--paper-soft);
}

.fit-guide {
  display: grid;
  gap: 2.75rem;
  align-items: start;
}

@media (max-width: 879px) {
  .fit-guide__path--fork {
    padding-top: 2rem;
    border-top: 1px solid rgba(20, 32, 43, 0.12);
  }
}

@media (min-width: 880px) {
  .fit-guide {
    grid-template-columns: 1.15fr 1fr;
    gap: 0 3rem;
    position: relative;
  }

  .fit-guide::before {
    content: "";
    position: absolute;
    top: 0.15rem;
    bottom: 0.15rem;
    left: 52.5%;
    width: 1px;
    background: rgba(20, 32, 43, 0.12);
  }
}

.fit-guide__path {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.fit-guide__path--yes,
.fit-guide__path--fork {
  background: transparent;
}

.fit-guide__head {
  display: grid;
  gap: 0.45rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(20, 32, 43, 0.12);
}

.fit-guide__badge {
  display: none;
}

.fit-guide__head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.fit-guide__path--yes .fit-guide__head h3::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--ok);
  vertical-align: 0.1em;
}

.fit-guide__path--fork .fit-guide__head h3::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: #a86a1f;
  vertical-align: 0.1em;
}

.fit-guide__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  max-width: 34rem;
}

.fit-list,
.fit-fork {
  display: grid;
  gap: 0;
}

.fit-item,
.fit-fork li {
  display: grid;
  gap: 0.35rem;
  padding: 1.45rem 0;
  border: 0;
  border-bottom: 1px solid rgba(20, 32, 43, 0.1);
  border-radius: 0;
  background: transparent;
}

.fit-item:first-child,
.fit-fork li:first-child {
  padding-top: 0.35rem;
}

.fit-item:last-child,
.fit-fork li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fit-item {
  grid-template-columns: 1.5rem 1fr;
  gap: 0.95rem;
  align-items: start;
}

.fit-item__icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.2rem;
  border-radius: 0;
  display: grid;
  place-items: start;
  color: var(--blue-700);
  background: transparent;
  opacity: 0.9;
}

.fit-item__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.fit-guide__path--fork .fit-item__icon {
  color: #a86a1f;
}

.fit-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--blue-900);
  font-size: 1.02rem;
  line-height: 1.3;
  text-wrap: balance;
}

.fit-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.fit-honest {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.75rem;
  padding: 1.5rem 0 0;
  border: 0;
  border-top: 1px solid rgba(20, 32, 43, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (min-width: 760px) {
  .fit-honest {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1.5rem 2rem;
  }
}

.fit-honest__mark {
  display: none;
}

.fit-honest__body strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue-900);
  font-size: 1.05rem;
}

.fit-honest__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 44rem;
}

.fit-honest__link {
  justify-self: start;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--blue-700);
}

.fit-honest__link:hover {
  color: var(--blue-800);
  text-decoration: underline;
}

/* Сравнение: редакционная таблица с ровными колонками */
.diff-board {
  display: grid;
  gap: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.diff-board__heads,
.diff-board__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}

@media (min-width: 760px) {
  .diff-board__heads,
  .diff-board__row {
    grid-template-columns: 8rem minmax(0, 1fr) minmax(0, 1fr);
  }
}

.diff-board__heads {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(20, 32, 43, 0.14);
}

.diff-board__axis {
  display: none;
}

@media (min-width: 760px) {
  .diff-board__axis {
    display: block;
    padding-right: 1rem;
  }
}

.diff-board__head {
  min-width: 0;
}

.diff-board__head--yes,
.diff-board__cell--yes {
  padding-right: 1.35rem;
}

.diff-board__head--no,
.diff-board__cell--no {
  padding-left: 1.35rem;
  border-left: 1px solid rgba(20, 32, 43, 0.1);
}

.diff-board__head--no {
  opacity: 0.92;
}

.diff-board__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.diff-board__head--yes .diff-board__label {
  color: var(--ok);
}

.diff-board__head--no .diff-board__label {
  color: var(--muted);
}

.diff-board__head strong {
  display: block;
  margin: 0 0 0.3rem;
  color: var(--blue-900);
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  line-height: 1.25;
  text-wrap: balance;
}

.diff-board__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.diff-board__body {
  display: grid;
}

.diff-board__row {
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(20, 32, 43, 0.1);
}

.diff-board__row:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

.diff-board__criterion {
  grid-column: 1 / -1;
  margin-bottom: -0.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (min-width: 760px) {
  .diff-board__criterion {
    grid-column: auto;
    margin: 0;
    padding-top: 0.15rem;
    align-self: start;
    line-height: 1.35;
  }
}

.diff-board__cell {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.65rem;
  align-items: start;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.diff-board__cell--yes {
  font-weight: 650;
  color: var(--blue-900);
}

.diff-board__cell--no {
  color: var(--muted);
}

.diff-board__mark {
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
}

.diff-board__cell--yes .diff-board__mark {
  color: var(--ok);
}

.diff-board__cell--no .diff-board__mark {
  color: #a08989;
}

.diff-board__note {
  margin: 1.75rem 0 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 759px) {
  .diff-board__heads {
    padding-bottom: 1.1rem;
  }

  .diff-board__head--yes,
  .diff-board__cell--yes {
    padding-right: 0.95rem;
  }

  .diff-board__head--no,
  .diff-board__cell--no {
    padding-left: 0.95rem;
  }

  .diff-board__row {
    padding: 1.2rem 0;
  }

  .diff-board__cell {
    font-size: 0.92rem;
  }
}

#socket {
  background: #e8f0f8;
}

@media (min-width: 880px) {
  .socket-split {
    grid-template-columns: minmax(0, 1fr) 12rem;
    gap: 2rem;
  }
}

.socket-split h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.socket-bound {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 650;
}

.socket-media {
  justify-self: center;
  width: min(12rem, 46vw);
}

.socket-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.stages-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .stages-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.85fr);
    gap: 1.75rem;
  }
}

.stages-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: stages;
}

.stages-step {
  position: relative;
  display: grid;
  gap: 0.45rem;
  padding: 0 0 1.15rem 3.1rem;
  counter-increment: stages;
}

.stages-step:last-child {
  padding-bottom: 0;
}

.stages-step::before {
  content: counter(stages);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 0.86rem;
  font-weight: 800;
  z-index: 1;
}

.stages-step::after {
  content: "";
  position: absolute;
  left: 1.02rem;
  top: 2.15rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #c5dcf0, rgba(197, 220, 240, 0.15));
}

.stages-step:last-child::after {
  display: none;
}

.stages-step__body strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--blue-900);
  font-size: 1.05rem;
  line-height: 1.25;
}

.stages-step__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 36rem;
}

.stages-step__time {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.stages-pack {
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #f3f8fd 0%, #fff 58%);
  border: 1px solid rgba(33, 128, 212, 0.18);
  box-shadow: 0 12px 30px rgba(11, 44, 74, 0.05);
}

@media (min-width: 900px) {
  .stages-pack {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.stages-pack h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.stages-pack__lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.stages-pack__list {
  display: grid;
  gap: 0.55rem;
}

.stages-pack__list li {
  position: relative;
  padding: 0.55rem 0.7rem 0.55rem 2.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(197, 214, 230, 0.85);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.stages-pack__list li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.8rem;
  border-right: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: rotate(40deg);
}

.stages-pack__list li span {
  display: inline;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.86rem;
}

.notice {
  margin-top: 0.35rem;
  padding: 0.95rem 0 0.95rem 1.05rem;
  border: 0;
  border-left: 3px solid var(--blue-500);
  border-radius: 0;
  background: transparent;
  color: var(--blue-900);
  font-weight: 650;
  line-height: 1.45;
}

.notice--warn {
  border-left-color: #e0a85a;
  color: var(--ink-soft);
  font-weight: 500;
}

.faq {
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 880px) {
  .faq--cols {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.85rem;
    align-items: start;
  }
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.15rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq details[open] {
  border-color: #9fc7e8;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.6rem 1rem 0;
  font-weight: 700;
  color: var(--blue-900);
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.1rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue-700);
  border-bottom: 2px solid var(--blue-700);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-20%) rotate(-135deg);
}

.faq details p {
  padding: 0 0 1rem;
  margin: 0;
}

.video-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .video-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.video-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--blue-950);
}

.video-card__frame iframe,
.video-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video-card__body { padding: 1rem 1.1rem 1.15rem; }
.video-card__body h3 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.video-card__body p { margin: 0; font-size: 0.92rem; }

.shorts {
  display: grid;
  gap: 0.75rem;
}

.short-link {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.8rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.45rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.short-link:hover {
  border-color: #9fc7e8;
  transform: translateY(-1px);
  color: inherit;
}

.short-link img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.short-link strong { display: block; color: var(--blue-900); font-size: 0.95rem; }
.short-link span { color: var(--muted); font-size: 0.85rem; }

.contacts-block {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 920px) {
  .contacts-block {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 0 2.5rem;
    align-items: start;
  }

  .contacts-block > .form-card--lined {
    position: relative;
    padding-left: 2.5rem;
  }

  .contacts-block > .form-card--lined::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 1px;
    background: var(--line);
  }
}

.contact-panel {
  display: grid;
  gap: 1.1rem;
}

.contact-list {
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list strong {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.contact-list a {
  color: var(--blue-900);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.contact-list a:hover { color: var(--blue-700); }

.hours-schedule {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.2rem;
  max-width: 16rem;
}

.hours-schedule li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--ink);
}

.hours-schedule li span:first-child {
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hours-schedule li span:last-child {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  height: var(--map-h);
  background: var(--sand);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-900);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.socials a:hover {
  border-color: #9fc7e8;
  background: var(--blue-50);
  transform: translateY(-1px);
}

.form-card {
  position: relative;
  padding: 1.4rem 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-card h2 { margin-bottom: 0.35rem; }
.form-card > .lead { margin-bottom: 1.2rem; }

.form-card--lined {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.form-card--lined .lead-form {
  margin-bottom: 1.15rem;
}

.form-card--lined .lead-form .lead {
  margin-bottom: 0;
  max-width: 36ch;
}

.form-card--lined form {
  display: grid;
  gap: 1.05rem;
}

.form-card--lined .field label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-card--lined .field input,
.form-card--lined .field select,
.form-card--lined .field textarea {
  min-height: 44px;
  padding: 0.45rem 0 0.55rem;
  border: 0;
  border-bottom: 1.5px solid #b7c7d6;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-card--lined .field select {
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 12px) calc(50% + 1px),
    calc(100% - 6px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 1.6rem;
}

.form-card--lined .field textarea {
  min-height: 96px;
  resize: vertical;
}

.form-card--lined .field input:hover,
.form-card--lined .field select:hover,
.form-card--lined .field textarea:hover {
  border-bottom-color: #8eabc4;
}

.form-card--lined .field input:focus,
.form-card--lined .field select:focus,
.form-card--lined .field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue-600);
  background: transparent;
  box-shadow: none;
}

.form-card--lined .file-drop--lined {
  border: 0;
  border-bottom: 1.5px dashed #b7c7d6;
  border-radius: 0;
  background: transparent;
  padding: 0.85rem 0 0.95rem;
}

.form-card--lined .file-drop--lined:hover,
.form-card--lined .file-drop--lined.is-dragover {
  border-bottom-color: var(--blue-600);
  background: transparent;
  transform: none;
}

.form-card--lined .form-actions {
  margin-top: 0.25rem;
  padding-top: 0.35rem;
}

.form-card--lined .form-success {
  padding: 1.5rem 0;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 620px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: 0.35rem; }
.field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-900);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field textarea { min-height: 110px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 151, 230, 0.15);
}

.field--error input,
.field--error select,
.field--error textarea,
.form-card--lined .field--error input,
.form-card--lined .field--error select,
.form-card--lined .field--error textarea {
  border-color: var(--danger);
  border-bottom-color: var(--danger);
}

.field--error input:focus,
.field--error select:focus,
.field--error textarea:focus {
  box-shadow: 0 0 0 4px rgba(200, 60, 50, 0.15);
}

.field__error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--danger);
  font-weight: 600;
}

.form-error {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(200, 60, 50, 0.35);
  background: #fdeeee;
  color: var(--danger);
  font-size: 0.9rem;
  border-radius: 10px;
}

.form-card--lined .form-error {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

.consent {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.consent--error {
  color: var(--danger);
}

.consent .field__error {
  flex: 1 1 100%;
  margin-top: 0;
  margin-left: calc(18px + 0.7rem);
}

.consent input {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--blue-700);
  flex: 0 0 auto;
}

.file-drop {
  position: relative;
  border: 1.5px dashed #b7c9da;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbfe, #f1f6fa);
  padding: 1.1rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
  cursor: pointer;
}

.file-drop.is-dragover {
  border-color: var(--blue-500);
  background: var(--blue-50);
  transform: scale(1.01);
}

.file-drop__title {
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 0.2rem;
}

.file-drop__hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.file-list:empty { display: none; }

.file-chip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.88rem;
}

.file-chip button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.2rem;
}

.file-chip button:hover { color: var(--danger); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.4rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-card.is-sent .lead-form,
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: grid; gap: 0.7rem; justify-items: center; }

.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 800;
}

.site-footer {
  background: var(--blue-950);
  color: rgba(255,255,255,0.78);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; }
}

.footer-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
}

.footer-col ul { display: grid; gap: 0.4rem; }
.footer-col a,
.footer-col span {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  gap: 0.7rem;
  font-size: 0.85rem;
}

.disclaimer { color: rgba(255,255,255,0.55); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .dir-tile, .dir-tile__media img, .quiz-item, .gallery__item img, .mosaic__item img { transition: none; }
  .mosaic__item:hover img,
  .mosaic__item:focus-visible img { transform: none; }
  .hero__badge,
  .hero__brand,
  .hero h1,
  .hero__lead,
  .hero__phone,
  .hero .btn-row,
  .hero__note,
  .hero__callout { animation: none; }
}

/* Заглушка главной */
.stub {
  padding: clamp(2.5rem, 6vh, 4.5rem) 0 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(107, 180, 239, 0.18), transparent 55%),
    linear-gradient(180deg, var(--blue-50) 0%, var(--paper) 70%);
}

.stub__inner {
  display: grid;
  gap: 2rem;
}

.stub__copy {
  max-width: 40rem;
}

.stub__copy .hero__brand {
  margin-bottom: 1.4rem;
}

.stub__copy h1 {
  margin-bottom: 0.75rem;
}

.stub__copy .lead {
  margin-bottom: 1.4rem;
}

.stub__note {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.stub__dirs {
  margin-top: 0.25rem;
}

.page-stub .clinic-line {
  margin-top: 0;
}

@media (min-width: 920px) {
  .stub {
    min-height: calc(100vh - var(--header-h) - 2rem);
    display: grid;
    align-content: center;
    padding-block: 3rem 2rem;
  }

  .stub__inner {
    gap: 2.4rem;
  }
}

/* Cookie consent — compact, bottom-left, keeps chat free */
.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: min(420px, calc(100vw - 96px));
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px) saturate(1.1);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.cookie-banner__text a {
  font-weight: 600;
  text-decoration-thickness: 1px;
}

.cookie-banner__btn {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0.4rem 0.95rem;
  font-size: 0.86rem;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(33, 128, 212, 0.22);
}

/* Blog index */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line, #d5e1ec);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.blog-card:hover {
  text-decoration: none;
  color: inherit;
  border-color: var(--blue-400, #6bb4ef);
  background: rgba(232, 243, 252, 0.45);
}

.blog-card__title {
  display: block;
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: none;
}

.blog-card:hover .blog-card__title {
  color: var(--blue-800);
}

.blog-card__excerpt {
  margin-top: 0.35rem;
  color: var(--muted);
  text-decoration: none;
}

/* CMS / blog article */
.cms-article .label {
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.cms-article h1 {
  margin-bottom: 1.1rem;
}

.cms-body > *:first-child {
  margin-top: 0;
}

@media (max-width: 560px) {
  .cookie-banner {
    left: 12px;
    right: 76px; /* место под кнопку чата */
    bottom: 12px;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.8rem 0.85rem;
  }

  .cookie-banner__btn {
    width: 100%;
  }
}
