/* ============================================
   DOBRO.DENT — 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: #E6F8FF;
    --bg: #F7FBFE;
    --bg-soft: #E3F2FD;
    --sky: #7CCCEC;
    --sky-dark: #56A8C7;
    --green: #9FD329;
    --green-dark: #7FB51F;
    --text: #0D212E;
    --muted: #5D7580;
    --text-soft: #4A5C6A;
    --border: #D6E4F0;
    --line: rgba(124, 204, 236, 0.18);
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(13, 27, 42, 0.06);
    --shadow: 0 4px 20px rgba(13, 27, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(13, 27, 42, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ ANNOUNCEMENT ============ */
.announcement {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    background: linear-gradient(135deg, #56A8C7, #7CCCEC);
    color: #fff; text-align: center;
    padding: 12px 20px; font-size: 0.95rem; font-weight: 600;
}
.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);
    background: #FAFDFF; padding-top: 64px;
    -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;
}
body:has(.announcement) { padding-top: 106px; }
a { text-decoration: none; color: var(--text); }
img { max-width: 100%; display: block; }
::selection { background: var(--sky); 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: 12px;
    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(159, 211, 41, 0.32);
}
.btn:hover {
    transform: translateY(-2px); background: var(--green-dark);
    box-shadow: 0 10px 28px rgba(159, 211, 41, 0.4);
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost {
    background: rgba(255, 255, 255, 0.1); color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* ============ HEADER ============ */
.main-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
body:has(.announcement) .main-header { top: 42px; }
.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: 40px; }
.logo div { font-size: 14px; line-height: 1.15; color: var(--muted); }
.logo strong { display: block; font-size: 19px; font-weight: 700; color: var(--sky-dark); }
.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(--text); transition: var(--transition); }
.phones a:hover { color: var(--sky-dark); }
.phones a:first-child { font-size: 16px; }
.header-actions .btn {
    padding: 12px 24px; font-size: 0.95rem; font-weight: 700;
    background: var(--green); color: var(--text);
    border: none; border-radius: 12px;
    box-shadow: 0 4px 14px rgba(159, 211, 41, 0.32);
}
.header-actions .btn:hover {
    background: var(--green-dark); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(159, 211, 41, 0.3);
}
.vision-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--light); border: 1px solid var(--sky);
    color: var(--sky-dark); cursor: pointer; transition: var(--transition);
}
.vision-toggle:hover { background: var(--sky); color: #fff; border-color: var(--sky); }
.vision-toggle svg { width: 22px; height: 22px; }
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(--green);
    border-radius: 3px; transition: var(--transition);
}
nav a:hover { color: var(--sky-dark); }
nav a:hover::after { width: 100%; }
.menu-toggle {
    display: none; background: none; border: none;
    font-size: 24px; color: var(--text); cursor: pointer;
}

/* ============ HERO ============ */
.hero {
    position: relative; padding: 180px 0 160px;
    background: url('../img/hero.webp') center / cover no-repeat;
    color: #fff; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(13, 33, 46, 0.78) 0%, rgba(13, 33, 46, 0.4) 50%, rgba(13, 33, 46, 0) 85%);
}
.hero .container { position: relative; z-index: 1; }
.hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.85rem; font-weight: 600; color: #fff;
    margin-bottom: 20px;
}
.hero__badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(159, 211, 41, 0.3);
}
.hero__title {
    font-size: clamp(26px, 3.8vw, 42px); font-weight: 800;
    line-height: 1.15; color: #fff; margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero__title-accent { color: var(--sky); }
.hero__subtitle {
    font-size: clamp(15px, 2vw, 19px); color: rgba(255, 255, 255, 0.9);
    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; }
.hero__trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.9);
}
.hero__trust-item svg { width: 20px; height: 20px; color: var(--sky); flex-shrink: 0; }

/* ============ 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);
}
.lightbox__close:hover { color: var(--sky); }
.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);
}
.lightbox__nav:hover { color: #fff; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

/* ============ SERVICES ============ */
.services__grid {
    display: grid; gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}
