/* =================================================================== */
/* ================ IT-SCHOOL FINAL STYLE - MODERN v3.0 ============== */
/* =================================================================== */

/* =============== ПЕРЕМЕННЫЕ =============== */
:root {
    /* Светлая тема */
    --color-bg: #f8f9fa;
    --color-surface: #ffffff;
    --color-bg-alt: #f0f6ff; /* Для секции "История успеха" */
    
    /* Темная тема для футера и контактов */
    --color-dark-bg: #111827;
    --color-dark-surface: #1f2937;
    --color-dark-text: #adb5bd;
    --color-dark-heading: #ffffff;
    --color-dark-border: #495057;

    /* Акценты */
    --color-primary: #3A86FF;
    --color-accent: #8338EC;
    
    /* Тени */
    --color-primary-glow: rgba(58, 134, 255, 0.2);
    --color-accent-glow: rgba(131, 56, 236, 0.2);

    /* Текст */
    --color-text: #212529;
    --color-text-dim: #6c757d;
    
    /* Прочее */
    --color-border: #dee2e6;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --transition: all 0.3s ease;
    --radius: 12px;
}

/* =============== БАЗОВЫЕ СТИЛИ =============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ЗАМЕНИ НА ЭТО: */
body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;

    background: linear-gradient(-45deg, #e0eafc, #f3e7ff, #f8f9fa, #dfe9f3);
    background-size: 400% 400%;
    animation: shimmer 20s ease infinite;

}
.container { width: min(1200px, 100% - 3rem); margin-inline: auto; }

/* =============== HEADER =============== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--color-primary); text-decoration: none; letter-spacing: -1px; }
.nav { display: flex; gap: 2rem; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--color-text-dim); text-decoration: none; transition: var(--transition); }
.nav a:hover { color: var(--color-primary); }

/* =============== КНОПКИ =============== */
.btn { padding: 0.8rem 1.8rem; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: var(--transition); border: none; font-size: 1rem; text-decoration: none; }
.btn--primary { background: var(--color-primary); color: #ffffff; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
.btn--outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #ffffff; }

/* =============== ГЛАВНЫЙ ЭКРАН (HERO) =============== */
.hero { padding: 120px 0 80px; text-align: left; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(2.5rem, 6vw, 3.8rem); line-height: 1.2; margin-bottom: 1.5rem; color: var(--color-text); height: 4.8em; }
#typed-text { color: var(--color-accent); }
#typed-text::after { content: '_'; display: inline-block; animation: blink 0.7s infinite; color: var(--color-accent); }
@keyframes blink { 50% { opacity: 0; } }
.hero-subtitle { font-size: 1.25rem; color: var(--color-text-dim); max-width: 500px; margin-bottom: 2.5rem; }
.hero-slideshow { position: relative; width: 100%; height: 400px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--color-border); background: #e9ecef; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); }
.hero-slideshow img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: fadeSlide 16s infinite ease-in-out; }
.hero-slideshow img:nth-child(1) { animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: 4s; }
.hero-slideshow img:nth-child(3) { animation-delay: 8s; }
.hero-slideshow img:nth-child(4) { animation-delay: 12s; }
@keyframes fadeSlide { 0% { opacity: 0; transform: scale(1.05); } 10% { opacity: 1; transform: scale(1); } 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.05); } }

/* =============== ОБЩИЕ СТИЛИ СЕКЦИЙ =============== */
section { padding: 80px 0; position: relative; }
.section-title { font-family: 'Orbitron', sans-serif; font-size: 2.5rem; margin-bottom: 1rem; text-align: center; color: var(--color-text); }
.section-subtitle { font-size: 1.2rem; text-align: center; color: var(--color-text-dim); margin-bottom: 4rem; max-width: 700px; margin-inline: auto; }

/* ========================================================== */
/* ===== ИНТЕРАКТИВНАЯ ПРОГРАММА v5.0 (FINAL FIX) ===== */
/* ========================================================== */

.curriculum-interactive {
    padding: 80px 0;
}

.curriculum-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 5rem;
    margin-top: 5rem;
    position: relative;
    align-items: center;
}

.curriculum-text-list {
    position: relative;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    /* Убираем justify-content, чтобы управлять отступами вручную */
}

.curriculum-step {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    transition: background-color 0.3s ease;
    cursor: pointer;
    /* ГЛАВНОЕ: Задаем конкретный, небольшой отступ */
    margin-bottom: 0.1rem; 
}
.curriculum-step:last-child {
    margin-bottom: 0; /* Убираем отступ у последнего элемента */
}

