/* --- style.css --- */
:root {
    /* 1. Глубокий Navy Blue: Основа, стратегия, интеллект */
    --primary: #0f172a;      
    
    /* 2. Глубокий Синий (Deep Blue): Акцент, авторитет, институциональное доверие */
    --accent: #1e40af;       /* Насыщенный глубокий синий */
    --accent-hover: #1e3a8a; /* Еще темнее при наведении */
    --accent-light: #eff6ff; /* Очень светлый синий для фонов */
    
    /* 3. Графит/Темно-серый: Структура, серьезность, власть */
    --text-main: #18181b;    
    --text-body: #3f3f46;    
    --text-light: #71717a;   
    
    /* Фоны */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #020617;      /* Почти черный с холодным синим подтоном */
    --glass: rgba(255, 255, 255, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; } /* Для работы Lenis */

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* --- КАСТОМНЫЙ КУРСОР (Глубокий синий) --- */
.cursor-dot {
    width: 8px; height: 8px; background-color: var(--accent);
    border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999;
}
.cursor-outline {
    width: 40px; height: 40px; border: 1px solid var(--accent);
    border-radius: 50%; position: fixed; pointer-events: none; z-index: 9998;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}
body:hover .cursor-outline.hovered {
    width: 60px; height: 60px; background-color: rgba(30, 64, 175, 0.1); border-color: transparent;
}

/* --- HEADER --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: var(--glass); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled { padding: 12px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.2rem; font-weight: 800; color: var(--primary); letter-spacing: 0.05em; text-transform: uppercase; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-body); position: relative; text-decoration: none; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* --- КНОПКИ (Magnetic, Deep Blue) --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: var(--accent); 
    color: #ffffff; /* Базовый белый цвет текста */
    border-radius: 4px; font-weight: 600; border: none; cursor: pointer;
    text-decoration: none; /* Убираем подчеркивание для ссылок-кнопок */
    transition: transform 0.2s, box-shadow 0.3s, background-color 0.3s;
}

/* КРИТИЧЕСКИ ВАЖНО: принудительно белый цвет для кнопок-ссылок (включая "Связаться" в меню) */
a.btn {
    color: #ffffff !important;
}

.btn:hover { 
    background: var(--accent-hover); 
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3); 
    color: #ffffff !important; /* Сохраняем белый при наведении */
}

}

/* --- ОБЩИЕ АНИМАЦИИ (GSAP Targets) --- */
.reveal-up { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.04) 0%, transparent 40%),
                linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding-top: 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: var(--primary);
    line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.03em;
}
.hero-text h1 span { color: var(--accent); }
.hero-text p { font-size: 1.25rem; color: var(--text-light); margin-bottom: 40px; max-width: 540px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image-wrapper {
    position: relative; border-radius: 8px; overflow: hidden;
    box-shadow: 24px 24px 0px var(--bg-light), 0 20px 40px rgba(0,0,0,0.1);
}
.hero-image-wrapper img { width: 100%; height: auto; display: block; transition: transform 0.6s ease; }
.hero-image-wrapper:hover img { transform: scale(1.03); }

/* --- PAGE HEADERS --- */
.page-header { padding: 160px 0 80px; text-align: center; background: var(--bg-light); }
.page-header h1 { font-size: 3rem; color: var(--primary); margin-bottom: 16px; }
.page-header .line { width: 60px; height: 3px; background: var(--accent); margin: 0 auto; }

/* --- BENTO GRID --- */
.bento-section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 16px; }
.section-header .line { width: 60px; height: 3px; background: var(--accent); margin: 0 auto; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 280px); gap: 24px; }
.bento-card {
    background: var(--bg-light); border: 1px solid rgba(0,0,0,0.04);
    border-radius: 12px; padding: 32px; display: flex; flex-direction: column;
    justify-content: space-between; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.bento-card:hover { 
    transform: translateY(-8px); 
    border-color: rgba(30, 64, 175, 0.3); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.06); 
}
.bento-card.large { grid-column: span 2; }
.bento-card h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 12px; }
.bento-card p { color: var(--text-light); font-size: 1rem; }
.bento-icon { 
    width: 48px; height: 48px; background: var(--accent-light); 
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: var(--accent); margin-bottom: 20px;
}

/* --- SPLIT SCREEN (About) --- */
.split-section { padding: 100px 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-img { border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- STATS --- */
.stats-section { padding: 80px 0; background: var(--primary); color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item h3 { font-size: 3.5rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.stat-item p { font-size: 1rem; color: #94a3b8; font-weight: 500; }

/* --- TOPIC TAGS (Speaking) --- */
.tags-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.topic-tag {
    background: var(--accent-light); color: var(--accent);
    border: 1px solid rgba(30, 64, 175, 0.2); padding: 10px 20px;
    border-radius: 4px; font-size: 0.95rem; font-weight: 600; transition: 0.3s;
}
.topic-tag:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* --- CONTACT FORM --- */
.contact-section { padding: 100px 0; max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--primary); }
.form-group input, .form-group textarea {
    width: 100%; padding: 16px; border: 1px solid #e2e8f0; border-radius: 4px;
    font-family: inherit; font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus { 
    outline: none; 
    border-color: var(--accent); 
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* --- FOOTER --- */
footer { background: var(--bg-dark); color: #94a3b8; padding: 80px 0 40px; border-top: 3px solid var(--accent); margin-top: auto; }
.footer-content { text-align: center; }
.footer-content h2 { color: white; font-size: 2rem; margin-bottom: 24px; }
.social-links { display: flex; justify-content: center; gap: 24px; margin: 32px 0; }
.social-links a { color: white; transition: color 0.3s; display: flex; }
.social-links a:hover { color: var(--accent); }

/* --- КНОПКА МОБИЛЬНОГО МЕНЮ (скрыта на ПК) --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {
    .hero-grid, .split-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .hero-image-wrapper { max-width: 400px; margin: 0 auto; box-shadow: 16px 16px 0px var(--bg-light); }
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .bento-card.large { grid-column: span 1; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .hero-text h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    /* Показываем кнопку-гамбургер */
    .mobile-menu-btn { display: flex; }
    
    /* Меню становится выпадающим */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 20px 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 15px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    /* Открытое состояние меню */
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        width: 100%;
        text-align: center;
    }
    
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a::after { display: none; }
    .nav-links a.active { color: var(--accent); font-weight: 700; }

    /* Анимация крестика */
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

    /* Уменьшаем отступы и шрифты */
    .page-header { padding: 120px 0 60px; }
    .page-header h1 { font-size: 2rem; }
    .section-header h2 { font-size: 1.8rem; }
    .bento-section, .split-section { padding: 60px 0; }
    .hero { padding-top: 100px; min-height: auto; padding-bottom: 60px; }
    .hero-text h1 { font-size: 2rem; }
    .hero-text p { font-size: 1.1rem; }
    
    /* Сетки в одну колонку */
    .stats-grid { grid-template-columns: 1fr; gap: 30px; }
    .stat-item h3 { font-size: 2.5rem; }
    
    /* Сетка фото в спикерстве */
    .speaking-photo-grid { grid-template-columns: 1fr !important; }
    
    /* Отключаем кастомный курсор */
    .cursor-dot, .cursor-outline { display: none !important; }
    
    /* Уменьшаем футер */
    footer { padding: 60px 0 30px; }
    .footer-content h2 { font-size: 1.5rem; }
    
    /* Контактная форма */
    .contact-section { padding: 60px 20px; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.7rem; }
    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .bento-card { padding: 24px; }
    .bento-card h3 { font-size: 1.2rem; }
    .page-header h1 { font-size: 1.7rem; }
}