/*
Theme Name: Zav Clinic
Theme URI: https://zavclinic.ru/
Author: Zav Clinic
Description: Custom editable WordPress theme for Zav Clinic.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: zavclinic
*/

:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --paper: #ffffff;
  --soft: #f7f9fc;
  --blue: #3558f5;
  --blue-dark: #223bc2;
  --blue-soft: #eef2ff;
  --navy: #0d1425;
  --mint: #eaf9f2;
  --green: #16805c;
  --radius: 24px;
  --shadow: 0 20px 55px rgba(16, 24, 40, 0.1);
  --container: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: var(--container); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { width: auto; height: auto; clip: auto; padding: 12px 18px; background: #fff; z-index: 9999; top: 8px; left: 8px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.contact-strip { border-bottom: 1px solid #edf0f7; background: #fbfcff; }
.contact-strip__inner { min-height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; font-size: 14px; }
.contact-strip__address { color: var(--muted); }
.contact-strip__center { justify-self: center; font-weight: 850; color: var(--blue-dark); padding: 7px 20px; border-radius: 999px; background: var(--blue-soft); white-space: nowrap; font-size: clamp(28px, 2vw, 32px); line-height: 1.2; }
.contact-strip__phones { justify-self: end; display: flex; align-items: center; gap: 14px; }
.contact-strip__phones a { font-weight: 850; white-space: nowrap; font-size: clamp(28px, 2vw, 32px); line-height: 1.2; }
.contact-strip__phones a:first-child { color: var(--blue); }
.nav-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo img { width: 142px; max-height: 58px; object-fit: contain; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; font-size: 15px; font-weight: 650; }
.main-nav a { position: relative; padding: 8px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--blue); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav .current-menu-item a::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 800; box-shadow: 0 10px 26px rgba(53,88,245,.24); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: #fff; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 2px; background: var(--ink); content: ""; position: relative; }
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }

