/* ==================================================================
   ВЕТЕРИНАРНАЯ КЛИНИКА - ОСНОВНЫЕ СТИЛИ
   Версия: 3.2 (ОПТИМИЗИРОВАННАЯ)
   ==================================================================
   
   СОДЕРЖАНИЕ:
   1. RESET И БАЗОВЫЕ СТИЛИ
   2. ТИПОГРАФИКА
   3. ШАПКА САЙТА (HEADER)
   4. ГЕРОЙ СЕКЦИЯ (HERO)
   5. БЛОК УСЛУГ (SERVICES)
   6. БЛОК ВРАЧЕЙ (DOCTORS)
   7. КАРУСЕЛЬ ВРАЧЕЙ
   8. БЛОК ОТЗЫВОВ (REVIEWS)
   9. КОНТАКТЫ (CONTACTS)
   10. ПОДВАЛ (FOOTER)
   11. ПЛАВАЮЩАЯ КНОПКА
   12. ГАЛЕРЕЯ ФОТО ВХОДА
   13. ОБЩИЕ ВСПОМОГАТЕЛЬНЫЕ СТИЛИ
   
   ================================================================== */

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

body {
    color: #1e2f3e;
    background: #fff;
    line-height: 1.5;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #E8F5E9;
    --secondary: #1e2f3e;
    --gray-light: #F9FAFB;
    --gray-border: #eef2f0;
    --text-dark: #1e2f3e;
    --text-gray: #5a6e7a;
    --danger: #dc3545;
    --warning: #ffcc00;
    --border-radius: 12px;
    --button-radius: 12px;
    --card-radius: 16px;
    --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --body-font-size: 16px;
    --heading-font-size: 32px;
}

/* ===== 2. ТИПОГРАФИКА ===== */
section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: #4a5a6a;
    margin-bottom: 32px;
    font-size: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    section h2 { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.9rem; margin-bottom: 24px; }
}

/* ===== 3. ШАПКА САЙТА (HEADER) ===== */
header {
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 0;
    gap: 20px;
}

/* ---------- ЛОГОТИП ---------- */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-image {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-icon-emoji {
    font-size: 2.8rem;
    line-height: 1;
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: #5a6e7a;
    margin: 4px 0 0 0;
    font-weight: 500;
}

/* ---------- КОНТАКТЫ В ШАПКЕ ---------- */
.contact-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-phone-wrapper,
.contact-hours-wrapper,
.header-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
}

.contact-icon-small svg,
.hours-icon svg,
.address-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--primary);
    stroke-width: 1.5;
    fill: none;
}

.emergency-phone-modern,
.contact-header .work-hours,
.header-address span {
    display: inline-block;
    line-height: 1.3;
    vertical-align: middle;
    font-size: 0.85rem;
    font-weight: 500;
}

.emergency-phone-modern {
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    color: var(--secondary);
}

.emergency-phone-modern:hover {
    color: var(--primary);
}

.contact-header .work-hours {
    white-space: nowrap;
}

.header-address span {
    white-space: nowrap;
}

/* ---------- КНОПКИ В ШАПКЕ ---------- */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-buttons .btn-outline, 
.header-buttons .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 40px;
    font-size: 0.85rem;
    cursor: pointer;
    height: 40px;
    box-sizing: border-box;
}

.header-buttons .btn-outline {
    background: transparent !important;
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
}

.header-buttons .btn-outline:hover {
    background: var(--primary) !important;
    color: white !important;
}

.header-buttons .btn-primary {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25);
}

.header-buttons .btn-primary:hover {
    background: var(--primary-dark) !important;
}

