/*
Theme Name: Dentist Clinic
Theme URI: https://gleb.manager888.fvds.ru
Author: Your Name
Author URI: https://gleb.manager888.fvds.ru
Description: Modern WordPress theme for dental clinic
Version: 1.0.0
License: GPL v2 or later
Text Domain: dentist-clinic
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ БЛОКОВ ===== */
.clinic-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2a4365;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #38b2ac;
    margin: 15px auto 0;
}


/* ===== 1. БАННЕР С ЕДИНЫМ ГОРИЗОНТАЛЬНЫМ ИЗОБРАЖЕНИЕМ ===== */
.main-banner {
    background-color: transparent;
    position: relative;
    overflow: hidden;
    padding: 0;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Фоновое изображение */
.main-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    z-index: 1;
}

/* Адаптивность для баннера */
@media (min-width: 1200px) {
    .main-banner {
        min-height: 80vh;
    }
}

/* Планшеты */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-banner {
        min-height: 65vh;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .main-banner {
        min-height: 60vh;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .main-banner {
        min-height: 55vh;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .main-banner {
        min-height: 100vh;
    }
}

/* ===== 2. УТП С ИКОНКАМИ ===== */
.utp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.utp-item {
    padding: 30px 20px;
}


/* ИСКЛЮЧЕНИЕ ДЛЯ БАННЕРА */
.main-banner.clinic-section,
section.main-banner {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
}

/* Отключаем псевдоэлемент если он есть */
.main-banner::before {
    display: none !important;
    content: none !important;
}



/* ===== СТИЛЬ ДЛЯ SVG-ИКОНОК ===== */
.utp-icon {
    width: 90px; /* Размер иконки */
    height: 90px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 5px 10px rgba(56, 178, 172, 0.2)); /* Мягкая тень */
    transition: all 0.3s ease;
}

/* Эффект при наведении */
.utp-item:hover .utp-icon {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(56, 178, 172, 0.3));
}

/* Для старых эмодзи (если остались где-то) скроем */
.utp-icon[class*="emoji"] {
    display: none;
}
.utp-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2a4365;
}

/* ===== 3. НАПРАВЛЕНИЯ - АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .direction-card {
        text-align: center;
        padding: 30px 20px;
    }
    
    .direction-card .cta-button {
        margin-left: auto;
        margin-right: auto;
        display: block;
        max-width: 250px;
    }
}



.directions-section {
    background: #f8f9fa;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.direction-card {
    background: white;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.direction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(56, 178, 172, 0.15);
}

.direction-card h3 {
    color: #2a4365;
    margin: 20px 0 15px;
    font-size: 1.5rem;
}

.direction-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.direction-card p strong {
    color: #2a4365;
}

/* Стили для кнопок в карточках направлений */
.direction-card .cta-button {
    margin-top: auto; /* Прижимает кнопку к низу карточки */
    padding: 12px 25px;
    font-size: 1rem;
    background-color: #38b2ac;
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
}

.direction-card .cta-button:hover {
    background-color: #2a4365;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 67, 101, 0.2);
}

/* Стиль для иконок направлений */
.direction-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 4px 8px rgba(56, 178, 172, 0.15));
    transition: all 0.3s ease;
}

.direction-card:hover .direction-icon {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(56, 178, 172, 0.25));
}

/* ===== СТИЛЬ ДЛЯ ИКОНОК НАПРАВЛЕНИЙ ===== */
.direction-icon {
    width: 100px; /* Чуть больше, чем в УТП */
    height: 100px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 4px 8px rgba(56, 178, 172, 0.15));
    transition: all 0.3s ease;
}

/* Эффект при наведении на карточку */
.direction-card:hover .direction-icon {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(56, 178, 172, 0.25));
}


/* ===== 4. УСЛУГИ В ВИДЕ СПИСКА ===== */
.services-list {
    max-width: 800px;
    margin: 0 auto;
}

.service-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.service-list-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-list-icon {
    flex-shrink: 0;
    margin-right: 20px;
    margin-top: 5px;
}

.service-list-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.service-list-item:hover .service-list-icon svg {
    transform: scale(1.2);
}

.service-list-content {
    flex-grow: 1;
}

