:root {
    /* Экологичная и дружелюбная палитра */
    --bg-body: #F4F8F6;
    --bg-card: #FFFFFF;
    
    /* Цвета текста для идеальной читаемости */
    --text-main: #2d2d2d; 
    --text-muted: #535353; 
    
    --accent-green: #10B981;
    --accent-primary: #10B981;
    --accent-hover: #059669;
    --accent-light: #D1FAE5;
    --alert-color: #EF4444; 
    --alert-light: #FEE2E2;
    --border-color: #E5E7EB;
    
    --radius-card: 32px;
    --radius-btn: 100px;
    
    --font-head: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================================
   1. ГЛОБАЛЬНЫЕ НАСТРОЙКИ
   ========================================= */
html, body { max-width: 100%; overflow-x: clip; }
* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; overflow-wrap: break-word; word-wrap: break-word; }

body { 
    font-family: var(--font-body); 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.7; 
    font-size: 16px; 
    font-weight: 450; 
}

button, input, select, textarea, .btn-main, .btn-secondary, .btn-call-outline, .btn-back {
    font-family: var(--font-head);
}

/* =========================================
   2. КАРКАС И ТИПОГРАФИКА
   ========================================= */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-dark { background-color: #064E3B; color: var(--bg-card); }

.section-header { margin-bottom: 56px; text-align: center; }
.section-header h2 { font-family: var(--font-head); font-size: 36px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-dark .section-header h2 { color: var(--bg-card); }
.section-header p { font-size: 18px; color: var(--text-muted); max-width: 720px; margin: 0 auto; }
.section-dark .section-header p { color: #A7F3D0; }

/* =========================================
   3. КНОПКИ
   ========================================= */
.btn-main { 
    font-family: var(--font-head); 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--accent-green); 
    color: var(--bg-card); 
    font-size: 16px; 
    font-weight: 700; 
    padding: 18px 36px; 
    border-radius: var(--radius-btn); 
    text-decoration: none; 
    transition: 0.3s; 
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25); 
    letter-spacing: -0.2px;
}
.btn-main:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(16, 185, 129, 0.3); }
.btn-secondary { 
    font-family: var(--font-head); 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg-card); 
    color: var(--text-main); 
    font-size: 16px; 
    font-weight: 700; 
    padding: 18px 36px; 
    border-radius: var(--radius-btn); 
    text-decoration: none; 
    transition: 0.3s; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.06); 
    letter-spacing: -0.2px;
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.btn-call-outline { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--accent-green); border: 2px solid var(--accent-light); padding: 10px 24px; border-radius: var(--radius-btn); text-decoration: none; transition: 0.3s; }
.btn-call-outline:hover { background: var(--accent-light); }
.btn-back { font-family: var(--font-head); display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 15px; margin-bottom: 24px; padding: 10px 20px; background: var(--bg-card); border-radius: 100px; border: 1px solid var(--border-color); transition: 0.3s; width: fit-content; }
.btn-back:hover { color: var(--text-main); border-color: var(--text-muted); background: var(--bg-body); transform: translateX(-4px); }
.btn-back svg { width: 18px; height: 18px; fill: currentColor; }

/* =========================================
   4. ШАПКА И НАВИГАЦИЯ (ДЕСКТОП)
   ========================================= */
.header { position: fixed; top: 0; width: 100%; background: rgba(255,255,255,0.9); backdrop-filter: blur(16px); z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.03); }
.header .container { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.logo { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--text-main); text-decoration: none; display: flex; flex-direction: column; line-height: 1.2;}
.logo span { font-size: 10px; font-weight: 600; color: var(--accent-green); text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font-body);}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone-text { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--text-main); text-decoration: none; margin-right: 8px; transition: color 0.3s; }
.header-phone-text:hover { color: var(--accent-green); }

/* Кнопка выбора города */
.header-city { font-size: 13px; font-weight: 600; color: var(--accent-hover); cursor: pointer; display: flex; align-items: center; padding: 8px 16px; background: var(--accent-light); border-radius: 100px; transition: 0.3s; margin-right: 16px; }
.header-city:hover { background: var(--accent-green); color: #fff; }

.header-nav { display: flex; gap: 24px; align-items: center; margin: 0 24px; }
.header-nav a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 15px; transition: 0.2s; }
.header-nav a:hover { color: var(--accent-green); }