.header-buttons .btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------- АДАПТИВ ШАПКИ ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-inner { gap: 15px; }
    .contact-header { gap: 16px; }
    .emergency-phone-modern, .contact-header .work-hours, .header-address span { font-size: 0.75rem; }
    .contact-icon-small svg, .hours-icon svg, .address-icon svg { width: 16px; height: 16px; }
    .header-buttons .btn-outline, .header-buttons .btn-primary { padding: 6px 16px; height: 36px; font-size: 0.75rem; }
    .logo h1 { font-size: 1.3rem; }
    .logo-subtitle { font-size: 0.75rem; }
    .logo-image { max-height: 50px; }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: row !important; flex-wrap: wrap !important; justify-content: space-between !important; padding: 10px 0 !important; gap: 10px !important; width: 100%; }
    .logo { order: 1; flex-shrink: 1; }
    .logo a { gap: 8px; }
    .logo h1 { font-size: 1rem !important; }
    .logo-image { max-height: 32px !important; }
    .logo-icon-emoji { font-size: 1.6rem !important; }
    .logo-subtitle { font-size: 0.7rem !important; }
    .header-buttons { order: 2; gap: 8px; }
    .header-buttons .btn-outline, .header-buttons .btn-primary { padding: 0 12px !important; font-size: 0.6rem !important; height: 32px !important; }
    .header-buttons .btn-outline svg, .header-buttons .btn-primary svg { width: 12px !important; height: 12px !important; }
    .contact-header { order: 3; width: 100%; justify-content: center !important; gap: 8px !important; margin-top: 8px; }
    .contact-phone-wrapper, .contact-hours-wrapper, .header-address { height: 32px; gap: 4px; }
    .contact-icon-small svg, .hours-icon svg, .address-icon svg { width: 14px !important; height: 14px !important; }
    .emergency-phone-modern, .contact-header .work-hours, .header-address span { font-size: 0.7rem !important; }
    .header-address { display: inline-flex !important; }
}

@media (max-width: 480px) {
    .header-inner { gap: 6px !important; }
    .contact-header { gap: 6px !important; }
    .contact-phone-wrapper, .contact-hours-wrapper, .header-address { gap: 3px; }
    .emergency-phone-modern, .contact-header .work-hours { font-size: 0.65rem !important; }
    .header-address span { font-size: 0.6rem !important; }
    .contact-icon-small svg, .hours-icon svg, .address-icon svg { width: 12px !important; height: 12px !important; }
    .header-buttons { gap: 4px; }
    .header-buttons .btn-outline, .header-buttons .btn-primary { padding: 0 8px !important; gap: 4px; font-size: 0.55rem !important; }
    .header-buttons .btn-outline svg, .header-buttons .btn-primary svg { width: 10px !important; height: 10px !important; }
    .logo-subtitle { font-size: 0.6rem !important; }
    .logo h1 { font-size: 0.85rem !important; }
    .logo a { gap: 4px; }
}

/* ===== 4. ГЕРОЙ СЕКЦИЯ (HERO) ===== */
.hero-modern {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, #f8faf9 0%, #ffffff 100%);
    overflow: hidden;
    padding: 0;
}

.hero-modern .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-modern .container {
    position: relative;
    z-index: 2;
    padding-top: 15px;
    padding-bottom: 15px;
}

.hero-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.hero-main {
    flex: 1.2;
    min-width: 280px;
}

.hero-features {
    flex: 0.8;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    min-width: 240px;
}

.hero-badge-group {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge-round {
    background: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-round svg {
    width: 14px !important;
    height: 14px !important;
}

.hero-title {
    font-size: var(--heading-font-size);
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary);
    margin-bottom: 12px;
    max-width: 80%;
}

.hero-subtitle {
    font-size: 1rem;
    color: #3a4a5a;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 85%;
}

.hero-stats-modern {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-item .stat-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    font-weight: 600;
}

/* ---------- КНОПКИ В HERO-СЕКЦИИ ---------- */
.hero-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0 20px;
    flex-wrap: nowrap;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
}

.hero-actions .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.hero-actions .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Планшеты */
@media (max-width: 992px) {
    .hero-actions .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .hero-actions .btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .hero-actions {
        gap: 10px;
        margin: 20px 0 15px;
    }
    .hero-actions .btn {
        padding: 8px 12px;
        font-size: 0.7rem;
        gap: 6px;
    }
    .hero-actions .btn svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .hero-actions {
        gap: 8px;
    }
    .hero-actions .btn {
        padding: 6px 10px;
        font-size: 0.6rem;
        gap: 4px;
    }
    .hero-actions .btn svg {
        width: 12px;
        height: 12px;
    }
}

.hero-emergency-modern {
    background: var(--primary);
    border-radius: 12px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: white;
    font-size: 0.9rem;
}

.hero-emergency-modern span,
.hero-emergency-modern a,
.hero-emergency-modern .emergency-phone-modern,
.hero-emergency-modern .emergency-24h-modern {
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
}

.hero-emergency-modern .emergency-phone-modern {
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.hero-emergency-modern .emergency-phone-modern:hover {
    color: white;
    text-decoration: underline;
}

/* ---------- КАРТОЧКИ ПРЕИМУЩЕСТВ ---------- */
.feature-card-modern {
    background: white;
    padding: 16px 12px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--gray-border);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
}

