/* Общие стили и переменные */
:root {
    --primary-color: #008bd0;
    --secondary-color: #00a6e8;
    --accent-color: #0066a1;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --max-width: 1200px;
    
    /* Новые цвета для Hero Section */
    --hero-bg-dark: #1a2547;
    --hero-bg-light: #2e4b8b;
    --hero-accent: #00CED1;
    --hero-red: #ff4757;
    --hero-star: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Глобальное применение шрифта Poppins */
input, button, select, textarea {
    font-family: 'Poppins', sans-serif;
}

/* Оптимизация производительности для анимированных элементов */
.hero-slide,
.hero-content *,
.experience-card,
.education-card,
.timeline-item,
.floating-shape,
.particle,
.star,
.bg-shape,
.level-card,
.stat-item {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Упрощенные анимации для слабых устройств */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Типография */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Шапка сайта */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 139, 208, 0.1);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1);
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--hero-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.logo:hover .logo-text {
    letter-spacing: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 139, 208, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-text {
    position: relative;
    z-index: 1;
}

/* Кнопка Контакты */
.nav-contact {
    background: linear-gradient(135deg, var(--primary-color), var(--hero-accent));
    color: white !important;
    padding: 0.8rem 1.5rem;
    margin-left: 1rem;
    position: relative;
    overflow: hidden;
}

.nav-contact::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-contact:hover::after {
    width: 300px;
    height: 300px;
}

.nav-contact:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 139, 208, 0.3);
}

/* Выпадающее меню */
.has-dropdown {
    position: relative;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 0.5rem;
    border: 1px solid rgba(0, 139, 208, 0.1);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-top: 1px solid rgba(0, 139, 208, 0.1);
    border-left: 1px solid rgba(0, 139, 208, 0.1);
    transform: translateX(-50%) rotate(45deg);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--hero-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.dropdown-link:hover::before {
    opacity: 0.1;
}

.dropdown-link:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.dropdown-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.dropdown-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Главный экран */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
    background: linear-gradient(135deg, var(--hero-bg-dark) 0%, var(--hero-bg-light) 100%);
}

/* Фон со звездами */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

#starsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(26, 37, 71, 0.4) 100%);
    pointer-events: none;
}

/* Навигационные стрелки */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--hero-accent);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav svg {
    width: 24px;
    height: 24px;
    color: white;
}

.hero-nav-left {
    left: 40px;
}

.hero-nav-right {
    right: 40px;
}

/* Декоративный силуэт */
.hero-silhouette {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 400px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Слайдер */
.hero-slider {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    perspective: 1200px;
}

.hero-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: rotateY(90deg) translateZ(300px) scale(0.8);
    transition: all 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: blur(10px);
}

.hero-slide.active {
    opacity: 1;
    transform: rotateY(0) translateZ(0) scale(1);
    filter: blur(0);
}

.hero-slide.prev {
    transform: rotateY(-90deg) translateZ(300px) scale(0.8);
}

.hero-slide.next {
    transform: rotateY(90deg) translateZ(300px) scale(0.8);
}

/* Контент слайдов */
.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

/* Анимация элементов внутри слайда */
.hero-slide.active .hero-quote {
    animation: slideInFromTop 0.8s ease 0.2s both;
}

.hero-slide.active .hero-title {
    animation: zoomIn 1s ease 0.4s both;
}

.hero-slide.active .hero-subtitle {
    animation: slideInFromBottom 0.8s ease 0.6s both;
}

.hero-slide.active .hero-buttons {
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-slide.active .stat-item {
    animation: flipInX 0.6s ease both;
}

.hero-slide.active .stat-item:nth-child(1) { animation-delay: 1s; }
.hero-slide.active .stat-item:nth-child(2) { animation-delay: 1.1s; }
.hero-slide.active .stat-item:nth-child(3) { animation-delay: 1.2s; }
.hero-slide.active .stat-item:nth-child(4) { animation-delay: 1.3s; }

/* Цитата */
.hero-quote {
    display: inline-block;
    padding: 15px 30px;
    margin-bottom: 2rem;
    background: transparent;
    border: 2px solid var(--hero-accent);
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--hero-accent);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-quote:hover {
    background: var(--hero-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 206, 209, 0.3);
}

.hero-quote:hover .quote-text {
    color: var(--hero-bg-dark);
}

/* Заголовок */
.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-title span {
    display: block;
}

.title-accent {
    color: var(--hero-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 3rem;
}

.title-highlight {
    background: linear-gradient(90deg, var(--hero-accent), #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 3.5rem;
}

/* Подзаголовок */
.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* Кнопки Hero */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn-hero {
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: var(--hero-accent);
    color: var(--hero-bg-dark);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 206, 209, 0.4);
}

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

.btn-hero-outline:hover {
    background: var(--hero-accent);
    color: var(--hero-bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 206, 209, 0.3);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-hero:hover .btn-icon {
    transform: translateX(5px);
}

/* Статистика */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--hero-accent);
}

.stat-icon {
    width: 50px;
    height: 50px;
    color: var(--hero-accent);
    animation: pulse 2s infinite;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hero-accent);
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Специфично для hero секции - белый текст */
.hero-stats .stat-label {
    color: #ffffff !important;
}

/* Специфично для about секции - темный текст */
.about-stats .stat-label {
    color: #666 !important;
}

/* Индикаторы слайдов */
.hero-indicators {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.indicator {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, var(--hero-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.indicator:hover::before {
    opacity: 0.3;
}

.indicator:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.4);
}

.indicator.active {
    background: rgba(255, 255, 255, 0.5);
}

.indicator-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--hero-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.indicator.active .indicator-progress {
    animation: progressFill 5s linear;
}

@keyframes progressFill {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Прогресс-бар слайдера */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    width: 33.33%;
    background: linear-gradient(90deg, var(--hero-accent), var(--primary-color));
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.5);
}

/* Слайд 2 - Методики */
.slide-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    color: var(--hero-accent);
    position: relative;
    transform-style: preserve-3d;
}

