/* Custom Variables */
:root {
    --primary-color: #2c5282;
    --secondary-color: #3182ce;
    --accent-color: #63b3ed;
    --gradient-gold: linear-gradient(45deg, #f6ad55, #ed8936);
    --gradient-sunset: linear-gradient(45deg, #fc8181, #f56565, #ed64a6);
    --gradient-hope: linear-gradient(45deg, #68d391, #4fd1c7, #63b3ed);
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --gradient-primary: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    --gradient-hero: linear-gradient(rgba(44, 82, 130, 0.85), rgba(49, 130, 206, 0.85));
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(99, 179, 237, 0.3);
    --shadow-warm: 0 8px 32px rgba(246, 173, 85, 0.2);
}

/* Base Styles with Enhanced Effects */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Floating Particles Background */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(99, 179, 237, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) { 
    width: 8px; height: 8px; left: 10%; animation-delay: 0s; 
}
.particle:nth-child(2) { 
    width: 12px; height: 12px; left: 20%; animation-delay: 2s; 
}
.particle:nth-child(3) { 
    width: 6px; height: 6px; left: 30%; animation-delay: 4s; 
}
.particle:nth-child(4) { 
    width: 10px; height: 10px; left: 40%; animation-delay: 6s; 
}
.particle:nth-child(5) { 
    width: 14px; height: 14px; left: 50%; animation-delay: 8s; 
}
.particle:nth-child(6) { 
    width: 8px; height: 8px; left: 60%; animation-delay: 10s; 
}
.particle:nth-child(7) { 
    width: 16px; height: 16px; left: 70%; animation-delay: 12s; 
}
.particle:nth-child(8) { 
    width: 6px; height: 6px; left: 80%; animation-delay: 14s; 
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-10vh) rotate(180deg);
        opacity: 0.8;
    }
}

/* Enhanced Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
}

.btn-primary:hover::before {
    left: 100%;
}

/* Enhanced Navigation with Glassmorphism */
.navbar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(25px);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-hope);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.navbar-brand:hover::after {
    width: 100%;
}

/* Magical Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99, 179, 237, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(246, 173, 85, 0.1) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    filter: brightness(1.1) contrast(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    animation: heroTitleAnimation 2s ease;
    background: linear-gradient(45deg, #ffffff, #e2e8f0, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitleAnimation 2s ease, shimmer 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    animation: heroSubtitleAnimation 2s ease 0.5s both;
    position: relative;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-hope);
    border-radius: 2px;
    animation: lineExpand 1.5s ease 1.5s both;
}

@keyframes heroTitleAnimation {
    from {
        opacity: 0;
        transform: translateY(80px) scale(0.8);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroSubtitleAnimation {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

/* Enhanced Feature Cards with Morphing Effects */
.feature-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 179, 237, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.feature-card i {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.feature-card:hover i {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

/* Magical Event Cards */
.event-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid transparent;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--gradient-hope), var(--gradient-sunset));
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
    border-radius: 23px;
}

.event-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: var(--shadow-warm);
    border-color: transparent;
}

.event-card:hover::before {
    opacity: 1;
}

.event-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.event-card:hover .event-logo {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

/* Heartfelt Help Cards */
.help-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 25px;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 2px solid rgba(99, 179, 237, 0.1);
    position: relative;
    overflow: hidden;
}

.help-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hope);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.help-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 179, 237, 0.15);
    border-color: rgba(99, 179, 237, 0.3);
}

.help-card:hover::after {
    transform: scaleX(1);
}

.help-card i {
    transition: all 0.4s ease;
    position: relative;
}

.help-card:hover i {
    color: var(--secondary-color) !important;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(49, 130, 206, 0.4));
}

/* Animated Stats with Pulsing Effect */
.stat-card {
    transition: all 0.4s ease;
    border: 3px solid transparent;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--gradient-hope), var(--gradient-sunset), var(--gradient-gold), var(--gradient-hope));
    animation: statRotate 6s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 17px;
    z-index: 1;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: scale(1.08) rotateX(5deg);
    box-shadow: var(--shadow-glow);
}