.feature-card-modern svg {
    stroke: var(--primary);
    stroke-width: 1.5;
    width: 44px;
    height: 44px;
}

.feature-card-modern span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 992px) {
    .feature-card-modern {
        padding: 12px 8px;
        min-height: 100px;
        gap: 10px;
    }
    .feature-card-modern svg {
        width: 36px;
        height: 36px;
    }
    .feature-card-modern span {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
    }
    .feature-card-modern {
        width: 100%;
        min-height: 95px;
        padding: 10px 6px;
        gap: 8px;
        margin: 0;
    }
    .feature-card-modern svg { 
        width: 32px; 
        height: 32px;
    }
    .feature-card-modern span { 
        font-size: 0.7rem;
        font-weight: 500;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .hero-features { gap: 8px; }
    .feature-card-modern {
        min-height: 85px;
        padding: 8px 4px;
        gap: 6px;
    }
    .feature-card-modern svg { 
        width: 28px; 
        height: 28px;
    }
    .feature-card-modern span { 
        font-size: 0.6rem;
    }
}

/* ---------- АДАПТИВ HERO СЕКЦИИ ---------- */
@media (max-width: 992px) {
    .hero-title, .hero-subtitle { max-width: 100%; }
}

@media (max-width: 768px) {
    .hero-modern { min-height: auto; }
    .hero-grid { 
        display: flex;
        flex-direction: column;
        padding: 10px 0; 
    }
    .hero-main {
        width: 100%;
        text-align: center;
    }
    .hero-modern .container { 
        padding-top: 5px; 
        padding-bottom: 5px; 
    }
    .hero-title {
        font-size: calc(var(--heading-font-size) * 0.5);
        text-align: center;
        max-width: 100%;
    }
    .hero-subtitle {
        font-size: 0.85rem;
        text-align: center;
        max-width: 100%;
    }
    .hero-stats-modern {
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 15px;
    }
    .stat-item {
        align-items: center;
        text-align: center;
        min-width: 70px;
    }
    .stat-item .stat-number { font-size: 0.9rem; }
    .stat-item .stat-label { font-size: 0.55rem; }
    .hero-emergency-modern { 
        width: 100%; 
        justify-content: center;
        padding: 6px 12px;
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
    .hero-badge-group { justify-content: center; }
    .badge-round { font-size: 0.65rem; padding: 3px 10px; }
}

/* ===== 5. БЛОК УСЛУГ (SERVICES) ===== */
.services-grid {
    display: grid;
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.service-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-icon {
    font-size: 4rem;
    color: var(--primary);
    background: var(--primary-light);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-content {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
}

.service-card .service-content p {
    margin-bottom: 15px;
}

.service-card .price {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.3rem;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-border);
}

.service-price-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: white;
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    white-space: nowrap;
}

.service-price-badge-left {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: white;
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .service-price-badge, .service-price-badge-left {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}

.service-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 8px 20px;
    background: var(--primary);
    color: white !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: center;
}

.service-details-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.service-details-btn .btn-arrow {
    transition: transform 0.2s ease;
}

.service-details-btn:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--primary);
    padding: 6px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid var(--primary);
    border-radius: 40px;
    transition: all 0.2s ease;
}

.btn-load-more:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.services-buttons-container {
    text-align: center;
    margin-top: 20px;
}

/* ===== 6. БЛОК ВРАЧЕЙ (DOCTORS) ===== */
.doctor-card {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: var(--card-radius);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
    position: relative;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.doctor-card img,
.modal-photo {
    object-fit: cover;
    object-position: center 30%;
    border-radius: 50%;
}

.doctor-card h3 {
    font-size: 1.2rem;
    margin: 10px 0 5px;
    font-weight: 700;
    line-height: 1.3;
    min-height: 2.6rem;  /* Фикс высоты для имени */
}

/* ===== ФИКСИРОВАННАЯ ВЫСОТА ДЛЯ ДОЛЖНОСТИ (2 СТРОКИ) ===== */
.doctor-card .doctor-spec {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    min-height: 2.2rem;  /* Всегда места для 2 строк */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 12px;
    text-align: center;
    padding: 0 4px;
}

/* Бейдж стажа */
.doctor-experience-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary);
    color: white;
    border-radius: 30px;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.doctor-experience-badge svg {
    stroke: white;
    width: 10px;
    height: 10px;
}

@media (max-width: 768px) {
    .doctor-experience-badge {
        padding: 2px 6px;
        font-size: 0.55rem;
    }
    .doctor-experience-badge svg {
        width: 8px;
        height: 8px;
    }
}

