:root {
    --primary: #005baa;
    --primary-light: #4d8bc8;
    --secondary: #e31937;
    --secondary-light: #ff4d6d;
    --dark: #0a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* Цвета фона */
    --bg-color: #fefefe;
    --bg-secondary: #f8fafc;
    --text-color: #333;
    --text-secondary: #555;
    --header-bg: rgba(255, 255, 255, 0.9);
    --card-bg: white;
    --footer-bg: var(--dark);
}

/* Темная тема */
[data-theme="dark"] {
    /* Основные цвета */
    --primary: #4d8bc8;
    --primary-light: #6ba5e0;
    --secondary: #ff4d6d;
    --secondary-light: #ff758f;
    
    /* Цвета фона */
    --bg-color: #0a0f1a;
    --bg-secondary: #121a2a;
    --card-bg: #1a2438;
    --footer-bg: #080d17;
    
    /* Цвета текста */
    --text-color: #e0e9ff;
    --text-secondary: #b8c7e0;
    --dark: #e0e9ff;
    --gray: #8a9bb8;
    
    /* Градиенты */
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    
    /* Эффекты */
    --glass: rgba(26, 36, 56, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Хедер */
    --header-bg: rgba(10, 15, 26, 0.9);
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
}

/* Кнопка переключения темы */
.theme-switcher {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 999;
}

#themeToggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: var(--card-bg);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    color: var(--text-color);
    font-weight: 500;
}

#themeToggle i {
    font-size: 1.1rem;
}

[data-theme="dark"] #themeToggle {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Общие стили для темной темы */
[data-theme="dark"] {
    /* Границы элементов */
    --glass-border: rgba(30, 30, 60, 0.3);
    
    /* Тени в темной теме */
    border-top-color: rgba(0, 0, 10, 0.5);
}

[data-theme="dark"] header {
    border-bottom: 1px solid rgba(50, 50, 100, 0.3);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .price-card,
[data-theme="dark"] .advantage-card,
[data-theme="dark"] .detail-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .certificate-card,
[data-theme="dark"] .press-video,
[data-theme="dark"] .doctor-card,
[data-theme="dark"] .testimonial {
    background: var(--card-bg);
    border: 1px solid rgba(50, 50, 100, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .hero::before {
    opacity: 0.1;
    filter: brightness(0.5) contrast(1.2);
}

[data-theme="dark"] .animated-bg {
    opacity: 0.03;
    filter: invert(0.1) brightness(0.7);
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(50, 50, 100, 0.3);
}

[data-theme="dark"] .gallery-item,
[data-theme="dark"] .map-container {
    box-shadow: 0 5px 15px rgba(0, 0, 20, 0.4);
}

[data-theme="dark"] .service-card:hover::before {
    background: var(--gradient);
    opacity: 0.8;
}

[data-theme="dark"] .service-details li::before {
    background: var(--secondary-light);
}

/* Специфические элементы */
[data-theme="dark"] .doctor-specialty,
[data-theme="dark"] .med {
    color: #8a9bb8;
}

[data-theme="dark"] .service-icon {
    color: var(--primary-light);
}

[data-theme="dark"] .fluent--laser-tool-20-filled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%234d8bc8' d='M3.5 2a.5.5 0 0 0-.5.5V5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2.5a.5.5 0 0 0-.5-.5zm7 8h4A1.5 1.5 0 0 0 16 8.5V8H4v.5A1.5 1.5 0 0 0 5.5 10h4v2.5a.5.5 0 0 0 1 0zM5 14.5a.5.5 0 0 1 .5-.5H7a.5.5 0 0 1 0 1H5.5a.5.5 0 0 1-.5-.5m8-.5a.5.5 0 0 0 0 1h1.5a.5.5 0 0 0 0-1zm-2.5.5a.5.5 0 1 1-1 0a.5.5 0 0 1 1 0m0 2a.5.5 0 0 0-1 0v2a.5.5 0 0 0 1 0zm-1.646-1.354a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708-.708l1.5-1.5a.5.5 0 0 1 .708 0m2.292.708a.5.5 0 0 1 .708-.708l1.5 1.5a.5.5 0 0 1-.708.708z'/%3E%3C/svg%3E");
}

[data-theme="dark"] .service-card:hover .fluent--laser-tool-20-filled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23ffffff' d='M3.5 2a.5.5 0 0 0-.5.5V5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2.5a.5.5 0 0 0-.5-.5zm7 8h4A1.5 1.5 0 0 0 16 8.5V8H4v.5A1.5 1.5 0 0 0 5.5 10h4v2.5a.5.5 0 0 0 1 0zM5 14.5a.5.5 0 0 1 .5-.5H7a.5.5 0 0 1 0 1H5.5a.5.5 0 0 1-.5-.5m8-.5a.5.5 0 0 0 0 1h1.5a.5.5 0 0 0 0-1zm-2.5.5a.5.5 0 1 1-1 0a.5.5 0 0 1 1 0m0 2a.5.5 0 0 0-1 0v2a.5.5 0 0 0 1 0zm-1.646-1.354a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708-.708l1.5-1.5a.5.5 0 0 1 .708 0m2.292.708a.5.5 0 0 1 .708-.708l1.5 1.5a.5.5 0 0 1-.708.708z'/%3E%3C/svg%3E");
}
/* Обновленные стили для кнопки темы */
.theme-switcher {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

#themeToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: var(--card-bg);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    width: auto;
    min-width: 40px;
    height: 40px;
}

#themeToggle i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.theme-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 100px;
}