.service-card {
    padding: 32px; background: var(--bg);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.service-card:hover {
    background: var(--white); border-color: var(--sky);
    box-shadow: var(--shadow); transform: translateY(-4px);
}
.service-card__icon {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 12px;
    background: var(--bg-soft); color: var(--sky-dark);
    margin-bottom: 20px; transition: var(--transition);
}
.service-card:hover .service-card__icon { background: var(--sky); color: var(--white); }
.service-card__title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 8px; min-height: 2.4em; }
.service-card__price { font-size: 1.1rem; font-weight: 800; color: var(--green-dark); margin-bottom: 16px; }
.service-card__link { font-size: 0.9rem; font-weight: 600; color: var(--sky-dark); transition: var(--transition); margin-top: auto; }
.service-card__link:hover { color: var(--sky); }
.services__actions {
    display: flex; justify-content: center; gap: 16px;
    margin-top: 40px; flex-wrap: wrap;
}
.services__actions .btn--ghost {
    background: var(--white); color: var(--text);
    border: 2px solid var(--border);
}
.services__actions .btn--ghost:hover {
    background: var(--bg-soft); border-color: var(--sky); color: var(--sky-dark);
}

/* ============ DOCTORS ============ */
.doctors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.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 .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-dark); 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__details summary {
    cursor: pointer; font-size: 0.8rem; font-weight: 600;
    color: var(--sky-dark); user-select: none;
    padding: 6px 0; border-top: 1px solid var(--border);
}
.doctor__details summary:hover { color: var(--sky); }
.doctor__edu { padding: 10px 0 4px; }
.doctor__edu p { font-size: 0.8rem; color: var(--text-soft); line-height: 1.5; margin-bottom: 8px; }
.doctor__edu strong { color: var(--text); font-weight: 600; }
.doctor__docs-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--sky-dark); font-size: 0.8rem; font-weight: 600;
    text-decoration: none; padding: 6px 14px;
    border: 1px solid var(--sky); border-radius: 8px;
    transition: var(--transition);
}
.doctor__docs-link:hover { background: var(--sky); color: #fff; }

/* ============ REVIEWS ============ */
.reviews-grid {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.review {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 30px; border: 1px solid var(--border);
    box-shadow: var(--shadow); transition: var(--transition);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review .name { font-weight: 700; margin-bottom: 12px; color: var(--sky-dark); }
.review p { color: var(--muted); font-style: italic; }

/* ============ 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(--text); 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(124, 204, 236, 0.15); color: var(--sky);
    margin-top: 2px;
}
.contacts-section__item strong {
    display: block; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--sky); 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: var(--sky); border-color: var(--sky); }

/* ============ FORM ============ */
.feedback-form {
    background: var(--white); padding: 48px 40px;
    display: flex; flex-direction: column;
    min-width: 0; box-sizing: border-box;
}
.feedback-form__title {
    font-size: 1.3rem; font-weight: 700; color: var(--text);
    margin-bottom: 24px; padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-soft);
}
.feedback-form .form-group label {
    display: block; margin-bottom: 8px;
    font-weight: 700; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--sky-dark);
}
.feedback-form .form-group input,
.feedback-form .form-group select,
.feedback-form .form-group textarea {
    width: 100%; padding: 14px 16px;
    border: 2px solid var(--border); border-radius: 12px;
    font-family: inherit; font-size: 16px;
    background: var(--bg); transition: var(--transition);
    box-sizing: border-box; max-width: 100%;
}
.feedback-form .form-group input:focus,
.feedback-form .form-group select:focus,
.feedback-form .form-group textarea:focus {
    outline: none; border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(124, 204, 236, 0.18);
    background: var(--white);
}
.feedback-form .form-group input::placeholder,
.feedback-form .form-group textarea::placeholder { color: var(--muted); }
.feedback-form button {
    width: 100%; margin-top: 12px; padding: 16px;
    font-size: 1.05rem; font-weight: 700;
    background: var(--green); color: var(--text);
    border: none; border-radius: 12px; cursor: pointer;
    transition: var(--transition);
    box-sizing: border-box; max-width: 100%;
}
.feedback-form button:hover {
    background: var(--green-dark); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(159, 211, 41, 0.3);
}
.form-status {
    margin-top: 12px; font-size: 0.9rem; font-weight: 600;
    min-height: 0; transition: var(--transition);
}
.form-status.success { color: var(--green-dark); }
.form-status.error { color: #e53935; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }

/* ============ CONSENT CHECKBOX ============ */
.form-consent { margin-bottom: 24px; }
.consent-checkbox {
    display: flex; flex-direction: row; align-items: center;
    gap: 10px; cursor: pointer;
    font-size: 0.8rem; font-weight: 600;
    color: var(--text-soft); line-height: 1.5;
}
.consent-checkbox input {
    flex-shrink: 0; width: 18px; height: 18px;
    accent-color: var(--sky); cursor: pointer;
}
.consent-checkbox__text a { color: var(--sky-dark); text-decoration: underline; }

/* ============ MAP ============ */
.contacts-section__map-wrap { position: relative; width: 100%; }
.contacts-section__map {
    width: 100%; height: 380px; border: none; display: block;
    background: #e8eef3;
}
.contacts-section__map-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(13, 33, 46, 0.7), rgba(13, 33, 46, 0.5));
    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(13, 33, 46, 0.55), rgba(13, 33, 46, 0.35)); }