/* ===== ФИКСИРОВАННОЕ ОПИСАНИЕ (3 СТРОКИ) ===== */
.doctor-card .doctor-bio {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 16px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #5a6e7a;
    min-height: 3.4rem;
}

/* ===== ПУЛЬСИРУЮЩАЯ КНОПКА ===== */
.doctor-details-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 12px 0;
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    min-height: 28px;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    position: relative;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
    }
    100% {
        transform: scale(0.8);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.doctor-details-link .btn-arrow {
    transition: transform 0.2s ease;
}

.doctor-details-link:hover {
    opacity: 0.7;
}

.doctor-details-link:hover .btn-arrow {
    transform: translateX(3px);
}

/* ===== КНОПКА "ЗАПИСАТЬСЯ" - ПРИЖИМАЕТСЯ К НИЗУ ===== */
.doctor-actions {
    display: flex;
    flex-direction: column;
    margin-top: auto;  /* Ключевое свойство — прижимает кнопку вниз */
    padding-top: 8px;
}

.doctor-appointment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: var(--primary);
    color: white !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.doctor-appointment-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.doctor-appointment-btn svg {
    stroke: white;
    width: 14px;
    height: 14px;
}

/* ===== 7. КАРУСЕЛЬ ВРАЧЕЙ ===== */
.doctors-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-bottom: 20px;
}

.doctors-grid-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    scroll-snap-type: x mandatory;
    gap: var(--doctors-gap, 30px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.doctors-grid-scroll::-webkit-scrollbar {
    display: none;
}

.doctors-grid-scroll .doctor-card {
    flex: 0 0 auto;
    width: calc((100% - (var(--doctors-gap, 30px) * 2)) / 3);
    min-width: 250px;
    scroll-snap-align: start;
    margin-bottom: 5px;
}

.scroll-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    z-index: 10;
}

.scroll-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.scroll-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none;
}

@media (max-width: 992px) {
    .doctors-grid-scroll .doctor-card {
        width: calc((100% - var(--doctors-gap, 30px)) / 2);
    }
    .scroll-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .doctors-scroll-wrapper {
        gap: 8px;
    }
    .doctors-grid-scroll .doctor-card {
        width: calc(100% - var(--doctors-gap, 30px));
    }
    .scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ===== 8. БЛОК ОТЗЫВОВ (REVIEWS) ===== */
.reviews-grid {
    display: grid;
    gap: 30px;
}

.review-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.review-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
}

.review-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--secondary);
    font-weight: 600;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.review-meta .rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #f5b042;
    font-size: 1rem;
    line-height: 1;
}

.review-meta .review-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-gray);
    line-height: 1;
}

.review-meta .review-date svg {
    width: 12px;
    height: 12px;
    display: inline-block;
    vertical-align: middle;
}

.review-text-clamped {
    cursor: pointer;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.review-source-wrapper {
    margin-top: auto;
    text-align: right;
}

.review-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.review-source:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.08);
}

.review-source .source-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.review-source .source-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.review-source .source-name {
    font-weight: 500;
    font-size: 0.75rem;
}

/* ---------- ДРОПДАУН ОТЗЫВОВ ---------- */
.reviews-dropdown {
    position: relative;
    display: inline-block;
}

.btn-reviews-dropdown {
    background: transparent !important;
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
    padding: 8px 20px !important;
    border-radius: 40px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.btn-reviews-dropdown svg {
    stroke: var(--primary) !important;
    width: 18px !important;
    height: 18px !important;
}

.btn-reviews-dropdown:hover svg {
    stroke: white !important;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.reviews-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.reviews-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    min-width: 200px;
}

.reviews-dropdown.active .reviews-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-gray);
    border-bottom: 1px solid var(--gray-border);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--gray-light);
}

.dropdown-icon {
    display: inline-flex;
    align-items: center;
}

.dropdown-icon svg {
    width: 20px;
    height: 20px;
}

.dropdown-arrow-right {
    margin-left: auto;
}

@media (max-width: 768px) {
    .reviews-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
    }
}