[data-theme="dark"] #themeToggle {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Адаптация для разных устройств */
@media (max-width: 992px) {
    .theme-switcher {
        bottom: 1rem;
        left: 1rem;
    }
    
    #themeToggle {
        padding: 0.7rem;
    }
    
    .theme-text {
        max-width: 80px;
    }
}

@media (max-width: 768px) {
    .theme-switcher {
        bottom: 1rem;
        left: auto;
        right: 1rem;
    }
    
    #themeToggle {
        width: 40px;
        height: 40px;
        padding: 0;
    }
    
    .theme-text {
        display: none;
    }
    
    /* Показывать текст при наведении на мобильных */
    #themeToggle:hover .theme-text {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: calc(100% + 10px);
        background: var(--card-bg);
        padding: 0.3rem 0.6rem;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .theme-switcher {
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    #themeToggle {
        width: 36px;
        height: 36px;
    }
}
/* Обновленные стили для кнопки темы */
.theme-switcher {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 999;
    transition: all 0.3s ease;
}

#themeToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem;
    background: var(--card-bg);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    width: auto;
    min-width: 40px;
    height: 40px;
}

#themeToggle i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.theme-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 100px;
}

[data-theme="dark"] #themeToggle {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Адаптация для разных устройств */
@media (max-width: 992px) {
    .theme-switcher {
        bottom: 1rem;
        left: 1rem;
    }
    
    #themeToggle {
        padding: 0.7rem;
    }
    
    .theme-text {
        max-width: 80px;
    }
}

@media (max-width: 768px) {
    .theme-switcher {
        bottom: 1rem;
        left: auto;
        right: 1rem;
    }
    
    #themeToggle {
        width: 40px;
        height: 40px;
        padding: 0;
    }
    
    .theme-text {
        display: none;
    }
    
    #themeToggle:hover .theme-text {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: calc(100% + 10px);
        background: var(--card-bg);
        padding: 0.3rem 0.6rem;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .theme-switcher {
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    #themeToggle {
        width: 36px;
        height: 36px;
    }
}
/* 3D эффекты */
.perspective {
    perspective: 1000px;
}

.card-3d {
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg) translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .theme-switcher {
        bottom: auto;
        top: 1rem;
        right: 1rem;
        left: auto;
    }
    
    #themeToggle span {
        display: none;
    }
    
    #themeToggle {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
}

/* Неоморфные элементы */
.neumorphic {
    background: var(--card-bg);
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.1), 
                -8px -8px 16px rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.neumorphic:hover {
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1), 
                -4px -4px 8px rgba(255, 255, 255, 0.05);
}

/* Глобальные стили */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

/* Анимированный фон */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%23005baa" d="M49,-51.7C62.5,-40.3,71.1,-20.1,70.3,-0.7C69.5,18.7,59.3,37.4,45.8,50.8C32.3,64.2,15.1,72.4,-3.9,76.3C-22.9,80.2,-45.8,79.9,-59.2,66.5C-72.6,53.1,-76.5,26.6,-73.3,3.1C-70.1,-20.4,-59.8,-40.8,-46.4,-52.2C-33,-63.6,-16.5,-66,-1.3,-64.7C13.9,-63.4,27.8,-58.4,49,-51.7Z"/></svg>');
    background-size: 200px;
    animation: float 15s infinite ease-in-out;
}

/* Хедер */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: var(--header-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    position: relative;
    width: 70px;
    height: 70px;
}

.logo-image img {
    position: absolute;
    top: 0;
    left: 0;
    transition: var(--transition);
}

.logo-light {
    opacity: 1;
}

.logo-dark {
    opacity: 0;
}

[data-theme="dark"] .logo-light {
    opacity: 0;
}

