/* --- 1. Базовые настройки и шрифты --- */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: 0;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* Фиксируем на десктопе */
    color: #1a1a1a;
}

/* --- 2. Основной контейнер (Split Screen) --- */
.page-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    flex-direction: row;
}

/* --- 3. Левая часть: Слайдер --- */
.slider-section {
    width: 50%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    border: 25px solid #fff;
}

.mySwiper {
    width: 100%;
    height: 100%;
    border-radius: 18px;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 60px;
    color: white;
    position: relative;
}

/* Затемнение слайдов (Градиент для читаемости текста) */
.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

/* Контент поверх слайдов */
.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 40px;
}

/* Логотип в углу */
.logo-wrapper {
    position: absolute;
    top: 60px;
    left: 60px;
    z-index: 100;
}

.main-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* --- 4. Правая часть: Форма --- */
.form-section {
    width: 50%;
    height: 100%;
    background: white;
    overflow-y: auto; /* Скролл только внутри формы */
    display: flex;
    justify-content: center;
}

.form-scroll-container {
    width: 100%;
    max-width: 640px;
    padding: 60px 40px;
}

.white {
    color: #fff;
}

h2.white {
    margin-bottom: 16px;
    margin-top: 40px;
}

.hero-overlay h2 {
    font-size: 28px;
}

.hero-overlay h2 span {
    color: #fc7a2a;
}

.hero-overlay h2.italic {
    font-style: italic;
    font-size: 22px;
    margin-bottom: 5px;
    margin-top: 40px;
}

.hero-overlay p.italic {
    font-style: italic;
    font-weight: bold;
}

.hero-overlay p, .hero-overlay ul {
    margin-bottom: 10px;
    font-size: 18px;
}

.hero-overlay ul {
    list-style-position: inside;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #111;
    line-height: 1.1;
}

h2 span {
    color: rgb(31, 91, 255); 
}

/* Поля ввода */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

input, textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    background-color: #f7f2fa;
    font-size: 16px;
    outline: none;
    transition: all 0.2s;
}

input:focus, textarea:focus {
    background-color: #fff;
    border-color: #d1c4e9;
    box-shadow: 0 0 0 4px rgba(209, 196, 233, 0.2);
}

textarea {
    height: 100px;
    resize: none;
}

/* --- 5. Кастомное поле файла --- */
.file-upload-container {
    margin-bottom: 15px;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    border: 2px dashed #d1c4e9;
    border-radius: 12px;
    background: #fcfaff;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.file-info-header {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.upload-arrow {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.upload-instruction {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

/* --- 6. Кнопка --- */
.apply-btn {
    width: 100%;
    padding: 18px;
    background: #fc7a2a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    margin-top: 10px;
}

.apply-btn:hover {
    background: rgb(31, 91, 255);
}

.apply-btn:active {
    transform: scale(0.98);
}

/* --- 7. АДАПТИВНОСТЬ (Mobile & Tablet) --- */

@media (max-width: 768px) {
    body, html {
        overflow: auto; /* Позволяем скроллить всю страницу */
        height: auto;
    }

    .page-container {
        flex-direction: column;
        height: auto;
    }

    .slider-section {
        width: 100%;
        height: auto;
        min-height: 450px;
        border: 10px solid #fff; /* Уменьшенная рамка для мобилок */
    }

    .swiper-slide {
        padding: 30px 20px;
        padding-top: 80px; /* Чтобы текст не заходил под логотип */
        align-items: flex-start;
    }

    .logo-wrapper {
        top: 25px;
        left: 25px;
    }

    .main-logo {
        height: 35px;
    }

    .hero-overlay h2 {
        font-size: 24px;
    }

    .form-section {
        width: 100%;
        height: auto;
        overflow-y: visible;
    }

    .form-scroll-container {
        padding: 40px 20px;
    }

    h2 {
        font-size: 28px;
        text-align: left;
    }

    .input-row {
        grid-template-columns: 1fr; /* Поля в одну колонку */
        gap: 0;
    }

    .g-recaptcha {
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
        transform: scale(0.9);
    }
}

@media (max-width: 480px) {
    .slider-section {
        min-height: 400px;
    }

    .hero-overlay h2 {
        font-size: 26px;
    }

    .hero-overlay p, .hero-overlay ul {
        font-size: 15px;
    }
}