/* ===== 9. КОНТАКТЫ (CONTACTS) ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    background: white;
    padding: 35px;
    border-radius: var(--card-radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.contact-details strong {
    display: block;
    font-size: 0.75rem;
    color: #8a9aa8;
    font-weight: 500;
    margin-bottom: 4px;
}

.phones-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.phone-button-primary {
    display: inline-block;
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: var(--button-radius);
    font-weight: 700;
    text-decoration: none;
}

.phone-button-secondary {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-dark) !important;
    padding: 8px 18px;
    border-radius: var(--button-radius);
    text-decoration: none;
}

.email-link {
    color: var(--text-dark);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.email-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.address-link {
    text-decoration: none;
    color: var(--text-dark);
}

.address-link {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.address-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.how-to-find {
    display: block;
    margin-top: 5px;
    font-size: 0.7rem;
    color: var(--text-gray);
}

.navigator-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: white !important;
    padding: 12px 24px;
    border-radius: var(--button-radius);
    text-decoration: none;
    width: 100%;
    margin-top: 20px;
}

.navigator-button svg {
    width: 18px !important;
    height: 18px !important;
}

.map {
    min-height: 400px;
    border-radius: var(--card-radius);
    overflow: hidden;
}

@media (max-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 25px; }
    .map { min-height: 300px; }
}

/* ===== 10. ПОДВАЛ (FOOTER) ===== */
footer {
    background: var(--secondary);
    color: #ffffff;
    text-align: center;
    padding: 40px 0 30px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
}

.social-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-icon-emoji {
    font-size: 1.1rem;
    line-height: 1;
}

.footer-copyright p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ===== 11. ПЛАВАЮЩАЯ КНОПКА ===== */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 1.5;
}

.floating-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

@media (min-width: 769px) {
    .floating-btn { display: none; }
}

@media (max-width: 768px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
    }
    .floating-btn svg { width: 22px; height: 22px; }
}

/* ===== 12. ГАЛЕРЕЯ ФОТО ВХОДА ===== */
.entrance-photo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.entrance-photo-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-light);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: none;
    text-decoration: none;
    border: none;
}  border: none;
}

.entrance-photo-trigger svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.entrance-photo-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    margin-bottom: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    width: 320px;
    max-width: 85vw;
    pointer-events: none;
}

.entrance-photo-tooltip::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -10px;
    right: -10px;
    height: 25px;
    background: transparent;
    pointer-events: auto;
}

.entrance-photo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.entrance-photo-wrapper.active .entrance-photo-tooltip,
.entrance-photo-wrapper:hover .entrance-photo-tooltip {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.15s;
    pointer-events: auto;
}

.entrance-photo-tooltip:hover {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    pointer-events: auto;
}

.entrance-photo-tooltip-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.entrance-photo-tooltip-images::-webkit-scrollbar {
    height: 4px;
}

.entrance-photo-tooltip-images::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.entrance-photo-tooltip-images::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.entrance-photo-tooltip-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.entrance-photo-tooltip-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .entrance-photo-tooltip {
        width: 280px;
        left: 50%;
        transform: translateX(-50%);
        bottom: auto;
        top: 100%;
        margin-top: 10px;
        margin-bottom: 0;
    }
    .entrance-photo-tooltip::after {
        top: auto;
        bottom: 100%;
        border-color: transparent transparent white transparent;
    }
    .entrance-photo-tooltip::before {
        top: auto;
        bottom: -15px;
        height: 25px;
    }
    .entrance-photo-tooltip-images img {
        width: 70px;
        height: 70px;
    }
    .entrance-photo-trigger {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
    color: var(--primary);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10002;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 10002;
}

/* ===== 13. ОБЩИЕ ВСПОМОГАТЕЛЬНЫЕ СТИЛИ ===== */
.bg-light { background: var(--gray-light); }
section { padding: 60px 0; }

@media (max-width: 768px) {
    section { padding: 40px 0; }
    .services-grid, .reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

.offer-disclaimer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.65rem;
    color: #8a9aa8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .offer-disclaimer {
        font-size: 0.55rem;
        margin-top: 20px;
    }
}

/* Фикс отступов для мобильных */
@media (max-width: 768px) {
    header, main, footer, .hero-modern, section {
        width: 100%;
        overflow-x: hidden;
    }
    header .container, .hero-modern .container, section .container, footer .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .header-inner { width: 100%; }
}

/* Унификация размеров SVG */
svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.logo-icon svg, .logo-image, .feature-card-modern svg {
    width: auto;
    height: auto;
}

.btn svg, .btn-primary svg, .btn-outline svg, 
.doctor-appointment-btn svg, .service-details-btn svg, 
.btn-submit svg {
    width: 18px !important;
    height: 18px !important;
}

