/* Обновлено: июль 2026 */
/* ==========================================================================
   Клиника «Исцеление» — статичный сайт (v2, по макету)
   Шрифт: Raleway
   ========================================================================== */

:root {
  --bg:           #D3E3E1;   /* светлый фон всего сайта */
  --light-green:  #F2F7F6;   /* светлый зелёный (карточки) */
  --green:        #00754E;   /* зелёный */
  --dark-green:   #043331;   /* тёмный зелёный */
  --grad-a:       #00B167;
  --grad-b:       #00B7A5;
  --grad:         linear-gradient(135deg, #00B167 0%, #00B7A5 100%);

  --text:         #043331;
  --text-muted:   #4d6663;
  --white:        #ffffff;
  --border:       #c2d8d4;
  --btn-hover:    #EBF1F2;

  --shadow:       0 18px 44px rgba(4, 51, 49, 0.12);
  --shadow-sm:    0 8px 20px rgba(4, 51, 49, 0.08);
  --shadow-btn:   0 8px 18px rgba(0, 150, 120, 0.35);
  --radius-lg:    40px;
  --radius:       24px;
  --radius-sm:    16px;
  --maxw:         1300px;
  --font:         'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 18px; font-weight: 500;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-y: scroll; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* запасной вариант для старых браузеров */
  overflow-x: clip;     /* ← добавь эту строку следом */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 92px 0; position: relative; }

h1, h2, h3 { line-height: 1.18; font-weight: 600; letter-spacing: -0.03em; }
h2.section-title, .eyebrow + h2 { font-size: clamp(28px, 4vw, 44px); }

.lead { color: var(--text-muted); font-size: 22px; font-weight: 500; max-width: 930px; margin-top: 14px; line-height: 1.4; }

.eyebrow {
  display: inline-block; font-size: clamp(28px, 4vw, 44px); font-weight: 600;
  color: var(--dark-green); margin-bottom: 6px; letter-spacing: -0.02em;
}
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons (ховер: подъём + лёгкое увеличение) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 16px;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, background .2s ease, color .2s ease;
  will-change: transform;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 26px rgba(0,150,120,.42); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { transform: translateY(-3px) scale(1.03); background: var(--green); color: #fff; }
.btn-outline-od { background: transparent; color: var(--border); border-color: var(--border); }
.btn-outline-od:hover { transform: translateY(-3px) scale(1.03); background: transparent; color: #fff; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { transform: translateY(-3px) scale(1.03); background: rgba(255,255,255,.24); }
.btn-lg { padding: 17px 40px; font-size: 17px; }
.btn-sm { padding: 12px 24px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 200;

  background: rgba(4,51,49,.94); backdrop-filter: blur(10px); box-shadow: 0 4px 24px rgba(0,0,0,.18);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
/* На главной (с hero) шапка прозрачная вверху и темнеет при скролле */
body.home .site-header { background: transparent; box-shadow: none; backdrop-filter: none; padding: 0 24px;}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 112px; padding: 24px 24px; }
.header-inner > .main-nav { justify-self: start; }
.header-inner > .logo { justify-self: center; }
.header-inner > .header-cta { justify-self: end; }

.logo { display: inline-flex; align-items: center; }
.logo img { height: 54px; width: auto; display: block; }
.logo-footer img { height: 40px; width: auto; display: block; }
.logo-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 800; }

/* Левое вертикальное меню */
.main-nav { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.main-nav a { font-weight: 600; color: rgba(255,255,255,.92); font-size: 16px; transition: color .15s, transform .15s; }
.main-nav a:hover { color: #fff; transform: translateX(3px); }

/* Правая колонка: кнопка сверху, телефоны под ней */
.header-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.header-phones { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.header-phones a { font-weight: 700; color: #fff; font-size: 15px; white-space: nowrap; transition: color .15s; }
.header-phones a:hover { color: var(--grad-b); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { min-height: 90vh; display: flex; align-items: center; text-align: center; color: #fff; padding: 150px 0 90px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img { width: 100%; height: 125%; object-fit: cover; margin-top: -12%; will-change: transform; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,51,49,.55) 0%, rgba(4,51,49,.42) 45%, rgba(4,51,49,.62) 100%); }
.hero h1 { font-size: clamp(40px, 4.6vw, 58px); max-width: 930px; margin: 0 auto 32px; }
.hero .hero-sub { font-size: 22px; font-weight: 500; opacity: .95; margin-bottom: 34px; }

/* ---------- Clouds / parallax ---------- */
.cloud { position: relative; z-index: -1; }
.cloud-tl { position: absolute; top: -20px; left: -200px; width: 1100px; z-index: -1; opacity: .6}
.cloud-tr { position: absolute; right: -200px; width: 1100px; z-index: -1; opacity: .6}

/* ---------- Quote band ---------- */
.quote-band { text-align: center; padding: 144px 0; }
.quote-band .qmark { display: flex; justify-content: center; align-items: center; gap: 12px; }
.quote-band blockquote { font-size: clamp(30px, 3vw, 42px); font-weight: 400; max-width: 930px; margin: 40px auto 40px; color: var(--dark-green); line-height: 1.4; }
.quote-author { font-size: 22px; font-weight: 500; margin-bottom: 12px; }
.quote-role { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

/* ---------- Services strip ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.svc-card { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.svc-card h3 { font-size: 21px; margin-bottom: 18px; color: var(--dark-green); }
.svc-card ul { list-style: none; }
.svc-card li { padding: 10px 0 10px 28px; position: relative; color: var(--text-muted); border-top: 1px solid var(--border); }
.svc-card li:first-child { border-top: none; }
.svc-card li::before { content: ''; position: absolute; left: 3px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.svc-card.experience { background: var(--grad); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.svc-card.experience h3 { color: #fff; font-size: 27px; }
.svc-card.experience img { width: 120px; margin-top: 20px; align-self: flex-end; }

/* ---------- Who is who (вертикальные вкладки) ---------- */
.whoiswho-container { background-color: var(--light-green); border-radius: var(--radius-lg); padding: 90px 90px; }
.whoiswho-card { background: var(--light-green); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: grid; grid-template-columns: 300px 1fr; gap: 2px; }
.tabs-v { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--white); }
.tab-btn { text-align: left; padding: 15px 20px; border-radius: 12px; border: none; background: var(--light-green); color: var(--dark-green); font-family: var(--font); font-weight: 600; font-size: 16px; cursor: pointer; transition: .2s; }
.tab-btn:hover { background: var(--btn-hover); }
.tab-btn.active { background: var(--grad); color: #fff; box-shadow: var(--shadow-btn); }
.tab-panels { background-color: var(--white); padding: 40px; display: flex; align-items: center; }
.tab-panel { display: none; font-size: 18px; font-weight: 500; color: var(--text-muted); line-height: 1.7; }
.tab-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to {opacity:1; transform:none;} }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 180px; align-items: center; }
.about-text .lead { color: var(--text-muted); font-size: 22px; font-weight: 500; max-width: 930px; margin-top: 14px; line-height: 1.4; }
.about-text p { font-size: 18px; font-weight: 500; color: var(--text-muted); margin-bottom: 24px; }
.about-text .btn { margin-top: 24px; }
.about-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------- Specialists carousel ---------- */
.carousel { position: relative; margin-top: 20px; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .75s cubic-bezier(.22,.61,.36,1); touch-action: pan-y; cursor: grab; }
.carousel-track.dragging { transition: none; cursor: grabbing; }
.slide { min-width: 100%; padding: 16px; }
.spec-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; display: grid; grid-template-columns: 350px 1fr; padding: 16px; }
.spec-photo { background: none; }
.spec-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 530px; border-radius: 24px;}
.spec-body { padding: 36px; }
.spec-body h3 { font-size: 26px; margin-bottom: 16px; }
.spec-role { color: var(--green); font-weight: 500; font-size: 15px; margin-bottom: 22px; }
.spec-facts { list-style: none; margin-bottom: 26px; }
.spec-facts li { display: flex; justify-content: space-between; gap: 8px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 15px; }
.spec-facts li:first-child { border-top: none; }
.spec-facts li span:first-child { color: var(--text-muted); }
.spec-facts li span:last-child { font-weight: 700; text-align: right; }
.carousel-nav { display: flex; justify-content: center; gap: 32px; margin-top: 28px; margin-bottom: 104px;}
.car-btn { width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--white); color: var(--green); box-shadow: var(--shadow-sm); cursor: pointer; display: grid; place-items: center; transition: transform .3s, box-shadow .3s, background .3s, color .3s; }
.car-btn:hover { transform: translateY(-3px) scale(1.05); background: var(--grad); color: #fff; box-shadow: var(--shadow-btn); }
.car-btn svg { width: 22px; height: 22px; }
.car-dots { display: flex; align-items: center; gap: 8px; }
.car-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; transition: .2s; }
.car-dots button.active { background: var(--green); width: 26px; border-radius: 6px; }

/* ---------- Philosophy — Jung (dark) ---------- */
.philosophy { background: linear-gradient(58deg,#043331 0%,#00755a 100%) }
.philosophy .container { display: grid; grid-template-columns: 220px 1fr; gap: 46px; align-items: start; }
.philosophy img { border-radius: var(--radius); box-shadow: var(--shadow); }
.philosophy .qmark img{ display: flex; justify-content: start; align-items: center; gap: 12px; width: 64px; height: 64px; margin-bottom: 12px; }
.philosophy blockquote { font-size: clamp(30px, 3vw, 42px); font-weight: 300; max-width: 930px; color: var(--white); line-height: 1.4; margin-bottom: 40px; }
.philosophy .quote-author { color: #fff; font-size: 22px; font-weight: 500; margin-bottom: 12px; }
.philosophy .quote-role { color: rgba(255,255,255,.65); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.philosophy .phil-image { position: relative; }
.philosophy .phil-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.philosophy .phil-text { margin-top: 26px; }
.philosophy .phil-text p { color: rgba(255,255,255,.85); font-size: 18px; font-weight: 500; margin-bottom: 14px; }

/* ---------- How we help ---------- */
.help-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 180px; align-items: start; }
.help-text p { color: var(--text-muted); margin-bottom: 24px; font-weight: 500;}
.methods { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; }
.methods span { background: var(--white); color: var(--green); font-weight: 600; font-size: 16px; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-sm); transition: transform .2s; }
.methods-btn { margin-top: 24px; }
.help-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq-list { max-width: var(--maxw); margin: 40px auto 48px; border-radius: var(--radius-sm); }
.faq-item { background: var(--light-green); border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 40px 60px 40px 32px; font-family: var(--font); font-size: 18px; font-weight: 600; color: var(--dark-green); cursor: pointer; position: relative; }
.faq-q::after { content: ''; position: absolute; right: 26px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); background: no-repeat center/contain; transition: transform .25s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300754E' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 26px 24px; color: var(--text-muted); }
.faq-cta { text-align: center; }

/* ---------- Contacts ---------- */
.contacts .container { background: var(--dark-green); display: flex; flex-direction: column; justify-content: start; align-items: start; gap: 54px; padding: 90px; border-radius: var(--radius-lg); }
.contents { display: flex; flex-direction: row; align-items: start; gap: 54px; width: 100%; }
.contact-block { margin: 0px; width: 100%; }
.contact-block .value { font-size: 22px; font-weight: 600; color: var(--light-green); display: flex; flex-direction: row; align-items: center; gap: 6px;}
.contact-phones a { display: block; font-size: 24px; font-weight: 600; color: var(--light-green); margin-bottom: 8px; transition: color .15s; }
.contact-phones a:hover { color: var(--grad-a); }
.contact-phones .wa-note { font-size: 13px; color: var(--light-green); font-weight: 600; }
.contact-block p { color: var(--light-green); margin-bottom: 40px;}
.buttons-container { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px;}



/* ---------- Footer ---------- */
.cloud-footer { position: absolute; width: 100%; z-index: -1; bottom: 0px; }
.cloud-footer .cloud-bl { position: absolute; bottom: 0px; left: 0px; width: 610px; z-index: -1; opacity: .6}
.cloud-footer .cloud-br { position: absolute; bottom: 0px; right: 0px; width: 554px; z-index: -1; opacity: .6}
.cloud-bl img { width: 610px; height: 100%; }
.cloud-br img { width: 554px; height: 100%; }

.site-footer { background: transparent; padding: 66px 0 40px; overflow: hidden; position: relative; }
.footer-inner { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; position: relative; z-index: 1; padding: 124px 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 22px; margin-top: 32px; }
.footer-nav a { color: var(--dark-green); font-weight: 600; font-size: 15px; }
.footer-nav a:hover { color: var(--grad-a); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(7,66,64,.1); font-size: 13px; color: var(--text-muted); position: relative; z-index: 1; text-align: center; }

/* ---------- Doctor detail page ---------- */
.doc-hero { padding-top: 230px; padding-bottom: 90px; }
.back-link { color: var(--dark-green); font-weight: 500; }
.doc-top { display: grid; grid-template-columns: 1fr 1.3fr; gap: 54px; align-items: start; margin-top: 24px; }
.doc-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.doc-meta h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 6px; }
.doc-facts { list-style: none; margin-bottom: 26px; }
.doc-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--border); }
.doc-facts li span:first-child { color: var(--text-muted); }
.doc-facts li span:last-child { font-weight: 700; text-align: right; }
.doc-prices { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.price-card .p-label { font-size: 18px; color: var(--text-muted); }
.price-card .p-val { font-size: 22px; font-weight: 600; color: var(--dark-green); }
.doc-section { margin-top: 60px; }
.doc-section h2 { font-size: 26px; margin-bottom: 24px; color: var(--dark-green); }
.diag-list { list-style: none; }
.diag-list li::before { content: ''; position: absolute; left: 0px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.diag-list li { padding: 12px 0 12px 16px; position: relative; break-inside: avoid; color: var(--text-muted); }
.timeline { list-style: none; border-left: 2px solid var(--border); padding-left: 28px; }
.timeline li { position: relative; padding-bottom: 24px; }
.timeline li::before { content: ''; position: absolute; left: -32px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.timeline .t-years { font-weight: 600; color: var(--green); }
.timeline .t-desc { color: var(--text-muted); }
.doc-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }


.spec-facts, .doc-facts, .price-card, .header-phones, .contact-phones {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* --- Слайд специалиста: имя на фото, факты сеткой, «врач поможет с» --- */
.spec-photo { position: relative; }
.spec-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px; border-radius: 0 0 24px 24px;
  background: linear-gradient(to top, rgba(4,51,49,.78), rgba(4,51,49,0));
  color: #fff;
}
.spec-overlay h3 { font-size: 26px; color: #fff; margin: 0 0 6px; line-height: 1.2; }
.spec-overlay .spec-role { color: rgba(255,255,255,.85); font-weight: 500; font-size: 15px; margin: 0; }

.spec-facts-grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
  grid-auto-flow: column; gap: 22px 32px; margin-bottom: 28px;
}
.fact { display: flex; flex-direction: column; gap: 8px; }
.fact-label { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.fact-value { font-weight: 700; font-size: 20px; }

.spec-help-title { color: var(--text-muted); font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.spec-help-list { list-style: none; margin: 0 0 28px; }
.spec-help-list li { padding: 4px 0; font-size: 16px; font-weight: 500; color: var(--text); }


/* ==========================================================================
   Страница врача — новая структура (v2)
   Порядок: назад → имя → специальность → метрики → 2 колонки.
   Левая колонка (фото + цены + кнопка) — sticky.
   Старые классы .doc-hero / .doc-top / .doc-columns оставлены нетронутыми.
   ========================================================================== */
.doc-page { padding-top: 256px; padding-bottom: 90px; }

.back-link { display: inline-flex; align-items: center; gap: 8px; transition: transform .15s ease; }
.back-link:hover { transform: translateX(-3px); }

.doc-page-head { margin: 32px 0 56px; }
.doc-page-head h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 10px; font-weight: 700; }
.doc-page-head .doc-role { font-size: 22px; margin-bottom: 0; font-weight: 500; color: var(--dark-green); }

.doc-metrics {
  display: flex; flex-wrap: wrap;
  gap: 24px 32px; margin-top: 36px; padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.doc-metric { display: flex; flex-direction: column; gap: 2px; }
.doc-metric .m-label { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.doc-metric .m-value { font-size: 22px; margin-bottom: 0; font-weight: 500; color: var(--dark-green);  }

/* Две колонки */
.doc-layout { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }

/* Левая колонка — залипает при прокрутке */
.doc-aside { position: sticky; top: 32px; align-self: start; background: var(--white); border-radius: var(--radius); }
.doc-aside .doc-photo img { width: 100%; max-height: 480px; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.doc-aside .doc-prices { display: flex; flex-direction: column; gap: 24px; margin: 24px 0; padding: 0 24px; }
.doc-aside .price-card { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.doc-aside .price-card .p-val { font-size: 22px; white-space: nowrap; font-weight: 600; color: var(--dark-green); }
.doc-aside .btn { width: 100%; }

/* Правая колонка — обычная прокрутка */
.doc-main > .doc-section:first-child { margin-top: 0; }


/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .container { padding: 24px 24px; }
  .btn-sm { width: 100%; }
  section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid, .help-grid, .philosophy .container, .contacts .container, .doc-top, .doc-columns { grid-template-columns: 1fr; gap: 32px; }
  .about-img img { max-height: 400px; }
  .eyebrow { margin-top: 32px; }
  .btn-sm { width: 100%; }
  .whoiswho-card { grid-template-columns: 1fr; }
  .tabs-v { flex-direction: row; overflow-x: auto; padding: 16px; }
  .tab-btn { white-space: nowrap; }
  .tab-panels { padding: 28px; }
  .spec-card { grid-template-columns: 1fr; }
  .spec-photo img { min-height: 260px; }
  .philosophy img { width: 140px; }
  .diag-list { columns: 1; }
  /* Страница врача: колонки складываются, sticky отключается */
  .doc-page { padding-top: 140px; }
  .doc-page-head { margin: 24px 0 40px; }
  .doc-layout { grid-template-columns: 1fr; gap: 40px; }
  .doc-aside { position: static; }
  .doc-aside .doc-photo img { max-height: 460px; }
  .doc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* мобильный хедер: логотип + бургер в одной строке, меню скрыто */
  .header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 66px; padding: 16px 24px; gap: 12px; }
  .header-inner > .main-nav, .header-inner > .logo, .header-inner > .header-cta { justify-self: auto; }
  .logo { order: 1; }
  .logo img { height: 24px; margin-top: 8px; }
  .burger { display: flex; order: 2; }
  .main-nav, .header-cta { order: 3; flex-basis: 100%; display: none; }

  /* Открытое меню: фон + высота.
     header-inner НЕ трогаем совсем — логотип и крестик остаются
     на тех же координатах, что и в закрытом состоянии.
     Nav и CTA вырываем из потока (position:absolute), они не
     влияют на layout logo/burger. */
  .site-header.menu-open,
  body.home .site-header.menu-open {
    position: fixed;
    height: 100dvh;
    background: rgba(4,51,49,.97) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: none !important;
  }

  /* Навигация: середина экрана (от нижней границы шапки до CTA) */
  .site-header.menu-open .main-nav {
    position: absolute;
    top: 104px;
    left: 0; right: 0;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-basis: auto;
  }
  .site-header.menu-open .main-nav a { font-size: 22px; }

  /* CTA: у нижнего края экрана */
  .site-header.menu-open .header-cta {
    position: absolute;
    bottom: 36px;
    left: 0; right: 0;
    padding: 0 18px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 14px;
    flex-basis: auto;
  }
  .site-header.menu-open .header-phones { width: 100%; flex-direction: column; align-items: center; gap: 12px; justify-content: center; margin-bottom: 24px; }
  .site-header.menu-open .header-phones a { font-size: 22px; font-weight: 600; }
  }
@media (max-width: 560px) {
  .container { padding: 16px 18px; }
  body.home .site-header { background: transparent; box-shadow: none; backdrop-filter: none; padding: 0; }
  /* Переопределяем прозрачность для открытого меню на малых экранах */
  body.home .site-header.menu-open { background: rgba(4,51,49,.97) !important; backdrop-filter: blur(10px) !important; }
  .eyebrow { margin-top: 32px; text-align: left; }
  .lead { font-size: 22px; }
  .logo { display: inline-flex; align-items: start; }
  .logo img { height: 24px; width: auto; display: block; margin-top: 8px;}
  .hero { min-height: 97vh; padding: 52px 0 0; }
  .btn-lg { width: 100%; }
  body, .hero h1, .hero .hero-sub, .quote-author, .quote-band blockquote, .quote-role, .section-head.center, .eyebrow { text-align: left; }
  .quote-band .qmark { justify-content: start; }
  .slide, .spec-card { padding: 0; }
  .spec-body { padding: 32px 16px; }
  .fact-value { font-weight: 700; font-size: 16px; line-height: 1.23; letter-spacing: -0.02em; }
  .spec-photo img { max-height: 400px; }
  .btn-outline { width: 100%; }
  .faq-item { margin-bottom: 16px; }
  .faq-q { font-size: 17px; padding: 16px 52px 18px 16px; }
  .contacts .container { padding: 32px 24px; }
  .doc-prices { flex-direction: column; }
  .contents { flex-direction: column; }
  .cloud-br { visibility: hidden; }
  .cloud-tl { top: 100px; left: -300px; width: 700px; }
  .cloud-tr { visibility: hidden; }
  img { max-width: none; }
  container .header-inner .header-phones a { font-size: 24px; font-weight: 600; }
  /* Страница врача */
  .doc-page { padding-top: 110px; }
  .doc-metrics { grid-template-columns: 1fr; gap: 18px; }
  .doc-aside .doc-photo img { max-width: 100%; }
}

/* Бургер → крестик при открытом меню */
.burger span { transition: transform .25s ease, opacity .2s ease; }
.site-header.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }