/* Neuro Vita — стили сайта.
   Цвета логотипа: бирюза #456767, золото. Шрифты лежат локально в /static/fonts. */

@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/GolosText.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d2b2b;
  --text: #2c3a3a;
  --muted: #5a6b6a;
  --brand: #456767;
  --brand-d: #365454;
  --brand-dd: #263d3d;
  --mint: #eaf6f5;
  --mint-2: #f4faf9;
  --mint-3: #d9eeeb;
  --line: #d4e5e3;
  --gold: #b49250;
  --gold-d: #866628;
  --gold-l: #f4ecdc;
  --wa: #1c9e4f;
  --wa-d: #157c3d;
  --white: #fff;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --shadow: 0 1px 2px rgba(38, 61, 61, .06), 0 6px 20px -8px rgba(38, 61, 61, .16);
  --shadow-h: 0 2px 4px rgba(38, 61, 61, .08), 0 14px 30px -12px rgba(38, 61, 61, .28);

  --wrap: 1200px;
  --pad: 20px;
  --header-h: 88px;
}
@media (min-width: 768px) { :root { --pad: 32px; --header-h: 108px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 18px; } }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--brand-d); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dd); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(30px, 6.6vw, 54px); letter-spacing: -.01em; line-height: 1.12; }
h2 { font-size: clamp(26px, 4.6vw, 38px); letter-spacing: -.005em; }
h3 { font-size: clamp(19px, 2.6vw, 22px); line-height: 1.3; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brand-dd); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.wrap--narrow { max-width: 880px; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn .icon { width: 22px; height: 22px; }
.btn--wa { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px rgba(54, 84, 84, .7); }
.btn--wa:hover { background: var(--brand-d); color: #fff; }
.btn--line { background: #fff; color: var(--brand-d); border-color: var(--brand); }
.btn--line:hover { background: var(--mint); color: var(--brand-dd); }
.btn--ghost { background: transparent; color: var(--brand-d); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dd); }
.btn--sm { min-height: 44px; padding: 9px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btns > .btn { width: 100%; } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-d); text-decoration: none; }
.link-arrow .icon { width: 20px; height: 20px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow span { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.header__logo { display: flex; align-items: center; flex: none; }
.header__logo img { height: calc(var(--header-h) - 8px); width: auto; }
@media (min-width: 768px) { .header__logo img { height: calc(var(--header-h) - 14px); } }
.nav { display: none; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px;
  padding: 8px 2px; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brand-d); border-bottom-color: var(--mint-3); }
.nav a[aria-current="page"] { color: var(--brand-d); border-bottom-color: var(--gold); }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang a {
  min-width: 42px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font: 600 14px/1 var(--sans); color: var(--muted); text-decoration: none; letter-spacing: .02em;
}
.lang a[aria-current="true"] { background: var(--brand); color: #fff; }
.lang a:not([aria-current="true"]):hover { color: var(--brand-dd); background: var(--mint); }
.header__wa { display: none; }
.burger {
  width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}
.burger .icon { width: 24px; height: 24px; }
.burger .i-close { display: none; }
.menu-open .burger .i-close { display: block; }
.menu-open .burger .i-menu { display: none; }
@media (min-width: 1140px) {
  .nav { display: flex; gap: 26px; margin-left: 28px; }
  .burger { display: none; }
  .header__wa { display: inline-flex; }
}

/* Мобильное меню */
.mmenu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: #fff; overflow-y: auto;
  padding: 20px var(--pad) 40px;
  display: none;
}
.menu-open .mmenu { display: block; }
.menu-open { overflow: hidden; }
.mmenu__nav { display: grid; }
.mmenu__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; font: 600 21px/1.2 var(--serif); color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mmenu__nav a .icon { color: var(--brand); width: 22px; height: 22px; }
.mmenu__nav a[aria-current="page"] { color: var(--brand-d); }
.mmenu__foot { margin-top: 24px; display: grid; gap: 14px; }
.mmenu__contacts { display: grid; gap: 6px; color: var(--muted); font-size: 16px; }
.mmenu__contacts a { color: var(--ink); font-weight: 600; text-decoration: none; }
@media (min-width: 1140px) { .mmenu { display: none !important; } }

/* ---------- Разделы ---------- */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 84px 0; } }
.section--mint { background: var(--mint-2); }
.section--tint { background: linear-gradient(180deg, var(--mint) 0%, var(--mint-2) 100%); }
.section__head { max-width: 760px; margin-bottom: 32px; }
.section__head p { margin: 14px 0 0; color: var(--muted); font-size: 1.02em; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.section__head--row > div { max-width: 720px; }
.section__foot { margin-top: 32px; }
.lead { font-size: 1.1em; color: var(--text); max-width: 680px; }
@media (min-width: 1024px) { .lead { font-size: 1.12em; } }

/* Хлебные крошки */
.crumbs { padding-top: 22px; font-size: 15px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- Первый экран главной ---------- */
.hero { padding: 28px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--mint-2) 100%); position: relative; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 26px; }
.hero__facts { list-style: none; display: grid; gap: 10px; margin-top: 26px; }
.hero__facts li { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 16px; }
.hero__facts .icon { color: var(--gold-d); width: 20px; height: 20px; }
.arch {
  position: relative; border-radius: 999px 999px var(--r-l) var(--r-l); overflow: hidden;
  background: var(--mint-3); isolation: isolate;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after {
  content: ""; position: absolute; inset: 10px; border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .7); pointer-events: none;
}
.hero__media { position: relative; margin: 0; }
/* Иллюстрация первого экрана 16:10 (static/img/hero.webp) */
.hero__ill {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden;
  background: var(--mint-3); box-shadow: var(--shadow); isolation: isolate;
}
.hero__ill img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__ill::after {
  content: ""; position: absolute; inset: 10px; border-radius: calc(var(--r-l) - 6px);
  border: 1px solid rgba(255, 255, 255, .6); pointer-events: none;
}
/* Заглушка, пока иллюстрации нет: фирменный градиент, золотые кольца и знак */
.hero__ill--pusto {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 27%, rgba(184, 148, 62, .55) 27.2% 27.5%, transparent 27.7% 36%,
      rgba(184, 148, 62, .28) 36.2% 36.4%, transparent 36.6% 46%, rgba(184, 148, 62, .14) 46.2% 46.4%, transparent 46.6%),
    radial-gradient(120% 90% at 50% 40%, #fff 0%, var(--mint-2) 45%, var(--mint-3) 100%);
}
.hero__znak { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero__znak img { width: 34%; height: auto; opacity: .9; }
.hero__cap { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .hero { padding: 56px 0 88px; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}
@media (min-width: 1200px) { .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }

/* Первый экран страниц */
.phero { padding: 8px 0 48px; background: linear-gradient(180deg, #fff 0%, var(--mint-2) 100%); }
.phero__grid { display: grid; gap: 28px; align-items: center; margin-top: 22px; }
.phero h1 { font-size: clamp(30px, 5.6vw, 48px); margin-bottom: 16px; }
.phero .lead { margin-bottom: 24px; }
.phero__media .arch { aspect-ratio: 1 / 1; max-width: 360px; margin: 0 auto; }
@media (min-width: 900px) {
  .phero { padding-bottom: 72px; }
  .phero__grid { grid-template-columns: 1.25fr .75fr; gap: 56px; }
  .phero__media .arch { aspect-ratio: 4 / 5; max-width: 380px; margin-right: 0; }
}
.phero--plain .phero__grid { grid-template-columns: 1fr; }

/* ---------- Карточки услуг ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 18px; border-radius: var(--r-m);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: var(--text);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-h); border-color: var(--mint-3); color: var(--text); }
.card__top { display: flex; align-items: center; gap: 14px; }
.card__ic {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mint); color: var(--brand-d);
}
.card__ic .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.card h3 { font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.card__more {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--mint-3);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; color: var(--brand-d); font-size: 15.5px;
}
.card__arrow {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; transition: transform .2s, background-color .2s;
}
.card__arrow .icon { width: 18px; height: 18px; stroke-width: 2; }
.card:hover .card__arrow { background: var(--brand-d); transform: translateX(2px); }

/* Плитки преимуществ */
.feats { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feats { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.feat { display: flex; gap: 16px; padding: 20px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); }
.feat__ic { width: 46px; height: 46px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--gold-l); color: var(--gold-d); }
.feat h3 { font-size: 18px; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* Шаги */
.steps { list-style: none; display: grid; gap: 0; counter-reset: st; }
.steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 24px; align-content: start; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  counter-increment: st; content: counter(st);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid var(--gold); color: var(--gold-d);
  font: 600 18px/1 var(--serif); position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; left: 21.5px; top: 44px; bottom: 0; width: 1.5px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 18px; margin: 9px 0 4px; font-family: var(--sans); font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
@media (min-width: 1024px) {
  .steps--row { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .steps--row li { grid-template-columns: 1fr; gap: 10px; padding: 0; align-content: start; }
  .steps--row li::after { left: 44px; right: -20px; top: 21.5px; bottom: auto; width: auto; height: 1.5px; }
  .steps--row li:last-child::after { display: none; }
  .steps--row h3 { margin-top: 6px; }
}

/* Списки с отметкой */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23365454' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks--2 { gap: 12px 32px; }
@media (min-width: 768px) { .ticks--2 { grid-template-columns: 1fr 1fr; } }
.dots { list-style: none; display: grid; gap: 8px; }
.dots li { position: relative; padding-left: 22px; }
.dots li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* Пары «заголовок — текст» */
.defs { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .defs { grid-template-columns: 1fr 1fr; gap: 16px; } }
.def { padding: 18px 20px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); }
.def h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; margin-bottom: 6px; color: var(--ink); }
.def p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.def__meta { margin-top: 10px !important; font-size: 15px !important; color: var(--brand-d) !important; font-weight: 500; }

/* Двухколоночный блок услуги */
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split h2 { margin-bottom: 20px; }
.note {
  margin-top: 20px; padding: 16px 18px; border-radius: var(--r-s);
  background: var(--gold-l); color: var(--ink); font-size: 16px; line-height: 1.5;
  border-left: 3px solid var(--gold);
}
.note--mint { background: var(--mint); border-left-color: var(--brand); }

/* Варианты состава курса */
.variants { display: grid; gap: 16px; }
@media (min-width: 768px) { .variants { grid-template-columns: 1fr 1fr; } }
.variant { padding: 22px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); }
.variant h3 { margin-bottom: 14px; font-size: 20px; }

/* ---------- Цены ---------- */
.price-box { border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.price-box__head { padding: 22px 22px 6px; }
.price-box__head h2, .price-box__head h3 { font-size: clamp(22px, 3vw, 28px); }
.price-box__head p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.prices { list-style: none; padding: 6px 22px 12px; }
.price {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.price:last-child { border-bottom: 0; }
.price__name { font-weight: 500; color: var(--ink); line-height: 1.4; }
.price__sum { font: 600 19px/1.2 var(--sans); color: var(--brand-dd); white-space: nowrap; text-align: right; }
.price__sum small { font-weight: 500; font-size: 15px; color: var(--muted); }
.price__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.price__meta span { display: inline-flex; gap: 6px; }
.price__meta b { font-weight: 500; color: var(--text); }
.price--kurs .price__sum { font: 500 15.5px/1.35 var(--sans); color: var(--gold-d); white-space: normal; max-width: 180px; }
@media (max-width: 599px) { .price--kurs .price__sum { grid-column: 1 / -1; grid-row: 2; text-align: left; max-width: none; } }
.price-box__foot { padding: 16px 22px 22px; background: var(--mint-2); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.price-box__foot p { margin: 0; font-size: 15px; color: var(--muted); max-width: 520px; }
@media (min-width: 768px) {
  .price-box__head { padding: 28px 32px 8px; }
  .prices { padding: 8px 32px 16px; }
  .price-box__foot { padding: 18px 32px 24px; }
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
}
.chips a:hover { border-color: var(--brand); color: var(--brand-dd); }
.ceny-grid { display: grid; gap: 22px; }
.ceny-meta { font-size: 15px; color: var(--muted); margin-top: 18px; }

/* ---------- Медиа ---------- */
.ph { position: relative; display: block; border-radius: var(--r-m); overflow: hidden; background: var(--mint-3); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph__zoom {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--brand-dd); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.ph__zoom .icon { width: 20px; height: 20px; stroke-width: 2; }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.4; }

.gal { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gal { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.gal .ph { aspect-ratio: 4 / 3.4; }
@media (max-width: 479px) { .gal figcaption { font-size: 14px; } }
.gal--home .ph { aspect-ratio: 1 / 1; }
@media (min-width: 1024px) {
  .gal--home { grid-template-columns: repeat(4, 1fr); }
  .gal--home figure:first-child { grid-column: span 2; grid-row: span 2; }
  .gal--home figure:first-child .ph { aspect-ratio: auto; height: calc(100% - 34px); }
}
.gal-filter { margin-bottom: 22px; }
.gal-group + .gal-group { margin-top: 44px; }
.gal-group h2 { font-size: clamp(22px, 3.4vw, 28px); margin-bottom: 18px; }

.videos { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.vcard { display: flex; flex-direction: column; gap: 10px; }
.vcard video { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-m); background: var(--brand-dd); object-fit: cover; }
.vcard h3 { font-size: 17px; font-family: var(--sans); font-weight: 600; }
.vcard p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }
.vcard__lang { font-size: 13.5px !important; color: var(--brand-d) !important; }
@media (max-width: 639px) {
  .videos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad); scroll-padding: 0 var(--pad); }
  .vcard { scroll-snap-align: start; }
}

/* ---------- Отзывы ---------- */
.reviews { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .reviews--3 { grid-template-columns: repeat(3, 1fr); } }
.review {
  display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r-l);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.review__q { font: 400 18px/1.55 var(--serif); color: var(--ink); margin: 0; position: relative; padding-top: 26px; }
.review__q::before { content: "“"; position: absolute; top: -14px; left: -2px; font: 600 54px/1 var(--serif); color: var(--gold); }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__av { width: 44px; height: 44px; border-radius: 50%; background: var(--mint); color: var(--brand-d); display: flex; align-items: center; justify-content: center; font: 600 18px/1 var(--serif); flex: none; }
.review__name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.review__ctx { font-size: 14.5px; color: var(--muted); line-height: 1.35; }
.review details { border-top: 1px solid var(--mint-3); padding-top: 10px; }
.review summary { cursor: pointer; font-weight: 600; color: var(--brand-d); font-size: 15.5px; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.review summary::-webkit-details-marker { display: none; }
.review summary .icon { width: 18px; height: 18px; transition: transform .2s; }
.review details[open] summary .icon { transform: rotate(180deg); }
.review details p { font-size: 16px; color: var(--text); margin: 8px 0 0; }
.review__video video { width: 100%; max-height: 520px; aspect-ratio: 9 / 16; border-radius: var(--r-m); background: var(--brand-dd); object-fit: cover; }
.review__src { font-size: 13.5px; color: var(--muted); }
.review--full { display: grid; gap: 24px; }
@media (min-width: 900px) { .review--full { grid-template-columns: 300px 1fr; align-items: start; padding: 28px; } }
.reviews--list { grid-template-columns: 1fr !important; gap: 22px; }

/* ---------- Вопросы ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-weight: 600; color: var(--ink); line-height: 1.4; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23365454' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--text); }
.faq details > div p { margin: 0; }

/* ---------- Призыв ---------- */
.cta {
  border-radius: var(--r-l); padding: 32px 24px; background: var(--brand-dd); color: #e9f3f2;
  display: grid; gap: 22px; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold);
}
.cta h2 { color: #fff; }
.cta p { margin: 10px 0 0; color: #cfe2e0; max-width: 620px; }
.cta .btn--wa { background: #fff; color: var(--brand-dd); box-shadow: none; }
.cta .btn--wa:hover { background: var(--mint); color: var(--brand-dd); }
.cta .btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .btn--line:hover { background: rgba(255, 255, 255, .08); color: #fff; }
@media (min-width: 900px) { .cta { padding: 44px 48px; grid-template-columns: 1fr auto; align-items: center; } }

.warn {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-s);
  background: var(--mint); color: var(--ink); font-size: 15.5px; line-height: 1.45; font-weight: 500;
}
.warn .icon { color: var(--brand-d); margin-top: 1px; }

/* ---------- О центре ---------- */
.about { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 64px; } }
.about .arch { aspect-ratio: 4 / 4.4; max-width: 460px; }
.person { display: flex; gap: 20px; align-items: center; padding: 24px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); }
.person__mark { width: 72px; height: 72px; border-radius: 50%; background: var(--gold-l); flex: none; display: flex; align-items: center; justify-content: center; }
.person__mark img { width: 56px; height: auto; }
.person h3 { font-size: 22px; }
.person p { margin: 4px 0 0; color: var(--muted); }
.badge { display: grid; gap: 22px; align-items: center; padding: 24px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); }
@media (min-width: 640px) { .badge { grid-template-columns: 160px 1fr; } }
.badge img { width: 160px; height: auto; border-radius: 50%; }

/* ---------- Контакты ---------- */
.contacts { display: grid; gap: 24px; }
@media (min-width: 900px) { .contacts { grid-template-columns: 1fr 1fr; gap: 40px; } }
.cinfo { display: grid; gap: 0; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); padding: 8px 22px; }
.cinfo__row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--mint-3); }
.cinfo__row:last-child { border-bottom: 0; }
.cinfo__ic { width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: var(--brand-d); display: flex; align-items: center; justify-content: center; }
.cinfo__ic .icon { width: 20px; height: 20px; }
.cinfo h3 { font: 500 14px/1.3 var(--sans); color: var(--muted); margin-bottom: 4px; }
.cinfo p { margin: 0; color: var(--ink); font-weight: 500; }
.cinfo a { color: var(--ink); font-weight: 600; text-decoration: none; }
.cinfo a:hover { color: var(--brand-d); text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 3px 0; vertical-align: top; }
.hours td:last-child { text-align: right; padding-left: 12px; white-space: nowrap; font-weight: 600; color: var(--ink); }
.hours td:first-child { font-weight: 400; color: var(--text); }
.map { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--mint); position: relative; min-height: 340px; display: flex; }
.map iframe { width: 100%; min-height: 420px; border: 0; }
.map__ph { margin: auto; padding: 32px 24px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.map__ph .icon { width: 44px; height: 44px; color: var(--brand); stroke-width: 1.4; }
.map__ph p { margin: 0; font-size: 15px; color: var(--muted); max-width: 320px; }
.map__addr { font: 600 20px/1.3 var(--serif) !important; color: var(--ink) !important; }

/* ---------- Подвал ---------- */
.footer { background: var(--mint); border-top: 1px solid var(--line); padding: 48px 0 110px; font-size: 16px; }
@media (min-width: 768px) { .footer { padding-bottom: 48px; } }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.1fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.1fr .9fr 1.1fr 1fr; } }
.footer__logo img { width: 132px; height: auto; }
.footer__about { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 300px; }
.footer h2 { font: 600 15px/1.3 var(--sans); color: var(--ink); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--brand-dd); text-decoration: underline; }
.footer__contacts { display: grid; gap: 10px; }
.footer__contacts p { margin: 0; }
.footer__contacts strong { color: var(--ink); font-weight: 600; }
.footer__social { display: flex; gap: 10px; margin-top: 6px; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--brand-d); }
.footer__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
@media (min-width: 768px) { .footer__bottom { grid-template-columns: 1fr auto; } }