.hero-slide.active .slide-icon {
    animation: rotateIn3D 1.5s ease-out;
}

.slide-icon svg {
    filter: drop-shadow(0 10px 30px rgba(0, 206, 209, 0.5));
    transition: all 0.3s ease;
}

.slide-icon:hover svg {
    transform: scale(1.1) rotateY(180deg);
    filter: drop-shadow(0 20px 40px rgba(0, 206, 209, 0.8));
}

.slide-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.slide-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.method-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--hero-accent), transparent);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.feature:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(0, 206, 209, 0.2);
    box-shadow: 0 10px 40px rgba(0, 206, 209, 0.3);
}

.feature:hover::before {
    width: 300px;
    height: 300px;
    opacity: 0.3;
}

.hero-slide.active .feature {
    animation: slideInFromLeft 0.8s ease both;
}

.hero-slide.active .feature:nth-child(2) {
    animation: slideInFromRight 0.8s ease 0.2s both;
}

.feature svg {
    width: 30px;
    height: 30px;
    color: var(--hero-accent);
}

/* Слайд 3 - Достижения */
.achievement-icon {
    position: relative;
    transform-style: preserve-3d;
}

.hero-slide.active .achievement-icon {
    animation: bounceRotate 2s ease-out;
}

.achievement-icon::before,
.achievement-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--hero-accent);
    animation: pulseRing 2s linear infinite;
}

.achievement-icon::after {
    animation-delay: 1s;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 500px;
    margin: 3rem auto 0;
}

.achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 206, 209, 0.1));
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.achievement::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--hero-accent), transparent, var(--hero-accent));
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: borderRotate 3s linear infinite;
}

.achievement:hover {
    transform: translateY(-10px) scale(1.05) rotateX(10deg);
    border-color: var(--hero-accent);
    box-shadow: 0 20px 40px rgba(0, 206, 209, 0.4);
}

.achievement:hover::before {
    opacity: 1;
}

.hero-slide.active .achievement {
    animation: zoomInRotate 0.8s ease both;
}

.hero-slide.active .achievement:nth-child(2) {
    animation-delay: 0.2s;
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--hero-accent);
    margin-bottom: 0.5rem;
}

.achievement-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Анимации */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes flipInX {
    from {
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotateX(-20deg);
    }
    60% {
        transform: perspective(400px) rotateX(10deg);
        opacity: 1;
    }
    80% {
        transform: perspective(400px) rotateX(-5deg);
    }
    to {
        transform: perspective(400px);
        opacity: 1;
    }
}

@keyframes rotateIn3D {
    from {
        transform: rotate3d(1, 1, 0, 180deg) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: rotate3d(1, 1, 0, 90deg) scale(0.8);
    }
    to {
        transform: rotate3d(0, 0, 0, 0) scale(1);
        opacity: 1;
    }
}

@keyframes bounceRotate {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    75% {
        transform: scale(0.9) rotate(270deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@keyframes zoomInRotate {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(-45deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes borderRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatCross {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(40px, 10px) rotate(270deg);
    }
}

@keyframes pulseCircle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

@keyframes particleFly {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translate(
            calc(var(--random-x, 100) * 1px),
            calc(var(--random-y, -100) * 1px)
        ) scale(1.5);
        opacity: 0;
    }
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 139, 208, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* Секции */
.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

/* О докторе - Новый стиль */
.about {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.floating-cross {
    position: absolute;
    opacity: 0.1;
    color: var(--primary-color);
}

.floating-cross-1 {
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    animation: floatCross 15s ease-in-out infinite;
}

.floating-cross-2 {
    bottom: 10%;
    right: 5%;
    width: 80px;
    height: 80px;
    animation: floatCross 20s ease-in-out infinite reverse;
}

.pulse-circle {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
}

.pulse-circle-1 {
    top: 30%;
    right: 10%;
    width: 100px;
    height: 100px;
    animation: pulseCircle 4s ease-in-out infinite;
}

.pulse-circle-2 {
    bottom: 20%;
    left: 10%;
    width: 150px;
    height: 150px;
    animation: pulseCircle 6s ease-in-out infinite;
}

/* Заголовок */
.about-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.title-firstname {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 5px;
    margin-bottom: 0.5rem;
    animation: slideInFromTop 1s ease;
}

.title-name {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 2px;
    animation: slideInFromBottom 1s ease 0.3s both;
}

/* Контент */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Изображение */
.about-image-wrapper {
    position: relative;
}

.image-background-effect {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--hero-accent));
    border-radius: 20px;
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: scale(1.02) rotate(1deg);
}

.doctor-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    border: none;
    box-shadow: none;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 139, 208, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.about-image:hover .image-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.about-image:hover .overlay-text {
    transform: translateY(0);
}

/* Статистика */
.about-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 120px;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 139, 208, 0.1);
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 206, 209, 0.2), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 139, 208, 0.2);
}

.stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

.stat-number {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.stat-suffix {
    font-size: 2rem;
    color: var(--hero-accent);
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Текстовая часть О докторе */
.about-text {
    position: relative;
}

.text-decoration {
    position: absolute;
    top: -30px;
    left: -30px;
    z-index: -1;
}

.quote-icon {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    opacity: 0.1;
    animation: float 4s ease-in-out infinite;
}

.about-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
    margin-bottom: 3rem;
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.about-description:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 139, 208, 0.1);
}