.hero { position: relative; min-height: 650px; display: grid; align-items: center; overflow: hidden; color: var(--ink); background: linear-gradient(135deg, #f4f7ff 0%, #fff 52%, #eef8f7 100%); }
.hero::before { position: absolute; width: 520px; height: 520px; right: -190px; top: -260px; border-radius: 50%; background: rgba(53,88,245,.09); content: ""; }
.hero::after { position: absolute; width: 360px; height: 360px; left: -230px; bottom: -250px; border-radius: 50%; background: rgba(22,128,92,.08); content: ""; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr); align-items: center; gap: 44px; padding-block: 68px; }
.hero__content { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.hero .eyebrow { background: #e8edff; color: var(--blue-dark); }
.hero h1 { margin: 0; max-width: 100%; font-size: clamp(46px, 4.3vw, 64px); line-height: 1.02; letter-spacing: -.048em; }
.hero__lead { max-width: 610px; margin: 24px 0 0; color: var(--muted); font-size: clamp(18px, 1.65vw, 21px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: #fff; background: var(--blue); box-shadow: 0 14px 34px rgba(53,88,245,.3); }
.button--light { color: var(--ink); background: #fff; }
.button--hero-secondary { color: var(--blue-dark); border: 1px solid #cfd8ff; background: #fff; box-shadow: 0 10px 24px rgba(25,43,96,.07); }
.button--outline { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.hero__benefits { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: #475467; font-size: 14px; font-weight: 700; }
.hero__benefits li { position: relative; padding-left: 20px; }
.hero__benefits li::before { position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,128,92,.12); content: ""; }
.hero__visual { position: relative; margin: 0; padding: 12px; border: 1px solid rgba(53,88,245,.12); border-radius: 34px; background: rgba(255,255,255,.78); box-shadow: 0 28px 70px rgba(31,48,95,.14); }
.hero__visual img { width: 100%; min-height: 440px; aspect-ratio: 1.18 / 1; object-fit: cover; object-position: center; border-radius: 24px; }
.hero__visual figcaption { position: absolute; left: 34px; right: 34px; bottom: 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.62); border-radius: 17px; color: #fff; background: rgba(10,24,49,.76); backdrop-filter: blur(12px); }
.hero__visual figcaption strong { font-size: 17px; white-space: nowrap; }
.hero__visual figcaption span { color: rgba(255,255,255,.78); font-size: 13px; text-align: right; }
.hero__mobile-booking { display: none; }

.case-marquee { width: 100%; max-width: 100vw; overflow: hidden; contain: paint; border-bottom: 1px solid #dfe6ff; background: var(--blue); color: #fff; }
.case-marquee__track { width: max-content; display: flex; gap: 48px; padding: 13px 0; animation: marquee 28s linear infinite; font-weight: 800; letter-spacing: .01em; }
.case-marquee__track span::before { content: "✦"; margin-right: 18px; opacity: .72; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #fff; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 38px; }
.section-heading h2, .page-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.035em; }
.section-heading p { max-width: 650px; margin: 12px 0 0; color: var(--muted); }
.section--navy .section-heading p { color: rgba(255,255,255,.7); }
.link-arrow { color: var(--blue); font-weight: 800; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px rgba(16,24,40,.05); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #eef1f6; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.service-card:first-child .card__media { background: #fff; }
.service-card:first-child .card__media img { object-fit: contain; object-position: center; }
.service-card .card__media--contain { background: #fff; }
.service-card .card__media--contain img { object-fit: contain; object-position: center; }
.comparison-label { position: absolute; left: 50%; z-index: 1; min-width: 72px; padding: 6px 12px; transform: translateX(-50%); border-radius: 999px; color: #fff; background: rgba(13,20,37,.82); box-shadow: 0 5px 18px rgba(13,20,37,.2); font-size: 12px; font-weight: 900; line-height: 1; text-align: center; letter-spacing: .08em; }
.comparison-label--before { top: 10px; }
.comparison-label--after { bottom: 10px; }
.card__body { padding: 26px; }
.card h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); }
.service-card { display: block; width: 100%; padding: 0; color: inherit; text-align: left; appearance: none; cursor: pointer; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.service-card .card__media, .service-card .card__body { display: block; }
.service-card__title { display: block; margin: 0 0 10px; font-size: 23px; font-weight: 800; line-height: 1.2; }
.service-card__description { display: block; color: var(--muted); }
.service-card__link { display: block; margin-top: 18px; color: var(--blue); font-weight: 800; }

body.has-service-gallery { overflow: hidden; }
.service-gallery-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; }
.service-gallery-modal[hidden] { display: none; }
.service-gallery-modal__backdrop { position: absolute; inset: 0; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: rgba(7, 13, 28, .8); backdrop-filter: blur(8px); }
.service-gallery-modal__dialog { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: 26px; background: #fff; box-shadow: 0 32px 90px rgba(0,0,0,.34); }
.service-gallery-modal__header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.service-gallery-modal__header .eyebrow { margin-bottom: 7px; }
.service-gallery-modal__header h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }
.service-gallery-modal__close { flex: 0 0 auto; width: 50px; height: 50px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fff; font-size: 34px; line-height: 1; }
.service-gallery-modal__grid { columns: 3; column-gap: 18px; padding: 24px; }
.service-gallery-modal__item { display: inline-block; width: 100%; margin: 0 0 18px; overflow: hidden; break-inside: avoid; vertical-align: top; border: 1px solid var(--line); border-radius: 18px; background: #f5f7fb; }
.service-gallery-modal__item img { display: block; width: 100%; height: auto; object-fit: contain; }
.voxel-modal { width: min(1120px, 100%); }
.voxel-modal__content { display: grid; gap: 28px; padding: 28px; }
.voxel-modal__media { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: 18px; }
.voxel-modal__media--single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.voxel-modal__media figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #f5f7fb; }
.voxel-modal__media img { display: block; width: 100%; height: auto; }
.voxel-modal__copy { max-width: 920px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.voxel-modal__copy h3 { margin: 0 0 14px; color: var(--ink); font-size: clamp(25px, 3vw, 34px); line-height: 1.15; }
.voxel-modal__copy p { margin: 0 0 16px; }
.voxel-modal__list { display: grid; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.voxel-modal__list li { position: relative; padding-left: 28px; }
.voxel-modal__list li::before { position: absolute; top: 0; left: 0; color: #23a377; content: "●"; }
.voxel-modal__list strong { color: var(--ink); }
.voxel-modal__quote { margin: 0 0 18px; padding: 20px 22px; border: 1px solid #cbd5ff; border-radius: 18px; color: var(--ink); background: #f2f5ff; font-size: 20px; font-weight: 750; line-height: 1.45; }
.voxel-partner { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.voxel-partner h3 { margin-bottom: 20px; }
.voxel-partner__locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.voxel-partner__location { padding: 20px; border: 1px solid #cbd5ff; border-radius: 18px; color: var(--muted); background: #f6f8ff; }
.voxel-partner__location h4 { margin: 0 0 6px; color: var(--ink); font-size: 21px; line-height: 1.25; }
.voxel-partner__location p { margin: 0 0 12px; }
.voxel-partner__location p:last-child { margin-bottom: 0; }

.doctor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.doctor-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.doctor-card__photo { aspect-ratio: 4/5; background: #e8eef8; overflow: hidden; }
.doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor-card__body { padding: 22px; }
.doctor-card h2, .doctor-card h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.2; }
.doctor-card p { margin: 0; color: var(--muted); font-size: 15px; }

.feature-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: stretch; }
.feature-split__image { min-height: 460px; border-radius: 30px; overflow: hidden; }
.feature-split__image img { width: 100%; height: 100%; object-fit: cover; }
.feature-split__content { padding: 54px; border-radius: 30px; background: var(--navy); color: #fff; }
.feature-split__content h2 { margin: 0 0 18px; font-size: clamp(34px, 4vw, 50px); line-height: 1.06; }
.feature-split__content p { color: rgba(255,255,255,.74); }
.feature-list { list-style: none; margin: 28px 0; padding: 0; }
.feature-list li { position: relative; padding: 9px 0 9px 30px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 9px; color: #7bf0c4; font-weight: 900; }

.price-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.price-filter { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 750; }
.price-filter.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.price-search { width: 100%; max-width: 520px; min-height: 52px; margin-bottom: 24px; padding: 0 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.price-section { margin-bottom: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.price-section__title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0; padding: 21px 24px; background: #f8faff; font-size: 22px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 17px 22px; border-top: 1px solid #edf0f4; text-align: left; vertical-align: top; }
.price-table th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.price-table th:last-child, .price-table td:last-child, .price-table th:nth-last-child(2), .price-table td:nth-last-child(2) { text-align: right; white-space: nowrap; }
.price-code { color: var(--muted); font-size: 12px; margin-top: 4px; }
.member-price { color: var(--green); font-weight: 850; }
.price-note { padding: 18px 22px; border-radius: 16px; background: var(--mint); color: #145d46; }

.case-grid { column-count: 3; column-gap: 20px; }
.case-card { display: inline-block; width: 100%; margin: 0 0 20px; overflow: hidden; break-inside: avoid; vertical-align: top; border-radius: 22px; background: #e9edf3; }
.case-card img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }

.clinic-gallery { column-count: 3; column-gap: 20px; }
.clinic-gallery__item { display: inline-block; width: 100%; margin: 0 0 20px; overflow: hidden; break-inside: avoid; vertical-align: top; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 32px rgba(16,24,40,.08); }
.clinic-gallery__item img { display: block; width: 100%; height: auto; }

.clinic-tape { width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; padding: 10px 0 28px; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.clinic-tape__track { display: flex; width: max-content; animation: clinic-tape-scroll 76s linear infinite; will-change: transform; }
.clinic-tape:hover .clinic-tape__track { animation-play-state: paused; }
.clinic-tape__group { display: flex; flex-shrink: 0; gap: 18px; padding-right: 18px; }
.clinic-tape__item { flex: 0 0 clamp(270px, 29vw, 430px); height: 290px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(16,24,40,.09); }
.clinic-tape__item img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
@keyframes clinic-tape-scroll { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .clinic-tape { overflow-x: auto; mask-image: none; }
  .clinic-tape__track { animation: none; }
  .clinic-tape__group[aria-hidden="true"] { display: none; }
}

.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.review-stars { color: #ffb400; letter-spacing: 2px; }
.review-card blockquote { margin: 16px 0; }
.review-card cite { color: var(--muted); font-style: normal; font-weight: 750; }
.review-form { max-width: 760px; margin-top: 40px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border: 1px solid #d0d5dd; border-radius: 12px; background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }

.page-hero { padding: 82px 0 64px; background: linear-gradient(135deg, #f0f4ff, #fff 58%, #eefaf6); }
.page-hero p { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 19px; }
.prose { max-width: 850px; }
.prose h2 { margin-top: 42px; font-size: 32px; }
.prose h3 { margin-top: 28px; font-size: 24px; }
.prose p, .prose li { color: #344054; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 12px; text-align: left; }
.doctor-single { display: grid; grid-template-columns: minmax(280px, 390px) 1fr; gap: 50px; align-items: start; }
.doctor-single__photo { position: sticky; top: 150px; border-radius: 28px; overflow: hidden; background: #e8edf5; }
.doctor-single__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; }
.contact-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.contact-card h2 { margin-top: 0; }
.contact-phone { display: block; margin: 10px 0; color: var(--blue); font-size: 22px; font-weight: 850; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button--max { color: #fff; background: #6c5ce7; box-shadow: 0 14px 34px rgba(108,92,231,.26); }
.map-static { position: relative; overflow: hidden; margin: 0; min-height: 460px; aspect-ratio: 16/9; border-radius: 24px; background: #e9edf3; box-shadow: 0 14px 42px rgba(16,24,40,.1); }
.map-static img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.map-static figcaption { position: absolute; left: 51%; top: 52%; display: grid; min-width: 160px; padding: 12px 16px; transform: translate(-50%, -100%); border: 2px solid #fff; border-radius: 15px; color: #fff; background: var(--blue); box-shadow: 0 10px 28px rgba(16,24,40,.28); line-height: 1.25; }
.map-static figcaption::after { position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; transform: translateX(-50%) rotate(45deg); background: var(--blue); content: ""; }
.map-static figcaption strong, .map-static figcaption span { position: relative; z-index: 1; }
.map-static figcaption span { margin-top: 3px; font-size: 13px; }

.documents-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.document-card { display: flex; min-height: 220px; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 34px rgba(16,24,40,.06); transition: transform .2s ease, box-shadow .2s ease; }
.document-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.document-card span { color: var(--blue); font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.document-card h2, .document-card h3 { margin: 16px 0 24px; font-size: 22px; line-height: 1.25; }
.document-card strong { margin-top: auto; color: var(--blue); }

.max-float { position: fixed; z-index: 190; right: 26px; bottom: 26px; display: grid; width: 116px; height: 116px; place-content: center; border: 4px solid #fff; border-radius: 50%; color: #fff; background: #6c5ce7; box-shadow: 0 16px 40px rgba(39,31,108,.36); text-align: center; line-height: 1.15; }
.max-float strong { font-size: 24px; }
.max-float span { margin-top: 5px; font-size: 14px; font-weight: 800; }

.site-footer { padding: 64px 0 30px; background: var(--navy); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { width: 150px; filter: brightness(0) invert(1); }
.site-footer h3 { margin: 0 0 14px; font-size: 17px; }
.site-footer p, .site-footer li, .site-footer a { color: rgba(255,255,255,.68); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: 13px; }

.cookie-banner { position: fixed; z-index: 200; left: 20px; right: 20px; bottom: 18px; display: none; max-width: 760px; margin: 0 auto; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

@media (max-width: 1080px) {
  .main-nav { position: fixed; inset: 120px 20px auto; display: none; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 8px; }
  .main-nav a { display: block; padding: 10px; }
  .menu-toggle { display: inline-flex; }
  .doctor-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 28px; }
  .hero h1 { font-size: clamp(38px, 4.6vw, 54px); }
  .hero__visual img { min-height: 400px; }
}

@media (min-width: 781px) {
  .hero { min-height: max(680px, calc(100svh - 149px)); color: #fff; background: #0b1932; }
  .hero::before, .hero::after { display: none; }
  .hero__grid { min-height: inherit; grid-template-columns: minmax(0, 720px); align-items: center; padding-block: 72px; }
  .hero__content { position: relative; z-index: 2; max-width: 720px; padding: 44px; border: 1px solid rgba(255,255,255,.28); border-radius: 30px; background: rgba(7,18,38,.66); box-shadow: 0 24px 70px rgba(4,14,34,.3); backdrop-filter: blur(14px); }
  .hero h1 { color: #fff; }
  .hero .eyebrow { color: #fff; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); }
  .hero__lead, .hero__benefits { color: rgba(255,255,255,.88); }
  .hero__visual { position: absolute; z-index: 0; inset: 0 auto 0 50%; width: 100vw; margin: 0; padding: 0; transform: translateX(-50%); border: 0; border-radius: 0; background: #0b1932; box-shadow: none; }
  .hero__visual::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,15,34,.64) 0%, rgba(5,15,34,.26) 56%, rgba(5,15,34,.06) 100%); content: ""; }
  .hero__visual img { width: 100%; height: 100%; min-height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center; border-radius: 0; animation: hero-alive 16s ease-in-out infinite alternate; }
  .hero__visual figcaption { z-index: 2; left: auto; right: 40px; max-width: 520px; }
}

@keyframes hero-alive { from { transform: scale(1.01); } to { transform: scale(1.06); } }

@media (max-width: 780px) {
  :root { --container: min(100% - 28px, 680px); --radius: 20px; }
  .contact-strip__inner { min-height: 42px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 8px 0; }
  .contact-strip__address { display: none; }
  .contact-strip__center { grid-column: 1; justify-self: start; font-size: 12px; padding-inline: 10px; }
  .contact-strip__phones { grid-column: 2; justify-self: end; gap: 8px; padding-right: 10px; font-size: 12px; }
  .contact-strip__phones a { font-size: 12px; }
  .contact-strip__phones a:not(:first-child) { display: none; }
  .medflex-round-widget__button { display: none !important; }
  .nav-row { min-height: 66px; }
  .site-logo img { width: 116px; }
  .header-call { display: none; }
  .main-nav { inset: 110px 14px auto; }
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; margin-block: 22px; padding-block: 0; }
  .hero__content { position: relative; z-index: 2; min-height: 620px; padding: clamp(230px, 52vw, 380px) clamp(24px, 5vw, 38px) 42px; color: #fff; }
  .hero h1 { max-width: 680px; color: #fff; font-size: clamp(42px, 8vw, 60px); text-shadow: 0 2px 22px rgba(5,15,34,.28); }
  .hero .eyebrow { color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); }
  .hero__lead { color: rgba(255,255,255,.84); }
  .hero__actions .button { flex: 1 1 180px; }
  .hero__benefits { color: rgba(255,255,255,.9); }
  .hero__visual { position: absolute; z-index: 0; inset: 0; width: auto; max-width: none; overflow: hidden; padding: 0; border: 0; border-radius: 30px; background: #0b1932; box-shadow: 0 24px 60px rgba(12,27,58,.2); }
  .hero__visual::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,15,34,0) 0%, rgba(5,15,34,.12) 30%, rgba(5,15,34,.82) 62%, #0b1932 100%); content: ""; }
  .hero__visual img { position: absolute; inset: 0 0 auto; width: 100%; height: 62%; min-height: 0; aspect-ratio: auto; object-fit: cover; object-position: center; border-radius: 0; }
  .hero__mobile-booking { position: absolute; z-index: 3; top: 18px; right: 18px; display: inline-flex; width: 78px; height: 78px; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 12px 30px rgba(14,35,98,.32); font-size: 14px; font-weight: 850; }
  .hero__visual figcaption { display: none; }
  .button--hero-secondary { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.12); box-shadow: none; backdrop-filter: blur(8px); }
  .section { padding: 68px 0; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 28px; }
  .cards, .doctor-grid, .case-grid, .reviews-grid, .documents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { column-count: 2; }
  .clinic-gallery { column-count: 2; }
  .clinic-tape__item { flex-basis: 300px; height: 230px; }
  .feature-split, .contact-grid, .doctor-single { grid-template-columns: 1fr; }
  .feature-split__image { min-height: 320px; }
  .feature-split__content { padding: 34px 26px; }
  .doctor-single__photo { position: static; max-width: 430px; }
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 18px; border-top: 1px solid #edf0f4; }
  .price-table td { padding: 4px 0; border: 0; }
  .price-table td:first-child { grid-row: 1 / span 2; padding-right: 16px; }
  .price-table td:nth-child(2), .price-table td:nth-child(3) { text-align: right; }
  .service-gallery-modal { padding: 12px; }
  .service-gallery-modal__dialog { max-height: calc(100vh - 24px); border-radius: 20px; }
  .service-gallery-modal__header { padding: 20px; }
  .service-gallery-modal__grid { columns: 2; padding: 16px; }
  .voxel-modal__content { padding: 20px; }
  .voxel-modal__media { grid-template-columns: 1fr; }
  .map-static { min-height: 360px; }
  .max-float { right: 18px; bottom: 18px; width: 94px; height: 94px; }
}

@media (max-width: 520px) {
  .service-gallery-modal__header { display: block; padding: 18px 16px; }
  .service-gallery-modal__header > div { min-width: 0; }
  .service-gallery-modal__header h2 { padding-right: 0; overflow-wrap: normal; font-size: 24px; }
  .service-gallery-modal__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; }
  .service-gallery-modal__header .eyebrow { margin-right: 54px; }
  .voxel-modal { overflow-x: hidden; }
  .voxel-modal__content, .voxel-modal__media, .voxel-modal__copy { min-width: 0; }
  .voxel-partner__locations { grid-template-columns: 1fr; }
  .contact-strip__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-strip__center { grid-column: 1; justify-self: start; }
  .contact-strip__phones { grid-column: 2; justify-self: end; }
  .hero__grid { gap: 0; margin-block: 14px 20px; padding-block: 0; }
  .hero__content { min-height: 0; padding: 230px 18px 30px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 40px); }
  .hero__actions { flex-direction: column; }
  .hero__actions .button { width: 100%; flex: 0 0 auto; }
  .hero__benefits { display: grid; gap: 10px; }
  .hero__visual { padding: 0; border-radius: 24px; }
  .hero__visual img { height: 54%; aspect-ratio: auto; border-radius: 0; object-position: center; }
  .cards, .doctor-grid, .case-grid, .reviews-grid, .form-grid, .footer-grid, .documents-grid { grid-template-columns: 1fr; }
  .case-grid { column-count: 1; }
  .clinic-gallery { column-count: 1; }
  .page-hero { padding: 60px 0 46px; }
  .card__body, .doctor-card__body { padding: 20px; }
  .price-section__title { font-size: 19px; }
  .price-table tr { grid-template-columns: 1fr; }
  .price-table td:first-child { grid-row: auto; padding-right: 0; }
  .price-table td:nth-child(2), .price-table td:nth-child(3) { text-align: left; }
  .footer-bottom { flex-direction: column; }
  .service-gallery-modal__grid { columns: 1; }
}

html.zav-a11y {
  --ink: #000;
  --muted: #111;
  --blue: #0000b8;
  --blue-dark: #0000b8;
  --blue-soft: #fff3a3;
  --navy: #000;
  --soft: #fff;
  --line: #000;
  --green: #006b3c;
  font-size: 125%;
  scroll-behavior: auto;
}
html.zav-a11y body { color: #000; background: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 20px; line-height: 1.65; letter-spacing: .015em; }
html.zav-a11y body *, html.zav-a11y body *::before, html.zav-a11y body *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
html.zav-a11y :focus-visible { outline: 4px solid #ffdf00 !important; outline-offset: 4px !important; }
html.zav-a11y a:not(.button, .header-call, .case-marquee) { color: #0000b8; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
html.zav-a11y p, html.zav-a11y li, html.zav-a11y td, html.zav-a11y th, html.zav-a11y label, html.zav-a11y input, html.zav-a11y textarea, html.zav-a11y select { font-size: 18px; line-height: 1.65; }
html.zav-a11y h1, html.zav-a11y h2, html.zav-a11y h3 { color: #000; line-height: 1.2; letter-spacing: 0; }
html.zav-a11y .contact-strip { color: #fff; border-color: #fff; background: #000; }
html.zav-a11y .contact-strip__address { color: #fff; }
html.zav-a11y .contact-strip a { color: #ffdf00; text-decoration: underline; }
html.zav-a11y .site-header, html.zav-a11y .nav-row, html.zav-a11y .main-nav { color: #000; background: #fff; }
html.zav-a11y .main-nav a { color: #0000b8; font-size: 18px; text-decoration: underline; }
html.zav-a11y .main-nav a::after { display: none; }
html.zav-a11y .button, html.zav-a11y .header-call, html.zav-a11y button { min-height: 52px; color: #000 !important; border: 3px solid #000 !important; background: #ffdf00 !important; box-shadow: none !important; font-size: 18px; text-decoration: none !important; }
html.zav-a11y .a11y-toggle { min-width: 64px; font-weight: 900; }
html.zav-a11y .hero, html.zav-a11y .page-hero, html.zav-a11y .section, html.zav-a11y .section--soft { color: #000; background: #fff; }
html.zav-a11y .hero::before, html.zav-a11y .hero::after { display: none; }
html.zav-a11y .hero { min-height: 0; }
html.zav-a11y .hero__grid { grid-template-columns: minmax(0, 1fr); padding-block: 56px; }
html.zav-a11y .hero__content { max-width: 1050px; }
html.zav-a11y .hero__visual { display: none; }
html.zav-a11y .hero h1 { max-width: 1000px; }
html.zav-a11y .hero .eyebrow, html.zav-a11y .eyebrow { color: #000; border: 2px solid #000; background: #ffdf00; backdrop-filter: none; }
html.zav-a11y .hero__lead, html.zav-a11y .hero__benefits, html.zav-a11y .section-heading p { color: #000; }
html.zav-a11y .hero__visual, html.zav-a11y .card, html.zav-a11y .doctor-card, html.zav-a11y .review-card, html.zav-a11y .price-section, html.zav-a11y .feature-split { border: 3px solid #000; box-shadow: none; }
html.zav-a11y .clinic-gallery__item { border: 3px solid #000; box-shadow: none; }
html.zav-a11y .clinic-tape { overflow-x: auto; mask-image: none; }
html.zav-a11y .clinic-tape__track { animation: none !important; }
html.zav-a11y .clinic-tape__group[aria-hidden="true"] { display: none; }
html.zav-a11y .clinic-tape__item { border: 3px solid #000; box-shadow: none; }
html.zav-a11y .service-card { color: #000 !important; border: 3px solid #000 !important; background: #fff !important; text-align: left; }
html.zav-a11y .service-gallery-modal__backdrop { min-height: 0 !important; border: 0 !important; border-radius: 0 !important; background: rgba(0,0,0,.88) !important; }
html.zav-a11y .service-gallery-modal__dialog { border: 3px solid #000; background: #fff; }
html.zav-a11y .voxel-modal__copy, html.zav-a11y .voxel-modal__copy h3, html.zav-a11y .voxel-modal__list strong { color: #000 !important; }
html.zav-a11y .voxel-modal__quote { border: 3px solid #000; color: #000 !important; background: #fff !important; }
html.zav-a11y .voxel-partner, html.zav-a11y .voxel-partner__location { border-color: #000; }
html.zav-a11y .voxel-partner__location { color: #000 !important; background: #fff !important; }
html.zav-a11y .voxel-partner__location h4 { color: #000 !important; }
html.zav-a11y .page-hero { padding: 52px 0 36px; border-bottom: 2px solid #000; }
html.zav-a11y .section { padding-block: 56px; }
html.zav-a11y .doctor-single { gap: 36px; }
html.zav-a11y .doctor-single__photo { border: 3px solid #000; background: #fff; }
html.zav-a11y .prose, html.zav-a11y .prose :where(p, li, strong) { color: #000; }
html.zav-a11y img:not(.site-logo img) { filter: grayscale(1) contrast(1.08); }
html.zav-a11y .case-marquee { color: #ffdf00; border-color: #fff; background: #000; text-decoration: none; }
html.zav-a11y .section--navy, html.zav-a11y .feature-split__content, html.zav-a11y .site-footer { color: #fff; background: #000; }
html.zav-a11y .section--navy :where(h1, h2, h3, p, li, span), html.zav-a11y .feature-split__content :where(h1, h2, h3, p, li, span), html.zav-a11y .site-footer :where(h1, h2, h3, p, li, span) { color: #fff; }
html.zav-a11y .section--navy a:not(.button), html.zav-a11y .feature-split__content a:not(.button), html.zav-a11y .site-footer a:not(.button) { color: #ffdf00; }
html.zav-a11y .price-tabs button.is-active { color: #fff !important; background: #000 !important; }
html.zav-a11y .price-table, html.zav-a11y .price-table tr, html.zav-a11y .price-table td, html.zav-a11y .price-table th { border-color: #000; }
html.zav-a11y input, html.zav-a11y textarea, html.zav-a11y select { color: #000; border: 3px solid #000; background: #fff; }
html.zav-a11y .cookie-banner { color: #fff; border: 3px solid #fff; background: #000; }
html.zav-a11y .medflex-round-widget__button { color: #000 !important; border: 3px solid #000 !important; background: #ffdf00 !important; box-shadow: none !important; }
html.zav-a11y .medflex-round-widget__button::before, html.zav-a11y .medflex-round-widget__button::after { background: #ffdf00 !important; box-shadow: none !important; }

@media (max-width: 780px) {
  html.zav-a11y .hero__grid { border: 3px solid #000; border-radius: 24px; background: #fff; }
  html.zav-a11y .hero__content { min-height: 0; padding: 38px 28px; color: #000; }
  html.zav-a11y .hero h1, html.zav-a11y .hero__lead, html.zav-a11y .hero__benefits { color: #000; text-shadow: none; }
  html.zav-a11y .main-nav { border: 3px solid #000; }
  html.zav-a11y .page-hero { padding: 38px 0 28px; }
  html.zav-a11y .section { padding-block: 42px; }
}

@media (max-width: 520px) {
  html.zav-a11y { font-size: 112.5%; }
  html.zav-a11y body { font-size: 18px; }
  html.zav-a11y p, html.zav-a11y li, html.zav-a11y td, html.zav-a11y th, html.zav-a11y label, html.zav-a11y input, html.zav-a11y textarea, html.zav-a11y select { font-size: 17px; }
  html.zav-a11y .hero h1 { font-size: 38px; }
  html.zav-a11y .hero__content { padding: 30px 18px; }
}
