/* === ПЕРЕМЕННЫЕ И ТЕМЫ === */
:root {
    --clr-primary-h: 184; --clr-primary-s: 70%; --clr-primary-l: 50%;
    --clr-primary: hsl(var(--clr-primary-h), var(--clr-primary-s), var(--clr-primary-l));
    --clr-accent-h: 345; --clr-accent-s: 85%; --clr-accent-l: 55%;
    --clr-accent: hsl(var(--clr-accent-h), var(--clr-accent-s), var(--clr-accent-l));
    --clr-text: #e0e0e0; --clr-text-light: #9ca3af;
    --clr-white: #ffffff; --clr-black: #000000;
    --clr-surface: rgba(18, 20, 28, 0.65);
    
    --clr-g1: rgba(0, 212, 255, 0.7); --clr-g2: rgba(255, 0, 106, 0.6); --clr-g3: rgba(104, 0, 255, 0.7);

    --font-head: 'Unbounded', sans-serif; --font-body: 'Manrope', sans-serif;
    
    --fs-h2: clamp(2.2rem, 5vw, 4rem);
    
    --transition-slow: 0.8s cubic-bezier(0.5, 0, 0.1, 1);
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-volume: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    
    --shadow-volume: 0 30px 60px rgba(0,0,0,0.4);
    --shadow-neumorphic: -10px -10px 30px rgba(255,255,255,0.03), 10px 10px 30px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 25px rgba(var(--clr-accent-h), var(--clr-accent-s), 50%, 0.5);
}