/* Feature Badges */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 139, 208, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-badge:hover::before {
    left: 100%;
}

.feature-badge:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 139, 208, 0.2);
}

.badge-icon {
    width: 50px;
    height: 50px;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--hero-accent));
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.feature-badge:hover .badge-icon {
    transform: rotate(360deg) scale(1.1);
}

.badge-icon svg {
    width: 100%;
    height: 100%;
}

.feature-badge span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Профессиональный опыт - Современный стиль */
.experience {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

.experience-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, var(--primary-color), #00d4ff);
    bottom: -300px;
    right: -300px;
    animation-delay: 5s;
}

.bg-shape-3 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

.experience-title {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.title-line {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-intro {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.intro-text {
    font-size: 1.3rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Детальное описание опыта */
.experience-detailed {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 40px auto 60px;
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

.detailed-content {
    text-align: center;
}

.detailed-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.detailed-title .title-icon {
    width: 35px;
    height: 35px;
    color: var(--primary-color);
}

.detailed-description {
    margin-bottom: 40px;
}

.detailed-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.detailed-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(0, 139, 208, 0.05), rgba(103, 58, 183, 0.05));
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.highlight-icon {
    font-size: 1.5rem;
}

.highlight-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

/* Timeline стиль для карточек опыта */
.experience-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), #00d4ff);
    top: 0;
    z-index: 1;
}

.experience-item {
    position: relative;
    width: 100%;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
}

.experience-item.reverse {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 40px);
}

.item-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.year-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), #00d4ff);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 139, 208, 0.3);
    white-space: nowrap;
}

.item-content {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    max-width: 500px;
    transition: all 0.3s ease;
}

.item-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 139, 208, 0.2);
}

.item-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    background: white;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.05);
}

.experience-item:not(.reverse) .item-content::before {
    right: -15px;
}

.experience-item.reverse .item-content::before {
    left: -15px;
}

.content-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.content-icon svg {
    width: 40px;
    height: 40px;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.content-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.content-achievements {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.achievement-badge {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border-radius: 15px;
    flex: 1;
}

.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.badge-text {
    font-size: 0.9rem;
    color: #666;
}

.content-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.content-countries {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.country-flag {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.country-flag:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 5px 20px rgba(0, 139, 208, 0.3);
}

.country-flag::after {
    content: attr(data-country);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #666;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.country-flag:hover::after {
    opacity: 1;
}

/* Статистика опыта */
.experience-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.stat-box {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #00d4ff);
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 139, 208, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-plus {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-text {
    display: block;
    margin-top: 10px;
    color: #666;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .experience {
        padding: 60px 0;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .experience-timeline::before {
        left: 30px;
    }
    
    .experience-item {
        padding-left: 60px;
        padding-right: 20px;
        justify-content: flex-start;
        margin-bottom: 50px;
    }
    
    .experience-item.reverse {
        padding-left: 60px;
        padding-right: 20px;
    }
    
    .item-year {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .year-badge {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
    
    .item-content {
        padding: 25px;
        max-width: 100%;
    }
    
    .item-content::before {
        display: none;
    }
    
    .content-icon {
        width: 50px;
        height: 50px;
    }
    
    .content-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .content-title {
        font-size: 1.2rem;
    }
    
    .content-description {
        font-size: 0.95rem;
    }
    
    .content-achievements {
        flex-direction: column;
        gap: 15px;
    }
    
    .badge-number {
        font-size: 1.5rem;
    }
    
    .content-countries {
        justify-content: center;
    }
    
    .country-flag {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .experience-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 50px;
    }
    
    .stat-box {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .bg-shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .bg-shape-2 {
        width: 300px;
        height: 300px;
    }
    
    .bg-shape-3 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .title-line {
        font-size: 1rem;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .experience-timeline::before {
        left: 20px;
    }
    
    .experience-item,
    .experience-item.reverse {
        padding-left: 45px;
        padding-right: 15px;
    }
    
    .item-year {
        left: 20px;
    }
    
    .year-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .item-content {
        padding: 20px;
    }
    
    .content-title {
        font-size: 1.1rem;
    }
    
    .content-description {
        font-size: 0.9rem;
    }
}

/* Образование - Современный дизайн */
.education {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.education-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Слайдер изображений университетов */
.education-images-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.edu-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    animation: kenBurns 20s ease-in-out infinite;
}

.edu-slide.active {
    opacity: 1;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.1) translate(-2%, -2%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

/* Градиентный оверлей поверх изображений */
.bg-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 139, 208, 0.95) 0%,
        rgba(0, 166, 232, 0.85) 25%,
        rgba(0, 139, 208, 0.75) 50%,
        rgba(0, 166, 232, 0.85) 75%,
        rgba(0, 139, 208, 0.95) 100%
    );
    mix-blend-mode: multiply;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    animation: floatShape 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 10%;
    animation-delay: 7s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 60%;
    animation-delay: 14s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.education-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.title-accent {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.education-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.education-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.education-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.card-header {
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, rgba(0, 139, 208, 0.1), rgba(0, 212, 255, 0.1));
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 20px 20px 0 0;
}

/* Градиент снизу для лучшей читаемости текста */
.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%);
    pointer-events: none;
}

.card-header > * {
    position: relative;
    z-index: 1;
}

.education-card.featured .card-header {
    background: rgba(255, 255, 255, 0.1);
}

.education-card:hover .card-header {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 10px;
    backdrop-filter: blur(10px);
}

.education-card.featured .card-icon {
    color: white;
    width: 80px;
    height: 80px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.5;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
}

.education-card.featured .card-title {
    color: white;
}

.card-body {
    padding: 0 30px 30px;
}

.institution-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.education-card.featured .institution-name {
    color: rgba(255, 255, 255, 0.95);
}

.specialization {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.education-card.featured .specialization {
    color: rgba(255, 255, 255, 0.85);
}

.card-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), #00d4ff);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-badge.premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.education-card.featured .card-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Особенности подготовки */
.education-summary {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin-bottom: 60px;
}

.education-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #00d4ff, #764ba2);
}

.summary-content {
    text-align: center;
}

.summary-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    width: 35px;
    height: 35px;
    color: var(--primary-color);
}

.summary-text {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px;
}

.summary-text.emphasis {
    font-weight: 500;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 139, 208, 0.05), rgba(103, 58, 183, 0.05));
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.education-description {
    margin-bottom: 2rem;
}

.summary-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.summary-stats .stat {
    text-align: center;
}

.summary-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.summary-stats .stat-label {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .education {
        padding: 60px 0;
    }
    
    .title-accent {
        font-size: 2.5rem;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .education-card.featured {
        grid-column: span 1;
    }
    
    .education-summary {
        padding: 30px 20px;
    }
    
    .summary-title {
        font-size: 1.5rem;
        flex-direction: column;
    }
    
    .summary-text {
        font-size: 1rem;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .shape-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-3 {
        width: 200px;
        height: 200px;
    }
}

/* Системные оздоровительные технологии - Современный стиль */
.methods {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    overflow: hidden;
}

.methods-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#methodsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.methods-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 139, 208, 0.03) 100%);
}

/* Декоративные круги на фоне */
.methods::before,
.methods::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 139, 208, 0.05), transparent);
}

.methods::before {
    width: 600px;
    height: 600px;
    top: -300px;
    right: -200px;
}

.methods::after {
    width: 800px;
    height: 800px;
    bottom: -400px;
    left: -300px;
}

.methods-title {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.methods-title .title-line {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.methods-title .title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3a8a, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.methods-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.methods-intro .lead {
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.8;
    font-weight: 500;
}

/* Концепция здоровой личности */
.concept-section {
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.concept-main {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 139, 208, 0.15);
    border: 1px solid rgba(0, 139, 208, 0.1);
    position: relative;
    overflow: hidden;
}

.concept-main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 139, 208, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.concept-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.concept-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1e3a8a;
    position: relative;
    padding-bottom: 15px;
}

.concept-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.concept-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.concept-highlight {
    background: linear-gradient(135deg, rgba(0, 139, 208, 0.1), rgba(0, 212, 255, 0.1));
    padding: 30px 25px 25px 70px;
    border-radius: 20px;
    border-left: 5px solid var(--primary-color);
    position: relative;
    margin-top: 30px;
}

.highlight-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #00d4ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 139, 208, 0.3);
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
    color: white;
    fill: white;
}

/* Четырехуровневая система */
.levels-system {
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.levels-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
    color: #1e3a8a;
}

.levels-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

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

.level-card {
    background: white;
    border: 2px solid rgba(0, 139, 208, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 139, 208, 0.1);
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 212, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.level-card:hover {
    transform: translateY(-10px);
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 139, 208, 0.2);
}

.level-card:hover::before {
    opacity: 1;
}

.level-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.level-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #00d4ff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 139, 208, 0.3);
}

