/* ============================================
   ЭСТЕТИК — Stylesheet
   ============================================ */

/* ============ FONT FACE ============ */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter.woff2') format('woff2');
}

/* ============ VARIABLES ============ */
:root {
    --white: #FFFFFF;
    --light: #F0F4F8;
    --bg: #F0F4F8;
    --bg-soft: #E8EEF4;
    --sky: #0F488C;
    --sky-dark: #0A3A70;
    --green: #D64550;
    --green-dark: #B0323C;
    --sage: #4C9BD4;
    --sage-dark: #3583BC;
    --text: #1C1C1E;
    --muted: #5F6C79;
    --text-soft: #4A4A4A;
    --border: #D6E0EA;
    --line: rgba(15, 72, 140, 0.18);
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(15, 72, 140, 0.06);
    --shadow: 0 4px 20px rgba(15, 72, 140, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 72, 140, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ TOPBAR ============ */
.topbar {
    position: fixed; top: 12px; left: 16px; right: 16px; z-index: 1000;
}
body:has(.announcement) .hero { padding-top: 170px; }

/* ============ ANNOUNCEMENT ============ */
.announcement {
    background: linear-gradient(135deg, #0F488C, #0A3A70);
    color: #fff; text-align: center;
    padding: 10px 20px; font-size: 0.9rem; font-weight: 600;
    border-radius: 12px 12px 0 0;
}
.announcement p { margin: 0; }

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px; line-height: 1.6; color: var(--text-soft);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    transition: padding-top 0.2s, font-size 0.2s, letter-spacing 0.2s, line-height 0.2s, font-family 0.2s;
}
a { text-decoration: none; color: var(--text); }
img { max-width: 100%; display: block; }
::selection { background: var(--sage); color: #fff; }

/* ============ CONTAINER ============ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 14px 28px; border-radius: 100px;
    font-size: 0.95rem; font-weight: 700; font-family: inherit;
    border: none; cursor: pointer; transition: var(--transition); white-space: nowrap;
    background: var(--green); color: #fff;
    box-shadow: 0 6px 20px rgba(214, 69, 80, 0.32);
}
.btn:hover {
    transform: translateY(-2px); background: var(--green-dark);
    box-shadow: 0 10px 28px rgba(214, 69, 80, 0.4);
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost {
    background: transparent; color: var(--sky);
    border: 2px solid var(--sky);
}
.btn--ghost:hover {
    background: var(--sky); color: #fff;
    border-color: var(--sky);
}
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* ============ HEADER ============ */
.main-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid rgba(15, 72, 140, 0.12);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 24px rgba(15, 72, 140, 0.15);
}
body:not(:has(.announcement)) .main-header { border-radius: 16px; }
.main-header .container { position: relative; }
.header-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 60px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.phones { font-size: 15px; text-align: right; line-height: 1.4; }
.phones a { display: block; font-weight: 700; color: var(--sky); transition: var(--transition); }
.phones a:hover { color: var(--green); }
.phones a:first-child { font-size: 16px; }
.header-actions .btn {
    padding: 12px 24px; font-size: 0.95rem; font-weight: 700;
    background: var(--green); color: #fff;
    border: none; border-radius: 100px;
    box-shadow: 0 4px 14px rgba(214, 69, 80, 0.32);
}
.header-actions .btn:hover {
    background: var(--green-dark); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(214, 69, 80, 0.3);
}
.vision-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(15, 72, 140, 0.06); border: 1px solid rgba(15, 72, 140, 0.2);
    color: var(--sky); cursor: pointer; transition: var(--transition);
}
.vision-toggle:hover { background: rgba(15, 72, 140, 0.12); color: var(--sky); border-color: rgba(15, 72, 140, 0.4); }
.vision-toggle svg { width: 22px; height: 22px; }
.search-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(15, 72, 140, 0.06); border: 1px solid rgba(15, 72, 140, 0.2);
    color: var(--sky); cursor: pointer; transition: var(--transition);
}
.search-toggle:hover { background: rgba(15, 72, 140, 0.12); color: var(--sky); border-color: rgba(15, 72, 140, 0.4); }
.search-toggle svg { width: 20px; height: 20px; }

