/* ========================================
   ПЕРЕМЕННЫЕ ЦВЕТОВ (НЕЖНАЯ СИРЕНЕВАЯ ПАЛИТРА)
   ======================================== */
:root {
    --primary: #8b7aa8;          /* Основной сиреневый — заметный, но мягкий */
    --primary-dark: #6d5a85;     /* Глубокий лавандовый для кнопок и ховеров */
    --secondary: #c9bde0;        /* Светлый сиреневый для фонов и градиентов */
    --accent: #a89bc2;           /* Акцентный — для плавающей кнопки */
    --text: #3a3040;             /* Темный фиолетово-серый */
    --text-light: #7a7085;       /* Светлый текст */
    --bg: #f3eef8;               /* Нежный сиреневый фон (не белый!) */
    --white: #ffffff;
    --border: #d9d0e5;           /* Границы в тон */
    --warning: #fff3cd;
    --warning-text: #856404;
}

/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--primary); color: #fff;
    padding: 8px 16px; z-index: 1000; transition: top 0.2s; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ========================================
   TOP BAR & HEADER
   ======================================== */
.top-bar {
    background: var(--primary-dark); color: white; font-size: 13px; padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.top-bar a { color: white; text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }

.topbar-vision {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; background: rgba(255, 255, 255, 0.15); border-radius: 4px; transition: background 0.2s;
}
.topbar-vision:hover, .topbar-vision:focus { background: rgba(255, 255, 255, 0.3); text-decoration: none; }

header.main-header {
    background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
/* Иконка логотипа */
.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8b7aa8, #a89bc2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
}
.logo-text h1 { font-size: 20px; color: var(--primary); line-height: 1.1; }
.logo-text p { font-size: 12px; color: var(--text-light); }

nav ul { list-style: none; display: flex; gap: 25px; }
nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
nav a:hover, nav a:focus { color: var(--primary); }

.header-phone { text-align: right; }
.header-phone a { font-size: 18px; font-weight: 700; color: var(--primary); text-decoration: none; display: block; }
.header-phone small { font-size: 12px; color: var(--text-light); }

/* ========================================
   КНОПКИ
   ======================================== */
.btn {
    display: inline-block; background: var(--primary); color: white;
    padding: 12px 24px; border-radius: 6px; text-decoration: none;
    font-weight: 500; font-size: 14px; border: none; cursor: pointer;
    transition: background 0.2s; font-family: inherit;
}
.btn:hover, .btn:focus { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover, .btn-outline:focus { background: var(--primary); color: white; }
.btn-accent { background: var(--accent); }
.btn-accent:hover, .btn-accent:focus { background: var(--primary); }
/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #8b5cf6 0%, #c4b5fd 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr; /* Правая колонка чуть уже для вертикального фото */
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero .btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

.hero .btn-outline {
    color: white;
    border-color: white;
    border-width: 2px;
}

.hero .btn-outline:hover,
.hero .btn-outline:focus {
    background: white;
    color: var(--primary);
}
.hero-image {
    background: rgba(255, 255, 255, 0.15);  /* ← полупрозрачная белая "рамка" */
    border: 2px solid rgba(255, 255, 255, 0.3);  /* ← явная белая рамка */
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-image img {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    display: block;
    position: relative;
    z-index: 1;
    object-fit: cover;
}

/* ========================================
   ОБЩИЕ СТИЛИ СЕКЦИЙ
   ======================================== */
section { padding: 70px 0; }
.section-alt { background: var(--white); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; color: var(--text); margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 16px; }

.disclaimer-banner {
    background: var(--warning); color: var(--warning-text); padding: 15px 0;
    text-align: center; font-size: 14px; font-weight: 500;
    border-top: 2px solid #ffc107; border-bottom: 2px solid #ffc107;
}
.disclaimer-banner strong { color: #664d03; }

/* ========================================
   ПАМЯТКА ДЛЯ ПАЦИЕНТОВ
   ======================================== */
.memo-section { background: var(--white); padding: 70px 0; }
.memo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.memo-card {
    background: var(--bg); border-radius: 12px; padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s; border: 1px solid transparent;
}
.memo-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(122, 99, 133, 0.1); border-color: var(--secondary); }
.memo-card.warning-card { background: #fff3cd; border: 1px solid #ffc107; }
.memo-card.warning-card h3, .memo-card.warning-card p { color: #856404; }
.memo-icon { font-size: 36px; margin-bottom: 15px; line-height: 1; }
.memo-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--primary); font-weight: 600; }
.memo-card p { font-size: 14px; color: var(--text); line-height: 1.5; margin: 0; }
.memo-card a { color: var(--primary); text-decoration: none; border-bottom: 1px dashed var(--primary); }
.memo-card a:hover { border-bottom-style: solid; }

/* ========================================
   УСЛУГИ
   ======================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.service-card {
    background: var(--white); border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 122, 168, 0.15);
}
/* Изображения услуг (заглушка) */
.service-image {
    height: 160px;
    background: linear-gradient(135deg, #8b7aa8 0%, #c9bde0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.service-image img {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease;
}
.service-card:hover .service-image img { transform: scale(1.05); }
.service-body { padding: 25px; }
.service-body h3 { font-size: 18px; margin-bottom: 10px; color: var(--text); }
.service-body p { font-size: 14px; color: var(--text-light); margin-bottom: 15px; }
.service-price {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 15px; border-top: 1px solid var(--border);
}
.service-price strong { color: var(--primary); font-size: 18px; }
.service-price a { color: var(--primary); text-decoration: none; font-size: 14px; }

/* ========================================
   ПРАЙС-ЛИСТ
   ======================================== */
.prices-table {
    background: var(--white); border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
table { width: 100%; border-collapse: collapse; }
th { background: var(--primary); color: white; padding: 15px 20px; text-align: left; font-size: 14px; }
td { padding: 15px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
tr:last-child td { border-bottom: none; }
tr:hover { background: #f8f9fa; }
td:last-child { font-weight: 600; color: var(--primary); text-align: right; }
.prices-note { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-light); }

/* ========================================
   ВРАЧ (ОДИН)
   ======================================== */
.doctor-section { background: var(--white); padding: 70px 0; }
.doctor-single-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    background: var(--bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(139, 122, 168, 0.18);
    margin-top: 40px;
}
/* Фон для фото врача */
.doctor-photo-large {
    background: linear-gradient(135deg, #8b7aa8 0%, #c9bde0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.doctor-photo-large::before {
    content: ''; position: absolute; top: -50%; right: -50%;
    width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 8s infinite linear; pointer-events: none;
}
@keyframes shimmer { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.doctor-photo-large img {
    width: 100%; max-width: 450px; height: auto; border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); position: relative; z-index: 1;
    object-fit: cover; border: 4px solid rgba(255, 255, 255, 0.25); transition: transform 0.3s ease;
}
.doctor-single-card:hover .doctor-photo-large img { transform: scale(1.02); }
.doctor-info-large { padding: 50px; display: flex; flex-direction: column; gap: 25px; }
.doctor-header h3 { font-size: 32px; color: var(--text); margin-bottom: 10px; font-weight: 700; }
.doctor-position { font-size: 18px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.doctor-category {
    font-size: 14px;
    color: var(--text-light);
    background: rgba(139, 122, 168, 0.15);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
}
.doctor-details { display: flex; flex-direction: column; gap: 20px; }
.detail-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(139, 122, 168, 0.1);
}
.detail-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.detail-content strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.detail-content p { font-size: 14px; color: var(--text-light); line-height: 1.5; margin: 0; }
.doctor-specialties {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(139, 122, 168, 0.1);
}
.doctor-specialties h4 { font-size: 18px; color: var(--text); margin-bottom: 15px; font-weight: 600; }
.doctor-specialties ul { list-style: none; padding: 0; margin: 0; }
.doctor-specialties li { font-size: 14px; color: var(--text); padding: 8px 0; line-height: 1.5; border-bottom: 1px solid var(--border); }
.doctor-specialties li:last-child { border-bottom: none; }
.doctor-cta { margin-top: 10px; text-align: center; }
.doctor-cta .btn { padding: 16px 40px; font-size: 16px; font-weight: 600; }

/* ========================================
   КОНТАКТЫ И КАРТА
   ======================================== */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h3 { font-size: 20px; margin-bottom: 20px; color: var(--primary); }
.contact-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.contact-icon {
    width: 40px; height: 40px; background: var(--bg); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-item strong { display: block; margin-bottom: 3px; }
.contact-item span, .contact-item a { color: var(--text-light); font-size: 14px; text-decoration: none; }
.contact-item a:hover { color: var(--primary); }

.map-placeholder {
    background: #c9bde0; border-radius: 12px; height: 100%; min-height: 350px;
    display: flex; align-items: center; justify-content: center; font-size: 80px; color: #6d5a85;
}

.map-wrapper {
    width: 100%; max-width: 100%; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); background: #e3f2fd;
}
.map-wrapper iframe {
    width: 100% !important; max-width: 100% !important; height: 400px !important;
    display: block; border: none;
}

/* ========================================
   КОНТРОЛИРУЮЩИЕ ОРГАНЫ
   ======================================== */
.authorities { background: var(--bg); padding: 40px 0; font-size: 13px; }
.authorities h3 { font-size: 16px; margin-bottom: 15px; color: var(--text); }
.authorities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.authority-card {
    background: var(--white); padding: 15px; border-radius: 8px; border-left: 3px solid var(--primary);
}
.authority-card strong { display: block; margin-bottom: 5px; font-size: 13px; }
.authority-card p { font-size: 12px; color: var(--text-light); line-height: 1.4; }

/* ========================================
   ФУТЕР
   ======================================== */
footer {
    background: #3d3247;
    color: #b0bec5;
    padding: 50px 0 20px;
    font-size: 14px;
}
.footer-grid {display: grid;grid-template-columns: 2fr 1fr 1fr;gap: 40px;margin-bottom: 30px;}
.footer-col h4 { color: white; margin-bottom: 15px; font-size: 15px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #b0bec5; text-decoration: none; font-size: 13px; }
.footer-col a:hover { color: var(--secondary); }
.footer-about { font-size: 13px; margin-bottom: 15px; }
.footer-license { font-size: 12px; }
.footer-legal { border-top: 1px solid #3d3247; padding-top: 20px; font-size: 12px; color: #78909c; }
.footer-legal p { margin-bottom: 5px; }
.footer-legal strong { color: #b0bec5; }
.footer-copy { margin-top: 10px; }

/* ========================================
   ПАНЕЛЬ ДОСТУПНОСТИ
   ======================================== */
.vision-toggle {
    position: fixed; top: 20px; right: 20px; width: 50px; height: 50px;
    border-radius: 50%; background: #fff; border: 2px solid var(--primary);
    font-size: 24px; cursor: pointer; z-index: 999; box-shadow: 0 2px 10px rgba(0,0,0,0.15); transition: transform 0.2s;
}
.vision-toggle:hover { transform: scale(1.1); }
.vision-toggle:focus { outline: 3px solid var(--primary); outline-offset: 2px; }

.vision-panel {
    display: none; position: fixed; top: 80px; right: 20px; width: 320px;
    background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); z-index: 998; overflow: hidden;
}
.vision-panel.active { display: block; }
.vision-panel-header { background: var(--primary); color: #fff; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; }
.vision-close { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
.vision-panel-body { padding: 15px; }
.vision-group { margin-bottom: 15px; }
.vision-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.vision-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.vision-buttons button {
    flex: 1; min-width: 50px; padding: 8px; border: 1px solid #ced4da;
    background: #f8f9fa; border-radius: 6px; cursor: pointer; font-size: 13px; transition: all 0.2s; font-family: inherit;
}
.vision-buttons button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.color-btn { font-weight: 700; font-size: 16px !important; }
.color-btn[data-theme="black"] { background: #000; color: #fff; }
.color-btn[data-theme="blue"] { background: #063e87; color: #c6e4ff; }
.color-btn[data-theme="brown"] { background: #5b4636; color: #f7e9c6; }
.vision-reset {
    width: 100%; padding: 10px; background: #dc3545; color: #fff; border: none;
    border-radius: 6px; cursor: pointer; font-size: 13px; margin-top: 10px; font-family: inherit;
}
.vision-reset:hover { background: #b02a37; }

body.vision-active { font-family: Arial, sans-serif !important; }
body.vision-active * { transition: none !important; animation: none !important; }
body.vision-images-off img, body.vision-images-off .service-image, body.vision-images-off .doctor-photo, body.vision-images-off .hero-image, body.vision-images-off .map-placeholder { display: none !important; }
body.vision-white { background: #fff !important; color: #000 !important; }
body.vision-white * { color: #000 !important; background-color: #fff !important; border-color: #000 !important; }
body.vision-black { background: #000 !important; color: #fff !important; }
body.vision-black * { color: #fff !important; background-color: #000 !important; border-color: #fff !important; }
body.vision-blue { background: #063e87 !important; color: #c6e4ff !important; }
body.vision-blue * { color: #c6e4ff !important; background-color: #063e87 !important; border-color: #c6e4ff !important; }
body.vision-brown { background: #5b4636 !important; color: #f7e9c6 !important; }
body.vision-brown * { color: #f7e9c6 !important; background-color: #5b4636 !important; border-color: #f7e9c6 !important; }
body.vision-inversion { filter: invert(1) hue-rotate(180deg); }
body.vision-inversion img, body.vision-inversion video { filter: invert(1) hue-rotate(180deg); }

/* ========================================
   МОДАЛЬНОЕ ОКНО
   ======================================== */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal { background: white; border-radius: 12px; max-width: 500px; width: 100%; padding: 30px; position: relative; }
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-light); }
.modal h3 { margin-bottom: 20px; color: var(--primary); }
.modal-form input, .modal-form textarea {
    width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 6px;
    margin-bottom: 12px; font-size: 14px; font-family: inherit;
}
.modal-form input:focus, .modal-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(122, 99, 133, 0.15); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 15px; font-size: 12px; color: var(--text-light); }
.consent input { width: auto; margin-top: 2px; }
.consent a { color: var(--primary); }

.btn-submit { position: relative; }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* ========================================
   TOAST-УВЕДОМЛЕНИЯ
   ======================================== */
.toast-container { position: fixed; top: 30px; right: 30px; z-index: 1001; display: flex; flex-direction: column; gap: 10px; max-width: 380px; pointer-events: none; }
.toast {
    background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 16px 20px; display: flex; align-items: flex-start; gap: 12px; min-width: 300px;
    pointer-events: auto; animation: toastIn 0.3s ease-out; border-left: 4px solid var(--primary);
}
.toast.toast-success { border-left-color: var(--accent); }
.toast.toast-error { border-left-color: #dc3545; }
.toast.toast-hiding { animation: toastOut 0.3s ease-in forwards; }
.toast-icon { font-size: 24px; flex-shrink: 0; line-height: 1; }
.toast-body { flex: 1; }
.toast-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.toast-message { font-size: 13px; color: var(--text-light); line-height: 1.4; }
.toast-close { background: none; border: none; color: var(--text-light); font-size: 20px; cursor: pointer; padding: 0; line-height: 1; flex-shrink: 0; }
.toast-close:hover { color: var(--text); }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

/* ========================================
   БАННЕР COOKIES
   ======================================== */
.cookie-banner {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(44, 36, 51, 0.98); color: #fff; padding: 15px 20px;
    z-index: 997; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3); animation: slideUp 0.3s ease-out;
}
.cookie-banner.active { display: block; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-text { flex: 1; font-size: 14px; line-height: 1.5; margin: 0; min-width: 250px; }
.cookie-accept { background: var(--accent); padding: 10px 30px; white-space: nowrap; }
.cookie-accept:hover { background: var(--primary); }

/* ========================================
   ПЛАВАЮЩАЯ КНОПКА "ЗАПИСАТЬСЯ"
   ======================================== */
.floating-cta {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #a89bc2 0%, #8b7aa8 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(139, 122, 168, 0.4);
    z-index: 996;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
    animation: pulse 2s infinite;
}

.floating-cta:hover,
.floating-cta:focus {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(139, 122, 168, 0.5);
    outline: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(139, 122, 168, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(139, 122, 168, 0.6);
    }
}
.cookie-banner.active ~ .floating-cta { bottom: 90px; }

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 992px) {
    .hero-grid, .contacts-grid { grid-template-columns: 1fr; }
    .adv-grid, .doctors-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .authorities-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    nav ul { display: none; }
    .hero h2 { font-size: 32px; }
    .hero-image { order: -1; }
    .doctor-single-card { grid-template-columns: 1fr; }
    .doctor-photo-large { padding: 30px; }
    .doctor-photo-large img { max-width: 350px; }
    .doctor-info-large { padding: 35px; }
    .doctor-header h3 { font-size: 26px; }
}

@media (max-width: 768px) {
    .map-wrapper iframe { height: 300px !important; }
    .memo-grid { grid-template-columns: 1fr; }
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-accept { width: 100%; }
}

@media (max-width: 576px) {
    .adv-grid, .doctors-grid, .services-grid, .reviews-grid, .authorities-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 50px 0; }
    .hero h2 { font-size: 26px; }
    .hero-image { padding: 20px; min-height: 220px; }
    .hero-image img { max-height: 200px; }
    section { padding: 50px 0; }
    .section-title h2 { font-size: 24px; }
    .header-phone { display: none; }
    .vision-panel { width: calc(100% - 40px); right: 20px; }
    
    .floating-cta { bottom: 20px; left: 20px; padding: 12px 20px; font-size: 14px; }
    .cookie-banner.active ~ .floating-cta { bottom: 110px; }
    
    .doctor-single-card { margin-top: 30px; }
    .doctor-photo-large { padding: 25px; }
    .doctor-photo-large img { max-width: 280px; }
    .doctor-info-large { padding: 25px; }
    .doctor-header h3 { font-size: 22px; }
    .doctor-position { font-size: 16px; }
    .detail-item { padding: 15px; }
    .doctor-specialties { padding: 20px; }
    
    .map-wrapper iframe { height: 250px !important; border-radius: 8px; }
    .toast-container { top: 15px; right: 15px; left: 15px; max-width: none; }
    .toast { min-width: auto; }
    
    .prices-table { overflow-x: auto; border-radius: 8px; }
    table { min-width: 100%; }
    th, td { padding: 12px 10px !important; font-size: 13px; }
    td:nth-child(2), th:nth-child(2) { white-space: nowrap; width: 1%; }
}

@media print {
    .top-bar, .vision-toggle, .vision-panel, .modal-overlay, .disclaimer-banner, .floating-cta, .cookie-banner { display: none !important; }
    header.main-header { position: static; box-shadow: none; }
    body { background: #fff; }
}
/* ===== ПРЕИМУЩЕСТВА (Почему выбирают нас) ===== */
.advantages {
    background: var(--white);
    padding: 70px 0;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.adv-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.adv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 122, 168, 0.15);
    border-color: var(--secondary);
}

.adv-icon {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1;
}

.adv-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
}

.adv-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Адаптивность для секции преимуществ */
@media (max-width: 992px) {
    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .adv-grid {
        grid-template-columns: 1fr;
    }
    
    .adv-card {
        padding: 25px 20px;
    }
    
    .adv-icon {
        font-size: 40px;
    }
}

/* ===== ВСТУПЛЕНИЕ К ПРАЙСУ ===== */
.section-lead {
    font-size: 18px;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

.prices-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.prices-intro strong {
    color: var(--text);
}

/* ===== КАРТОЧКИ ПРЕИМУЩЕСТВ ЦЕН ===== */
.price-advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.price-adv-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.price-adv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 122, 168, 0.15);
    border-color: var(--secondary);
}

.price-adv-icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
}

.price-adv-card h3 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.price-adv-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.price-adv-card strong {
    color: var(--text);
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 992px) {
    .price-advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .price-advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .section-lead {
        font-size: 16px;
    }
}

/* ===== ГАЛЕРЕЯ КЛИНИКИ ===== */
.gallery-section {
    background: var(--white);
    padding: 70px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10; /* Сохраняем пропорции горизонтальных фото */
    background: var(--bg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Легкое затемнение при наведении */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(139, 122, 168, 0);
    transition: background 0.3s;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(139, 122, 168, 0.15);
}

/* Адаптивность */
@media (max-width: 768px) {
    .gallery-grid {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item {
        aspect-ratio: 16 / 9; /* Чуть более плоские на мобильных */
    }
}

/* ===== СТИЛИ ДЛЯ ЮРИДИЧЕСКИХ СТРАНИЦ (Cookies, ПДн, Соглашение) ===== */
.policy-section {
    background: var(--white);
    padding: 70px 0;
}

.policy-content {
    max-width: 850px;
    margin: 0 auto;
}

.policy-content h3 {
    font-size: 22px;
    color: var(--primary-dark);
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 700;
    border-left: 4px solid var(--secondary);
    padding-left: 15px;
}

.policy-content h3:first-child {
    margin-top: 0;
}

.policy-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 15px;
}

.policy-content em {
    display: block;
    background: var(--bg);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    font-style: normal;
    color: var(--primary-dark);
    margin: 20px 0;
}

.policy-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.policy-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
}

.policy-list li::before {
    content: '•';
    color: var(--primary);
    font-size: 24px;
    position: absolute;
    left: 0;
    top: -4px;
    font-weight: bold;
}

.policy-list li strong {
    color: var(--text);
    font-weight: 600;
}

.policy-list a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
}

.policy-list a:hover {
    border-bottom-style: solid;
}

.policy-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-light);
}

.policy-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 576px) {
    .policy-section { padding: 50px 0; }
    .policy-content h3 { font-size: 20px; margin-top: 30px; }
    .policy-content p, .policy-list li { font-size: 14px; }
}
/* ===== КНОПКА ПРАЙСА НА ГЛАВНОЙ ===== */
.prices-cta {
    text-align: center;
    margin-top: 40px;
    padding: 40px 20px;
    background: var(--bg);
    border-radius: 16px;
    border: 2px dashed var(--secondary);
}

.prices-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(139, 122, 168, 0.25);
}

.prices-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 122, 168, 0.4);
}

.prices-cta-icon {
    font-size: 22px;
    line-height: 1;
}

.prices-cta .prices-note {
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 14px;
    color: var(--text-light);
}

/* Адаптивность */
@media (max-width: 576px) {
    .prices-cta {
        padding: 30px 15px;
    }
    
    .prices-cta-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}