.level-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.level-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a2547;
    margin-bottom: 10px;
}

.level-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.level-progress {
    width: 100%;
    height: 8px;
    background: rgba(0, 139, 208, 0.1);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #00d4ff);
    border-radius: 3px;
    transition: width 1s ease;
}

/* Наши подходы */
.approaches-section {
    position: relative;
    z-index: 2;
}

.approaches-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
    color: #1e3a8a;
}

.approaches-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

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

.approach-card {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 139, 208, 0.1);
    border: 1px solid rgba(0, 139, 208, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #00d4ff, #764ba2);
}

.approach-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 139, 208, 0.3);
}

.approach-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.approach-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.approach-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.approach-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color), #00d4ff);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .methods {
        padding: 60px 0;
    }
    
    .methods-title .title-line {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }
    
    .methods-title .title-main {
        font-size: 2rem;
    }
    
    .methods-intro .lead {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .concept-main {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .concept-icon {
        width: 60px;
        height: 60px;
    }
    
    .concept-title {
        font-size: 1.5rem;
    }
    
    .concept-text {
        font-size: 1rem;
    }
    
    .levels-title {
        font-size: 1.5rem;
    }
    
    .levels-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .level-card {
        padding: 20px;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .level-title {
        color: #1a2547;
    }
    
    .level-description {
        color: #4a5568;
    }
    
    .approaches-title {
        font-size: 1.5rem;
    }
    
    .approach-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .approach-card {
        padding: 30px 20px;
    }
}

/* Блок биорегуляции */
.bioregulation-section {
    margin-top: 80px;
    padding: 60px;
    background: linear-gradient(135deg, 
        rgba(0, 139, 208, 0.05) 0%, 
        rgba(0, 166, 232, 0.03) 100%);
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.bioregulation-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bioregulation-content {
    max-width: 1000px;
    margin: 0 auto;
}

.bioregulation-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: justify;
}

.bioregulation-principles {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.bioregulation-principles h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.principles-list {
    list-style: none;
    padding: 0;
}

.principles-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.principles-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
}

.principles-list li::after {
    content: '✓';
    position: absolute;
    left: 7px;
    top: 6px;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

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

.bioregulation-conclusion {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-dark);
    text-align: center;
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, 
        rgba(0, 139, 208, 0.08) 0%, 
        rgba(0, 166, 232, 0.05) 100%);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.bioregulation-conclusion strong {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .bioregulation-section {
        padding: 40px 20px;
    }
    
    .bioregulation-title {
        font-size: 1.8rem;
    }
    
    .bioregulation-principles {
        padding: 30px 20px;
    }
    
    .principles-list li {
        padding-left: 35px;
        font-size: 0.95rem;
    }
}

/* Компактные карточки направлений */
.direction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.direction-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 500px;
    will-change: transform;
}

.direction-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 139, 208, 0.2);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.card-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 139, 208, 0.8), rgba(255, 71, 87, 0.6));
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 3;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, transparent 160px, white 200px);
}