/* ---------- Плавающая кнопка WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(10, 70, 35, .55), 0 0 0 4px rgba(255, 255, 255, .9);
  text-decoration: none; transition: background-color .2s, transform .2s;
}
.wa-float:hover { background: var(--wa-d); color: #fff; transform: translateY(-2px); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float__label { display: none; }
@media (min-width: 1024px) {
  .wa-float { right: 24px; bottom: 24px; width: auto; height: 56px; padding: 0 22px 0 18px; border-radius: 999px; gap: 10px; }
  .wa-float__label { display: inline; font: 600 16px/1 var(--sans); }
  .wa-float .icon { width: 26px; height: 26px; }
}
.menu-open .wa-float { display: none; }
@media (max-width: 1023px) {
  .wa-float {
    width: 52px; height: 52px;
    right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
    box-shadow: 0 6px 16px -6px rgba(10, 70, 35, .5), 0 0 0 3px rgba(255, 255, 255, .92);
  }
  .wa-float .icon { width: 27px; height: 27px; }
}

/* ---------- Просмотр фото ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(16, 28, 28, .94); display: none; flex-direction: column; touch-action: pan-y; }
.lb.is-open { display: flex; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; color: #dfeceb; font-size: 15px; gap: 12px; }
.lb__count { font-variant-numeric: tabular-nums; }
.lb__btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb__btn:hover { background: rgba(255, 255, 255, .22); }
.lb__stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 8px; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; transition: transform .25s ease, opacity .2s; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: 10px; }
.lb__next { right: 10px; }
.lb__cap { padding: 14px 20px 22px; color: #e8f1f0; text-align: center; font-size: 16px; min-height: 56px; }
@media (max-width: 639px) { .lb__nav { display: none; } }

/* Печать */
@media print { .header, .wa-float, .mmenu, .footer__social { display: none !important; } }