.stat-card h3,
.stat-card p {
    position: relative;
    z-index: 2;
}

.stat-card h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes statRotate {
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Enhanced Contact Section */
.contact-info {
    padding: 40px 30px;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 179, 237, 0.1);
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hope);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.contact-info:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-warm);
}

.contact-info:hover::before {
    opacity: 0.1;
}

.contact-info i {
    transition: all 0.4s ease;
}

.contact-info:hover i {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 0 15px rgba(99, 179, 237, 0.5));
}

/* Magical Social Buttons */
.btn-social {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 2px solid rgba(99, 179, 237, 0.2);
}

.btn-social::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hope);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.btn-social:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(99, 179, 237, 0.3);
}

.btn-social:hover::before {
    transform: scale(1);
}

.btn-social i {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.btn-social:hover i {
    color: white !important;
}

/* Donation Section Magic */
.donation-amounts .btn {
    min-width: 100px;
    margin: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-radius: 50px;
}

.donation-amounts .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.donation-amounts .btn:hover {
    transform: scale(1.15) rotate(2deg);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.donation-amounts .btn:hover::before {
    width: 200px;
    height: 200px;
}

/* Section Separators with Animated Lines */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100px;
    height: 2px;
    background: var(--gradient-hope);
    transform: translateX(-50%);
    opacity: 0.3;
}

section:nth-child(even)::after {
    background: var(--gradient-sunset);
}

/* Enhanced Loading Animations */
@media (prefers-reduced-motion: no-preference) {
    .card,
    .help-card,
    .event-card,
    .feature-card {
        opacity: 0;
        animation: magicalFadeInUp 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }
    
    .card:nth-child(2),
    .help-card:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .card:nth-child(3),
    .help-card:nth-child(3) {
        animation-delay: 0.4s;
    }
    
    .card:nth-child(4),
    .help-card:nth-child(4) {
        animation-delay: 0.6s;
    }
    
    @keyframes magicalFadeInUp {
        from {
            opacity: 0;
            transform: translateY(60px) scale(0.8) rotateX(45deg);
            filter: blur(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1) rotateX(0deg);
            filter: blur(0);
        }
    }
}

/* Responsive Magic */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        animation-duration: 1.5s;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .btn-social {
        width: 55px;
        height: 55px;
    }
    
    .feature-card,
    .help-card,
    .event-card {
        margin-bottom: 25px;
    }
}

/* Hover Glow Effects for All Interactive Elements */
.btn:hover,
.card:hover,
input:focus,
textarea:focus {
    box-shadow: 0 0 30px rgba(99, 179, 237, 0.2);
}

/* Text Selection Beauty */
::selection {
    background: linear-gradient(45deg, rgba(99, 179, 237, 0.3), rgba(246, 173, 85, 0.3));
    color: var(--text-dark);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-hope);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: transform 0.3s ease;
}