.contact-icon svg, .contact-icon-small svg, 
.hours-icon svg, .address-icon svg {
    width: 18px !important;
    height: 18px !important;
}

.social-link svg {
    width: 20px !important;
    height: 20px !important;
}

.service-icon svg, .doctor-experience svg, 
.review-source svg, .dropdown-icon svg {
    width: 16px !important;
    height: 16px !important;
}

.badge-round svg {
    width: 14px !important;
    height: 14px !important;
}

.floating-btn svg {
    width: 24px !important;
    height: 24px !important;
}

.navigator-button svg {
    width: 18px !important;
    height: 18px !important;
}

/* Кнопка "Записаться" в шапке */
.header-buttons .btn-primary,
.btn-primary, 
.floating-btn,
[id="openModalBtn"] {
    cursor: pointer;
}

/* Анимации для тултипа */
@media (min-width: 769px) {
    .entrance-photo-wrapper .entrance-photo-tooltip {
        transition-delay: 0s;
    }
    .entrance-photo-wrapper:hover .entrance-photo-tooltip {
        transition-delay: 0.15s;
    }
}



/* ==================================================================
   ЕДИНЫЕ ПРАВИЛА ДЛЯ ВСЕХ КНОПОК ПРИ НАВЕДЕНИИ
   ================================================================== */