.nav-dropdown { position: relative; display: inline-block; padding: 10px 0; }
.nav-dropdown-content { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: var(--bg-card); min-width: 280px; box-shadow: 0 12px 32px rgba(0,0,0,0.08); border-radius: 16px; padding: 12px; z-index: 1001; border: 1px solid var(--border-color); }
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a { display: block; padding: 12px 16px; font-weight: 500; font-size: 14px; text-decoration: none; border-radius: 8px; transition: 0.2s; margin-bottom: 4px; }
.nav-dropdown-content a:hover { background: var(--bg-body); color: var(--accent-green); }
.nav-dropdown > a::after { content: ' ▾'; font-size: 12px; opacity: 0.7; }

.tg-link { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--accent-light); border-radius: 50%; transition: 0.3s; }
.tg-link svg { width: 22px; height: 22px; fill: var(--accent-hover); }
.tg-link:hover { background: var(--accent-green); transform: scale(1.05); }
.tg-link:hover svg { fill: var(--bg-card); }

/* =========================================
   5. СЕТКИ
   ========================================= */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* =========================================
   6. КАРТОЧКИ (BENTO И ФОРМАТЫ)
   ========================================= */
.bento-card { background: var(--bg-card); border-radius: var(--radius-card); padding: 40px; transition: 0.4s ease; display: flex; flex-direction: column; position: relative; box-shadow: 0 4px 24px rgba(0,0,0,0.03); border: 1px solid transparent; }
.bento-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(16, 185, 129, 0.08); border-color: var(--accent-light); }
.bento-card h3 { font-family: var(--font-head); font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.bento-card p { font-size: 15px; color: var(--text-muted); flex-grow: 1; margin-bottom: 24px;}

.card-icon { width: 64px; height: 64px; background: var(--accent-light); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.card-icon svg { width: 32px; height: 32px; stroke: var(--accent-hover); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.bento-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.bento-tag { font-size: 13px; font-weight: 600; color: var(--accent-hover); background: var(--accent-light); padding: 8px 16px; border-radius: 100px; }

.format-card { background: var(--bg-card); border-radius: var(--radius-card); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.03); transition: 0.4s; }
.format-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,0.06); }
.format-content { padding: 48px; flex: 1; display: flex; flex-direction: column; }
.format-content h3 { font-family: var(--font-head); font-size: 28px; margin-bottom: 16px; }
.format-content p { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; }
.format-list { list-style: none; margin-bottom: 40px; flex-grow: 1;}
.format-list li { position: relative; padding-left: 32px; margin-bottom: 16px; font-size: 15px; font-weight: 500; color: var(--text-main); }
.format-list li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center; }

/* =========================================
   7. УНИКАЛЬНЫЕ СЕКЦИИ СТРАНИЦЫ
   ========================================= */
/* Угрожающие состояния */
.alert-section { background: var(--bg-card); border-radius: var(--radius-card); overflow: hidden; display: flex; box-shadow: 0 4px 24px rgba(0,0,0,0.03); margin-bottom: 80px;     margin-top: 80px;}
.alert-content { padding: 50px; flex: 1; display: flex; flex-direction: column; justify-content: center;}
.alert-content h2 { font-family: var(--font-head); font-size: 32px; margin-bottom: 24px; color: var(--alert-color); }
.alert-desc { font-size: 18px; margin-bottom: 24px; color: var(--text-muted); line-height: 1.5; }
.alert-image { width: 45%; background: url('/Files/close-up-health-worker_23-2149112503.jpg') center/cover no-repeat; min-height: 400px;}
.alert-list { list-style: none; margin-bottom: 32px; }
.alert-list li { position: relative; padding-left: 36px; margin-bottom: 16px; font-size: 16px; color: var(--text-main); line-height: 1.5; }
.alert-list li::before { content: '!'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; background: var(--alert-light); color: var(--alert-color); font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 14px;}