/* Custom Variables */
:root {
    --primary-color: #2c5282;
    --secondary-color: #3182ce;
    --accent-color: #63b3ed;
    --gradient-gold: linear-gradient(45deg, #f6ad55, #ed8936);
    --gradient-sunset: linear-gradient(45deg, #fc8181, #f56565, #ed64a6);
    --gradient-hope: linear-gradient(45deg, #68d391, #4fd1c7, #63b3ed);
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --gradient-primary: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    --gradient-hero: linear-gradient(rgba(44, 82, 130, 0.85), rgba(49, 130, 206, 0.85));
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(99, 179, 237, 0.3);
    --shadow-warm: 0 8px 32px rgba(246, 173, 85, 0.2);
    --navbar-height: 80px; /* Добавляем переменную для высоты навигации */
}

/* Base Styles with Enhanced Effects */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: var(--navbar-height); /* Добавляем отступ для фиксированного меню */
}

/* Floating Particles Background */
.floating-particles {
    position: fixed;
    top: var(--navbar-height); /* Начинаем частицы после навигации */
    left: 0;
    width: 100%;
    height: calc(100% - var(--navbar-height));
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(99, 179, 237, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) { 
    width: 8px; height: 8px; left: 10%; animation-delay: 0s; 
}
.particle:nth-child(2) { 
    width: 12px; height: 12px; left: 20%; animation-delay: 2s; 
}
.particle:nth-child(3) { 
    width: 6px; height: 6px; left: 30%; animation-delay: 4s; 
}
.particle:nth-child(4) { 
    width: 10px; height: 10px; left: 40%; animation-delay: 6s; 
}
.particle:nth-child(5) { 
    width: 14px; height: 14px; left: 50%; animation-delay: 8s; 
}
.particle:nth-child(6) { 
    width: 8px; height: 8px; left: 60%; animation-delay: 10s; 
}
.particle:nth-child(7) { 
    width: 16px; height: 16px; left: 70%; animation-delay: 12s; 
}
.particle:nth-child(8) { 
    width: 6px; height: 6px; left: 80%; animation-delay: 14s; 
}

@keyframes float {
    0%, 100% {
        transform: translateY(calc(100vh - var(--navbar-height))) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-10vh) rotate(180deg);
        opacity: 0.8;
    }
}

/* Enhanced Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
}

.btn-primary:hover::before {
    left: 100%;
}

/* Enhanced Navigation with Glassmorphism */
.navbar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease;
    padding: 20px 0;
    height: var(--navbar-height); /* Фиксируем высоту навигации */
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(25px);
    height: 70px; /* Уменьшаем высоту при скролле */
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-hope);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.navbar-brand:hover::after {
    width: 100%;
}

/* Компактный Hero Section */
.hero-section {
    height: 70vh; /* Уменьшили с 100vh до 70vh */
    min-height: 500px; /* Минимальная высота для мобильных устройств */
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Убираем отрицательный margin */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99, 179, 237, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(246, 173, 85, 0.1) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.hero-slide {
    height: 70vh; /* Соответствует высоте hero-section */
    min-height: 500px; /* Минимальная высота */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    filter: brightness(1.1) contrast(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem; /* Уменьшили размер для компактности */
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.2rem;
    animation: heroTitleAnimation 2s ease;
    background: linear-gradient(45deg, #ffffff, #e2e8f0, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitleAnimation 2s ease, shimmer 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem; /* Немного уменьшили */
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    animation: heroSubtitleAnimation 2s ease 0.5s both;
    position: relative;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gradient-hope);
    border-radius: 2px;
    animation: lineExpand 1.5s ease 1.5s both;
}

@keyframes heroTitleAnimation {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9); /* Уменьшили смещение */
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroSubtitleAnimation {
    from {
        opacity: 0;
        transform: translateY(30px); /* Уменьшили смещение */
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

/* Улучшенные контролы карусели для компактного слайдера */
.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    height: 60%; /* Ограничиваем высоту контролов */
    top: 20%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 80%, 80%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    padding: 15px;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Enhanced Feature Cards with Morphing Effects */
.feature-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 179, 237, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.feature-card i {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.feature-card:hover i {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

/* Остальные стили остаются без изменений... */

/* Responsive Magic для компактного героя */
@media (max-width: 768px) {
    :root {
        --navbar-height: 70px; /* Уменьшаем высоту навигации на мобильных */
    }
    
    body {
        padding-top: var(--navbar-height);
    }
    
    .navbar {
        padding: 12px 0;
        height: var(--navbar-height);
    }
    
    .navbar.scrolled {
        padding: 8px 0;
        height: 60px;
    }
    
    .hero-section {
        height: 60vh; /* Еще более компактно на мобильных */
        min-height: 400px;
    }
    
    .hero-slide {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem; /* Адаптивный размер */
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
        height: 50%;
        top: 25%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 55vh;
        min-height: 350px;
    }
    
    .hero-slide {
        height: 55vh;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-subtitle::after {
        width: 60px;
        height: 1.5px;
    }
}

/* Остальные стили без изменений... */