.curriculum-step.is-active { background-color: var(--color-bg-alt); }
.curriculum-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}.curriculum-step p { display: none; }

.loader-dot {
    position: absolute; left: -15px; top: 0; width: 30px; height: 30px;
    border: 3px solid var(--color-primary); border-top-color: transparent;
    border-radius: 50%; transition: top 0.4s ease-in-out;
    animation: spin 1s linear infinite; opacity: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Правая колонка */
.curriculum-image-sticky {
    position: sticky; /* Возвращаем липкость, чтобы при скролле картинка оставалась на месте */
    top: 150px;
}

/* Единый контейнер для картинки и текста */
.image-caption-container {
    position: relative;
    width: 100%;
    /* ГЛАВНОЕ: Железно задаем пропорции 16:9 */
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

#curriculum-main-image {
    width: 100%; height: 100%;
    object-fit: cover;
}

.caption-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 2; padding: 2.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}

#image-caption-text {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.5;
    overflow-wrap: break-word;
}

#image-caption-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
}

.step-link {
    text-decoration: none; /* Убираем подчеркивание */
    color: inherit; /* Наследуем цвет текста */
}
.step-link:hover h3 {
    color: var(--color-primary); /* При наведении подсвечиваем заголовок */
}


/* =============== КАРУСЕЛЬ ИНСТРУМЕНТОВ =============== */
.tools-carousel { padding: 60px 0; background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); position: relative; overflow: hidden; }
.tools-carousel::before, .tools-carousel::after { content: ''; position: absolute; top: 0; width: 15%; height: 100%; z-index: 2; }
.tools-carousel::before { left: 0; background: linear-gradient(to right, var(--color-surface), transparent); }
.tools-carousel::after { right: 0; background: linear-gradient(to left, var(--color-surface), transparent); }
.tools-track { display: flex; gap: 80px; white-space: nowrap; animation: scrollLeft 40s linear infinite; }
.tools-track:hover { animation-play-state: paused; }
.tool-item { display: flex; flex-direction: column; align-items: center; gap: 1rem; min-width: 150px; }
.tool-item img { height: 80px; width: auto; max-width: 150px; object-fit: contain; transition: var(--transition); opacity: 0.6; }
.tool-item:hover img { transform: scale(1.1); opacity: 1; }
.tool-item span { font-size: 0.9rem; font-weight: 500; color: var(--color-text-dim); transition: var(--transition); }
.tool-item:hover span { color: var(--color-text); }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =============== КАРТОЧКИ (ДЛЯ ОСТАЛЬНЫХ СЕКЦИЙ) =============== */
.why-grid, .philosophy-cards, .freedom-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.why-card, .philosophy-card, .freedom-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 2rem; text-align: center; transition: var(--transition); overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
.why-card:hover, .philosophy-card:hover { transform: translateY(-5px); border-color: var(--color-primary); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.freedom-card:hover { transform: translateY(-5px); border-color: var(--color-accent); box-shadow: 0 8px 25px var(--color-accent-glow); }
.freedom-icon { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1; }
.why-card img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; }

/* =============== СЕКЦИЯ "ИСТОРИЯ УСПЕХА" =============== */
.success-story-section { padding: 80px 0; background: var(--color-bg-alt); }
.success-story-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.success-story-image img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); }
.success-story-text h2 { font-family: 'Orbitron', sans-serif; font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--color-text); }
.success-story-text p { font-size: 1.1rem; color: var(--color-text-dim); line-height: 1.7; margin-bottom: 2rem; }

/* ========================================================== */
/* == "WHY US" v4.0 (TRUE RANDOM TRANSITIONS) - STYLES == */
/* ========================================================== */

.why-us-interactive { padding-bottom: 100px; }
.why-us-content { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 10rem; }
.why-us-sticky-visuals { position: sticky; top: 150px; height: 80vh; }

.why-us-image-container {
    width: 100%; height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    position: relative;
    background: #000; /* Черный фон на случай "пробелов" в анимации */
}