/* Процесс (текст + фото) */
.step-number { width: 48px; height: 48px; background: var(--bg-body); color: var(--accent-green); font-family: var(--font-head); font-size: 36px; font-weight: 500; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.process-section { display: flex; gap: 40px; align-items: center; }
.process-text { flex: 1; }
.process-text h2 { font-family: var(--font-head); font-size: 32px; margin-bottom: 24px; }
.process-text p { font-size: 16px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.process-list { list-style: none; margin-top: 24px; }
.process-list li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 15px; color: var(--text-main); font-weight: 500;}
.process-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); }
.process-image { flex: 1; height: 500px; border-radius: var(--radius-card); background: url('/Files/pacient-zmet-ruku-vrachy-v-cabinete-2.jpg') center/cover no-repeat; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

/* SEO Аккордеон и Статьи */
.seo-accordion { display: flex; flex-direction: column; gap: 16px; }
.seo-details { background: var(--bg-card); border-radius: 24px; box-shadow: 0 4px 24px rgba(0,0,0,0.03); transition: 0.3s; }
.seo-summary { padding: 24px 32px; font-family: var(--font-head); font-size: 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); }
.seo-summary::-webkit-details-marker { display: none; }
.seo-summary::after { content: '+'; color: var(--accent-green); font-size: 28px; font-weight: 500; transition: transform 0.3s ease; }
.seo-details[open] .seo-summary::after { content: '−'; transform: rotate(180deg); }
.seo-content { padding: 0 32px 32px; color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.seo-content p { margin-bottom: 16px; }

.article-block { background: var(--bg-card); border-radius: var(--radius-card); padding: 56px; box-shadow: 0 4px 24px rgba(0,0,0,0.03); }
.article-block h2 { font-family: var(--font-head); font-size: 28px; margin-bottom: 24px; color: var(--text-main); }
.article-block p { font-size: 16px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.article-block strong { color: var(--text-main); font-weight: 600; }

/* Блок отзывов */
.review-card { background: var(--bg-body); border-radius: var(--radius-card); padding: 40px; border: 1px solid transparent; transition: 0.3s; }
.review-card:hover { background: var(--bg-card); border-color: var(--accent-light); box-shadow: 0 12px 32px rgba(0,0,0,0.05); }
.stars { color: #FBBF24; font-size: 20px; margin-bottom: 16px; letter-spacing: 2px; }
.review-text { font-size: 15px; color: var(--text-main); line-height: 1.7; font-style: italic; margin-bottom: 24px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 48px; height: 48px; background: var(--accent-light); color: var(--accent-hover); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.author-details { display: flex; flex-direction: column; }
.author-name { font-weight: 600; font-size: 15px; color: var(--text-main); }
.author-date { font-size: 12px; color: var(--text-muted); }

/* =========================================
   8. БЛОК ВРАЧЕЙ (СЛАЙДЕР)
   ========================================= */
.team-section { background: var(--bg-body); padding: 80px 0; overflow: hidden; }
.team-header-wrapper { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 24px; }
.team-header-text { max-width: 700px; text-align: left; }
.team-header-text h2 { font-family: var(--font-head); font-size: 36px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.5px; }
.team-header-text p { font-size: 18px; color: var(--text-muted); margin: 0; }
.team-slider-nav { display: flex; gap: 12px; }
.team-slider-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--text-main); color: var(--bg-card); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; }
.team-slider-btn:hover { background: var(--accent-green); transform: scale(1.05); }
.team-slider-btn svg { width: 24px; height: 24px; fill: currentColor; }
.team-slider-container { width: 100%; }
.team-slider-track { 
    display: flex; 
    gap: 24px; 
    overflow-x: auto; 
    scroll-behavior: smooth; 
    -webkit-overflow-scrolling: touch; 
    padding-bottom: 40px; 
    scrollbar-width: none; 
    padding-left: max(24px, calc((100% - 1240px) / 2 + 24px));
    padding-right: max(24px, calc((100% - 1240px) / 2 + 24px));
}
.team-slider-track::-webkit-scrollbar { display: none; }

.team-card { width: 320px; min-width: 320px; max-width: 320px; flex: 0 0 320px; background: var(--bg-card); border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: 0.4s; border: 1px solid var(--border-color); display: flex; flex-direction: column; margin: 0; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(16, 185, 129, 0.08); }
.team-img-wrapper { width: 100%; aspect-ratio: 4 / 3; background: var(--border-color); overflow: hidden; position: relative; }
.team-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(10%); transition: 0.5s; }
.team-card:hover .team-img { filter: grayscale(0%); transform: scale(1.05); }
.team-info { padding: 24px; }
.team-name { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; line-height: 1.3;}
.team-spec { font-size: 13px; color: var(--accent-green); font-weight: 600; margin-bottom: 12px; display: block; }
.team-exp { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* =========================================
   9. НОВЫЕ БЛОКИ: УСЛУГИ И ЦЕНЫ
   ========================================= */
/* Категории услуг */
.service-category-card { background: var(--bg-card); border-radius: var(--radius-card); padding: 32px; box-shadow: 0 4px 24px rgba(0,0,0,0.03); transition: 0.3s; border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.service-category-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(16, 185, 129, 0.08); border-color: var(--accent-light); }
.service-cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.service-cat-icon { width: 56px; height: 56px; background: var(--accent-light); border-radius: 16px; display: flex; justify-content: center; align-items: center; color: var(--accent-hover); flex-shrink: 0; }
.service-cat-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-cat-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin: 0; color: var(--text-main); line-height: 1.3; }
.service-sublist { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
.service-sublist li { margin-bottom: 12px; border-bottom: 1px solid var(--bg-body); padding-bottom: 12px; }
.service-sublist li:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.service-sublist a { color: var(--text-muted); text-decoration: none; font-size: 15px; font-weight: 500; display: flex; align-items: center; transition: 0.2s; }
.service-sublist a::before { content: '→'; margin-right: 12px; font-size: 18px; color: var(--accent-green); transition: 0.2s; font-family: sans-serif; }
.service-sublist a:hover { color: var(--text-main); }
.service-sublist a:hover::before { transform: translateX(4px); }

/* Прайс-лист и оплата */
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--border-color); font-size: 15px; color: var(--text-main); }
.price-list li:last-child { border-bottom: none; }
.price-list b { font-weight: 600; color: var(--text-main); white-space: nowrap; margin-left: 16px; font-size: 16px;}
.badge-hit { background: var(--alert-color); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; text-transform: uppercase; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);}
.badge-safe { background: var(--accent-green); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; text-transform: uppercase;}