.card-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    stroke-width: 2.5;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 180px 0 0.5rem 0;
    line-height: 1.3;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-description {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

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

/* Мини видео-сетка */
.mini-video-grid {
    margin-bottom: 1.5rem;
}

.mini-video-grid h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.video-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.mini-video {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-video:hover {
    transform: scale(1.05);
}

.mini-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-mini {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.mini-video:hover .play-mini {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-mini svg {
    width: 12px;
    height: 12px;
    color: var(--primary-color);
    margin-left: 1px;
}

.duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Компактная галерея */
.compact-gallery {
    margin-bottom: 1.5rem;
}

.compact-gallery h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.gallery-preview {
    display: flex;
    gap: 0.8rem;
}

.main-preview {
    position: relative;
    flex: 2;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
}

.main-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-preview:hover .preview-nav {
    opacity: 1;
}

.prev-btn, .next-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background: white;
    transform: scale(1.1);
}

.mini-thumbnails {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mini-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    border: 2px solid transparent;
}

.mini-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.mini-thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* Теги специалистов */
.specialist-tags {
    margin-bottom: 1.5rem;
}

.specialist-tags h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialist-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Выделение карточки */
.card-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 71, 87, 0.1);
    padding: 0.8rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent-color);
}

.card-highlight svg {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.card-highlight p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* Кнопка действия */
.card-action {
    margin-top: auto;
}

.action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 139, 208, 0.3);
}

.action-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.action-btn:hover svg {
    transform: translateX(4px);
}

/* Старые стили */
.highlight-box {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

/* СМИ */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.media-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    display: block;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.media-source {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.media-card h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Видео галерея */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.video-item video {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Контакты */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-link svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

/* Форма */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Подвал */
/* Современный стильный футер */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        var(--secondary-color), 
        transparent
    );
}

.footer-wrapper {
    padding: 80px 0 40px;
    position: relative;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Бренд секция */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-wrapper {
    width: 150px;
    height: 150px;
    padding: 20px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-logo-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(0, 139, 208, 0.1), 
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.footer-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.footer-brand-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

/* Социальные сети */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 139, 208, 0.3);
}

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

/* Заголовки секций */
.footer-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

/* Навигация */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    left: 0;
    opacity: 1;
}

/* Контакты */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item p {
    margin: 0;
    line-height: 1.5;
}

/* Правовая информация */
.footer-disclaimer {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.6;
}