.service-list-content h3 {
    color: #2a4365;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-list-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Адаптивность для списка услуг */
@media (max-width: 768px) {
    .service-list-item {
        margin-bottom: 25px;
        padding-bottom: 25px;
        flex-direction: column;
    }
    
    .service-list-icon {
        margin-right: 0;
        margin-bottom: 15px;
        margin-top: 0;
    }
    
    .service-list-content h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .service-list-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .service-list-item {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .service-list-content h3 {
        font-size: 1.1rem;
    }
    
    .service-list-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}



/* ===== 5. ОТЗЫВЫ ===== */
.reviews-section {
    background: #f8f9fa;
}

.reviews-slider {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0 40px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.reviews-slider::-webkit-scrollbar {
    height: 8px;
}

.reviews-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.reviews-slider::-webkit-scrollbar-thumb {
    background: #38b2ac;
    border-radius: 4px;
}

.reviews-slider::-webkit-scrollbar-thumb:hover {
    background: #2a4365;
}

.review-card {
    flex: 0 0 350px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.review-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #38b2ac;
    margin-right: 15px;
}

/* ===== 6. ВРАЧИ (СТАРЫЙ ВАРИАНТ - ДЛЯ ДРУГИХ СТРАНИЦ) ===== */
.doctors-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0 40px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.doctors-grid::-webkit-scrollbar {
    height: 8px;
}

.doctors-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.doctors-grid::-webkit-scrollbar-thumb {
    background: #38b2ac;
    border-radius: 4px;
}

.doctors-grid::-webkit-scrollbar-thumb:hover {
    background: #2a4365;
}

.doctor-card {
    flex: 0 0 300px;
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(56, 178, 172, 0.1);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(56, 178, 172, 0.15);
    border-color: rgba(56, 178, 172, 0.3);
}

.doctor-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #38b2ac;
    padding: 3px;
    background: #f8f9fa;
}

.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

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

.doctor-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-radius: 50%;
}

.doctor-specialty {
    color: #38b2ac;
    font-weight: 600;
    margin: 10px 0;
    font-size: 0.95rem;
}

.doctor-card h3 {
    color: #2a4365;
    margin: 15px 0 5px;
    font-size: 1.3rem;
}

.doctor-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 5px;
}

/* ===== 7. НАШИ РАБОТЫ (ОБНОВЛЁННЫЙ С ЛУЧШЕЙ АДАПТАЦИЕЙ) ===== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(56, 178, 172, 0.15);
}

.work-image-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #f8f9fa;
    position: relative;
    aspect-ratio: 2/1; /* Сохраняем пропорции контейнера */
}

.work-before, .work-after {
    position: relative;
    overflow: hidden;
    min-height: 180px; /* Минимальная высота вместо фиксированной */
    height: auto; /* Автоматическая высота */
}

.work-before img, .work-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.work-before:hover img, .work-after:hover img {
    transform: scale(1.05);
}

.work-label {
    position: absolute;
    bottom: 10px;
    padding: 5px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 2;
}

.work-label.before {
    left: 10px;
    background: rgba(42, 67, 101, 0.9);
    color: white;
}

.work-label.after {
    right: 10px;
    background: rgba(56, 178, 172, 0.9);
    color: white;
}

.work-info {
    padding: 25px;
    flex-grow: 1;
}

.work-info h3 {
    color: #2a4365;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.work-info p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Адаптивность для блока работ - УЛУЧШЕННАЯ */
@media (max-width: 992px) {
    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .work-image-container {
        aspect-ratio: 1.8/1; /* Немного изменяем пропорции для мобильных */
    }
    
    .work-before, .work-after {
        min-height: 150px;
    }
    
    .work-info {
        padding: 20px;
    }
    
    .work-info h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    .works-grid {
        grid-template-columns: 1fr; /* Одна колонка на маленьких экранах */
        max-width: 400px; /* Ограничиваем максимальную ширину */
        margin: 0 auto;
    }
    
    .work-image-container {
        grid-template-columns: 1fr 1fr; /* Оставляем 2 колонки для фото */
        aspect-ratio: 2/1;
    }
}

@media (max-width: 480px) {
    .work-before, .work-after {
        min-height: 130px;
    }
    
    .work-label {
        font-size: 0.8rem;
        padding: 4px 12px;
        bottom: 8px;
    }
    
    .work-info {
        padding: 18px;
    }
    
    .work-info h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .work-info p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .work-image-container {
        grid-template-columns: 1fr; /* На очень маленьких - одно фото под другим? */
        aspect-ratio: auto;
    }
    
    .work-before, .work-after {
        min-height: 120px;
    }
    
    .work-label.before, .work-label.after {
        left: 10px;
        right: auto;
    }
    
    .work-label.after {
        top: 10px;
        bottom: auto;
    }
}

/* ===== 8. РЕЙТИНГИ ===== */
.ratings-section {
    background: #2a4365;
    color: white;
    text-align: center;
}

.ratings-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.rating-logo {
    font-size: 2rem;
    opacity: 0.8;
}

/* ===== 9. ПРЕИМУЩЕСТВА ===== */
.advantages-list {
    max-width: 800px;
    margin: 0 auto;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.advantage-icon {
    font-size: 2rem;
    color: #38b2ac;
    margin-right: 20px;
    min-width: 40px;
}

/* ===== 10. ФОРМА ===== */
.callback-section {
    background: #f8f9fa;
}

.callback-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #38b2ac;
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.1);
}