[data-theme="dark"] .logo-dark {
    opacity: 1;
}
/* Логотип в хедере */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: default; /* Отключает курсор-указатель */
    pointer-events: none; /* Полностью отключает клики */
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    width: 130%; /* Уменьшаем размер SVG, чтобы он не выходил за границы */
    height: 130%;
    object-fit: contain; /* Сохраняет пропорции */
    object-position: center; /* Центрирует изображение */
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--gray);
    font-family: 'Montserrat', sans-serif;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 1001;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    font-size: 1.1rem;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Герой секция */
.hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 8rem 0 4rem;
            position: relative;
            overflow: hidden;
        }
        
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('media/5.jpg') center/cover no-repeat;
            z-index: -2;
            opacity: 0.2;
        }
        
        .hero-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }
        
        .hero-text {
            position: relative;
            z-index: 1;
        }
        
        .hero-title {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            line-height: 1.2;
            background: linear-gradient(90deg, var(--primary), var(--dark));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .hero-subtitle {
            font-size: 1.2rem;
            color: var(--gray);
            margin-bottom: 2rem;
            max-width: 500px;
        }
        
        .hero-image {
            position: relative;
            z-index: 1;
        }
.doctor-photo {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.doctor-photo:hover {
    transform: rotate(0deg);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 180px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 10px 20px rgba(227, 25, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(227, 25, 55, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Секция "О враче" */
.about {
    background-color: var(--bg-secondary);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 20px;
    z-index: -1;
}

.about-img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Секция услуг */
.services {
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    color: white;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-icon {
    color: white;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.fluent--laser-tool-20-filled {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-repeat: no-repeat;
    background-size: 105% 105%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23005baa' d='M3.5 2a.5.5 0 0 0-.5.5V5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2.5a.5.5 0 0 0-.5-.5zm7 8h4A1.5 1.5 0 0 0 16 8.5V8H4v.5A1.5 1.5 0 0 0 5.5 10h4v2.5a.5.5 0 0 0 1 0zM5 14.5a.5.5 0 0 1 .5-.5H7a.5.5 0 0 1 0 1H5.5a.5.5 0 0 1-.5-.5m8-.5a.5.5 0 0 0 0 1h1.5a.5.5 0 0 0 0-1zm-2.5.5a.5.5 0 1 1-1 0a.5.5 0 0 1 1 0m0 2a.5.5 0 0 0-1 0v2a.5.5 0 0 0 1 0zm-1.646-1.354a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708-.708l1.5-1.5a.5.5 0 0 1 .708 0m2.292.708a.5.5 0 0 1 .708-.708l1.5 1.5a.5.5 0 0 1-.708.708z'/%3E%3C/svg%3E");
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.service-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.service-card:hover .service-details {
    max-height: 500px;
}

.service-details ul {
    list-style: none;
    padding-left: 1rem;
}

.service-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.service-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
}

/* Стили для секции сертификатов */
.certificates {
    background-color: var(--bg-secondary);
}

.certificates-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
    scrollbar-width: none;
}

.certificates-slider::-webkit-scrollbar {
    display: none;
}

.certificate-card {
    min-width: 300px;
    scroll-snap-align: start;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.certificate-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.certificate-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.certificate-card:hover .certificate-img img {
    transform: scale(1.05);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 91, 170, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-zoom {
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.certificate-zoom:hover {
    transform: scale(1.1);
}

.certificate-info {
    padding: 1.5rem;
}

.certificate-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.certificate-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.certificates-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.cert-prev, .cert-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: none;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cert-prev:hover, .cert-next:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-3px);
}

/* .cert-dots {
    display: flex;
    gap: 0.5rem;
} */

.cert-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-dot.active {
    background: var(--gradient-accent);
    transform: scale(1.2);
}
.certificates-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Для плавности на iOS */
}
.certificates-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.certificates-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 10px 0;
    margin-bottom: 20px;
}

.certificates-slider::-webkit-scrollbar {
    display: none;
}

.certificate-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 300px;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.certificates-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.cert-prev, .cert-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cert-prev:hover, .cert-next:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.cert-prev:disabled, .cert-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* .cert-dots {
    display: flex;
    gap: 10px;
} */

.cert-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}
.certificate-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 300px;
    margin-right: 15px; /* Учитывается в расчетах */
}

.cert-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.cert-dot.active {
    background: #3498db;
    transform: scale(1.2);
}
/* Стили для фотогалереи */
.photo-gallery {
    background-color: var(--bg-color);
}

.gallery-container {
    margin-top: 3rem;
}

.gallery-group {
    margin-bottom: 4rem;
}

.gallery-group-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.gallery-group-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 91, 170, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.gallery-zoom:hover {
    background: var(--gradient-accent);
    color: white;
    transform: scale(1.1);
}

/* Стили для секции стоимости */
.pricing {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.price-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.price-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-card.highlight {
    background: var(--gradient);
    color: white;
}

.price-card.highlight h3 {
    color: white;
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--secondary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-list {
    list-style: none;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-name {
    color: var(--dark);
}

.service-price {
    font-weight: 600;
    color: var(--primary);
}

.price-card.highlight .service-name,
.price-card.highlight .service-price {
    color: white;
}

.price-main {
    text-align: center;
    margin: 2rem 0;
}

.price-main .price {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.price-main .price-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-consult {
    width: 100%;
    padding: 1rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-consult:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.procedure-details {
    margin-bottom: 3rem;
}

.detail-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.feature-list i {
    color: var(--secondary);
    margin-top: 0.2rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.advantage-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.advantage-card h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Стили для секции Пресса */
.press {
    background-color: var(--bg-color);
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.press-video {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.press-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.video-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Стили для секции "Врачи клиники" */
.doctors {
    background-color: var(--bg-secondary);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.doctor-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.doctor-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-social {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-card:hover .doctor-social {
    opacity: 1;
}

.doctor-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.doctor-social a:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-3px);
}

.doctor-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.doctor-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.doctor-specialty {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.doctor-med {
    color: var(--text-secondary);
    flex-grow: 1;
}

.doctor-experience {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.doctor-bio {
    margin-bottom: 1.5rem;
    color: var(--gray);
    flex-grow: 1;
}

.doctor-info .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Секция отзывов */
.testimonials {
    background-color: var(--bg-secondary);
}

.testimonials-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--dark);
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
}

.testimonial-text::before {
    top: -20px;
    left: -10px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid var(--primary);
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 700;
    color: var(--dark);
}

.author-position {
    color: var(--gray);
    font-size: 0.9rem;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.slider-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--gradient-accent);
    transform: scale(1.2);
}

/* Основные стили контактов */
.contact-pair-wrapper {
    width: 110%;
    overflow: hidden;
}

.contact-pair {
    display: flex;
    gap: 30px;
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

.contact-card {
    flex: 1;
    min-width: 0;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 15px;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-card {
    flex: 1;
    min-width: 0;
    margin: 15px;
    display: flex;
    align-items: center;
}

.map-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.contact-card h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 1.5rem;
}

.contact-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.med {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
/* В разделе контактов, где стилизуются социальные иконки */
.contact-social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.3s;
}

.contact-social a:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-5px);
}

/* Специфический цвет для Telegram в светлой теме */
.contact-social .fa-telegram-plane {
    color: #0088cc;
}

[data-theme="dark"] .contact-social .fa-telegram-plane {
    color: #54a9eb;
}
.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact-text p, .contact-text a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-text a:hover {
    color: var(--primary);
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.3s;
}

.contact-social a:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-5px);
}

/* Футер */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
   
}
/* Стили для логотипа в подвале */

.footer-logo {
  text-align: center;
  margin-bottom: 20px;
}
.footer-lin {
    text-align: center;
     
    gap: 2rem;
   
}
.footer-logo-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.footer-logo-link:hover {
  transform: scale(1.05);
}

.footer-logo-svg {
  width: 150px; /* Размер можно регулировать */
  height: auto;
  fill: #ffffff; /* Белый цвет для подвала */
  transition: all 0.3s ease;
}

.footer-logo-link:hover .footer-logo-svg {
  fill: #4d8bc8; /* Цвет при наведении */
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Для светлой темы (если у вас есть переключатель тем) */
[data-theme="light"] .footer-logo-svg {
  fill: #005baa; /* Основной синий цвет */
}

[data-theme="light"] .footer-logo-link:hover .footer-logo-svg {
  fill: #e31937; /* Акцентный цвет при наведении */
}
.footer-lin-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    
}

.footer-lin li {
    margin-bottom: 0;
    
}

.footer-lin a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-lin a:hover {
    color: white;
    padding-left: 5px;
}
.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    
}

.footer-links li {
    margin-bottom: 0;
    
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(227, 25, 55, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(227, 25, 55, 0.4);
}

/* Анимации */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-content,
    .about-container {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-content,
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .contact-pair {
        flex-direction: column;
    }
    
    .contact-card,
    .map-card {
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .map-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.5s ease;
        z-index: 1000;
    }
    
    nav.active {
        transform: translateX(0);
    }
    
    nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .press-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        padding-top: 10rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .doctor-card {
        max-width: 100%;
    }
}
/* Стили формы отзывов */
.leave-review {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.leave-review h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    text-align: center;
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 91, 170, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.rating-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-group span {
    font-weight: 500;
    color: var(--dark);
}



.review-form .btn {
    width: 100%;
    margin-top: 1rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(227, 25, 55, 0.3);
}

.review-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: all 0.3s;
    background: var(--gradient-accent);
}

.review-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227, 25, 55, 0.4);
}

.review-form .btn:active {
    transform: translateY(1px);
}
.btn-primary:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(227, 25, 55, 0.3);
}
/* Для темной темы */
[data-theme="dark"] .review-form .btn {
    box-shadow: 0 4px 15px rgba(227, 25, 55, 0.5);
}

[data-theme="dark"] .review-form .btn:hover {
    box-shadow: 0 8px 25px rgba(227, 25, 55, 0.6);
}

/* Темная тема для формы */
[data-theme="dark"] .leave-review {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(77, 139, 200, 0.3);
}
.review-success {
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.3);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
}

.review-success p {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .review-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

[data-theme="dark"] .review-success p {
    color: #4caf50;
}
/* Обновленные стили галереи под размер сертификатов */
.gallery-slider-container {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 50px;
}

.gallery-slider {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 15px 0;
    margin: 0 -10px;
}

.gallery-slide {
    min-width: 250px; /* Фиксированная ширина как у сертификатов */
    height: 350px; /* Фиксированная высота как у сертификатов */
    flex: 0 0 auto;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    position: relative;
}

.gallery-slide.active {
    opacity: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-slide:hover {
    transform: translateY(-5px);
}

.gallery-slide:hover img {
    transform: scale(1.03);
}

/* Кнопки навигации */
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: none;
    border-radius: 50%;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-prev:hover, .gallery-next:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 5px;
}

.gallery-next {
    right: 5px;
}

/* Точки навигации */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--gradient-accent);
    transform: scale(1.2);
}

/* Адаптивность */
@media (max-width: 992px) {
    .gallery-slide {
        min-width: 220px;
        height: 320px;
    }
    
    .gallery-slider-container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .gallery-slide {
        min-width: 200px;
        height: 300px;
    }
    
    .gallery-slider-container {
        padding: 0 30px;
    }
    
    .gallery-prev, .gallery-next {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery-slide {
        min-width: 180px;
        height: 280px;
    }
    
    .gallery-slider-container {
        padding: 0 20px;
    }
    
    .gallery-dots {
        margin-top: 10px;
    }
}






/* Стили для информационного уведомления */
.disclaimer {
    background-color: rgba(0, 91, 170, 0.1);
    border-top: 1px solid rgba(0, 91, 170, 0.2);
    border-bottom: 1px solid rgba(0, 91, 170, 0.2);
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.disclaimer i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.disclaimer p {
    margin: 0;
    line-height: 1.5;
}

[data-theme="dark"] .disclaimer {
    background-color: rgba(77, 139, 200, 0.1);
    border-color: rgba(77, 139, 200, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .disclaimer {
        padding: 1rem;
    }
    
    .disclaimer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}














/* AI Block Styles */
.ai-block {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.ai-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-content {
    flex: 1;
    padding-right: 20px;
}

.ai-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.ai-text {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.ai-features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.ai-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 500;
}

.ai-feature i {
    color: var(--secondary);
}

.ai-btn {
    padding: 12px 25px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ai-image {
    flex: 0 0 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ai-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.ai-image:hover img {
    transform: scale(1.03);
}

/* Dark Theme */
[data-theme="dark"] .ai-block {
    background-color: var(--bg-color);
}

[data-theme="dark"] .ai-container {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .ai-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .ai-content {
        padding-right: 0;
        text-align: center;
    }
    
    .ai-features {
        justify-content: center;
    }
    
    .ai-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .ai-container {
        padding: 25px;
    }
    
    .ai-title {
        font-size: 1.5rem;
    }
    
    .ai-features {
        flex-direction: column;
        gap: 12px;
    }
    
    .ai-btn {
        width: 100%;
        justify-content: center;
    }
}













/* Error Pages Styles */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background-color: var(--bg-secondary);
}

.error-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.error-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

.error-text h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.error-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.error-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Dark Theme */
[data-theme="dark"] .error-page {
    background-color: var(--bg-color);
}

/* Responsive */
@media (max-width: 992px) {
    .error-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .error-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .error-text {
        margin: 0 auto;
    }
    
    .error-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .error-text h1 {
        font-size: 4rem;
    }
    
    .error-text h2 {
        font-size: 1.8rem;
    }
    
    .error-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}