/* --- СБРОС --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; height: 100%; font-size: 16px; }
body { font-family: var(--font-body); color: var(--clr-text); line-height: 1.7; background: #010101; overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: opacity 0.5s ease; cursor: none; }
body.loading { overflow: hidden; opacity: 1; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); display: inline-block; cursor: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; color: var(--clr-white); }

/* --- УТИЛИТЫ --- */
.container { width: 92%; max-width: 1300px; margin: 0 auto; position: relative; z-index: 2; }
.section { padding: 120px 0; position: relative; }
.text-white { color: var(--clr-white) !important; }
.text-gray { color: var(--clr-text-light) !important; }
.text-center { text-align: center; }
.mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; } .mb-4 { margin-bottom: 2rem; }
.bordered-section { border-bottom: 1px solid rgba(255,255,255,0.03); }
.section-header h2 { font-size: var(--fs-h2); }
.badge { display: inline-block; padding: 10px 24px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--clr-primary); border-radius: 30px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.badge--color { background: linear-gradient(135deg, rgba(0,212,255,0.2) 0%, rgba(230,57,70,0.2) 100%); color: #fff; border: none; }
.badge--gold { background: rgba(255, 209, 102, 0.1); color: #ffd166; border-color: rgba(255, 209, 102, 0.2); }
.img-fluid { width: 100%; object-fit: cover; }

/* --- ОБЪЕМ И СТЕКЛО --- */
.bg-glass { background: var(--clr-surface); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.05); }
.volume-card { background: #13151c; border-radius: 20px; box-shadow: var(--shadow-volume); border: 1px solid rgba(255,255,255,0.02); transition: var(--transition-volume); transform-style: preserve-3d; perspective: 1000px; }
.volume-card:hover { box-shadow: var(--shadow-volume), var(--shadow-neumorphic); }

/* --- ЖИВОЙ ЦВЕТНОЙ ФОН --- */
.gradient-bg { width: 100vw; height: 100vh; position: fixed; overflow: hidden; top: 0; left: 0; z-index: -1; filter: blur(60px); transform: translateZ(0); }
.gradients-container { width: 100%; height: 100%; }
.gradient-bg div { position: absolute; width: 80%; height: 80%; top: 10%; left: 10%; border-radius: 50%; mix-blend-mode: color-dodge; animation-duration: 30s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; will-change: transform; }
.g1 { background: var(--clr-g1); opacity: 0.9; animation-name: moveVertical; }
.g2 { background: var(--clr-g2); opacity: 0.8; animation-name: moveInCircle; transform-origin: calc(50% - 300px); animation-delay: -2s; }
.g3 { background: var(--clr-g3); opacity: 0.9; animation-name: moveInCircle; transform-origin: calc(50% + 300px); animation-delay: -4s; }
.g4 { background: radial-gradient(circle at center, rgba(255, 209, 102, 0.6) 0%, transparent 50%); opacity: 0.8; animation-name: moveHorizontal; }
.interactive { background: var(--clr-primary); mix-blend-mode: screen; width: 100%; height: 100%; top: -50%; left: -50%; opacity: 0.5; }

@keyframes moveVertical { 0%, 100% { transform: translateY(-30%); } 50% { transform: translateY(30%); } }
@keyframes moveHorizontal { 0%, 100% { transform: translateX(-30%) translateY(-10%); } 50% { transform: translateX(30%) translateY(10%); } }
@keyframes moveInCircle { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- КРУГЛОЕ ЛОГО --- */
.logo-circle { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); border: 2px solid var(--clr-primary); transition: transform 0.3s ease; }
.header__logo:hover .logo-circle { transform: scale(1.1) rotate(5deg); }

/* --- КНОПКИ --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 18px 42px; font-weight: 700; font-family: var(--font-head); border-radius: 60px; cursor: none; transition: var(--transition-volume); border: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; position: relative; overflow: hidden; z-index: 1; transform-style: preserve-3d; }
.btn__text { position: relative; z-index: 2; color: #fff; pointer-events: none; transition: 0.6s ease; }
.btn__fill { position: absolute; top: 100%; left: 0; width: 100%; height: 100%; background: var(--clr-white); z-index: 1; border-radius: 50%; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.btn--primary { background: var(--clr-accent); color: white; box-shadow: var(--shadow-volume); }
.btn--primary:hover { background: #d62828; transform: translateY(-5px); box-shadow: 0 20px 40px rgba(230, 57, 70, 0.5); }
.btn--primary:hover .btn__text { color: var(--clr-dark); }
.glow-btn { box-shadow: var(--shadow-glow); animation: pulseGlow 2s infinite alternate; }
@keyframes pulseGlow { 0% { box-shadow: 0 0 15px rgba(230,57,70,0.4); } 100% { box-shadow: 0 0 35px rgba(230,57,70,0.8); } }
.btn--cta { background: rgba(255,255,255,0.05); color: var(--clr-white); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.btn--cta:hover { background: var(--clr-accent); border-color: var(--clr-accent); box-shadow: var(--shadow-glow); }
.btn--submit { width: 100%; background: #1a1c23; color: var(--clr-primary); border: 1px solid rgba(255,255,255,0.05); }
.btn--submit .btn__fill { background: var(--clr-accent); }
.btn--submit:hover { color: white; transform: scale(0.98); }

/* --- КАСТОМНЫЙ КУРСОР --- */
.cursor { position: fixed; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); display: none; transform-origin: center; transition: transform 0.1s linear; }
@media (pointer: fine) { .cursor { display: block; } }
.cursor__dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; box-shadow: 0 0 15px #fff; }
.cursor__ring { position: absolute; top: -16px; left: -16px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.5); border-radius: 50%; transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s, background 0.3s, mix-blend-mode 0.3s; }
.cursor.active .cursor__ring { width: 60px; height: 60px; top: -26px; left: -26px; background: var(--clr-white); border-color: transparent; mix-blend-mode: difference; }