.payment-methods-block { margin-top: 40px; padding: 24px 32px; background: var(--bg-body); border-radius: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border: 1px solid var(--border-color);}
.payment-text { font-weight: 600; font-size: 16px; color: var(--text-muted); }
.payment-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.pay-icon { background: var(--bg-card); padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-main); box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid var(--border-color); display: flex; align-items: center; gap: 8px;}

/* =========================================
   10. ФУТЕР И МОДАЛЬНОЕ ОКНО ГОРОДОВ
   ========================================= */
.footer { background: var(--bg-card); padding: 80px 0 40px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: 60px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 16px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-nav a { font-size: 15px; font-weight: 500; color: var(--text-main); text-decoration: none; transition: 0.2s; }
.footer-nav a:hover { color: var(--accent-green); }
.legal-box { background: var(--bg-body); padding: 32px; border-radius: 24px; margin-bottom: 32px; }
.legal-text { font-size: 12px; color: #888; text-align: justify; margin-bottom: 16px; line-height: 1.6;}
.license-number { font-size: 13px; font-weight: 500; color: var(--text-muted); }

/* Кнопка звонка в футере */
.footer-cta { background: var(--bg-body); padding: 20px; border-radius: 16px; display: inline-flex; flex-direction: column; gap: 8px; margin-top: 20px; width: 100%; border: 1px solid var(--border-color);}
.footer-cta-title { font-size: 12px; text-transform: uppercase; color: var(--accent-hover); font-weight: 700; letter-spacing: 0.5px;}
.footer-cta-phone { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--text-main); text-decoration: none; display: flex; align-items: center; gap: 16px; transition: 0.3s;}
.footer-cta-phone:hover { color: var(--accent-green); transform: translateX(4px);}
.footer-cta-icon { width: 44px; height: 44px; background: var(--accent-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3); animation: pulse-green 2s infinite;}
.footer-cta-icon svg { width: 22px; height: 22px; fill: currentColor; }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

/* Модальное окно (Выбор города) */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(31, 41, 55, 0.8); backdrop-filter: blur(5px); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: var(--bg-card); border-radius: var(--radius-card); width: 100%; max-width: 850px; max-height: 85vh; overflow-y: auto; padding: 40px; position: relative; box-shadow: 0 20px 48px rgba(0,0,0,0.2); }
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: var(--bg-body); border-radius: 10px; margin-top: 40px; margin-bottom: 40px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: var(--accent-green); }
.modal-close { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; background: var(--bg-body); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 24px; font-weight: bold; color: var(--text-muted); transition: 0.3s; z-index: 2;}
.modal-close:hover { background: var(--alert-light); color: var(--alert-color); }
.modal-title { font-family: var(--font-head); font-size: 28px; margin-bottom: 24px; padding-right: 48px; color: var(--text-main); }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.city-link { display: block; padding: 12px 16px; background: var(--bg-body); border-radius: 12px; color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 15px; transition: 0.2s; border: 1px solid transparent; }
.city-link:hover { background: var(--accent-light); color: var(--accent-hover); border-color: var(--accent-green); transform: translateY(-2px); }

