/* ===== СБРОС И БАЗОВЫЕ НАСТРОЙКИ ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #080808;
    color: #FFFFFF;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

/* ===== ПОЛИГОНАЛЬНЫЙ ФОН DEUS EX ===== */
#deus-ex-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ===== АТМОСФЕРНОЕ СВЕЧЕНИЕ НА ФОНЕ ===== */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
    animation: float-glow 10s ease-in-out infinite alternate;
}
.glow-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: #FF6B35; }
.glow-2 { bottom: -10%; right: -10%; width: 60vw; height: 60vw; background: #FF3535; }

@keyframes float-glow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1.1; margin-bottom: 16px; }
h2 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 24px; text-transform: uppercase; }
h3 { font-size: 1.6rem; margin-bottom: 12px; }
.accent-orange { color: #FF6B35; }

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block; background-color: #FF6B35; color: #0A0A0A; font-weight: 600;
    padding: 16px 40px; border-radius: 40px; text-decoration: none; font-size: 1.1rem;
    border: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3); position: relative; overflow: hidden; z-index: 1;
}
.btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease; z-index: -1;
}
.btn:hover::before { left: 100%; }
.btn:hover { background-color: #FF8A5C; transform: scale(1.05); box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6); }

/* ===== ШАПКА И ЛОГОТИП ===== */
/* ===== ШАПКА И ЛОГОТИП ===== */
.header {
    padding: 30px 0; display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 60px; transition: all 0.4s ease; position: relative; z-index: 100;
}
.header.scrolled {
    padding: 15px 24px; background: rgba(10,10,10,0.85); backdrop-filter: blur(15px);
    border-radius: 40px; margin-top: 15px; border: 1px solid rgba(255,107,53,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); width: calc(100% - 48px); left: 24px;
}

/* 3D Логотип */
.logo {
    text-decoration: none; display: inline-block;
    perspective: 1000px; position: relative;
    animation: gta-float 4s ease-in-out infinite;
    z-index: 100;
}
.logo-placeholder { visibility: hidden; font-size: 2rem; font-weight: 700; white-space: nowrap; }
.logo-inner {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    transform-style: preserve-3d; animation: gta-spin 8s linear infinite;
}
.logo-face { position: absolute; top: 0; left: 0; font-size: 2rem; font-weight: 700; white-space: nowrap; }
.logo-face.front, .logo-face.back { backface-visibility: hidden; color: #FFFFFF; text-shadow: 0 0 12px rgba(255, 107, 53, 0.7); }
.logo-face.front span, .logo-face.back span { color: #FF6B35; }
.logo-face.front { transform: translateZ(5px); }
.logo-face.back { transform: rotateY(180deg) translateZ(5px); }
.logo-face.mid { color: #555555; }
.logo-face.mid span { color: #8A3315; }

@keyframes gta-spin { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
@keyframes gta-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.nav-links { display: flex; gap: 40px; font-weight: 500; }
.nav-links a { color: #FFFFFF; text-decoration: none; cursor: pointer; transition: color 0.3s; }
.nav-links a:hover { color: #FF6B35; text-shadow: 0 0 10px rgba(255,107,53,0.5); }

.header-btn {
    background: transparent; color: #FFFFFF; padding: 10px 24px; border-radius: 40px;
    font-weight: 600; text-decoration: none; border: 1.5px solid #FF6B35; transition: all 0.3s;
}
.header-btn:hover { background: #FF6B35; color: #0A0A0A; box-shadow: 0 0 15px rgba(255,107,53,0.4); }

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ===== ГЛАВНЫЙ ЭКРАН ===== */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 120px; }
.hero-subtitle { font-size: 1.4rem; color: #A0A0A0; margin-bottom: 32px; border-left: 4px solid #FF6B35; padding-left: 20px; }
.hero-stats { display: flex; gap: 40px; margin: 40px 0 30px; }
.stat-number { font-size: 2.2rem; font-weight: 700; color: #FF6B35; display: block; }

/* ОБНОВЛЕННАЯ РАМКА С ФОТО (Идеально вписанная) */
.hero-image {
    background: radial-gradient(circle at center, rgba(255,107,53,0.15) 0%, rgba(10,10,10,0.4) 100%);
    border-radius: 40px;
    height: 550px; /* Увеличенная рамка для масштаба */
    border: 1px solid rgba(255,107,53,0.3);
    backdrop-filter: blur(10px);
    transform: perspective(1000px) rotateY(-5deg);
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden; /* Строго внутри рамки */
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Прижимаем к низу */
    position: relative;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(255,107,53,0.2);
}

.hero-image img {
    height: 95%; /* Небольшой отступ сверху для воздуха */
    width: 100%; /* Фото не выйдет за пределы рамки по ширине */
    object-fit: contain; /* Сохраняем пропорции, фото вписывается целиком */
    object-position: bottom center; /* Строго по центру внизу рамки */
    filter: drop-shadow(0px 0px 20px rgba(255, 107, 53, 0.3)); /* Мягкое неоновое свечение */
    animation: imageAppear 1s ease-out forwards;
    opacity: 0;
}

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

/* ===== СТИЛИ ДЛЯ АРХИВА И ДОСЬЕ ===== */
.dossier-card {
    background: rgba(10,10,10,0.8); border-left: 4px solid #FF6B35;
    padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.05); border-right: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 80px;
    backdrop-filter: blur(10px);
}
.dossier-card p { font-size: 1.15rem; color: #E0E0E0; margin-bottom: 15px; }
.dossier-card strong { color: #FF6B35; }

.archive-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.archive-links a {
    color: #A0A0A0; text-decoration: none; display: flex; gap: 12px;
    font-size: 1.05rem; transition: all 0.3s ease; line-height: 1.4;
}
.archive-links a span { color: #FF6B35; font-size: 1.2rem; transition: transform 0.3s ease; }
.archive-links a:hover { color: #FFFFFF; transform: translateX(8px); }
.archive-links a:hover span { transform: scale(1.2); text-shadow: 0 0 10px rgba(255,107,53,0.8); }

/* ===== КАРТОЧКИ И БЛОКИ ===== */
.card, .service-card {
    background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border-radius: 24px;
    padding: 32px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.4s ease;
}
.card:hover, .service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,107,53,0.5);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.15);
}

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin: 50px 0; }
.service-card { border-radius: 30px; padding: 40px 30px; display: flex; flex-direction: column; justify-content: space-between; }
.price { font-size: 2rem; font-weight: 700; color: #FFFFFF; margin: 25px 0; }
.price small { font-size: 1rem; color: #A0A0A0; font-weight: 400; }

.provocation-block { background: linear-gradient(135deg, rgba(255,107,53,0.1) 0%, rgba(10,10,10,0.9) 100%); border-radius: 60px; padding: 100px 40px; text-align: center; margin: 100px 0; border: 1px solid rgba(255,107,53,0.2); }

.footer { background: rgba(255,255,255,0.02); border-radius: 60px 60px 0 0; padding: 80px 0 40px; margin-top: 100px; border-top: 1px solid rgba(255,107,53,0.2); position: relative; z-index: 2; }
.contacts { display: flex; justify-content: center; gap: 50px; margin-top: 50px; flex-wrap: wrap; }
.contact-link { display: flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; padding: 12px 25px; border-radius: 50px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.contact-link:hover { color: #0A0A0A; background: #FF6B35; box-shadow: 0 0 15px rgba(255,107,53,0.4); }

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 1000; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.modal.active { display: flex; opacity: 1; }

.modal-content {
    background: #1A1A1A; border-radius: 30px; padding: 40px; max-width: 600px; width: 90%; max-height: 85vh; overflow-y: auto; position: relative;
    transform: scale(0.8); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: modal-glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes modal-glow-pulse {
    0% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.05); border: 1px solid rgba(255, 107, 53, 0.3); }
    100% { box-shadow: 0 0 40px rgba(255, 107, 53, 0.25); border: 1px solid #FF6B35; }
}

.modal.active .modal-content { transform: scale(1); }

.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #FFFFFF; font-size: 2.5rem; cursor: pointer; line-height: 1; transition: 0.3s; }
.modal-close:hover { color: #FF6B35; transform: rotate(90deg); }

/* ===== ФОРМА АНКЕТЫ ===== */
.booking-form { text-align: left; margin-top: 15px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: #A0A0A0; margin-bottom: 8px; font-size: 0.95rem; }
.optional-label { color: #666; font-size: 0.85rem; font-weight: normal; margin-left: 5px; }

.form-group input[type="text"], .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,107,53,0.3);
    background: rgba(255,255,255,0.05); color: #FFF; font-size: 1rem; outline: none;
    transition: all 0.3s ease; font-family: inherit;
}

.form-group input[type="text"]:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #FF6B35;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 20px rgba(255,107,53,0.3);
}

.form-group select option { background: #1A1A1A; color: #FFF; }
.radio-group { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.radio-group label { color: #FFF; display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; font-size: 1rem; }
.radio-group input[type="radio"] { accent-color: #FF6B35; width: 20px; height: 20px; cursor: pointer; }

/* ===== АДАПТИВ ===== */
@media (max-width: 800px) {
    .hero, .services-grid { grid-template-columns: 1fr; }
    .header { flex-direction: column; align-items: flex-start; padding: 20px 0; }
    .nav-links { flex-wrap: wrap; gap: 20px; }
    .hero-image { height: 350px; order: -1; transform: none; }
    .provocation-block { padding: 60px 24px; }
    .header.scrolled { width: 100%; left: 0; border-radius: 0; margin-top: 0; }
}

/* ===== ТАРИФЫ И НАСТАВНИЧЕСТВО ===== */
.mentorship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.tariff-card {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tariff-card h4 {
    color: #FFF;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.tariff-card p {
    color: #A0A0A0;
    margin-bottom: 30px;
    line-height: 1.6;
    flex-grow: 1;
}

.tariff-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 25px;
}

/* Выделенный премиум-тариф */
.premium-card {
    background: linear-gradient(145deg, rgba(255,107,53,0.1) 0%, rgba(0,0,0,0.6) 100%);
    border: 1px solid #FF6B35;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255,107,53,0.15);
    transform: translateY(-10px);
}

.premium-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(255,107,53,0.25);
}

.premium-card .tariff-price {
    color: #FF6B35;
}

/* Плашка ХИТ */
.hit-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #FF6B35;
    color: #000;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 800;
    transform: rotate(45deg);
    letter-spacing: 1px;
    z-index: 2;
}

/* Кнопки для тарифов */
.btn-outline {
    padding: 15px 30px;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    background: transparent;
    border: 1px solid #FF6B35;
    color: #FF6B35;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #FF6B35;
    color: #000;
}

.btn-solid {
    padding: 15px 30px;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    background: #FF6B35;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-solid:hover {
    background: #FF8A5C;
    transform: scale(1.02);
}