/* Все кнопки с классом btn-outline - при наведении белый текст */
.btn-outline:hover {
    color: white !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Все кнопки с классом btn-primary - при наведении белый текст */
.btn-primary:hover {
    color: white !important;
}

/* Кнопка обратного звонка в Hero-секции */
.hero-actions .btn-outline:hover {
    color: white !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Кнопки "Записаться" у врачей */
.doctor-appointment-btn {
    transition: all 0.2s ease;
}

.doctor-appointment-btn:hover {
    color: white !important;
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

/* Кнопки "Подробнее" у услуг */
.service-details-btn {
    transition: all 0.2s ease;
}

.service-details-btn:hover {
    color: white !important;
    background: var(--primary-dark) !important;
}

/* Кнопка "Показать ещё услуги" */
.btn-load-more:hover {
    color: white !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Кнопка "Как добраться" */
.navigator-button:hover {
    color: white !important;
    background: var(--primary-dark) !important;
}

/* Кнопка закрытия модального окна */
.btn-close-modal:hover {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Выпадающий список отзывов */
.btn-reviews-dropdown:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Стрелки карусели врачей */
.scroll-btn:hover {
    background: var(--primary-dark) !important;
    color: white !important;
}

/* Кнопки телефонов */
.phone-button-primary:hover {
    background: var(--primary-dark) !important;
}

.phone-button-secondary:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

/* Сохранение кнопок в админке (если используются на сайте) */
.btn-primary, 
.btn-outline {
    transition: all 0.2s ease;
}


/* ==================================================================
   УНИФИЦИРОВАННЫЕ СТИЛИ ВСЕХ КНОПОК
   ==================================================================
   
   1. btn-outline: прозрачный фон, зелёная граница, чёрный/зелёный текст
      → при наведении: зелёный фон (цвет при наведении), белый текст
   
   2. btn-primary: зелёный фон, белый текст
      → при наведении: тёмно-зелёный фон (цвет при наведении), белый текст
   
   3. Кнопка "Прайс" в шапке: как btn-outline
   
   ================================================================== */

/* ---------- БАЗОВЫЕ ПЕРЕМЕННЫЕ (из админки) ---------- */
:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --primary-hover: var(--primary-dark);
}

/* ===== ТИП 1: btn-outline (прозрачный фон, зелёная граница) ===== */
.btn-outline {
    background: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

.btn-outline:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* ===== ТИП 2: btn-primary (зелёный фон, белый текст) ===== */
.btn-primary {
    background: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    color: white !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* ===== КНОПКИ В ШАПКЕ ===== */
.header-buttons .btn-outline {
    background: transparent !important;
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
    padding: 8px 20px !important;
    border-radius: 40px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.header-buttons .btn-outline:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
}

.header-buttons .btn-primary {
    background: var(--primary) !important;
    border: 1.5px solid var(--primary) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 40px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.header-buttons .btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
}

/* ===== КНОПКИ В HERO-СЕКЦИИ ===== */
.hero-actions .btn-outline {
    background: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    padding: 12px 28px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
}

.hero-actions .btn-outline:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
}

.hero-actions .btn-primary {
    background: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    color: white !important;
    padding: 12px 28px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
}

.hero-actions .btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
}

/* ===== КНОПКИ У ВРАЧЕЙ ===== */
.doctor-appointment-btn {
    background: var(--primary) !important;
    border: 1.5px solid var(--primary) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.doctor-appointment-btn:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* ===== КНОПКИ "ПОДРОБНЕЕ" У УСЛУГ ===== */
.service-details-btn {
    background: var(--primary) !important;
    border: 1.5px solid var(--primary) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.service-details-btn:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* ===== КНОПКА "ПОКАЗАТЬ ЕЩЁ УСЛУГИ" ===== */
.btn-load-more {
    background: transparent !important;
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
    padding: 8px 20px !important;
    border-radius: 40px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.btn-load-more:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* ===== КНОПКА "КАК ДОБРАТЬСЯ" ===== */
.navigator-button {
    background: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: var(--button-radius) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.navigator-button:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* ===== КНОПКИ ТЕЛЕФОНОВ ===== */
.phone-button-primary,
.phone-button-secondary {
    display: inline-block;
    background: transparent !important;
    border: none !important;
    color: var(--text-dark) !important;
    padding: 0 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.phone-button-primary:hover,
.phone-button-secondary:hover {
    background: transparent !important;
    color: var(--primary) !important;
    transform: none !important;
    text-decoration: none !important;
}

/* ===== ВЫПАДАЮЩИЙ СПИСОК ОТЗЫВОВ ===== */
.btn-reviews-dropdown {
    background: transparent !important;
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
    padding: 8px 20px !important;
    border-radius: 40px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.btn-reviews-dropdown:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* ===== СТРЕЛКИ КАРУСЕЛИ ВРАЧЕЙ ===== */
.scroll-btn {
    background: var(--primary) !important;
    border: none !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.scroll-btn:hover {
    background: var(--primary-dark) !important;
    transform: scale(1.05);
}

/* ===== ПЛАВАЮЩАЯ КНОПКА (мобильная) ===== */
.floating-btn {
    background: var(--primary) !important;
    border: none !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.floating-btn:hover {
    background: var(--primary-dark) !important;
    transform: scale(1.05);
}

/* ===== КНОПКИ В МОДАЛЬНЫХ ОКНАХ ===== */
.modal-appointment-btn,
.modal .btn-submit {
    background: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.modal-appointment-btn:hover,
.modal .btn-submit:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-close-modal {
    background: transparent !important;
    border: 1px solid var(--gray-border) !important;
    color: var(--text-gray) !important;
    transition: all 0.3s ease !important;
}

.btn-close-modal:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* ===== УНИВЕРСАЛЬНЫЕ ДОПОЛНИТЕЛЬНЫЕ ПРАВИЛА ===== */
.btn-primary:hover svg,
.btn-outline:hover svg,
.doctor-appointment-btn:hover svg,
.service-details-btn:hover svg,
.btn-load-more:hover svg,
.navigator-button:hover svg,
.phone-button-primary:hover svg,
.phone-button-secondary:hover svg {
    stroke: white !important;
}

.btn-outline svg {
    stroke: var(--primary) !important;
}

.btn-primary svg {
    stroke: white !important;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .hero-actions .btn-outline,
    .hero-actions .btn-primary {
        padding: 8px 12px !important;
        font-size: 0.7rem !important;
    }
    
    .header-buttons .btn-outline,
    .header-buttons .btn-primary {
        padding: 0 12px !important;
        font-size: 0.6rem !important;
        height: 32px !important;
    }
}

/* Стили для HTML-контента в модальных окнах */
.modal-content-text {
    line-height: 1.6;
}

.modal-content-text p {
    margin-bottom: 12px;
}

.modal-content-text ul,
.modal-content-text ol {
    margin: 10px 0;
    padding-left: 25px;
}

.modal-content-text li {
    margin: 5px 0;
}

.modal-content-text ul li {
    list-style-type: disc;
}

.modal-content-text ol li {
    list-style-type: decimal;
}

.modal-content-text strong,
.modal-content-text b {
    font-weight: 700;
    color: var(--primary);
}

.modal-content-text em,
.modal-content-text i {
    font-style: italic;
}

.modal-content-text a {
    color: var(--primary);
    text-decoration: underline;
}




/* ==================================================================
   УЛУЧШЕННЫЕ СТРАНИЦЫ ВРАЧА И УСЛУГИ
   ================================================================== */

/* --- Хлебные крошки (навигация) --- */
.breadcrumbs {
    margin-bottom: 30px;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.breadcrumbs a {
    color: var(--primary, #4CAF50);
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumbs a:hover {
    text-decoration: underline;
    color: var(--primary-dark, #388E3C);
}
.breadcrumbs .separator {
    color: var(--text-gray, #5a6e7a);
}
.breadcrumbs .current {
    color: var(--text-gray, #5a6e7a);
    font-weight: 500;
}

/* --- Основная секция --- */
.single-page {
    padding: 40px 0 60px;
}

/* --- Единая сетка --- */
.single-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- Блок фото (улучшенный) --- */
.single-photo {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}
.single-photo img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    /* Мягкая тень для отделения от фона, вместо толстой рамки */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
/* Плейсхолдер, если фото нет */
.single-photo-placeholder {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #4CAF50;
    aspect-ratio: 1 / 1;
}

/* --- Блок информации (улучшенный) --- */
.single-info {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Заголовок */
.single-title {
    font-size: 2rem;
    color: var(--text-dark, #1e2f3e);
    margin-bottom: 15px;
    text-align: center;
}

/* Специализация / подзаголовок услуги */
.single-spec {
    font-size: 1.1rem;
    color: var(--primary, #4CAF50);
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

/* Стаж работы (обычный текст) */
.single-experience {
    font-size: 1rem;
    color: var(--text-gray, #5a6e7a);
    margin-bottom: 25px;
    text-align: center;
    font-weight: normal;
}
.single-experience strong {
    color: var(--text-dark, #1e2f3e);
}

/* Цена услуги */
.single-price {
    background: var(--primary-light, #E8F5E9);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    margin: 0 auto 25px;
    text-align: center;
}
.single-price .price-label {
    font-size: 0.7rem;
    color: var(--primary-dark, #388E3C);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.single-price .price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark, #388E3C);
}
.price-wrapper {
    text-align: center;
}

/* --- Контент: улучшаем читаемость --- */
.single-description {
    line-height: 1.7;
    color: var(--text-gray, #5a6e7a);
    margin-bottom: 30px;
    /* Оптимальная ширина строки для чтения (~ 70 символов) */
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
}
.single-description p {
    margin-bottom: 15px;
}
.single-description ul,
.single-description ol {
    margin: 15px 0;
    padding-left: 25px;
}
.single-description li {
    margin: 8px 0;
}
.single-description h3,
.single-description h4 {
    margin: 25px 0 10px;
    color: var(--text-dark, #1e2f3e);
}

/* Блок преимуществ */
.single-features {
    background: var(--gray-light, #F9FAFB);
    padding: 20px 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    /* Немного сужаем блок для удобства чтения */
    max-width: 75ch;
    margin-left: auto;
    margin-right: auto;
}
.single-features h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-dark, #1e2f3e);
}
.single-features ul {
    list-style: none;
    padding: 0;
}
.single-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
}
.single-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary, #4CAF50);
    font-weight: bold;
}

/* --- Призыв к действию (CTA) --- */
.single-btn {
    background: var(--primary, #4CAF50);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    /* Делаем кнопку заметнее */
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}
.single-btn:hover {
    background: var(--primary-dark, #388E3C);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

/* --- Адаптивность для планшетов и телефонов --- */
@media (max-width: 768px) {
    .single-page {
        padding: 20px 0 40px;
    }
    .single-title {
        font-size: 1.5rem;
    }
    .single-spec {
        font-size: 1rem;
    }
    .single-price .price-value {
        font-size: 1.3rem;
    }
    /* Для мобильных делаем контент шире, во всю доступную ширину */
    .single-description,
    .single-features {
        max-width: 100%;
    }
    .single-btn {
        width: 100%;
        max-width: 280px;
    }
    .breadcrumbs {
        justify-content: center;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .single-title {
        font-size: 1.3rem;
    }
    .single-photo img,
    .single-photo-placeholder {
        max-width: 220px;
    }
    .single-photo-placeholder {
        font-size: 60px;
    }
    .single-price {
        padding: 8px 18px;
    }
    .single-price .price-value {
        font-size: 1.1rem;
    }
    .single-features {
        padding: 15px;
    }
}

/* Ссылка на отдельную страницу врача */
.doctor-page-link {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--primary, #4CAF50);
    text-decoration: none;
    font-weight: 500;
}
.doctor-page-link:hover {
    text-decoration: underline;
}
.doctor-page-link .btn-arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}
.doctor-page-link:hover .btn-arrow {
    transform: translateX(3px);
}