/* Поиск в модальном окне */
.city-search-wrapper { margin-bottom: 24px; position: relative; }
.city-search-input { width: 100%; padding: 16px 24px; border: 2px solid var(--border-color); border-radius: var(--radius-btn); font-size: 16px; font-family: var(--font-body); color: var(--text-main); outline: none; transition: 0.3s; background: var(--bg-body) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23535353' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat calc(100% - 20px) center;}
.city-search-input:focus { border-color: var(--accent-green); background-color: var(--bg-card); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);}
.city-no-results { display: none; grid-column: 1 / -1; text-align: center; padding: 32px; color: var(--text-muted); font-size: 16px; background: var(--bg-body); border-radius: 16px;}

/* Мобильное меню (Скрыто на ПК) */
.mobile-header-right { display: none; }
.mobile-menu-overlay { display: none; }

/* =========================================
   11. АДАПТИВ ДЛЯ ПЛАНШЕТОВ (до 960px)
   ========================================= */
@media (max-width: 960px) {
    .grid-2, .grid-3, .grid-4, .evidence-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    
    .hero h1 { font-size: 40px; }
    .alert-section { flex-direction: column; margin-bottom: 40px; }
    .alert-image { width: 100%; min-height: 300px; }
    .process-section { flex-direction: column; }
    .process-image { width: 100%; height: 350px; }
    .article-block { padding: 40px; }
    
    .team-slider-nav { display: none; } 

    /* Переключение на мобильное меню */
    .desktop-only { display: none !important; }
    .mobile-header-right { display: flex; align-items: center; gap: 16px; }
    .mobile-phone { font-size: 16px !important; margin: 0 !important; color: var(--text-main); }
    
    .burger-btn { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 4px; }
    .burger-btn span { display: block; width: 26px; height: 3px; background-color: var(--text-main); border-radius: 2px; transition: 0.3s; }
    
    .mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(31, 41, 55, 0.6); z-index: 2000; backdrop-filter: blur(4px); }
    .mobile-menu-content { position: absolute; top: 0; right: 0; width: 85%; max-width: 320px; height: 100%; background: var(--bg-card); display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(0,0,0,0.1); animation: slideInRight 0.3s forwards; }
    @keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
    
    .mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border-color); }
    .close-btn { background: none; border: none; font-size: 36px; color: var(--text-muted); cursor: pointer; line-height: 0.8; padding: 0; }
    .mobile-menu-body { padding: 24px; display: flex; flex-direction: column; flex: 1; overflow-y: auto; }
    .mobile-city { background: var(--accent-light); color: var(--accent-hover); padding: 14px; border-radius: 12px; font-weight: 600; text-align: center; margin-bottom: 32px; cursor: pointer; font-size: 15px; }
    .mobile-nav { display: flex; flex-direction: column; gap: 0; margin-bottom: auto; }
    .mobile-nav > a { text-decoration: none; color: var(--text-main); font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--border-color); padding: 16px 0; }
    
    .mobile-nav details { border-bottom: 1px solid var(--border-color); }
    .mobile-nav summary { padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--text-main); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .mobile-nav summary::after { content: '▾'; font-size: 14px; transition: transform 0.3s ease; color: var(--text-muted); }
    .mobile-nav details[open] summary::after { transform: rotate(180deg); color: var(--accent-green); }
    .mobile-nav-submenu { display: flex; flex-direction: column; padding: 0 0 16px 16px; gap: 16px; }
    .mobile-nav-submenu a { text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 450; transition: 0.2s; }
    .mobile-nav-submenu a:hover { color: var(--accent-green); }
    
    .mobile-footer { margin-top: 32px; }
}