/* --- ПУЛЕНЕПРОБИВАЕМЫЙ PRELOADER (Исчезнет сам 100%) --- */
.preloader { position: fixed; inset: 0; background: #050505; z-index: 9999; display: flex; justify-content: center; align-items: center; transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); animation: forceHide 0.8s cubic-bezier(0.77, 0, 0.175, 1) 2.5s forwards; }
body:not(.loading) .preloader { transform: translateY(-100%); pointer-events: none; }
.preloader__inner { text-align: center; }
.preloader__bar { width: 0; height: 2px; background: var(--clr-accent); margin-top: 20px; box-shadow: 0 0 15px var(--clr-accent); animation: preloaderBar 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes preloaderBar { to { width: 100%; } }
@keyframes forceHide { to { transform: translateY(-100%); pointer-events: none; visibility: hidden; } }

/* --- HEADER --- */
.header { position: fixed; width: 100%; top: 0; z-index: 1000; padding: 25px 0; transition: var(--transition-fast); }
.header.scrolled { background: rgba(5, 5, 5, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 15px 0; box-shadow: 0 10px 40px rgba(0,0,0,0.5); border-bottom: 1px solid rgba(255,255,255,0.05); }
.header__container { display: flex; justify-content: space-between; align-items: center; }
.logo__text { font-family: var(--font-head); font-weight: 900; color: white; text-transform: uppercase; letter-spacing: 1px; }
.logo__text span { color: var(--clr-primary); text-shadow: 0 0 15px rgba(0, 212, 255, 0.6); }
.nav__list { display: flex; gap: 30px; align-items: center; }
.nav__link { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; position: relative; color: #bbb; }
.nav__link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--clr-accent); transition: var(--transition-fast); }
.nav__link:hover, .active-link { color: white; }
.nav__link:hover::after, .active-link::after { width: 100%; box-shadow: 0 0 10px var(--clr-accent); }
.burger { display: none; }

/* --- ИДЕАЛЬНАЯ БЕГУЩАЯ СТРОКА (MARQUEE) --- */
.marquee-section { 
    padding: 30px 0; 
    overflow: hidden; 
    background: rgba(18, 20, 28, 0.8);
    border-top: 1px solid rgba(255,255,255,0.05); 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    white-space: nowrap;
    position: relative;
    display: flex;
}
.marquee { display: flex; }
.marquee__inner { display: flex; white-space: nowrap; animation: marquee 25s linear infinite; }
.marquee__inner span { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.5); padding-right: 30px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- HERO, GALERIE, FORMS И ПРОЧЕЕ --- */
.hero { padding-top: 100px; overflow: hidden; }
.hero__container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; }
.hero__title { line-height: 1.1; font-weight: 900; }
.hero__title span { color: transparent; background: linear-gradient(135deg, #00d4ff 0%, #ff006a 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 20px rgba(255,0,106,0.3)); -webkit-filter: drop-shadow(0 0 20px rgba(255,0,106,0.3)); }
.hero__actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; }

.hero__image-wrap { position: relative; }
.hero__image-inner { position: relative; border-radius: 25px; box-shadow: var(--shadow-volume); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.img-volume { width: 100%; object-fit: cover; border-radius: 25px; transition: var(--transition-volume); }
.hero__image-glow { position: absolute; bottom: -50px; left: 5%; width: 90%; height: 150px; background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.5) 0%, transparent 70%); filter: blur(40px); z-index: -1; pointer-events: none; }

.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.gallery__item { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-volume); border: 1px solid rgba(255,255,255,0.05); }
.gallery__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0, 212, 255, 0.4)); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.4s ease; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.gallery__overlay span { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; transform: translateY(30px); transition: 0.4s ease; border: 2px solid #fff; padding: 12px 25px; border-radius: 30px; }
.gallery__item:hover .gallery__overlay { opacity: 1; }
.gallery__item:hover .gallery__overlay span { transform: translateY(0); box-shadow: 0 0 20px rgba(255,255,255,0.3); }

/* --- ФОРМА КОНТАКТОВ --- */
.contact__form-wrap { background: rgba(20, 22, 30, 0.8); padding: 60px; border-radius: 40px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.05); max-width: 900px; margin: 0 auto; margin-top: 60px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form__group { margin-bottom: 30px; position: relative; }
.form__input { width: 100%; padding: 22px 25px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08); color: white; border-radius: 20px; font-family: var(--font-body); font-size: 1.05rem; transition: 0.3s; }
.form__input::placeholder { color: transparent; }
.form__input:focus { border-color: var(--clr-primary); box-shadow: 0 0 15px rgba(0, 212, 255, 0.2); background: rgba(0,0,0,0.5); }
.form__label { position: absolute; left: 25px; top: 22px; color: rgba(255,255,255,0.4); transition: 0.3s ease; pointer-events: none; font-weight: 500; }
.form__input:focus + .form__label, .form__input:not(:placeholder-shown) + .form__label { transform: translateY(-44px) scale(0.85); color: var(--clr-primary); font-weight: 700; background: #181a24; padding: 0 10px; left: 15px; border-radius: 5px; }
.form__textarea { resize: none; min-height: 180px; }

/* --- АНИМАЦИИ --- */
.reveal { opacity: 0; visibility: hidden; transition: 1s cubic-bezier(0.23, 1, 0.32, 1); will-change: transform, opacity; }
.reveal.active { opacity: 1; visibility: visible; transform: translate(0,0); }
.fade-up { transform: translateY(50px); }
.fade-right { transform: translateX(-50px); }
.fade-left { transform: translateX(50px); }
.fade-bottom { transform: translateY(-50px); }

.split-text span { display: inline-block; transform: translateY(100%); transition: transform 0.8s cubic-bezier(0.5, 0, 0.1, 1); }
.active .split-text span { transform: translateY(0); }

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {
    /* Убрали баг с display:none, теперь меню не скрыто, а просто спрятано за краем экрана */
    
    .burger { display: block; background: none; border: none; cursor: pointer; width: 30px; height: 20px; position: relative; z-index: 1001; }
    .burger__line { position: absolute; width: 100%; height: 2px; background: white; left: 0; transition: var(--transition-fast); }
    .burger__line:nth-child(1) { top: 0; } .burger__line:nth-child(2) { top: 9px; } .burger__line:nth-child(3) { bottom: 0; }
    .burger.active .burger__line:nth-child(1) { transform: rotate(45deg); top: 9px; }
    .burger.active .burger__line:nth-child(2) { opacity: 0; }
    .burger.active .burger__line:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }

    /* Добавили display: flex, чтобы пункты появились и встали ровно по центру */
    .nav { display: flex; position: fixed; top: 0; right: -100%; width: 80%; max-width: 400px; height: 100vh; background: rgba(5, 5, 5, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; padding: 100px 40px; border-left: 1px solid rgba(255,255,255,0.05); transition: var(--transition-slow); }
    .nav.active { right: 0; }
    .nav__list { flex-direction: column; gap: 30px; margin-bottom: 40px; text-align: center; }
    .nav__link { font-size: 1.3rem; }

    .hero__container, .about__grid { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .hero__actions { justify-content: center; }
    .hero__image-wrap { max-width: 600px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .form__row { grid-template-columns: 1fr; gap: 0; }
    .contact__form-wrap { padding: 40px 20px; }
}

/* --- ФИКС ДЛЯ МОБИЛЬНЫХ: Отключаем наезд блоков друг на друга --- */
@media (max-width: 1024px) {
    .parallax-element {
        transform: none !important; /* Убиваем параллакс на мобилках */
    }
    .about__gallery {
        margin-top: 30px !important; /* Даем блоку с видео дышать */
        margin-bottom: 30px !important;
    }
}

/* --- ФИКС ТЕЛЕФОНА И ПОЧТЫ В ОДНУ СТРОКУ --- */
@media (max-width: 480px) {
    .contact .btn {
        padding: 15px 10px !important; /* Уменьшаем внутренние отступы */
        font-size: 0.75rem !important; /* Уменьшаем размер шрифта */
        white-space: nowrap; /* Запрещаем перенос текста */
    }
    
    /* Если кнопки все равно слишком широкие, можно чуть уменьшить межбуквенное расстояние */
    .contact .btn__text {
        letter-spacing: 0.5px !important;
    }
}

/* --- УВЕЛИЧЕНИЕ РАЗМЕРА ТЕКСТА (Для читабельности) --- */
p.text-gray, 
p.text-white {
    font-size: 1.15rem; /* Увеличиваем базовый размер текста (примерно 18.5px) */
    line-height: 1.8;
}

/* На больших мониторах (ПК и ноутбуки) делаем текст еще крупнее */
@media (min-width: 1025px) {
    .about__text p.text-gray, 
    .hero__content p.text-gray,
    .volume-card p {
        font-size: 1.25rem; /* Около 20px - идеально для чтения */
    }
}

/* --- УВЕЛИЧЕНИЕ ТЕКСТА (ЖЕСТКИЙ ФИКС) --- */
.about__text p.text-gray, 
.hero__content p.text-gray,
.volume-card p.text-gray,
.volume-card p.text-white {
    font-size: 1.25rem !important; /* Увеличиваем до ~20px */
    line-height: 1.8 !important;
}

@media (max-width: 768px) {
    .about__text p.text-gray, 
    .hero__content p.text-gray,
    .volume-card p.text-gray {
        font-size: 1.1rem !important; /* На мобилках чуть меньше, чтобы влезало */
    }
}