/* Стили для обеих картинок кросс-фейда */
.why-us-image {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ============================================= */
/* Стили для МОЗАИКИ */
/* ============================================= */
.mosaic-container {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 5; /* Поверх всех картинок */
    display: grid;
    /* JS будет менять количество колонок */
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: repeat(20, 1fr);
    pointer-events: none; /* Не мешает мышке */
}

.mosaic-tile {
    /* Теперь это просто серый квадратик */
    background-color: #e9ecef; /* Используем светлый, нейтральный серый */
    opacity: 0; /* Изначально плитки невидимы */
}


/* Текст (без изменений) */
.why-us-text-column { padding-top: 10vh; padding-bottom: 10vh; }
.why-us-step { padding: 2rem 0; margin-bottom: 45vh; opacity: 0.3; transition: opacity 0.4s ease; }
.why-us-step.is-active { opacity: 1; }
.why-us-step h3 { font-family: 'Orbitron', sans-serif; font-size: 2rem; margin-bottom: 1rem; }
.why-us-step p { font-size: 1.1rem; line-height: 1.7; color: var(--color-text-dim); }


/* ========================================================== */
/* ========= "PHILOSOPHY" SLIDER v5.0 (THE FINAL) ========= */
/* ========================================================== */

/* ИСПРАВЛЕНИЕ #1: Вся секция - это просто контейнер. Никаких лишних стилей. */
.philosophy-slider {
    padding: 0;
    margin: 0;
    position: relative;
}

/* Этот контейнер будет триггером для GSAP. Высоту ему задаст JS. */
.philosophy-sticky-container {
    position: relative;
}

/* ЗАГОЛОВОК: Больше НЕ липкий. Он просто часть блока, который будет "приколот" целиком. */
.philosophy-header {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
}

/* ТРЕК: Больше НЕ липкий. GSAP сам будет им управлять. */
.philosophy-track {
    display: flex;
    height: 100vh; /* Занимает всю высоту экрана */
}

/* СЛАЙД */
.philosophy-slide {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    /* ИСПРАВЛЕНИЕ #2: ЦЕНТРИРУЕМ КОНТЕНТ ВЕРТИКАЛЬНО */
    align-items: center; 
    padding: 2rem;
    background-color: var(--color-bg);
    flex-shrink: 0;
}

.philosophy-slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem; 
    width: 100%;
    max-width: 1100px;
}


.philosophy-slide img {
    width: 100%;
    max-width: 500px;
    height: auto;
    justify-self: end;
    border-radius: var(--radius); /* Скругление на месте */
}

.philosophy-slide .text-content { text-align: left; }
.philosophy-slide h3 { font-family: 'Orbitron', sans-serif; font-size: 3rem; margin-bottom: 1.5rem; color: var(--color-text); }
.philosophy-slide p { font-size: 1.3rem; line-height: 1.7; color: var(--color-text-dim); }


@media (max-width: 900px) {
    .philosophy-slide-content { grid-template-columns: 1fr; text-align: center; }
    .philosophy-slide img { justify-self: center; margin-bottom: 2rem; }
    .philosophy-slide .text-content { text-align: center; }
}


/* ========================================================== */
/* ===== СТИЛИ ДЛЯ ОСТАЛЬНЫХ КАРТОЧЕК (Philosophy, Freedom) ===== */
/* ========================================================== */
/* Оставляем старые стили для других секций, где они уместны */
.philosophy-cards, .freedom-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.philosophy-card, .freedom-card {
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
    padding: 2rem; text-align: center; transition: var(--transition);
    overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.philosophy-card:hover {
    transform: translateY(-5px); border-color: var(--color-primary); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.freedom-card:hover {
    transform: translateY(-5px); border-color: var(--color-accent); box-shadow: 0 8px 25px var(--color-accent-glow);
}
.freedom-icon { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1; }


/* =============== ФОРМА КОНТАКТОВ (ТЕМНАЯ) =============== */
.contact { padding: 100px 0; background: var(--color-dark-bg); }
.contact .section-title, .contact .section-subtitle { color: var(--color-dark-heading); }
.contact .section-subtitle { color: var(--color-dark-text); }
.contact-form { max-width: 600px; margin: 0 auto; display: grid; gap: 1.5rem; }
.contact .form-group label { display: block; margin-bottom: 0.5rem; color: var(--color-dark-text); }
.contact .form-group input[type="text"] { width: 100%; padding: 1rem; border: 1px solid var(--color-dark-border); border-radius: var(--radius); font-size: 1rem; transition: var(--transition); background: var(--color-dark-surface); color: var(--color-dark-heading); }
.contact .form-group input[type="text"]::placeholder { color: var(--color-text-dim); }
.contact .form-group input[type="text"]:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-glow); }
.contact .form-group--audience label { position: relative; padding: 1rem 1.5rem; background: var(--color-dark-surface); border: 1px solid var(--color-dark-border); border-radius: var(--radius); cursor: pointer; font-weight: 600; color: var(--color-dark-text); transition: var(--transition); flex: 1; text-align: center; }
.contact .form-group--audience input[type="radio"]:checked + label { border-color: var(--color-primary); background: var(--color-primary-glow); color: var(--color-primary); font-weight: 700; }
.contact .form-group--audience label:hover { border-color: var(--color-primary); color: var(--color-dark-heading); }
.contact .form-group--checkbox label { font-size: 0.95rem; color: var(--color-dark-text); }
.contact .form-group--checkbox a { color: var(--color-primary); }
.contact .btn--primary { padding: 1rem 2rem; font-size: 1.1rem; }