/* =========================================
   12. КОМПАКТНЫЙ АДАПТИВ ДЛЯ ТЕЛЕФОНОВ (до 600px)
   ========================================= */
@media (max-width: 600px) {
    .section { padding: 32px 0; }
    .container { padding: 0 16px !important; }
    .grid-2, .grid-3, .grid-4, .evidence-grid { grid-template-columns: 1fr; gap: 12px; }
    
    .section-header { margin-bottom: 18px; text-align: center; }
    .section-header h2 { font-size: 21px !important; line-height: 1.25 !important; margin-bottom: 6px !important; letter-spacing: -0.3px; }
    .section-header p { font-size: 13.5px !important; line-height: 1.45 !important; }

    /* Главный экран Hero */
    .hero { padding: 84px 0 20px; }
    .hero-premium { padding: 24px 0 32px; }
    .hero h1 { font-size: 22px !important; line-height: 1.22 !important; margin-bottom: 10px !important; }
    .hero-description { font-size: 13.5px !important; line-height: 1.4 !important; margin-bottom: 14px !important; }
    .hero-trust-grid { gap: 8px !important; margin-bottom: 14px !important; }
    .trust-item { padding: 8px 10px !important; border-radius: 12px !important; }
    .t-value { font-size: 13.5px !important; }
    .t-label { font-size: 11px !important; }
    .hero-actions { flex-direction: column; gap: 8px !important; margin-bottom: 14px !important; }
    .hero-btn-primary, .hero-btn-outline { padding: 12px 16px !important; font-size: 14px !important; min-height: 46px !important; border-radius: 12px !important; width: 100% !important; justify-content: center !important; }
    .hero-subnote { font-size: 11.5px !important; gap: 6px !important; }

    /* Bento карточки и форматы */
    .bento-card, .format-content, .alert-content, .article-block, .service-category-card { padding: 18px 14px !important; border-radius: 18px !important; }
    .card-icon { width: 42px !important; height: 42px !important; border-radius: 12px !important; margin-bottom: 12px !important; }
    .card-icon svg { width: 22px !important; height: 22px !important; }
    .bento-card h3 { font-size: 17px !important; margin-bottom: 6px !important; line-height: 1.3 !important; }
    .bento-card p { font-size: 13px !important; line-height: 1.45 !important; margin-bottom: 12px !important; }
    .bento-tags { gap: 6px !important; }
    .bento-tag { font-size: 11.5px !important; padding: 4px 10px !important; }
    
    .format-content h3 { font-size: 18px !important; margin-bottom: 6px !important; }
    .format-content p { font-size: 13px !important; margin-bottom: 12px !important; }
    .format-list { margin-bottom: 14px !important; }
    .format-list li { padding-left: 22px !important; margin-bottom: 6px !important; font-size: 12.5px !important; line-height: 1.35 !important; }
    .format-list li::before { width: 14px !important; height: 14px !important; top: 1px !important; }

    /* Кнопки */
    .btn-main, .btn-secondary, .btn-call-outline {
        white-space: normal !important; 
        padding: 12px 18px !important;
        font-size: 14.5px !important;
        height: auto !important;
        min-height: 48px !important;
        border-radius: 12px !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Слайдер врачей и галерея */
    .team-header-wrapper { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; margin-bottom: 16px !important; }
    .team-header-text h2 { font-size: 20px !important; line-height: 1.25 !important; margin-bottom: 6px !important; letter-spacing: -0.3px !important; }
    .team-header-text p { font-size: 13.5px !important; line-height: 1.45 !important; }
    .team-slider-nav { display: none !important; }
    .team-slider-track { gap: 12px !important; padding-left: 16px !important; padding-right: 16px !important; scroll-padding-left: 16px !important; scroll-padding-right: 16px !important; padding-bottom: 20px !important; scroll-snap-type: x mandatory; }
    .team-card { width: 240px !important; min-width: 240px !important; max-width: 240px !important; flex: 0 0 240px !important; border-radius: 16px !important; scroll-snap-align: start; }
    .team-info { padding: 14px 12px !important; }
    .team-name { font-size: 15px !important; margin-bottom: 4px !important; }
    .team-spec { font-size: 12px !important; margin-bottom: 6px !important; }
    .team-exp { font-size: 12px !important; line-height: 1.4 !important; }
    .gallery-card { width: 220px !important; min-width: 220px !important; height: 160px !important; border-radius: 14px !important; }

    /* Угрожающие состояния (Alert) */
    .alert-section { margin-top: 32px !important; margin-bottom: 32px !important; border-radius: 18px !important; flex-direction: column !important; }
    .alert-content { padding: 18px 14px !important; }
    .alert-content h2 { font-size: 20px !important; line-height: 1.25 !important; margin-bottom: 8px !important; }
    .alert-desc { font-size: 13.5px !important; line-height: 1.45 !important; margin-bottom: 14px !important; }
    .alert-list { margin-bottom: 16px !important; }
    .alert-list li { font-size: 13px !important; line-height: 1.4 !important; padding-left: 28px !important; margin-bottom: 8px !important; }
    .alert-list li::before { width: 20px !important; height: 20px !important; font-size: 12px !important; }
    .alert-image { min-height: 180px !important; height: 180px !important; width: 100% !important; }

    /* Процесс восстановления (Process) */
    .process-section { flex-direction: column !important; gap: 20px !important; }
    .process-text h2 { font-size: 20px !important; line-height: 1.25 !important; margin-bottom: 8px !important; }
    .process-text p { font-size: 13.5px !important; line-height: 1.45 !important; margin-bottom: 10px !important; }
    .process-list { margin-top: 12px !important; }
    .process-list li { font-size: 13px !important; line-height: 1.4 !important; padding-left: 20px !important; margin-bottom: 6px !important; }
    .process-list li::before { top: 6px !important; width: 6px !important; height: 6px !important; }
    .process-image { width: 100% !important; height: 200px !important; border-radius: 16px !important; }

    /* Статьи / информационные блоки (Article Block) */
    .article-block { padding: 18px 14px !important; border-radius: 18px !important; }
    .article-block h1 { font-size: 20px !important; line-height: 1.25 !important; margin-bottom: 8px !important; }
    .article-block h2 { font-size: 18px !important; line-height: 1.3 !important; margin-bottom: 8px !important; }
    .article-block p { font-size: 13.5px !important; line-height: 1.5 !important; margin-bottom: 10px !important; }
    .article-block ul, .article-block ol { margin-bottom: 12px !important; padding-left: 18px !important; }
    .article-block li { font-size: 13px !important; line-height: 1.45 !important; margin-bottom: 6px !important; }

    /* Услуги и прайс */
    .service-category-card { padding: 16px 14px !important; }
    .service-cat-head { gap: 10px !important; margin-bottom: 14px !important; }
    .service-cat-icon { width: 40px !important; height: 40px !important; border-radius: 12px !important; }
    .service-cat-icon svg { width: 20px !important; height: 20px !important; }
    .service-cat-title { font-size: 16px !important; }
    .service-sublist li { margin-bottom: 8px !important; padding-bottom: 8px !important; }
    .service-sublist a { font-size: 13px !important; }
    .payment-methods-block { flex-direction: column; align-items: flex-start; padding: 14px !important; gap: 10px !important; }
    .price-list li { flex-direction: column; align-items: flex-start; gap: 4px !important; padding: 10px 0 !important; font-size: 13.5px !important; }
    .price-list b { margin-left: 0; color: var(--accent-green); font-size: 14.5px !important; }

    /* Отзывы и аккордеон */
    .review-card { padding: 16px 14px !important; border-radius: 16px !important; }
    .review-text { font-size: 13px !important; line-height: 1.45 !important; margin-bottom: 12px !important; }
    .author-avatar { width: 36px !important; height: 36px !important; font-size: 14px !important; }
    .author-name { font-size: 13.5px !important; }
    .seo-summary { padding: 14px 16px !important; font-size: 15px !important; }
    .seo-content { padding: 0 16px 16px !important; font-size: 13.5px !important; }
    .legal-box { padding: 16px 14px !important; margin-bottom: 20px !important; border-radius: 16px !important; }
    .legal-text { font-size: 11px !important; line-height: 1.45 !important; }

    /* Шапка и навигация */
    .header-actions { gap: 4px; }
    .logo { max-width: 180px; font-size: 12px; }
    .logo span { font-size: 9px; }
    .mobile-phone { font-size: 14px !important; margin-right: 4px !important; }
    .footer-nav { grid-template-columns: 1fr; }

    /* Модальное окно городов */
    .modal-content { padding: 20px 14px; border-radius: 20px; }
    .modal-close { top: 14px; right: 14px; width: 32px; height: 32px; font-size: 18px; }
    .modal-title { font-size: 19px; margin-bottom: 16px; padding-right: 36px; }
    .city-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } 
    .city-link { padding: 8px 6px; font-size: 12.5px; text-align: center; border-radius: 10px; }

    /* Глобальные сжатия стилей */
    [style*="min-width: 300px"] { min-width: 100% !important; }
    [style*="padding: 40px"], [style*="padding: 32px"] { padding: 16px 14px !important; }
    [style*="font-size: 24px"] { font-size: 18px !important; }
}