/* ============ SITE SEARCH ============ */
.site-search {
    position: fixed; top: 96px; left: 16px; right: 16px; z-index: 999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 72, 140, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(15, 72, 140, 0.18);
}
.site-search[hidden] { display: none; }
.site-search-inner { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.site-search-icon { width: 20px; height: 20px; color: var(--sky); flex-shrink: 0; }
.site-search input {
    flex: 1; border: none; outline: none; background: transparent;
    font-family: inherit; font-size: 16px; color: var(--text);
    min-width: 0;
}
.site-search input::placeholder { color: var(--muted); }
.site-search input::-webkit-search-cancel-button { display: none; }
.search-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: rgba(15, 72, 140, 0.06); color: var(--sky);
    font-size: 20px; line-height: 1; cursor: pointer; transition: var(--transition);
    flex-shrink: 0;
}
.search-close:hover { background: rgba(15, 72, 140, 0.14); }
.search-results { max-height: 55vh; overflow-y: auto; }
.search-results:empty { display: none; }
.search-hit {
    display: block; padding: 12px 14px; margin-bottom: 8px;
    border-radius: 12px; border: 1px solid rgba(15, 72, 140, 0.1);
    background: #fff; cursor: pointer; transition: var(--transition);
}
.search-hit:last-child { margin-bottom: 12px; }
.search-hit:hover { border-color: var(--sage); box-shadow: var(--shadow-sm); }
.search-hit__section { font-size: 12px; font-weight: 700; color: var(--sky); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.search-hit__text { font-size: 14px; color: var(--text-soft); line-height: 1.45; }
.search-hit__text mark { background: rgba(76, 155, 212, 0.3); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-empty { padding: 14px; font-size: 14px; color: var(--muted); }
.search-flash { outline: 3px solid var(--sage) !important; outline-offset: 4px; border-radius: 8px; transition: outline 0.2s; }
nav { display: flex; align-items: center; gap: 28px; margin: 0 auto; }
nav a {
    position: relative; font-size: 15px; font-weight: 600;
    color: var(--text); padding: 8px 2px;
    transition: var(--transition); white-space: nowrap;
}
nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 3px; background: var(--sage);
    border-radius: 3px; transition: var(--transition);
}
nav a:hover { color: var(--sky); }
nav a:hover::after { width: 100%; }
.menu-toggle {
    display: none; background: none; border: none;
    font-size: 24px; color: var(--sky); cursor: pointer;
}

/* ============ HERO ============ */
.hero {
    position: relative; padding: 130px 0 100px;
    background: url('../img/hero.webp') center / cover no-repeat;
    color: #fff; overflow: hidden;
}
.hero::after { display: none; }
.hero .container { position: relative; z-index: 1; background: rgba(255, 255, 255, 0.92); border-radius: 24px; padding: 40px 36px; max-width: 600px; margin: 0 0 0 max(24px, calc((100vw - 1180px) / 2)); }
.hero__badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(15, 72, 140, 0.12);
    box-shadow: 0 2px 12px rgba(15, 72, 140, 0.08);
    font-size: 0.85rem; font-weight: 600; color: var(--sky);
    margin-bottom: 20px;
}
.hero__badge svg { color: var(--sky); }
.hero__title {
    font-size: clamp(26px, 3.8vw, 42px); font-weight: 800;
    line-height: 1.15; color: var(--text); margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero__title-accent { color: var(--sky); }
.hero__subtitle {
    font-size: clamp(15px, 2vw, 19px); color: var(--text-soft);
    line-height: 1.7; margin-bottom: 32px; max-width: 520px;
}
.hero__actions { display: flex; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.hero__trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.hero__trust-item svg { width: 20px; height: 20px; color: var(--sage); flex-shrink: 0; }
.hero .btn--ghost { color: var(--sky); border-color: var(--sky); }
.hero .btn--ghost:hover { color: #fff; background: var(--sky); border-color: var(--sky); }

/* ============ SECTIONS ============ */
section { padding: 90px 0; }
.alt { background: var(--light); }
h2 {
    text-align: center; font-size: clamp(28px, 3.6vw, 38px);
    font-weight: 700; margin-bottom: 16px; color: var(--text);
    letter-spacing: -0.015em;
}
.section__head { text-align: center; margin-bottom: 48px; }
.section__title {
    font-size: clamp(28px, 3.4vw, 38px); font-weight: 800;
    color: var(--text); margin-bottom: 12px;
}

/* ============ ABOUT ============ */
.about__text {
    max-width: 760px; margin: 0 auto 48px; text-align: center;
    font-size: 17px; color: var(--text-soft); line-height: 1.7;
}
.about__gallery {
    display: grid; grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px; gap: 16px; max-width: 900px; margin: 0 auto;
}
.about__photo {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow);
    transition: var(--transition); cursor: pointer;
}
.about__photo:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.about__photo--lg { grid-column: span 2; grid-row: span 2; }
.about__photo--wide { grid-column: span 2; }

/* ============ LIGHTBOX ============ */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center; justify-content: center; padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox__img {
    max-width: 90vw; max-height: 85vh; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
    position: absolute; top: 20px; right: 30px;
    font-size: 40px; color: #fff; cursor: pointer;
    line-height: 1; user-select: none; transition: var(--transition);
    background: none; border: none; padding: 8px;
}
.lightbox__close:hover { color: var(--sage); }
.lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 36px; color: rgba(255, 255, 255, 0.7);
    cursor: pointer; user-select: none; padding: 16px;
    transition: var(--transition);
    background: none; border: none;
}
.lightbox__nav:hover { color: #fff; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

/* ============ SERVICES ============ */
.services__grid {
    display: grid; gap: 20px;
    grid-template-columns: repeat(2, 1fr);
}
.service-card {
    padding: 20px 28px; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: var(--transition);
    display: flex; align-items: center; gap: 20px;
    box-shadow: var(--shadow);
}
.service-card:hover {
    border-color: var(--sky);
    box-shadow: var(--shadow-lg); transform: translateY(-4px);
}
.service-card__icon {
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0;
    background: rgba(15, 72, 140, 0.1); color: var(--sky);
    transition: var(--transition);
}
.service-card__icon svg { width: 38px; height: 38px; }
.service-card:hover .service-card__icon { background: var(--sky); color: var(--white); }
.service-card__body { flex: 1; }
.service-card__cat { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.service-card__title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.service-card__title--short { display: none; }
.service-card__title--full { display: block; }
.service-card__price { font-size: 1.1rem; font-weight: 800; color: var(--sky); white-space: nowrap; flex-shrink: 0; }
.service-card__link { font-size: 0.9rem; font-weight: 600; color: var(--sage); transition: var(--transition); margin-top: auto; }
.service-card__link:hover { color: var(--sage-dark); }
.services__actions {
    display: flex; justify-content: center; gap: 16px;
    margin-top: 40px; flex-wrap: wrap;
}
.services__actions .btn--ghost {
    background: transparent; color: var(--sky);
    border: 2px solid var(--sky);
}
.services__actions .btn--ghost:hover {
    background: var(--sky); border-color: var(--sky); color: #fff;
}

/* ============ DOCTORS ============ */
.doctors-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.doctors-grid--single { grid-template-columns: 1fr; }
.doctor { display: flex; align-items: center; gap: 24px; padding-left: 20px;
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.doctor:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.doctor img { width: 96px; height: 96px; flex-shrink: 0; border-radius: 50%; padding: 10px; object-fit: cover; }
.doctor--wide { padding: 32px; gap: 40px; align-items: stretch; }
.doctor--wide img { width: 320px; height: 320px; border-radius: 14px; padding: 0; object-fit: cover; }
.doctor--wide .info { padding: 0; flex: 1; display: flex; flex-direction: column; }
.doctor--wide .doctor__exp { font-size: 1.15rem; margin-bottom: 12px; }
.doctor .info { padding: 16px 16px 16px 0; }
.doctor h3 { margin-bottom: 6px; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.doctor span { display: block; color: var(--sky); font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.doctor__exp { color: var(--text-soft); font-size: 0.85rem; }
.doctor__details { margin-top: 10px; }
.doctor--wide h3 { font-size: 2rem; margin-bottom: 16px; }
.doctor--wide span { font-size: 1.3rem; margin-bottom: 14px; }
.doctor__details summary {
    cursor: pointer; font-size: 1rem; font-weight: 600;
    color: var(--sky); user-select: none;
    padding: 10px 0 6px; border-top: 1px solid var(--border);
}
.doctor__details summary:hover { color: var(--sky-dark); }
.doctor__edu { padding: 10px 0 4px; display: flex; flex-direction: column; margin-top: auto; }
.doctor__edu p:last-child { padding-top: 12px; }
.doctor__edu p { font-size: 1rem; color: var(--text-soft); line-height: 1.6; margin-bottom: 10px; }
.doctor__edu strong { color: var(--text); font-weight: 600; }
.doctor__docs-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--sky); font-size: 0.95rem; font-weight: 600;
    text-decoration: none; padding: 8px 18px;
    border: 1px solid var(--sky); border-radius: 8px;
    transition: var(--transition);
}
.doctor__docs-link:hover { background: var(--sky); color: #fff; }

/* ============ REVIEWS ============ */
.reviews__external { margin-top: 32px; }
.reviews__external-link {
    display: inline-flex; align-items: center;
    padding: 8px 20px; border-radius: 100px;
    font-size: 0.9rem; font-weight: 700;
    background: var(--white); color: var(--sky);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.reviews__external-link:hover {
    background: var(--sky); color: #fff; border-color: var(--sky);
}

/* ============ CONTACTS & FORM ============ */
.contacts-section { padding: 0; }
.contacts-section__top { padding: 80px 0; background: var(--bg-soft); }
.contacts-section__grid {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 0;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.contacts-section__panel {
    background: var(--sky); color: #fff;
    padding: 48px 40px;
    display: flex; flex-direction: column; gap: 24px;
}
.contacts-section__title {
    font-size: clamp(24px, 3vw, 32px); font-weight: 800;
    color: #fff; line-height: 1.2; margin-bottom: 4px;
}
.contacts-section__desc { color: rgba(255, 255, 255, 0.8); font-size: 1rem; line-height: 1.6; margin-bottom: 8px; }
.contacts-section__item {
    display: flex; align-items: flex-start; gap: 12px;
}
.contacts-section__icon {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}
.contacts-section__item strong {
    display: block; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.7); margin-bottom: 4px;
}
.contacts-section__item p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.95); line-height: 1.5; word-break: break-word; overflow-wrap: break-word; }
.contacts-section__item a {
    color: #fff; font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}
.contacts-section__item a:hover { color: rgba(255, 255, 255, 0.8); border-color: rgba(255, 255, 255, 0.5); }

/* ============ MAP ============ */
.contacts-section__map-wrap { position: relative; width: 100%; }
.contacts-section__grid .contacts-section__map-wrap { height: 100%; min-height: 440px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; overflow: hidden; }
.contacts-section__grid .contacts-section__map { height: 100%; }
.contacts-section__map {
    width: 100%; height: 380px; border: none; display: block;
    background: var(--bg-soft) url('../img/map.webp') center / cover no-repeat;
}
.contacts-section__map-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 72, 140, 0.7), rgba(15, 72, 140, 0.5)),
        url('../img/map.webp') center / cover no-repeat;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); color: #fff;
}
.contacts-section__map-overlay:hover {
    background:
        linear-gradient(135deg, rgba(15, 72, 140, 0.55), rgba(15, 72, 140, 0.35)),
        url('../img/map.webp') center / cover no-repeat;
}
.contacts-section__map-overlay span {
    color: #fff; font-size: 1rem; font-weight: 600;
    padding: 6px 20px; border-radius: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}
.reviews__maps {
    display: grid; gap: 24px; justify-content: center;
    grid-template-columns: repeat(3, 1fr);
}
.reviews__map-card {
    margin: 0; background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow); transition: var(--transition);
    display: flex; flex-direction: column; align-items: center;
}
.reviews__map-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.reviews__map-card img { height: 45px; width: auto; max-width: calc(100% - 40px); display: block; margin: 20px auto 0; }
.reviews__map-card figcaption {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; flex-wrap: wrap;
    padding: 14px 20px; font-size: 0.95rem;
    width: 100%;
}
.reviews__map-card figcaption strong { color: var(--text); margin-right: 4px; }