.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);
}

/* ============ 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); }

/* ============ MAX MESSENGER FAB ============ */
.call-fab {
    position: fixed; left: 24px; bottom: 24px; z-index: 900;
    display: flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #0040cc, #0088ff); color: #fff;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
    transition: opacity 0.3s, transform 0.3s;
    animation: call-pulse 2s infinite;
}
.call-fab.scrolled { opacity: 0.3; }
.call-fab:hover { opacity: 1; transform: scale(1.1); background: linear-gradient(135deg, #0033aa, #0077ee); }
.call-fab__icon { width: 32px; height: 32px; }
@keyframes call-pulse {
    0% { box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4), 0 0 0 0 rgba(0, 102, 255, 0.5); }
    70% { box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4), 0 0 0 16px rgba(0, 102, 255, 0); }
    100% { box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4), 0 0 0 0 rgba(0, 102, 255, 0); }
}

/* ============ FOOTER ============ */
.footer { background: var(--text); color: rgba(255, 255, 255, 0.6); padding: 0 0 28px; }
.footer__disclaimer-bar {
    width: 100%; background: var(--green); text-align: center;
    padding: 14px 16px;
}
.footer__disclaimer-bar p {
    font-size: 0.9rem; font-weight: 800; color: var(--text);
    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.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer__legal p { font-size: 0.9rem; line-height: 1.7; }
.footer__docs { display: flex; flex-direction: column; gap: 8px; }
.footer__docs-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer__docs-title:not(:first-child) { margin-top: 16px; }
.footer__docs p { font-size: 0.9rem; line-height: 1.7; }
.footer__docs a {
    font-size: 0.9rem; color: var(--sky);
    transition: var(--transition);
}
.footer__docs a:hover { color: var(--white); }
.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.9rem; }
.footer__dev { display: flex; align-items: center; gap: 6px; }
.footer__dev a { color: var(--sky); transition: var(--transition); }
.footer__dev a:hover { color: var(--white); }
.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: 40px; }
.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-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: #9FD7FF; }
.bvi-swatch-yellow { background: #FFFF00; }
.bvi-swatch-text-black { color: #000; }
.bvi-swatch-text-white { color: #fff; }
.bvi-swatch-text-blue { color: #133C58; }
.bvi-swatch-text-green { color: #a9dd38; }
.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 { filter: grayscale(100%) invert(1) !important; }

body.bvi-theme-blue { color: #133c58 !important; background: #c7e0ff !important; }
body.bvi-theme-blue * { color: #133c58 !important; background-color: #c7e0ff !important; border-color: #7db3e6 !important; }

body.bvi-theme-yellow { color: #000 !important; background: #ffff00 !important; }
body.bvi-theme-yellow * { color: #000 !important; background-color: #ffff00 !important; border-color: #999 !important; }

body.bvi-theme-green { color: #a9dd38 !important; background: #000 !important; }
body.bvi-theme-green * { color: #a9dd38 !important; background-color: #000 !important; border-color: #4a7a14 !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-yellow .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-yellow .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-yellow .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-yellow .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-yellow .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-yellow .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-yellow .bvi-panel .bvi-swatch-blue,
body.bvi-theme-green .bvi-panel .bvi-swatch-blue { background: #9FD7FF !important; }

body.bvi-theme-white .bvi-panel .bvi-swatch-yellow,
body.bvi-theme-black .bvi-panel .bvi-swatch-yellow,
body.bvi-theme-blue .bvi-panel .bvi-swatch-yellow,
body.bvi-theme-yellow .bvi-panel .bvi-swatch-yellow,
body.bvi-theme-green .bvi-panel .bvi-swatch-yellow { background: #FFFF00 !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-yellow .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-yellow .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-yellow .bvi-panel .bvi-swatch-text-blue,
body.bvi-theme-green .bvi-panel .bvi-swatch-text-blue { color: #133C58 !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-yellow .bvi-panel .bvi-swatch-text-green,
body.bvi-theme-green .bvi-panel .bvi-swatch-text-green { color: #a9dd38 !important; }

body.bvi-font-family-times { font-family: "Times New Roman", Times, serif !important; }
body.bvi-font-family-times * { font-family: "Times New Roman", Times, serif !important; }

body.bvi-ls-average { letter-spacing: 2px !important; }
body.bvi-ls-average * { letter-spacing: 2px !important; }
body.bvi-ls-big { letter-spacing: 4px !important; }
body.bvi-ls-big * { letter-spacing: 4px !important; }

body.bvi-lh-average { line-height: 2 !important; }
body.bvi-lh-average * { line-height: 2 !important; }
body.bvi-lh-big { line-height: 2.5 !important; }
body.bvi-lh-big * { line-height: 2.5 !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,
body.bvi-images-off .call-fab__icon { display: none !important; }

body.bvi-theme-white .hero,
body.bvi-theme-black .hero,
body.bvi-theme-blue .hero,
body.bvi-theme-yellow .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-yellow .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; }
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-open .call-fab { display: none !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    body { padding-top: 64px; }
    body:has(.announcement) { padding-top: 120px; }
    .announcement { padding: 8px 16px; font-size: 0.8rem; }
    .main-header { top: 0; }
    body:has(.announcement) .main-header { top: 56px; }
    .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; top: 100%; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column; align-items: flex-start;
        padding: 18px 24px;
        box-shadow: 0 8px 24px rgba(14, 34, 53, 0.08);
        border-top: 1px solid var(--line); z-index: 1000;
    }
    .menu-open nav { display: flex; }
    nav a { width: 100%; padding: 10px 0; font-size: 16px; }
    .hero h1 { font-size: 30px; }
    .hero { padding: 80px 0 70px; }
    .hero::after { background: rgba(13, 33, 46, 0.65); }
    .contacts-section__icon { display: none; }
    .contacts-section__item { gap: 0; }
    .contacts-section__grid { grid-template-columns: 1fr; }
    .contacts-section__panel { padding: 32px 20px; }
    .feedback-form { 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; }
    .services__grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .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; }
    .logo div { font-size: 0; }
    .logo div strong { display: block; font-size: 19px; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .footer__inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
    .contacts-section__panel { padding: 24px 16px; }
    .feedback-form { padding: 24px 16px; }
    .feedback-form .form-group input,
    .feedback-form .form-group select,
    .feedback-form .form-group textarea { padding: 12px 12px; font-size: 15px; }
    .consent-checkbox { font-size: 0.75rem; }
    .contacts-section__map { height: 280px; }
    .hero { padding: 60px 0 50px; }
    .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; }
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
    background: var(--white); border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 16px 20px; display: none;
    align-items: center; justify-content: space-between; gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner__text {
    font-size: 0.85rem; color: var(--text-soft); line-height: 1.5; flex: 1; min-width: 280px;
}
.cookie-banner__text a { color: var(--sky-dark); text-decoration: underline; }
.cookie-banner__btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__btn {
    padding: 10px 20px; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; border: none; transition: var(--transition);
}
.cookie-banner__btn--accept {
    background: var(--green); color: var(--text);
}
.cookie-banner__btn--accept:hover { background: var(--green-dark); color: #fff; }
.cookie-banner__btn--decline {
    background: var(--bg-soft); color: var(--text-soft); border: 1px solid var(--border);
}
.cookie-banner__btn--decline:hover { background: var(--border); }
@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; align-items: stretch; }
    .cookie-banner__text { min-width: 0; }
    .cookie-banner__btns { justify-content: stretch; }
    .cookie-banner__btn { flex: 1; }
}