/* =========================================
   13. СВЕРХСКОРОСТНОЙ РЕНДЕРИНГ (LCP & FID ОПТИМИЗАЦИЯ)
   ========================================= */
#team, #gallery, #reviews, #faq, #coverage, .seo-accordion-section, .legal-box {
    content-visibility: auto;
    contain-intrinsic-size: 400px;
}

/* =========================================
   ПЛАВАЮЩАЯ КНОПКА ЗВОНКА (УМНАЯ)
   ========================================= */
/* Вид на компьютерах (Круглая в углу) */
.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background-color: var(--accent-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulse-widget 2s infinite;
    text-decoration: none;
}

.floating-call-btn:hover {
    transform: scale(1.1);
    background-color: var(--accent-hover);
}

.floating-call-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.floating-call-btn-text {
    display: none; /* Скрываем текст на больших экранах */
}

@keyframes pulse-widget {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Вид на мобильных телефонах (Широкая нижняя панель) */
@media (max-width: 600px) {
    /* Добавляем невидимый отступ внизу страницы, чтобы кнопка не перекрывала текст футера */
    body {
        padding-bottom: 80px; 
    }

    .floating-call-btn {
        bottom: 16px;
        right: auto;
        left: 50%;
        transform: translateX(-50%); /* Идеально центрируем */
        width: calc(100% - 32px); /* Ширина экрана минус небольшие отступы по бокам */
        max-width: 500px; /* Ограничитель, как вы просили */
        height: 56px; /* Комфортная высота для пальца, но не закрывает пол экрана */
        border-radius: 100px; /* Форма таблетки */
        animation: pulse-widget-mobile 2s infinite;
    }

    .floating-call-btn:hover {
        transform: translateX(-50%) scale(1.02);
    }

    .floating-call-btn svg {
        width: 24px;
        height: 24px;
        margin-right: 10px;
        animation: phone-shake 2s infinite; /* Трубка будет слегка покачиваться */
    }

    .floating-call-btn-text {
        display: inline-block;
        font-family: var(--font-head);
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
}

/* Специальный пульс для формы таблетки */
@keyframes pulse-widget-mobile {
    0% { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5), 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5), 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5), 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Анимация дрожащей трубки */
@keyframes phone-shake {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
    60% { transform: rotate(0); }
}

/* ==========================================
   УНИВЕРСАЛЬНЫЕ СТИЛИ МЕДИЦИНСКИХ ИЛЛЮСТРАЦИЙ
   ========================================== */
.article-image-wrapper {
    margin: 40px 0;
    text-align: center;
    background: var(--bg-card, #ffffff);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-color, #E2E8F0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.article-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.image-caption {
    font-size: 14px;
    color: var(--text-muted, #64748B);
    margin-top: 16px;
    margin-bottom: 0;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}
@media (max-width: 640px) {
    .article-image-wrapper {
        margin: 24px 0;
        padding: 12px;
        border-radius: 16px;
    }
    .article-image {
        border-radius: 10px;
    }
    .image-caption {
        font-size: 13px;
        margin-top: 10px;
    }
}


