:root {
    --primary: #0ac5d1;
    --primary-dark: #089fa8;
    --dark: #333333;
    
    /* Меняем темный фон на чистый белый */
    --bg-color: #ffffff; 
    --text-color: #333333; /* Темно-серый для текста вместо белого */
    --white: #ffffff;
    
    --premium-gradient: linear-gradient(135deg, #0ac5d1 0%, #4facfe 100%);
    
    /* Адаптируем эффект стекла для светлого фона */
    --glass-bg: rgba(255, 255, 255, 0.85); /* Делаем плашки более плотными и белыми */
    --glass-border: rgba(0, 0, 0, 0.05); /* Легкая темная граница вместо светлой */
    
    --radius-xl: 32px;
    --radius-full: 999px;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.08); /* Мягкая темная тень для объема */
    --shadow-neon: 0 0 20px rgba(10, 197, 209, 0.2);
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color); /* Применяем белый фон */
    color: var(--text-color); /* Применяем темный текст */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.35;
}

img, svg {
  pointer-events: none;
}

/* --- Базовые классы (Стекло и Градиенты) --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
}

.ambient-blobs { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; 
    height: 120vh; 
    z-index: -1; 
    overflow: hidden; 
    pointer-events: none; 
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}
.blob { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(120px); /* Усиливаем блюр для светлой темы */
    opacity: 0.35; /* Делаем пятна чуть прозрачнее, чтобы не слепили */
    animation: float 20s infinite ease-in-out alternate; 
}
.blob-1 { width: 600px; height: 600px; background: #0ac5d1; top: -10%; left: -10%; }
.blob-2 { width: 500px; height: 500px; background: #4facfe; bottom: 10%; right: -5%; animation-delay: -5s; }

@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(100px, 50px) scale(1.2); } }

/* --- Шапка и Логотип --- */
.main-header {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 95%; max-width: 1400px;
    z-index: 1000; padding: 10px 30px; display: flex; justify-content: space-between; align-items: center;
    border-radius: 100px; transition: all 0.3s ease;
    background: #f0f8ff42;
}

.header-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
}

.main-nav ul { list-style: none; display: flex; gap: 40px; margin: 0; }
.main-nav a { text-decoration: none; color: #333333; font-size: 0.9rem; transition: color 0.3s; }
.main-nav a:hover { color: #0ac5d1; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.phone-link { color: #333333; text-decoration: none; font-weight: 600; font-size: 0.95rem; }

/* --- Мобильное меню и кнопки --- */
.menu-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; z-index: 1000; }

.mobile-menu-close {
    position: absolute;
    top: 30px; right: 30px;
    background: none; border: none; color: #fff; cursor: pointer;
    transition: transform 0.3s ease;
}
.mobile-menu-close:hover { transform: rotate(90deg); color: #0ac5d1; }

.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); 
    z-index: 9999; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 30px;
    opacity: 0; pointer-events: none; 
    clip-path: circle(0px at calc(100% - 45px) 45px); 
    -webkit-clip-path: circle(0px at calc(100% - 45px) 45px); 
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1), -webkit-clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.mobile-menu-overlay.active { 
    opacity: 1; pointer-events: all; 
    clip-path: circle(150% at calc(100% - 45px) 45px); 
    -webkit-clip-path: circle(150% at calc(100% - 45px) 45px); 
}

