/* ============================================
   1. НАСТРОЙКИ И ЦВЕТА
   ============================================ */
:root {
    --primary-bg: #0f172a;       
    --primary-accent: #3b82f6;   
    --secondary-accent: #0ea5e9; 
    
    --text-white: #ffffff;
    --text-muted: #cbd5e1;
    
    --glass-bg: rgba(15, 23, 42, 0.6); 
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.9) 0%, rgba(30, 58, 138, 0.85) 100%),
                url('https://images.unsplash.com/photo-1556761175-b413da4baf72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ЛАВА АНИМАЦИЯ */
.background-animation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none; overflow: hidden;
}

.blob {
    position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: 0.5;
    animation: float 25s infinite alternate;
}

.blob-1 { top: -10%; left: -10%; width: 60vh; height: 60vh; background: #1e3a8a; }
.blob-2 { bottom: -10%; right: -10%; width: 50vh; height: 50vh; background: #2563eb; animation-delay: -5s; }
.blob-3 { top: 40%; left: 20%; width: 40vh; height: 40vh; background: #0ea5e9; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ТЕКСТОВОЕ СВЕЧЕНИЕ (НОВОЕ) */
.text-glow {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 30px rgba(59, 130, 246, 0.3);
}

/* ============================================
   3. ШАПКА
   ============================================ */
.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(2, 6, 23, 0.95);
    padding: 5px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.navbar {
    display: flex; justify-content: space-between; align-items: center;
    height: 70px;
}

/* ЛОГОТИП С ВЫРАВНИВАНИЕМ */
.logo {
    display: flex; 
    align-items: center; /* Центрируем иконку и текст по вертикали */
    gap: 12px;
    text-decoration: none; 
    color: white; font-weight: 700; font-size: 1.4rem;
}

.logo-image {
    width: 48px; 
    height: 48px; 
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.logo:hover .logo-image { 
    transform: rotate(360deg);
    border-color: var(--secondary-accent);
}

.logo-accent { color: var(--secondary-accent); }

.nav-menu { display: flex; list-style: none; gap: 30px; }

.nav-menu a {
    text-decoration: none; color: var(--text-muted); font-weight: 500;
    transition: var(--transition); position: relative; font-size: 16px;
}

.nav-menu a.active, .nav-menu a:hover { color: white; }
.nav-menu a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--secondary-accent); transition: width 0.3s;
}
.nav-menu a:hover::after { width: 100%; }

/* ВЫРАВНИВАНИЕ ФЛАГА (ИСПРАВЛЕНО) */
.nav-controls { 
    display: flex; 
    align-items: center; /* Строго по центру */
    gap: 15px; 
    height: 100%; /* На всю высоту навбара */
}

.header-flag {
    display: flex;
    align-items: center; /* Флаг строго по центру */
    justify-content: center;
}

.cz-flag { 
    display: block; /* Убираем лишние отступы снизу картинки */
    width: 32px; 
    height: auto; 
    border-radius: 4px; 
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.menu-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 5px; }

/* ============================================
   4. ГЕРОЙ (HERO)
   ============================================ */
.hero {
    min-height: 100vh;
    padding-top: 70px;
    display: flex; align-items: center;
}

.hero-content { text-align: center; width: 100%; max-width: 900px; margin: 0 auto; }

.hero-title {
    font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 25px;
    /* Свечение добавлено через класс .text-glow выше, но здесь градиент текста */
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    list-style: none; margin-bottom: 40px; color: #e2e8f0; font-size: 1.4rem;
}
.hero-subtitle li { display: inline-block; margin: 0 20px; }
.hero-subtitle i { color: var(--secondary-accent); margin-right: 10px; }

.hero-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.btn {
    padding: 16px 36px; border-radius: 50px; font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px; transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    color: white; box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); border: none;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(59, 130, 246, 0.8); }

.btn-secondary {
    background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }

.pulse-btn { animation: pulse-glow 2s infinite; }
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* ============================================
   5. СЕКЦИИ
   ============================================ */
.features, .process, .application { padding: 90px 0; }
.section-title {
    text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: white;
}

.features-grid, .process-steps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;
}

.feature-card, .step {
    background: var(--glass-bg); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border); border-radius: 20px; padding: 35px 30px;
    text-align: center; transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@media (hover: hover) {
    .feature-card:hover, .step:hover {
        transform: translateY(-10px); 
        background: rgba(30, 58, 138, 0.6); 
        border-color: var(--secondary-accent);
    }
}