.footer-disclaimer p strong {
    color: #ffd700;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Нижняя часть футера */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Адаптивность футера */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-wrapper {
        padding: 50px 0 30px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo-wrapper {
        width: 120px;
        height: 120px;
        padding: 15px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-bottom-links .separator {
        display: none;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-nav-left {
        left: 20px;
    }
    
    .hero-nav-right {
        right: 20px;
    }
    
    .hero-silhouette {
        display: none;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        gap: 0.5rem;
    }

    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-contact {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 139, 208, 0.05);
        margin-top: 0.5rem;
        display: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu::before {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero Section Tablet */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-nav {
        width: 50px;
        height: 50px;
    }
    
    .slide-icon {
        width: 120px;
        height: 120px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .title-firstname {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .title-name {
        font-size: 1.8rem;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .stat-card {
        min-width: 100px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Hero Section Mobile */
    .hero {
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title span {
        font-size: 1.8rem;
    }
    
    .title-accent {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-quote {
        padding: 12px 20px;
        margin-bottom: 1.5rem;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .btn-hero {
        width: 100%;
        padding: 16px 30px;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-nav {
        display: none;
    }
    
    .hero-indicators {
        bottom: 20px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .method-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature {
        width: 100%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .experience-grid,
    .approach-cards,
    .media-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    /* Уменьшаем плашки статистики на главном слайде */
    .hero-stats {
        gap: 0.5rem;
        margin-top: 1rem;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats .stat-item {
        padding: 0.4rem;
        gap: 0.2rem;
        min-height: auto;
    }
    
    .hero-stats .stat-icon {
        width: 25px;
        height: 25px;
    }
    
    .hero-stats .stat-number {
        font-size: 1rem;
        line-height: 1;
    }
    
    .hero-stats .stat-label {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }
    
    /* Уменьшаем отступы в hero для мобильной версии */
    .hero-content {
        gap: 0.5rem;
    }
    
    .hero-title {
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        margin-bottom: 0.8rem;
    }
    
    .hero-buttons {
        margin-bottom: 0.8rem;
        gap: 0.5rem;
    }
    
    .btn-hero {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Плашки под фото доктора - вертикально */
    .about-stats {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .about-stats .stat-card {
        padding: 1rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    /* Hero Section Small Mobile */
    .hero {
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-title span {
        font-size: 1.4rem;
    }
    
    .title-accent {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 14px 24px;
        font-size: 0.85rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .slide-icon {
        width: 100px;
        height: 100px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
    
    .achievement-text {
        font-size: 0.9rem;
    }
}

/* Ландшафтная ориентация мобильных устройств */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.8rem;
    }
    
    .hero-indicators {
        bottom: 10px;
    }
    
    /* Адаптивность для компактных карточек направлений */
    .direction-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .direction-card {
        height: auto;
        min-height: 450px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.2rem;
        margin-top: 160px;
    }
    
    .video-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .gallery-preview {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .mini-thumbnails {
        flex-direction: row;
        gap: 0.3rem;
    }
    
    .mini-thumb {
        aspect-ratio: 1;
    }
    
    .tags-grid {
        gap: 0.3rem;
    }
    
    .specialist-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Секция центров - общие стили */
.centers {
    padding: 120px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #bae6fd 50%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.centers-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#centersCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.centers-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, transparent 0%, rgba(0, 139, 208, 0.03) 100%);
}

/* Декоративные элементы */
.centers::before,
.centers::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 139, 208, 0.08), transparent);
}

.centers::before {
    width: 800px;
    height: 800px;
    top: -200px;
    right: -300px;
    animation: float 20s ease-in-out infinite;
}

.centers::after {
    width: 600px;
    height: 600px;
    bottom: -150px;
    left: -200px;
    animation: float 25s ease-in-out infinite reverse;
}

.centers-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.centers-title .title-line {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.centers-title .title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3a8a, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.centers-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.centers-intro .lead {
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.8;
    font-weight: 500;
}

/* Сетка центров */
.centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.center-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 139, 208, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.center-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.center-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 139, 208, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

.center-card:hover::before {
    transform: scaleX(1);
}

/* Заголовки центров */
.center-header {
    margin-bottom: 30px;
}

.center-header h3 {
    color: #1e3a8a;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.center-tagline {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    margin: 0;
}

/* Контент центров */
.center-content {
    color: #475569;
    line-height: 1.7;
}

.center-content p {
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.center-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.center-features li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: #334155;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 139, 208, 0.1);
}

.center-features li:last-child {
    border-bottom: none;
}

.center-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 139, 208, 0.2);
}

/* Интерактивные медиа элементы в центрах */
.center-media {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 139, 208, 0.03), rgba(0, 139, 208, 0.08));
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 139, 208, 0.2);
    position: relative;
    overflow: hidden;
}

.center-media::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 139, 208, 0.1), transparent);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

.center-media h4 {
    color: #1e3a8a;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.media-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 139, 208, 0.2);
    box-shadow: 0 8px 25px rgba(0, 139, 208, 0.1);
}

.media-tab {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.media-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.media-tab.active,
.media-tab:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 139, 208, 0.4);
}

.media-tab.active::before,
.media-tab:hover::before {
    opacity: 1;
}

.media-tab-content {
    display: none;
}

.media-tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

.video-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 139, 208, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.video-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 18px;
}

.video-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 139, 208, 0.25);
    border-color: rgba(0, 139, 208, 0.3);
}

.video-item:hover::before {
    opacity: 0.05;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 139, 208, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 139, 208, 0.3);
}

.play-button::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.play-button svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
    z-index: 1;
}

.video-item:hover .play-button {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 15px 40px rgba(0, 139, 208, 0.4);
}

.video-item:hover .play-button::before {
    opacity: 1;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-item h5 {
    padding: 20px;
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Фото галерея */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.photo-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay h5 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.photo-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Галерея территории здоровья */
.center-gallery {
    margin-top: 40px;
}

.center-gallery h4 {
    color: #1e3a8a;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.gallery-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 139, 208, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.gallery-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.gallery-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 400px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.gallery-prev,
.gallery-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 139, 208, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.gallery-prev svg,
.gallery-next svg {
    width: 20px;
    height: 20px;
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Витрина специалистов */
.specialists-showcase {
    margin-top: 40px;
}

.specialists-showcase h4 {
    color: #1e3a8a;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.specialist-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.specialist-card:hover {
    transform: translateY(-5px);
}

.specialist-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.specialist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.specialist-card:hover .specialist-image img {
    transform: scale(1.1);
}

.specialist-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 30px;
}

.specialist-overlay h5 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.specialist-overlay p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для расширенной галереи в "Территория здоровья" */
.expanded-gallery {
    margin-top: 30px;
}

.expanded-gallery h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.gallery-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.main-gallery-view {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.main-gallery-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.main-gallery-view:hover .gallery-overlay {
    opacity: 1;
}

.gallery-nav {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.gallery-nav:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

.gallery-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.gallery-fullscreen {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 20px;
    right: 20px;
}

.gallery-fullscreen:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-fullscreen svg {
    width: 20px;
    height: 20px;
    color: var(--text-dark);
}

.gallery-thumbnails {
    margin-top: 20px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.gallery-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
    border: 3px solid transparent;
}

.gallery-thumb.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 139, 208, 0.3);
}

.gallery-thumb:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

.thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 8px 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-thumb:hover .thumb-overlay,
.gallery-thumb.active .thumb-overlay {
    transform: translateY(0);
}

.thumb-overlay span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Стили для расширенной видео галереи в "Учебный центр" */
.expanded-video-gallery {
    margin-top: 30px;
}

.expanded-video-gallery h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.video-gallery-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.main-video-player {
    position: relative;
}

.video-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.3), rgba(0,139,208,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.3s ease;
}

.video-preview:hover .video-overlay {
    background: linear-gradient(45deg, rgba(0,0,0,0.5), rgba(0,139,208,0.3));
}

.play-button {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

.play-button:hover {
    transform: scale(1.1);
    background: white;
}

.play-button svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    margin-left: 4px;
}

.video-info {
    text-align: center;
    color: white;
}

.video-info h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.video-info .duration {
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.video-playlist {
    display: flex;
    flex-direction: column;
}

.playlist-header {
    margin-bottom: 20px;
}

.playlist-header h5 {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.playlist-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.playlist-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(248, 249, 250, 0.5);
}

.playlist-item:hover {
    background: rgba(248, 249, 250, 0.8);
    transform: translateX(5px);
}

.playlist-item.active {
    background: rgba(0, 139, 208, 0.1);
    border-color: var(--primary-color);
}

.item-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
}

.item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playlist-item:hover .item-play {
    opacity: 1;
}

.item-play svg {
    width: 12px;
    height: 12px;
    color: var(--primary-color);
    margin-left: 2px;
}

.item-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-info h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.3;
}

.item-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* Мобильная адаптация для новых элементов */
@media (max-width: 768px) {
    .center-media {
        padding: 20px;
    }
    
    .media-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .media-tab {
        padding: 10px 15px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-main {
        height: 250px;
    }
    
    .gallery-nav {
        padding: 0 10px;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .specialist-image {
        height: 200px;
    }
    
    .specialist-overlay {
        padding: 20px;
    }
    
    /* Мобильная адаптация для новой галереи */
    .gallery-container,
    .video-gallery-container {
        padding: 20px;
    }
    
    .video-gallery-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button svg {
        width: 24px;
        height: 24px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .playlist-item {
        padding: 12px;
        gap: 12px;
    }
    
    .item-thumbnail {
        width: 80px;
        height: 45px;
    }
    
    .item-info h6 {
        font-size: 0.9rem;
    }
    
    .item-info p {
        font-size: 0.8rem;
    }
    
    .gallery-info {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

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

/* Основная секция "Направления деятельности" */
.directions-modern {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.directions-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-gradient-modern {
    background: radial-gradient(ellipse at top, rgba(0, 139, 208, 0.1) 0%, transparent 50%);
    width: 100%;
    height: 100%;
    position: absolute;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.element {
    position: absolute;
    background: linear-gradient(45deg, rgba(0, 139, 208, 0.1), rgba(0, 166, 232, 0.05));
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.element-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
        opacity: 0.6;
    }
    66% {
        transform: translateY(20px) rotate(240deg);
        opacity: 0.4;
    }
}

/* Заголовок секции */
.section-header-modern {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.section-title-modern {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description-modern {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Сетка современных карточек */
.directions-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* Дополнительные блоки для Учебно-научного центра */
.center-goal,
.center-directions,
.center-features {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, 
        rgba(0, 139, 208, 0.03) 0%, 
        rgba(0, 166, 232, 0.02) 100%);
    border-radius: 15px;
    border-left: 3px solid var(--primary-color);
}

.goal-title,
.directions-title,
.features-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.goal-title::before,
.directions-title::before,
.features-title::before {
    content: '✦';
    color: var(--primary-color);
    font-size: 1.4rem;
}

.goal-text,
.features-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

.directions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.directions-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.directions-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

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

/* Стили для блока Территория здоровья */
.attention-block {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.1) 0%, 
        rgba(255, 152, 0, 0.08) 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.6;
}

.attention-block strong {
    color: #ff6b00;
    font-weight: 700;
}

.territory-motto {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(0, 139, 208, 0.05) 0%, 
        rgba(0, 166, 232, 0.03) 100%);
    border-radius: 15px;
}

.territory-motto h5 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 1px;
}

.territory-results,
.territory-audience,
.territory-features {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.territory-results h5,
.territory-audience h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.results-list,
.audience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-list li,
.audience-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.results-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2rem;
}

.audience-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.4rem;
}

.features-highlight {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.05) 0%, 
        rgba(139, 195, 74, 0.03) 100%);
    border-radius: 10px;
    border-left: 3px solid #4CAF50;
}

.territory-slogan {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    color: white;
}

.territory-slogan p {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.territory-slogan h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* Базовые стили карточки */
.direction-card-modern {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    min-height: 800px;
}

.direction-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 24px 24px 0 0;
}

.direction-card-modern:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* Специфические цвета для карточек */
.education-card::before {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.health-card::before {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.rehab-card::before {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Заголовок карточки */
.card-header-modern {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.card-icon-modern {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.education-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.health-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.rehab-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.card-icon-modern svg {
    width: 40px;
    height: 40px;
}

.card-title-area {
    flex: 1;
    min-width: 250px;
}

.card-title-modern {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.card-subtitle-modern {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

.card-badge-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

/* Тело карточки */
.card-body-modern {
    margin-bottom: 40px;
}

.card-description-modern {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Стили для большой видео секции */
.large-video-section {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(0, 139, 208, 0.1);
}

.video-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.video-section-header h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.video-count {
    background: rgba(0, 139, 208, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.main-video-container {
    margin-bottom: 30px;
}

.video-player-large {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: var(--shadow-lg);
}

.video-player-large.with-preview {
    cursor: pointer;
}

.video-player-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-player-large iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

.video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.play-btn-large {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.play-btn-large:hover {
    transform: scale(1.1);
    background: white;
}

.play-btn-large svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    margin-left: 6px;
}

.video-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 25px 20px;
}

.video-meta h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.video-views {
    opacity: 0.8;
}

/* Большой плейлист */
.video-playlist-large {
    display: grid;
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.playlist-item-large {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.playlist-item-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 139, 208, 0.2);
}

.playlist-item-large.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 139, 208, 0.05), rgba(0, 166, 232, 0.02));
}

.playlist-thumb {
    position: relative;
    width: 180px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}

.playlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.playlist-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.playlist-content h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.playlist-content p {
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.4;
}

.playlist-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Стили для большой галереи фото */
.large-gallery-section {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(33, 150, 243, 0.1);
}

.gallery-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.gallery-section-header h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.photo-count {
    background: rgba(0, 139, 208, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.main-photo-container {
    margin-bottom: 25px;
}

.photo-viewer-large {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: var(--shadow-lg);
}

.photo-viewer-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-navigation {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: var(--shadow-md);
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

.nav-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 40px 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.photo-info h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.fullscreen-btn:hover {
    background: white;
    transform: scale(1.1);
}

.fullscreen-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-dark);
}

/* Миниатюры фото */
.photo-thumbnails-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.thumbnail-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
    border: 3px solid transparent;
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 139, 208, 0.3);
}

.thumbnail-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

.thumbnail-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 15px 10px 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* Стили для команды специалистов */
.team-section-large {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 152, 0, 0.1);
}

.team-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.team-section-header h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.team-count {
    background: rgba(0, 139, 208, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.specialists-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.specialist-card-large {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.specialist-card-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.specialist-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.specialist-icon svg {
    width: 28px;
    height: 28px;
}

.specialist-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.specialist-info p {
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.specialist-count {
    background: rgba(0, 139, 208, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Достижения команды */
.team-achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 139, 208, 0.2);
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.achievement-icon svg {
    width: 24px;
    height: 24px;
}

.achievement-text strong {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
}

.achievement-text p {
    color: var(--text-light);
    margin: 5px 0 0 0;
    font-size: 0.9rem;
}

/* Подвал карточки */
.card-footer-modern {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-modern svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .direction-card-modern {
        padding: 35px;
        min-height: 700px;
    }
    
    .section-title-modern {
        font-size: 2.8rem;
    }
    
    .video-player-large,
    .photo-viewer-large {
        aspect-ratio: 16/10;
    }
}

@media (max-width: 768px) {
    .directions-modern {
        padding: 80px 0;
    }
    
    .section-header-modern {
        margin-bottom: 60px;
    }
    
    .section-title-modern {
        font-size: 2.2rem;
    }
    
    .section-description-modern {
        font-size: 1.1rem;
    }
    
    .directions-grid-modern {
        gap: 40px;
    }
    
    .direction-card-modern {
        padding: 25px;
        min-height: auto;
    }
    
    .card-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .card-icon-modern {
        width: 60px;
        height: 60px;
    }
    
    .card-icon-modern svg {
        width: 30px;
        height: 30px;
    }
    
    .card-title-modern {
        font-size: 1.6rem;
    }
    
    .large-video-section,
    .large-gallery-section,
    .team-section-large {
        padding: 20px;
    }
    
    .video-section-header,
    .gallery-section-header,
    .team-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .playlist-item-large {
        flex-direction: column;
        text-align: center;
    }
    
    .playlist-thumb {
        width: 100%;
        height: 200px;
    }
    
    .specialists-grid-large {
        grid-template-columns: 1fr;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .play-btn-large {
        width: 80px;
        height: 80px;
    }
    
    .play-btn-large svg {
        width: 32px;
        height: 32px;
    }
    
    .photo-thumbnails-large {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .card-footer-modern {
        flex-direction: column;
    }
    
    .btn-modern {
        justify-content: center;
        width: 100%;
    }
}

/* Team Inspiration Component */
.team-inspiration {
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    background: var(--white);
}

.inspiration-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.inspiration-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.inspiration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.team-inspiration:hover .inspiration-overlay {
    opacity: 1;
}

.team-inspiration:hover .inspiration-image img {
    transform: scale(1.05);
}

.inspiration-content {
    text-align: center;
    padding: 30px;
    color: #ffffff !important;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 20px;
}

.team-inspiration:hover .inspiration-content {
    transform: translateY(0);
}

.inspiration-content h5 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.inspiration-content p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    opacity: 1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .inspiration-image {
        height: 300px;
    }
    
    .inspiration-content {
        padding: 20px;
    }
    
    .inspiration-content h5 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .inspiration-content p {
        font-size: 14px;
    }
}

/* Модальное окно для заявок */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    animation: modalGlow 4s ease-in-out infinite;
}

@keyframes modalGlow {
    0%, 100% {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset,
            0 0 100px rgba(0, 139, 208, 0.1);
    }
    50% {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset,
            0 0 120px rgba(0, 166, 232, 0.15);
    }
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 139, 208, 0.3);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-dark);
    transition: stroke 0.3s ease;
}

.modal-close:hover svg {
    stroke: white;
}

.modal-header {
    text-align: center;
    padding: 40px 40px 30px;
    background: linear-gradient(135deg, rgba(0, 139, 208, 0.05), rgba(0, 166, 232, 0.02));
    border-radius: 24px 24px 0 0;
    position: relative;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 139, 208, 0.3);
    animation: modalIconPulse 2s ease-in-out infinite;
}

@keyframes modalIconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 139, 208, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 139, 208, 0.4);
    }
}

.modal-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 2.5;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

.modal-form {
    padding: 30px 40px 40px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(0, 139, 208, 0.1),
        0 4px 12px rgba(0, 139, 208, 0.05);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.modal-submit {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 139, 208, 0.3);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.modal-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modal-submit:hover::before {
    width: 600px;
    height: 600px;
}

.modal-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 139, 208, 0.4);
}

.modal-submit svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.modal-submit:hover svg {
    transform: translateX(5px);
}

.modal-success {
    display: none;
    text-align: center;
    padding: 60px 40px;
    animation: successFadeIn 0.5s ease;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-success.active {
    display: block;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successIconBounce 0.6s ease;
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.3);
}

@keyframes successIconBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-icon svg {
    width: 50px;
    height: 50px;
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: successCheck 0.8s ease 0.3s both;
}

@keyframes successCheck {
    from {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
    }
    to {
        stroke-dasharray: 100;
        stroke-dashoffset: 0;
    }
}

.modal-success h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.modal-success p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Адаптивность модального окна */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 30px 20px 20px;
    }
    
    .modal-form {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.6rem;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .modal-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
    }
    
    .modal-submit {
        padding: 16px 20px;
        font-size: 1rem;
    }
}