.mobile-menu-overlay a { color: #333333; text-decoration: none; font-size: 1.5rem; font-weight: 600; opacity: 0; transform: translateY(20px); transition: all 0.4s ease; }
.mobile-menu-overlay.active a { opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.active a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.active a:nth-child(4) { transition-delay: 0.4s; }

/* --- Главный экран --- */
.hero-block {
    max-width: 1400px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 5% 0;
    overflow: hidden;
    margin: auto;
}

.hero-content { position: relative; z-index: 10; width: 100%; max-width: 800px; }
.hero-badge { display: inline-block; padding: 8px 16px; border-radius: 100px; font-size: 0.85rem; margin-bottom: 20px; color: #0ac5d1; }
.hero-title { font-size: 3.5rem; font-weight: 700; margin-bottom: 25px; line-height: 120%; }
.hero-title span { background: var(--premium-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 1.1rem; color: #a0aab2; margin-bottom: 40px; max-width: 500px; }

/* Визуал (Картинка с плашкой) */
.hero-visuals { z-index: 1; }

.hero-image-wrapper { 
    width: 500px; 
    max-width: 100%; 
    height: auto;
    position: relative; 
    z-index: 2;
}

.hero-image-wrapper img { 
    width: 100%; 
    height: auto; 
    object-fit: contain; 
    opacity: 1; 
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)); 
}

.experience-badge { position: absolute; bottom: -120px; left: -40px; padding: 20px 30px; display: flex; align-items: center; gap: 15px; z-index: 5; }
.experience-badge .num { font-size: 2.5rem; font-weight: bold; color: #0ac5d1; }
.experience-badge .text { font-size: 0.9rem; }

/* --- Кнопка и Соцсети --- */
.btn-premium { display: inline-flex; align-items: center; background: rgb(33 51 80); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); color: var(--white); padding: 8px 8px 8px 24px; border-radius: var(--radius-full); text-decoration: none; font-weight: 600; font-size: 1rem; transition: all 0.4s ease; cursor: pointer; }
.btn-premium .icon-circle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--premium-gradient); border-radius: 50%; margin-left: 20px; box-shadow: var(--shadow-neon); transition: transform 0.4s ease; }
.btn-premium:hover { box-shadow: 0 10px 25px rgba(10, 197, 209, 0.2); }
.btn-premium:hover .icon-circle svg { animation: spinIcon 2s linear infinite; }
@keyframes spinIcon { 100% { transform: rotate(360deg); } }

.social-icons { display: flex; gap: 12px; align-items: center; }
.social-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--white); transition: all 0.3s ease; }
.social-link:hover { background: #0ac5d1; border-color: #0ac5d1; box-shadow: var(--shadow-neon); transform: translateY(-3px); }

/* --- Прелоадер --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--dark-bg); z-index: 99999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.spinner { width: 50px; height: 50px; border: 3px solid rgba(255,255,255,0.1); border-top-color: #0ac5d1; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Волновой градиентный переход к следующему блоку --- */
.wave-divider {
    position: absolute;
    bottom: -1px; /* Скрываем микрощель */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
    pointer-events: none;
}
.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px; /* Высота волны */
}

/* --- АДАПТИВ --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .hero-visuals { opacity: 0.3; z-index: 0; pointer-events: none; }
}

@media (max-width: 768px) {
    .main-nav, .header-actions { display: none; } 
    .menu-toggle { display: block; } 
    .main-header { top: 10px; padding: 10px 20px; border-radius: 24px; }
    .header-logo { height: 50px; } 

    .hero-block { 
        flex-direction: column; 
        padding-top: 120px; 
        padding-bottom: 60px; /* Добавили отступ снизу, чтобы волна не перекрывала картинку */
        height: auto; 
        align-items: flex-start;
        overflow: visible;
    }
    
    .hero-title { font-size: 1.8rem; }
    .hero-desc { font-size: 1rem; margin-bottom: 30px; }
    
    .hero-visuals { 
        position: relative; 
        right: auto; 
        top: auto; 
        transform: none; 
        opacity: 1; 
        pointer-events: auto;
        width: 100%;
        margin-top: 40px;
        display: flex;
        justify-content: center;
    }
    
    /* Убрали высоту 350px и скругление углов, чтобы квадратная PNG встала идеально */
    .hero-image-wrapper { width: 100%; max-width: 400px; height: auto; }
    
    .experience-badge { left: 10px; bottom: -90px; padding: 15px; border-radius: 20px; }
    .experience-badge .num { font-size: 1.8rem; }
    
    .wave-divider svg { height: 70px; } /* Делаем волну чуть аккуратнее на телефонах */
}


/* --- Скрытие контактов в шапке на мобильных --- */
@media (max-width: 992px) {
    .desktop-contacts { display: none !important; }
}

/* --- Настройки логотипа в футере --- */
.footer-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .footer-logo-img {
        width: 100%;
        height: auto;
    }
}


.hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px; /* Квадрат лучше смотрится чуть компактнее, чем 16:9 */
    aspect-ratio: 1 / 1; /* Жестко задаем соотношение сторон 1к1 */
    border-radius: 40px; /* Премиальные закругленные углы */
    overflow: hidden; /* Скрываем острые углы видео */
    box-shadow: 0 25px 60px rgba(9, 197, 209, 0.2); /* Тень с оттенком акцента */
    background: #000; /* Фон до загрузки */
    border: 5px solid #09c5d1; /* Акцентная бирюзовая рамка */
    flex-shrink: 0; /* Не даем флексу сжимать квадрат */
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Видео заполнит квадрат полностью, лишнее обрежется */
    display: block;
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .hero-video-wrapper {
        border-radius: 25px;
        border-width: 3px;
        max-width: 100%; /* Чтобы на мобилке было по центру с отступами */
    }
    
    .hero-visuals {
        margin-top: 40px;
    }
}