/* Защита от выхода за край на узких экранах */
.cards > *, .split > *, .contacts > *, .about > *, .feats > *, .defs > *, .hero__grid > *, .phero__grid > *, .footer__grid > *, .reviews > * { min-width: 0; }
.card h2, .card h3 { font-size: 20px; overflow-wrap: anywhere; hyphens: auto; }
h1, h2, h3, p, li, td, figcaption { overflow-wrap: break-word; }
.cinfo p, .cinfo h3 { overflow-wrap: anywhere; }
@media (max-width: 479px) { .cinfo .hours td { font-size: 15px; } }
a[href^="tel:"] { white-space: nowrap; }

.footer .btn--wa, .footer .btn--wa:hover { color: #fff; text-decoration: none; }
.footer .hours td { font-size: 15px; }

/* Видео и фото на странице услуги */
.mlayout { display: grid; gap: 28px; }
@media (min-width: 640px) { .mlayout .videos { grid-template-columns: repeat(auto-fill, minmax(220px, 280px)); } }
@media (min-width: 900px) {
  .mlayout--v1 { grid-template-columns: 280px 1fr; align-items: start; }
  .mlayout--v2 { grid-template-columns: 560px 1fr; align-items: start; }
  .mlayout--v1 .videos { grid-template-columns: 1fr; }
  .mlayout--v2 .videos { grid-template-columns: 1fr 1fr; }
  .gal--side { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) and (max-width: 1199px) { .mlayout--v2 { grid-template-columns: 1fr; } .mlayout--v2 .videos { grid-template-columns: repeat(2, 280px); } .mlayout--v2 .gal--side { grid-template-columns: repeat(3, 1fr); } }
.gal--one { grid-template-columns: 1fr !important; max-width: 520px; }
@media (max-width: 639px) { .videos { grid-auto-columns: 64%; } }
.price__meta { display: block; }
.price__meta > span { display: inline; margin-right: 14px; }

/* Главная на телефоне: компактные карточки — несколько на экран */
@media (max-width: 599px) {
  .cards--compact { gap: 10px; }
  .cards--compact .card {
    flex-direction: row; align-items: center; gap: 12px;
    padding: 12px 12px 12px 14px; border-radius: 14px;
  }
  .cards--compact .card__top { flex: 1; min-width: 0; gap: 12px; }
  .cards--compact .card__ic { width: 42px; height: 42px; }
  .cards--compact .card__ic .icon { width: 23px; height: 23px; }
  .cards--compact .card h3 { font-size: 17px; line-height: 1.25; hyphens: manual; overflow-wrap: break-word; }
  .cards--compact .card p { display: none; }
  .cards--compact .card__more { margin: 0; padding: 0; border: 0; flex: none; }
  .cards--compact .card__more > span:first-child { display: none; }
  .cards--compact .card__arrow { width: 32px; height: 32px; }
  .cards--compact .card__arrow .icon { width: 16px; height: 16px; }

  .feats--compact { gap: 8px; }
  .feats--compact .feat { gap: 12px; padding: 12px 14px; border-radius: 14px; align-items: flex-start; }
  .feats--compact .feat__ic { width: 36px; height: 36px; border-radius: 10px; }
  .feats--compact .feat__ic .icon { width: 20px; height: 20px; }
  .feats--compact .feat h3 { font-size: 16px; margin: 0 0 2px; line-height: 1.3; }
  .feats--compact .feat p { font-size: 14.5px; line-height: 1.4; }
}
.price__meta .nw { white-space: nowrap; }
@media (max-width: 479px) { .hours--vrachi td:last-child { white-space: normal; min-width: 8.5em; } }

/* ---------- Карточки услуг на главной: название, картинка 2:1, текст, кнопка ---------- */
.scards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .scards { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .scards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.scards > * { min-width: 0; }
.scard {
  display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 16px;
  border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); transition: box-shadow .2s, border-color .2s, transform .2s;
}
.scard:hover { box-shadow: var(--shadow-h); border-color: var(--mint-3); color: var(--text); transform: translateY(-2px); }
.scard__t { font-size: 21px; line-height: 1.22; color: var(--ink); overflow-wrap: break-word; hyphens: manual; }
.scard__img {
  position: relative; aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden; background: var(--mint-2); flex: none;
}
.scard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.scard:hover .scard__img img { transform: scale(1.03); }
.scard__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--brand); background: radial-gradient(circle at 50% 45%, #fff 0, var(--mint-2) 55%, var(--mint-3) 100%); }
.scard__ph .icon { width: 64px; height: 64px; stroke-width: 1.2; }
.scard__cena {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--brand-dd); font: 600 14px/1.2 var(--sans);
  box-shadow: 0 2px 8px rgba(38, 61, 61, .18); white-space: nowrap;
}
.scard__tx { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.scard__btn {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--brand); color: #fff;
  font: 600 16px/1.2 var(--sans); transition: background-color .2s;
}
.scard__btn .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform .2s; }
.scard:hover .scard__btn { background: var(--brand-d); }
.scard:hover .scard__btn .icon { transform: translateX(3px); }
@media (max-width: 599px) {
  .scards { gap: 14px; }
  .scard { gap: 10px; padding: 14px; }
  .scard__t { font-size: 19.5px; }
  .scard__tx { font-size: 15px; line-height: 1.42; }
  .scard__btn { min-height: 44px; font-size: 15.5px; }
}
/* Компьютер и планшет: названия, картинки, тексты и кнопки в ряду на одной линии */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 640px) {
    .scards { row-gap: 24px; }
    .scard { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
    .scard__t { align-self: end; }
    .scard__btn { align-self: end; }
  }
}