/* =============== ФУТЕР (ТЕМНЫЙ) =============== */
.footer { background: var(--color-dark-bg); color: var(--color-dark-text); padding: 4rem 0 2rem; border-top: 1px solid var(--color-dark-border); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer .logo, .footer h4 { color: var(--color-dark-heading); }
.footer p, .footer ul { color: var(--color-dark-text); list-style: none; padding: 0; }
.footer-nav li { margin-bottom: 0.75rem; }
.footer a { color: var(--color-dark-text); text-decoration: none; transition: var(--transition); }
.footer a:hover { color: var(--color-primary); }
.footer-contact-items { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-contact-items p { margin: 0; }
.footer .btn--primary { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); padding: 0.7rem 1.5rem; box-shadow: none; }
.footer .btn--primary:hover { background: var(--color-primary); color: var(--color-dark-heading); transform: none; }
.footer-bottom { text-align: center; color: rgba(255, 255, 255, 0.4); font-size: 0.9rem; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* =============== АДАПТИВНОСТЬ =============== */
@media (max-width: 900px) {
    .hero-content, .success-story-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text, .success-story-text { order: 2; }
    .hero-image, .success-story-image { order: 1; }
    .hero-subtitle, .success-story-text p { margin-inline: auto; }
    .success-story-image { margin-bottom: 2rem; }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .header { padding: 1rem 0; }
    section { padding: 60px 0; }
    .hero { padding-top: 80px; }
}


/* ============================================= */
/* ====== СТИЛИ ДЛЯ СОВРЕМЕННОЙ СЕКЦИИ "ВОЗМОЖНОСТИ" ====== */
/* ============================================= */

.modern-features-section {
    padding: 100px 0;
    background-color: #f8f9fa; /* Или любой другой фоновый цвет */
}

.features-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.features-header .section-subtitle strong {
    color: #007bff; /* Цвет акцента, можете поменять */
    font-weight: 600;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 60px; /* Расстояние между текстом и картинкой */
    margin-bottom: 80px;
}

/* Блок с обратным порядком (картинка слева, текст справа) */
.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1; /* Текст занимает всю доступную ширину */
}

.feature-text h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-text p {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}

.feature-text p strong {
    color: #333;
    font-weight: 600;
}

.feature-visual {
    flex: 1;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    padding: 20px;
}

.feature-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 900px) {
    .feature-block,
    .feature-block.reverse {
        flex-direction: column; /* Все блоки в столбик */
        gap: 30px;
        text-align: center;
    }
}

/* ========================================================== */
/* ==== "WHY NO AAA GAMES" - MYTH BUSTER EDITION STYLES ==== */
/* ========================================================== */

.myth-buster-section {
    padding: 80px 0;
    background-color: var(--color-bg-alt); /* Выделяем секцию легким фоном */
}

.myth-buster-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