.feature-icon, .step-number {
    width: 70px; height: 70px; margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(14,165,233,0.1));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: white; border: 1px solid rgba(255,255,255,0.1);
}
.step-number { font-weight: 800; color: var(--secondary-accent); border: 2px solid var(--secondary-accent); background: transparent; }

.feature-tag {
    display: inline-block; padding: 5px 12px; background: rgba(16, 185, 129, 0.2);
    color: #34d399; border-radius: 15px; font-size: 0.8rem; margin-top: 15px;
}

.service-list { text-align: left; list-style: none; color: var(--text-muted); }
.service-list li { margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 5px; }

/* ============================================
   6. ФОРМА
   ============================================ */
.application-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.application-text { 
    background: rgba(0,0,0,0.3); padding: 25px; border-radius: 15px;
    margin-bottom: 30px; border-left: 4px solid var(--secondary-accent);
    color: #e2e8f0;
}

.application-stats { display: flex; gap: 40px; }
.stat h3 { font-size: 2.8rem; color: var(--secondary-accent); line-height: 1; font-weight: 800; }
.stat p { font-size: 1rem; color: var(--text-muted); }

.application-form {
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15); padding: 35px; border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.form-group { position: relative; margin-bottom: 20px; }

.form-group input, .form-group select {
    width: 100%; padding: 16px 16px 16px 45px;
    background: #f8fafc;
    border: none; border-radius: 12px;
    font-size: 16px; color: #0f172a; 
}
.form-group input:focus, .form-group select:focus { outline: 2px solid var(--secondary-accent); }

.input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #64748b; }

.checkbox-group { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.checkbox-group input { width: auto; margin: 0; }
.checkbox-group label { font-size: 0.9rem; color: #cbd5e1; }

.submit-application {
    width: 100%; padding: 18px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    color: white; font-weight: 700; font-size: 16px; cursor: pointer;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}
.submit-application:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(14, 165, 233, 0.5); }

/* ============================================
   7. ОБНОВЛЕННЫЙ ПОДВАЛ (GRID)
   ============================================ */
.footer {
    background: rgba(0,0,0,0.8); /* Более темный подвал */
    padding: 70px 0 20px; 
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1); 
}

.footer-grid-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr; /* Пропорции колонок */
    gap: 40px;
}

.footer-desc {
    margin-top: 20px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links-col h4, .footer-contacts-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-accent);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-links-col ul, .footer-contacts-col ul {
    list-style: none;
}

.footer-links-col ul li {
    margin-bottom: 12px;
}

.footer-links-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}
.footer-links-col a:hover { color: var(--secondary-accent); padding-left: 5px; }

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.contact-list i {
    color: var(--secondary-accent);
    margin-top: 5px;
}

.contact-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom { 
    margin-top: 50px; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    text-align: center;
    font-size: 0.9rem; 
    color: #64748b; 
}

/* Плавающие кнопки */
.quick-contact {
    position: fixed; bottom: 30px; right: 25px; z-index: 2000;
    display: flex; flex-direction: column; gap: 15px;
}

.contact-btn {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 30px; text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}
.contact-btn:hover { transform: scale(1.1); }
.whatsapp { background: #25D366; }
.telegram { background: #0088cc; }

/* ============================================
   8. АДАПТИВНОСТЬ
   ============================================ */
@media (min-width: 1024px) {
    .container { max-width: 1200px; }
    .hero-title { font-size: 4rem; }
}

@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .application-wrapper { gap: 30px; }
}

@media (max-width: 768px) {
    /* Мобильное меню */
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed; top: 70px; left: 0; width: 100%; height: 0;
        background: rgba(15, 23, 42, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; align-items: center; gap: 0;
        overflow: hidden; transition: height 0.3s ease;
    }
    .nav-menu.active { height: calc(100vh - 70px); padding-top: 40px; }
    .nav-menu li { width: 100%; text-align: center; }
    .nav-menu a { display: block; padding: 20px; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.05); }

    .hero { text-align: center; padding-top: 100px; padding-bottom: 60px; min-height: auto; }
    .hero-title { font-size: 2.2rem; }
    
    /* Тексты под заголовком в столбик на телефоне */
    .hero-subtitle li { display: block; margin: 10px 0; }
    
    .btn { width: 100%; justify-content: center; }
    .section-title { font-size: 2rem; margin-bottom: 30px; }
    .application-wrapper { grid-template-columns: 1fr; }
    .application-form { padding: 25px 20px; }
    
    /* Подвал на мобильном в 1 колонку */
    .footer-grid-columns { grid-template-columns: 1fr; gap: 30px; }
    .quick-contact { bottom: 20px; right: 20px; }
    .contact-btn { width: 50px; height: 50px; font-size: 24px; }
}