/* ============ CERTIFICATES ============ */
.certificates-grid {
    display: grid; gap: 16px; margin-top: 24px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.certificate {
    background: var(--white); border-radius: var(--radius);
    padding: 18px; text-align: center;
    border: 1px solid var(--border); box-shadow: var(--shadow);
    transition: var(--transition);
}
.certificate:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.certificate img { width: 100%; border-radius: 12px; margin-bottom: 12px; }
.certificate div { font-size: 13px; font-weight: 500; color: var(--muted); }

/* ============ FOOTER ============ */
.footer { background: var(--sky); color: rgba(255, 255, 255, 0.7); padding: 0 0 28px; }
.footer__disclaimer-bar {
    width: 100%; background: var(--sage); text-align: center;
    padding: 14px 16px;
}
.footer__disclaimer-bar p {
    font-size: 0.9em; font-weight: 800; color: #fff;
    text-transform: uppercase; letter-spacing: 1px;
}
.footer__inner {
    display: grid; grid-template-columns: 1fr auto; gap: 48px;
    padding: 32px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__legal { display: flex; flex-direction: column; gap: 4px; }
.footer__legal-title { font-size: 1.1em; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer__legal p { font-size: 0.9em; line-height: 1.7; }
.footer__legal a { color: var(--sage); transition: var(--transition); }
.footer__legal a:hover { color: #fff; }
.footer__regulators { display: flex; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.footer__regulators-item { display: flex; align-items: center; gap: 10px; }
.footer__regulators-item img { height: 56px; width: 56px; object-fit: contain; flex-shrink: 0; }
.footer__regulators-item span { font-size: 0.85em; color: rgba(255, 255, 255, 0.85); line-height: 1.3; max-width: 150px; }
.footer__regulators-text { display: none; font-size: 0.85em; color: rgba(255, 255, 255, 0.85); font-weight: 400; }
@media (max-width: 900px) {
    .footer__regulators { display: none; }
    .footer__regulators-text { display: inline; }
}
.footer__docs { display: flex; flex-direction: column; gap: 8px; }
.footer__docs-title { font-size: 1.1em; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer__docs-title:not(:first-child) { margin-top: 16px; }
.footer__docs p { font-size: 0.9em; line-height: 1.7; }
.footer__docs a {
    font-size: 0.9em; color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}
.footer__docs a:hover { color: #fff; }
.footer__bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px; padding-top: 20px;
}
.footer__bottom p { font-size: 0.9em; }
.footer__dev { display: flex; align-items: center; gap: 6px; }
.footer__dev a { color: rgba(255, 255, 255, 0.8); transition: var(--transition); }
.footer__dev a:hover { color: #fff; }
.footer__dev-icon { width: 18px; height: 18px; opacity: 0.7; transition: var(--transition); }
.footer__dev:hover .footer__dev-icon { opacity: 1; }

/* ============ BVI PANEL ============ */
.bvi-panel {
    position: fixed; top: 64px; left: 0; right: 0; z-index: 1001;
    background: #fff; border-bottom: 2px solid #000;
    padding: 14px 0; display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.bvi-open .bvi-panel { display: block; }
.bvi-open { padding-top: 0; }
.bvi-open .announcement { position: relative; }
.bvi-open .bvi-panel { top: 0; }
.bvi-blocks { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 12px; padding: 0 10px; }
.bvi-block { text-align: center; flex-shrink: 0; }
.bvi-block-title { font-size: 12px; margin-bottom: 8px; font-weight: 700; color: #000; }
.bvi-block-values { display: flex; align-items: center; gap: 6px; }
.bvi-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; box-sizing: border-box;
    background: #f0f0f0; border: 1px solid #999; border-radius: 8px;
    cursor: pointer; text-decoration: none;
    color: #000; position: relative; overflow: hidden;
}
.bvi-link.active { border-color: #0066cc; box-shadow: 0 0 0 1px #0066cc; }
.bvi-fontSize-1 { font-size: 14px; font-weight: 700; }
.bvi-fontSize-2 { font-size: 18px; font-weight: 700; }
.bvi-fontSize-3 { font-size: 24px; font-weight: 700; }
.bvi-link[data-ls], .bvi-link[data-lh], .bvi-link[data-ff] { font-size: 20px; font-weight: 700; }
.bvi-swatch {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; border-radius: 5px;
}
.bvi-swatch-letter { font-size: 16px; font-weight: 700; background: transparent !important; }
.bvi-swatch-white { background: #fff; }
.bvi-swatch-black { background: #000; }
.bvi-swatch-blue { background: #9dd1ff; }
.bvi-swatch-beige { background: #f7f3d6; }
.bvi-swatch-green { background: #3b2716; }
.bvi-swatch-text-black { color: #000; }
.bvi-swatch-text-white { color: #fff; }
.bvi-swatch-text-blue { color: #063462; }
.bvi-swatch-text-beige { color: #4d4b43; }
.bvi-swatch-text-green { color: #a9e44d; }
.bvi-exit {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 14px;
    background: #f0f0f0; color: #000; border: 2px solid #000; border-radius: 8px;
    cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 600;
    white-space: nowrap;
}

/* ============ BVI THEMES ============ */
body.bvi-theme-white { color: #000 !important; background: #fff !important; }
body.bvi-theme-white * { color: #000 !important; background-color: #fff !important; border-color: #ccc !important; }

body.bvi-theme-black { color: #fff !important; background: #000 !important; }
body.bvi-theme-black * { color: #fff !important; background-color: #000 !important; border-color: #555 !important; }
body.bvi-theme-black img,
body.bvi-theme-green img { filter: grayscale(100%) invert(1) !important; }

body.bvi-theme-blue { color: #063462 !important; background: #9dd1ff !important; }
body.bvi-theme-blue * { color: #063462 !important; background-color: #9dd1ff !important; border-color: #063462 !important; }

body.bvi-theme-beige { color: #4d4b43 !important; background: #f7f3d6 !important; }
body.bvi-theme-beige * { color: #4d4b43 !important; background-color: #f7f3d6 !important; border-color: #4d4b43 !important; }

body.bvi-theme-green { color: #a9e44d !important; background: #3b2716 !important; }
body.bvi-theme-green * { color: #a9e44d !important; background-color: #3b2716 !important; border-color: #a9e44d !important; }

/* BVI panel is constant — one blanket reset with higher specificity than theme * rules */
body.bvi-theme-white .bvi-panel,
body.bvi-theme-black .bvi-panel,
body.bvi-theme-blue .bvi-panel,
body.bvi-theme-beige .bvi-panel,
body.bvi-theme-green .bvi-panel,
body.bvi-theme-white .bvi-panel *,
body.bvi-theme-black .bvi-panel *,
body.bvi-theme-blue .bvi-panel *,
body.bvi-theme-beige .bvi-panel *,
body.bvi-theme-green .bvi-panel * {
    background: #fff !important;
    background-color: #fff !important;
    color: #000 !important;
    border-color: #999 !important;
}
body.bvi-theme-white .bvi-panel .bvi-exit,
body.bvi-theme-black .bvi-panel .bvi-exit,
body.bvi-theme-blue .bvi-panel .bvi-exit,
body.bvi-theme-beige .bvi-panel .bvi-exit,
body.bvi-theme-green .bvi-panel .bvi-exit {
    background: #f0f0f0 !important; color: #000 !important; border: 2px solid #000 !important;
}
body.bvi-theme-white .bvi-panel .bvi-swatch-letter,
body.bvi-theme-black .bvi-panel .bvi-swatch-letter,
body.bvi-theme-blue .bvi-panel .bvi-swatch-letter,
body.bvi-theme-beige .bvi-panel .bvi-swatch-letter,
body.bvi-theme-green .bvi-panel .bvi-swatch-letter {
    background: transparent !important;
}
/* Swatch colors — highest specificity to override panel reset */
body.bvi-theme-white .bvi-panel .bvi-swatch-white,
body.bvi-theme-black .bvi-panel .bvi-swatch-white,
body.bvi-theme-blue .bvi-panel .bvi-swatch-white,
body.bvi-theme-beige .bvi-panel .bvi-swatch-white,
body.bvi-theme-green .bvi-panel .bvi-swatch-white { background: #fff !important; }

body.bvi-theme-white .bvi-panel .bvi-swatch-black,
body.bvi-theme-black .bvi-panel .bvi-swatch-black,
body.bvi-theme-blue .bvi-panel .bvi-swatch-black,
body.bvi-theme-beige .bvi-panel .bvi-swatch-black,
body.bvi-theme-green .bvi-panel .bvi-swatch-black { background: #000 !important; }

body.bvi-theme-white .bvi-panel .bvi-swatch-blue,
body.bvi-theme-black .bvi-panel .bvi-swatch-blue,
body.bvi-theme-blue .bvi-panel .bvi-swatch-blue,
body.bvi-theme-beige .bvi-panel .bvi-swatch-blue,
body.bvi-theme-green .bvi-panel .bvi-swatch-blue { background: #9dd1ff !important; }

body.bvi-theme-white .bvi-panel .bvi-swatch-beige,
body.bvi-theme-black .bvi-panel .bvi-swatch-beige,
body.bvi-theme-blue .bvi-panel .bvi-swatch-beige,
body.bvi-theme-beige .bvi-panel .bvi-swatch-beige,
body.bvi-theme-green .bvi-panel .bvi-swatch-beige { background: #f7f3d6 !important; }

body.bvi-theme-white .bvi-panel .bvi-swatch-green,
body.bvi-theme-black .bvi-panel .bvi-swatch-green,
body.bvi-theme-blue .bvi-panel .bvi-swatch-green,
body.bvi-theme-beige .bvi-panel .bvi-swatch-green,
body.bvi-theme-green .bvi-panel .bvi-swatch-green { background: #3b2716 !important; }

body.bvi-theme-white .bvi-panel .bvi-swatch-text-black,
body.bvi-theme-black .bvi-panel .bvi-swatch-text-black,
body.bvi-theme-blue .bvi-panel .bvi-swatch-text-black,
body.bvi-theme-beige .bvi-panel .bvi-swatch-text-black,
body.bvi-theme-green .bvi-panel .bvi-swatch-text-black { color: #000 !important; }

body.bvi-theme-white .bvi-panel .bvi-swatch-text-white,
body.bvi-theme-black .bvi-panel .bvi-swatch-text-white,
body.bvi-theme-blue .bvi-panel .bvi-swatch-text-white,
body.bvi-theme-beige .bvi-panel .bvi-swatch-text-white,
body.bvi-theme-green .bvi-panel .bvi-swatch-text-white { color: #fff !important; }

body.bvi-theme-white .bvi-panel .bvi-swatch-text-blue,
body.bvi-theme-black .bvi-panel .bvi-swatch-text-blue,
body.bvi-theme-blue .bvi-panel .bvi-swatch-text-blue,
body.bvi-theme-beige .bvi-panel .bvi-swatch-text-blue,
body.bvi-theme-green .bvi-panel .bvi-swatch-text-blue { color: #063462 !important; }

body.bvi-theme-white .bvi-panel .bvi-swatch-text-beige,
body.bvi-theme-black .bvi-panel .bvi-swatch-text-beige,
body.bvi-theme-blue .bvi-panel .bvi-swatch-text-beige,
body.bvi-theme-beige .bvi-panel .bvi-swatch-text-beige,
body.bvi-theme-green .bvi-panel .bvi-swatch-text-beige { color: #4d4b43 !important; }

body.bvi-theme-white .bvi-panel .bvi-swatch-text-green,
body.bvi-theme-black .bvi-panel .bvi-swatch-text-green,
body.bvi-theme-blue .bvi-panel .bvi-swatch-text-green,
body.bvi-theme-beige .bvi-panel .bvi-swatch-text-green,
body.bvi-theme-green .bvi-panel .bvi-swatch-text-green { color: #a9e44d !important; }

body.bvi-ls-1 * { letter-spacing: normal !important; }
body.bvi-ls-2 * { letter-spacing: 0.08em !important; }
body.bvi-ls-3 * { letter-spacing: 0.15em !important; }

body.bvi-lh-1 * { line-height: 1.5 !important; }
body.bvi-lh-2 * { line-height: 1.8 !important; }
body.bvi-lh-3 * { line-height: 2.1 !important; }

body.bvi-ff-serif * { font-family: Georgia, 'Times New Roman', serif !important; }

/* Панель не реагирует на собственные настройки */
body.bvi-ls-1 .bvi-panel, body.bvi-ls-1 .bvi-panel *,
body.bvi-ls-2 .bvi-panel, body.bvi-ls-2 .bvi-panel *,
body.bvi-ls-3 .bvi-panel, body.bvi-ls-3 .bvi-panel * { letter-spacing: normal !important; }

body.bvi-lh-1 .bvi-panel, body.bvi-lh-1 .bvi-panel *,
body.bvi-lh-2 .bvi-panel, body.bvi-lh-2 .bvi-panel *,
body.bvi-lh-3 .bvi-panel, body.bvi-lh-3 .bvi-panel * { line-height: 1.4 !important; }

body.bvi-ff-serif .bvi-panel, body.bvi-ff-serif .bvi-panel * { font-family: Arial, Helvetica, sans-serif !important; }

body.bvi-font-1 .bvi-panel, body.bvi-font-1 .bvi-panel *,
body.bvi-font-2 .bvi-panel, body.bvi-font-2 .bvi-panel *,
body.bvi-font-3 .bvi-panel, body.bvi-font-3 .bvi-panel * { font-size: 13px !important; }
body.bvi-font-1 .bvi-panel .bvi-block-title,
body.bvi-font-2 .bvi-panel .bvi-block-title,
body.bvi-font-3 .bvi-panel .bvi-block-title { font-size: 12px !important; }
body.bvi-font-1 .bvi-panel .bvi-fontSize-1,
body.bvi-font-2 .bvi-panel .bvi-fontSize-1,
body.bvi-font-3 .bvi-panel .bvi-fontSize-1 { font-size: 14px !important; }
body.bvi-font-1 .bvi-panel .bvi-fontSize-2,
body.bvi-font-2 .bvi-panel .bvi-fontSize-2,
body.bvi-font-3 .bvi-panel .bvi-fontSize-2 { font-size: 18px !important; }
body.bvi-font-1 .bvi-panel .bvi-fontSize-3,
body.bvi-font-2 .bvi-panel .bvi-fontSize-3,
body.bvi-font-3 .bvi-panel .bvi-fontSize-3 { font-size: 24px !important; }
body.bvi-font-1 .bvi-panel .bvi-exit,
body.bvi-font-2 .bvi-panel .bvi-exit,
body.bvi-font-3 .bvi-panel .bvi-exit { font-size: 13px !important; }
body.bvi-font-1 .bvi-panel .bvi-swatch-letter,
body.bvi-font-2 .bvi-panel .bvi-swatch-letter,
body.bvi-font-3 .bvi-panel .bvi-swatch-letter { font-size: 16px !important; }
body.bvi-font-1 .bvi-panel .bvi-link[data-ls],
body.bvi-font-2 .bvi-panel .bvi-link[data-ls],
body.bvi-font-3 .bvi-panel .bvi-link[data-ls],
body.bvi-font-1 .bvi-panel .bvi-link[data-lh],
body.bvi-font-2 .bvi-panel .bvi-link[data-lh],
body.bvi-font-3 .bvi-panel .bvi-link[data-lh],
body.bvi-font-1 .bvi-panel .bvi-link[data-ff],
body.bvi-font-2 .bvi-panel .bvi-link[data-ff],
body.bvi-font-3 .bvi-panel .bvi-link[data-ff] { font-size: 20px !important; }

body.bvi-images-off img { display: none !important; }
body.bvi-images-grayscale img { filter: grayscale(100%) !important; }
body.bvi-images-off .hero { background: none !important; }
body.bvi-images-off .hero::after { display: none !important; }
body.bvi-images-off .hero__badge-dot,
body.bvi-images-off .hero__trust-item svg,
body.bvi-images-off .contacts-section__icon svg,
body.bvi-images-off .footer__dev-icon { display: none !important; }

body.bvi-theme-white .hero,
body.bvi-theme-black .hero,
body.bvi-theme-blue .hero,
body.bvi-theme-beige .hero,
body.bvi-theme-green .hero { background: none !important; }
body.bvi-theme-white .hero::after,
body.bvi-theme-black .hero::after,
body.bvi-theme-blue .hero::after,
body.bvi-theme-beige .hero::after,
body.bvi-theme-green .hero::after { display: none !important; }

body.bvi-built-elements-off iframe,
body.bvi-built-elements-off .contacts-section__map,
body.bvi-built-elements-off video { display: none !important; }

body.bvi-font-1 { font-size: 18px !important; }
body.bvi-font-2 { font-size: 22px !important; }
body.bvi-font-3 { font-size: 28px !important; }
/* Reflow at large BVI fonts — no horizontal scroll (ГОСТ Р 52872 / WCAG 1.4.10) */
body.bvi-font-2 .services__grid,
body.bvi-font-3 .services__grid { grid-template-columns: 1fr; }
body.bvi-font-2 .service-card,
body.bvi-font-3 .service-card { flex-wrap: wrap; }
body.bvi-font-2 .service-card__body,
body.bvi-font-3 .service-card__body { min-width: 0; flex-basis: 60%; }
body.bvi-font-2 .service-card__price,
body.bvi-font-3 .service-card__price { white-space: normal; }
body.bvi-font-1 h1, body.bvi-font-2 h1, body.bvi-font-3 h1 { font-size: 1.8em !important; }
body.bvi-font-1 h2, body.bvi-font-2 h2, body.bvi-font-3 h2 { font-size: 1.5em !important; }
body.bvi-font-1 h3, body.bvi-font-2 h3, body.bvi-font-3 h3 { font-size: 1.3em !important; }
body.bvi-font-1 p, body.bvi-font-2 p, body.bvi-font-3 p { font-size: 1em !important; }
body.bvi-font-1 table, body.bvi-font-2 table, body.bvi-font-3 table,
body.bvi-font-1 th, body.bvi-font-2 th, body.bvi-font-3 th,
body.bvi-font-1 td, body.bvi-font-2 td, body.bvi-font-3 td { font-size: 1em !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .announcement { padding: 8px 16px; font-size: 0.8rem; border-radius: 0; }
    .topbar { top: auto; bottom: 0; left: 0; right: 0; }
    .main-header { backdrop-filter: none; border-radius: 0 !important; border: 1px solid rgba(15, 72, 140, 0.12); background: rgba(255, 255, 255, 1); }
    body { padding-bottom: 116px; }
    .header-row { padding: 10px 20px; }
    .menu-toggle { display: block; margin-left: 8px; padding: 8px 12px; }
    .header-actions .btn { padding: 9px 16px; font-size: 13px; }
    .header-actions .phones { display: none; }
    nav {
        display: none; position: absolute; bottom: calc(100% + 4px); left: 0; right: 0; top: auto;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column; align-items: stretch;
        gap: 0; margin: 0;
        padding: 12px 20px;
        box-shadow: 0 -4px 20px rgba(15, 72, 140, 0.2);
        border: 1px solid rgba(15, 72, 140, 0.12);
        border-radius: 0; z-index: 1000;
    }
    .menu-open nav { display: flex; }
    nav a { width: 100%; padding: 12px 0; font-size: 16px; border-bottom: 1px solid rgba(15, 72, 140, 0.1); }
    nav a:last-child { border-bottom: none; }
    nav a::after { display: none; }
    nav a:hover { color: var(--green); }
    .hero h1 { font-size: 30px; }
    .hero { padding: 0 0 70px; background: url('../img/hero.webp') 80% center / cover no-repeat; }
    body:has(.announcement) .hero { padding-top: 0 !important; }
    .hero .container { padding: 28px 24px; margin: 30px 16px; max-width: 420px; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .hero__trust { justify-content: center; }
    .contacts-section__icon { display: none; }
    .contacts-section__item { gap: 0; }
    .contacts-section__grid { grid-template-columns: 1fr; }
    .contacts-section__panel { padding: 32px 20px; }
    .about__gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
    .about__photo--lg { grid-column: span 2; grid-row: span 2; }
    .about__photo--wide { grid-column: span 2; }
    .doctors-grid { grid-template-columns: 1fr; }
    .doctor--wide { flex-direction: column; padding: 20px; gap: 20px; align-items: center; }
    .doctor--wide img { width: 160px; height: 160px; object-fit: cover; border-radius: 14px; }
    .doctor--wide .info { width: 100%; text-align: left; }
    .doctor--wide h3 { font-size: 1.4rem; }
    .services__grid { grid-template-columns: 1fr; }
    .service-card { flex-wrap: wrap; gap: 12px; padding: 16px 20px; }
    .service-card__icon { width: 48px; height: 48px; border-radius: 12px; }
    .service-card__icon svg { width: 28px; height: 28px; }
    .service-card__price { white-space: normal; font-size: 1rem; }
    .service-card__title--short { display: block; }
    .service-card__title--full { display: none; }
    .bvi-open { padding-top: 0; }
    .bvi-link { width: 32px; height: 32px; }
    .bvi-swatch-letter { font-size: 13px; }
    .bvi-blocks { gap: 16px 24px; flex-wrap: wrap; justify-content: center; padding: 0 10px; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .price-content, .doc-content { padding-top: 20px !important; }
    .reviews__maps { grid-template-columns: 1fr; }
    .site-search { top: auto; bottom: 116px; left: 8px; right: 8px; }
    .search-results { max-height: 45vh; }
}

@media (max-width: 600px) {
    .logo img { height: 44px; }
    .logo div { display: none; }
    .logo strong { font-size: 17px; }
    .doctor--wide { flex-direction: column; padding: 0; gap: 0; align-items: stretch; overflow: hidden; }
    .doctor--wide img { width: 100%; max-width: 100%; height: auto; min-height: 0; aspect-ratio: 1; object-fit: cover; border-radius: 0; }
    .doctor--wide .info { width: 100%; text-align: left; padding: 20px 16px; }
    .doctor--wide h3 { font-size: 1.2rem; }
    .doctor--wide span { font-size: 1rem; }
}
@media (max-width: 480px) {
    .contacts-section__panel { padding: 24px 16px; }
    .contacts-section__map { height: 280px; }
    .hero { padding: 60px 0 50px; background: #F0F4F8; }
    .hero h1 { font-size: 24px; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .bvi-panel { padding: 8px 0; }
    .bvi-blocks { gap: 12px; }
    .bvi-block-title { font-size: 10px; margin-bottom: 4px; }
    .bvi-link { width: 30px; height: 30px; font-size: 12px; }
    .bvi-swatch { width: 26px; height: 26px; }
    .bvi-swatch-letter { font-size: 13px; }
    .bvi-exit { height: 30px; padding: 0 10px; font-size: 11px; }
    .bvi-open { padding-top: 0; }
}