/* Общие стили для обеих колонок */
.myth-column,
.reality-column {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    border-top: 4px solid; /* Цветная линия сверху */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Уникальные стили для каждой колонки */
.myth-column {
    border-color: #e53e3e; /* Красный */
}
.reality-column {
    border-color: #38a169; /* Зеленый */
}

.myth-column .icon-myth { color: #e53e3e; }
.reality-column .icon-reality { color: #38a169; }

.myth-column h3,
.reality-column h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.myth-column h3 .icon-myth,
.reality-column h3 .icon-reality {
    font-size: 1.8rem;
    line-height: 1;
}

.myth-column p,
.reality-column p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-dim);
}

/* Заключительный "панчлайн" */
.myth-buster-conclusion {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 4rem;
    max-width: 700px;
    margin-inline: auto;
}

/* Адаптивность */
@media (max-width: 900px) {
    .myth-buster-content {
        grid-template-columns: 1fr;
    }
}


/* ========================================================== */
/* ===== "THE FINAL PITCH" v2.0 (MODERN ICONS) - STYLES ===== */
/* ========================================================== */

.final-pitch-section {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.final-pitch-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.final-pitch-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.final-pitch-content p {
    font-size: 1.2rem;
    color: var(--color-text-dim);
    margin-bottom: 3.5rem;
}

.final-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.final-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* ГЛАВНОЕ ИЗМЕНЕНИЕ: стилизуем контейнер иконки */
.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; /* Делаем круглой */
    background-color: var(--color-bg-alt); /* Легкий фон */
    margin-bottom: 1rem;
}
/* Стили для самой SVG-иконки внутри */
.feature-icon-wrapper svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary); /* Задаем цвет */
}


.final-feature-item strong {
    font-weight: 600;
    color: var(--color-text);
}

.final-feature-item span {
    font-size: 0.9rem;
    color: var(--color-text-dim);
}