.submit-button {
    background: #38b2ac;
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
}

.submit-button:hover {
    background: #2a4365;
}

/* ===== 11. ГАЛЕРЕЯ ===== */
.gallery-slider {
    height: 400px;
    background: #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* ===== 12. КАРТА ===== */
.map-container {
    height: 400px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#yandex-map {
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* Стили для элементов управления Яндекс.Карт */
.map-container .ymaps-2-1-79-controls__control {
    margin: 10px !important;
}

.map-container .ymaps-2-1-79-balloon {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    border-radius: 8px !important;
}

.map-container .ymaps-2-1-79-balloon__content {
    padding: 15px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.map-container .ymaps-2-1-79-balloon__layout {
    border-radius: 8px !important;
}

/* Стили для fallback (если карта не загрузилась) */
.map-container noscript div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== HEADER & FOOTER ===== */
/* ===== ХЕДЕР С КРУГЛЫМ ЛОГОТИПОМ ===== */
.site-header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.9;
}

.logo-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover; /* Или contain, в зависимости от логотипа */
    display: block;
    transition: transform 0.3s ease;
    border: 3px solid #f8f9fa;
    box-shadow: 0 4px 12px rgba(56, 178, 172, 0.15);
}

.logo-image:hover {
    transform: scale(1.05);
    border-color: #38b2ac;
}

.logo-text {
    font-size: 1.7rem;
    font-weight: 700;
    color: #2a4365;
    display: block;
    line-height: 1.2;
}

/* Основная навигация */
.main-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #38b2ac;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #38b2ac;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Кнопка записи */
.header-button {
    background: #38b2ac;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.header-button:hover {
    background: #2a4365;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 67, 101, 0.2);
    color: white;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ ЛОГОТИПА И ХЕДЕРА ===== */

/* Планшеты */
@media (max-width: 992px) {
    .header-container {
        gap: 15px;
    }
    
    .logo-image {
        width: 70px;
        height: 70px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .main-nav {
        gap: 20px;
    }
    
    .main-nav a {
        font-size: 1rem;
    }
    
    .header-button {
        padding: 10px 22px;
        font-size: 0.95rem;
    }
}

/* Большие мобильные */
@media (max-width: 768px) {
    .site-header {
        padding: 8px 0;
    }
    
    .header-container {
        padding: 0 15px;
        gap: 12px;
    }
    
    .logo-image {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .site-logo {
        gap: 12px;
    }
    
    .main-nav {
        gap: 15px;
    }
    
    .main-nav a {
        font-size: 0.95rem;
    }
    
    .header-button {
        padding: 9px 18px;
        font-size: 0.9rem;
    }
}

/* Малые мобильные */
@media (max-width: 640px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 10px;
    }
    
    .site-logo {
        order: 1;
        flex: 1;
        min-width: 200px;
        justify-content: center;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
        border-top: 1px solid #e2e8f0;
        padding-top: 10px;
    }
    
    .header-button {
        order: 2;
        flex: 0 0 auto;
    }
    
    .logo-image {
        width: 55px;
        height: 55px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .main-nav {
        gap: 10px;
    }
    
    .main-nav a {
        font-size: 0.9rem;
        padding: 6px 0;
    }
    
    .header-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .logo-image {
        width: 45px;
        height: 45px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .site-logo {
        gap: 8px;
    }
    
    .main-nav a {
        font-size: 0.85rem;
    }
}

.site-footer {
    background: #2a4365;
    color: white;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    color: #38b2ac;
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* ===== КНОПКИ ПРОКРУТКИ ДЛЯ ВРАЧЕЙ И ОТЗЫВОВ ===== */
.scroll-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #38b2ac;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: #2a4365;
    transform: scale(1.1);
}

/* ===== БЕГУЩАЯ СТРОКА ВРАЧЕЙ (НОВЫЙ ВАРИАНТ) ===== */
.running-doctors-container {
    overflow: hidden;
    position: relative;
    margin: 40px 0;
    padding: 20px 0;
    background: linear-gradient(90deg, 
        rgba(248, 249, 250, 1) 0%, 
        rgba(248, 249, 250, 0) 5%, 
        rgba(248, 249, 250, 0) 95%, 
        rgba(248, 249, 250, 1) 100%);
}

.running-doctors-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: runDoctors 30s linear infinite;
    padding: 10px 0;
}

.doctor-slide {
    flex: 0 0 280px;
    min-width: 0;
}

.doctor-card-slide {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(42, 67, 101, 0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(56, 178, 172, 0.1);
}

.doctor-card-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(56, 178, 172, 0.15);
}

.doctor-photo-slide {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #38b2ac;
    padding: 3px;
}

.doctor-image-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

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

.doctor-card-slide h3 {
    color: #2a4365;
    margin: 15px 0 10px;
    font-size: 1.3rem;
}

.doctor-card-slide .doctor-specialty {
    color: #38b2ac;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.doctor-card-slide p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Анимация бегущей строки */
@keyframes runDoctors {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== ОБЩАЯ АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .banner-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .main-nav a {
        margin: 0;
    }
    
    .clinic-section {
        padding: 60px 20px;
    }
    
    .header-button,
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .doctor-card {
        flex: 0 0 280px;
    }
    
    .doctor-photo {
        width: 150px;
        height: 150px;
    }
    
    .review-card {
        flex: 0 0 300px;
    }
    
    .doctors-grid,
    .reviews-slider {
        padding: 20px 0;
    }
    
    /* Адаптивность для бегущей строки врачей */
    .running-doctors-container {
        background: linear-gradient(90deg, 
            rgba(248, 249, 250, 1) 0%, 
            rgba(248, 249, 250, 0) 3%, 
            rgba(248, 249, 250, 0) 97%, 
            rgba(248, 249, 250, 1) 100%);
        padding: 10px 0;
        margin: 20px 0;
    }
    
    .running-doctors-track {
        gap: 15px;
        animation-duration: 50s !important; /* Медленнее на мобильных */
        padding: 5px 0;
    }
    
    .doctor-slide {
        flex: 0 0 260px;
    }
    
    .doctor-photo-slide {
        width: 120px;
        height: 120px;
    }
    
    .doctor-card-slide {
        padding: 20px;
    }
    
    .doctor-card-slide h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .doctor-card {
        flex: 0 0 260px;
        padding: 20px;
    }
    
    .doctor-photo {
        width: 130px;
        height: 130px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Адаптивность для бегущей строки на маленьких экранах */
    .running-doctors-track {
        animation-duration: 60s !important;
        gap: 12px;
    }
    
    .doctor-slide {
        flex: 0 0 240px;
    }
    
    .doctor-photo-slide {
        width: 100px;
        height: 100px;
    }
    
    .doctor-card-slide {
        padding: 15px;
    }
    
    .doctor-card-slide h3 {
        font-size: 1.1rem;
        margin: 10px 0 5px;
    }
    
    .doctor-card-slide p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* ===== 11. ГАЛЕРЕЯ (УЛУЧШЕННАЯ АДАПТИВНОСТЬ) ===== */
.gallery-section {
    padding: 80px 20px;
}

.gallery-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.gallery-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-slider {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px 30px;
}

.slide-caption h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.slide-caption p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.4;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    color: #2a4365;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav .nav-icon {
    font-size: 1.5rem;
    line-height: 1;
    display: block;
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.indicator.active {
    background: #38b2ac;
    transform: scale(1.2);
}

.indicator:hover {
    background: #cbd5e0;
    transform: scale(1.1);
}

/* Адаптивность для галереи - УЛУЧШЕННАЯ */
@media (max-width: 992px) {
    .gallery-slider {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 20px;
    }
    
    .gallery-slider {
        height: 380px;
    }
    
    .slide-caption {
        padding: 15px 20px;
    }
    
    .slide-caption h3 {
        font-size: 1.1rem;
    }
    
    .slide-caption p {
        font-size: 0.9rem;
    }
    
    .gallery-nav {
        width: 45px;
        height: 45px;
    }
    
    .gallery-nav .nav-icon {
        font-size: 1.3rem;
    }
}

@media (max-width: 640px) {
    .gallery-slider {
        height: 320px;
    }
    
    .gallery-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 50px 15px;
    }
    
    .gallery-slider {
        height: 280px;
        border-radius: 10px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        display: none; /* Скрываем кнопки на маленьких экранах */
    }
    
    .slide-caption {
        padding: 12px 15px;
    }
    
    .slide-caption h3 {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .slide-caption p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .gallery-indicators {
        margin-top: 15px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 360px) {
    .gallery-slider {
        height: 240px;
    }
    
    .gallery-section {
        padding: 40px 10px;
    }
    
    .slide-caption {
        padding: 10px 12px;
    }
    
    .slide-caption h3 {
        font-size: 0.95rem;
    }
    
    .slide-caption p {
        font-size: 0.8rem;
    }
}