.btn--final-pitch {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
    50% { transform: scale(1.03); box-shadow: 0 8px 25px rgba(58, 134, 255, 0.25); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
}

/* Анимация для "живого" фона */
@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



/* =================================================================== */
/* ============== МОБИЛЬНАЯ АДАПТАЦИЯ (ADDITIVE ONLY) =============== */
/* =================================================================== */

/* Фиксированная кнопка CTA для мобильных — всегда по центру сверху */
.mobile-cta-button {
    display: none; /* Скрыта на десктопе по умолчанию */
}

@media (max-width: 899px) {
    /* === КНОПКА CTA: ФИКСИРОВАННАЯ, ПО ЦЕНТРУ === */
    .mobile-cta-button {
        display: flex !important;
        position: fixed;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        background: var(--color-primary);
        color: #fff;
        padding: 0.6rem 1.2rem;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        animation: pulse-mobile 2s infinite;
        /* Tap target для iOS */
        min-height: 44px;
        align-items: center;
    }
    
    .mobile-cta-button:hover,
    .mobile-cta-button:active {
        transform: translateX(-50%) translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }
    
    @keyframes pulse-mobile {
        0%, 100% { box-shadow: 0 4px 15px rgba(58, 134, 255, 0.4); }
        50% { box-shadow: 0 4px 25px rgba(58, 134, 255, 0.7); }
    }
    
    /* Скрываем десктопные header-actions на мобильных, чтобы не дублировать CTA */
    .header-actions {
        display: none !important;
    }
    
    /* === HEADER: АДАПТАЦИЯ === */
    .header {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    .header .container {
        justify-content: center;
        position: relative;
    }
    
    .logo {
        display: none !important;
        font-size: 1.2rem;
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav {
        display: none; /* Уже скрыто при 768px, усиливаем для 899px */
    }
    
    /* === HERO: СТЕК ВМЕСТО GRID === */
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text { order: 2; }
    .hero-image { order: 1; margin-bottom: 1rem; }
    
    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
        height: auto;
        min-height: 3.5em;
    }
    
    .hero-subtitle {
        margin-inline: auto;
        font-size: 1.1rem;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-slideshow {
        height: 280px;
    }
    
    /* === ОБЩИЕ СЕКЦИИ === */
    section { padding: 50px 0; }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    /* === CURRICULUM: УПРОЩЕНИЕ === */
    .curriculum-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .curriculum-text-list {
        padding-left: 0;
        order: 2;
    }
    
    .curriculum-step {
        margin-bottom: 0.5rem;
        padding: 0.8rem 1rem;
    }
    
    /* Показываем описание шагов на мобильных */
    .curriculum-step p {
        display: block;
        font-size: 0.9rem;
        color: var(--color-text-dim);
        margin-top: 0.3rem;
    }
    
    .loader-dot { display: none; }
    
    .curriculum-image-sticky {
        position: static;
        order: 1;
        margin-bottom: 1.5rem;
    }
    
    .image-caption-container {
        aspect-ratio: 4/3;
    }
    
    #image-caption-text {
        font-size: 1rem;
        padding: 1.5rem;
    }
    
    /* === TOOLS CAROUSEL: СКРОЛЛ ВМЕСТО АНИМАЦИИ === */
    .tools-track {
        animation: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .tool-item {
        scroll-snap-align: start;
        min-width: 120px;
    }
    
    .tool-item img { height: 60px; }
    
    /* === WHY US: ОТКЛЮЧАЕМ STICKY === */
    .why-us-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .why-us-sticky-visuals {
        position: static;
        height: auto;
        order: 1;
        margin-bottom: 2rem;
    }
    
    .why-us-text-column {
        order: 2;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .why-us-step {
        margin-bottom: 2rem;
        opacity: 1 !important;
    }
    
    .why-us-step h3 { font-size: 1.3rem; }
    
    .mosaic-container { display: none; }
    
    /* === PHILOSOPHY SLIDER: ВЕРТИКАЛЬНЫЙ СТЕК === */
    .philosophy-sticky-container { position: static !important; }
    
    .philosophy-header {
        position: static;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .philosophy-track {
        display: block;
        height: auto;
    }
    
    .philosophy-slide {
        width: 100%;
        height: auto;
        padding: 2rem 1rem;
        display: block;
    }
    
    .philosophy-slide-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .philosophy-slide img {
        justify-self: center;
        margin: 0 auto;
    }
    
    .philosophy-slide h3 { font-size: 1.5rem; }
    .philosophy-slide p { font-size: 1rem; }
    
    /* === MYTH BUSTER === */
    .myth-buster-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .myth-column,
    .reality-column {
        padding: 1.5rem;
    }
    
    .myth-column h3,
    .reality-column h3 { font-size: 1.2rem; }
    
    /* === MODERN FEATURES === */
    .feature-block,
    .feature-block.reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .feature-text h3 { font-size: 1.4rem; }
    .feature-text p { font-size: 1rem; }
    
    /* === SUCCESS STORY === */
    .success-story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .success-story-image { order: 1; margin-bottom: 1.5rem; }
    .success-story-text { order: 2; }
    .success-story-text h2 { font-size: 1.6rem; }
    
    /* === FINAL PITCH === */
    .final-pitch-content h2 { font-size: 2rem; }
    
    .final-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .btn--final-pitch {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    /* === CONTACT FORM: УВЕЛИЧЕННЫЕ TAP TARGETS === */
    .contact-form { gap: 1rem; }
    
    .contact .form-group input[type="text"],
    .contact .form-group--audience label {
        padding: 0.9rem;
        font-size: 1rem;
        min-height: 48px; /* iOS requirement */
    }
    
    .contact .btn--primary {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
        width: 100%;
    }
    
    /* === FOOTER === */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-contact-items { justify-content: center; }
    
    /* === ОБЩИЕ УЛУЧШЕНИЯ ДЛЯ МОБИЛЬНЫХ === */
    /* Увеличиваем tap targets для всех интерактивных элементов */
    a, button, input, label, .curriculum-step, .why-us-step {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Убираем hover-эффекты на тач-устройствах */
    @media (hover: none) {
        .btn--primary:hover,
        .why-card:hover,
        .philosophy-card:hover,
        .tool-item:hover img {
            transform: none !important;
        }
    }
}



/* Очень маленькие экраны (< 400px) */
@media (max-width: 399px) {
    .container {
        width: min(100%, 100% - 2rem);
        padding: 0 1rem;
    }
    
    .hero h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
}


/* =================================================================== */
/* ============== ССЫЛКА "ИНЖЕНЕРНАЯ СТУДИЯ" (ADDITIVE) ============= */
/* =================================================================== */

/* Базовые стили для ссылки внутри section-subtitle */
.section-subtitle .studio-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    /* Визуальный акцент — как кнопка */
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(131, 56, 236, 0.1));
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    line-height: 1.4;
}

/* Эффект при наведении */
.section-subtitle .studio-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.2), rgba(131, 56, 236, 0.2));
    transform: translateY(-1px);
}

/* Эффект при клике */
.section-subtitle .studio-link:active {
    transform: translateY(0);
}

/* Иконка внешней ссылки (опционально, но наглядно) */
.section-subtitle .studio-link::after {
    content: " ↗";
    font-size: 0.9em;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.section-subtitle .studio-link:hover::after {
    opacity: 1;
}

/* === АДАПТИВ: на мобильных — чуть крупнее для удобного тапа === */
@media (max-width: 899px) {
    .section-subtitle .studio-link {
        padding: 0.4rem 0.6rem;
        min-height: 44px; /* iOS tap target */
        display: inline-flex;
        align-items: center;
    }
}