/* --- 1. ОБЩИЕ СТИЛИ И СБРОС --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. СЕКЦИЯ HERO --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2f7 0%, #c4e4ef 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('back.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    filter: blur(5px);
    z-index: 0;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* --- 3. ХЕДЕР И ЛОГОТИПЫ (В ОДНУ ЛИНИЮ) --- */
.header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирует всё по вертикали */
    gap: 20px;
    margin-bottom: 30px;
}

.header-logos {
    display: flex !important;
    flex-direction: row !important; /* Строго в одну линию */
    flex-wrap: nowrap !important; /* Запрет переноса на десктопе */
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

/* Блок ГИБДД */
.gibdd-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2d4373;
    padding: 8px 15px;
    border-radius: 6px;
    flex-shrink: 0;
}

.gibdd-emblem {
    height: 45px !important;
    width: auto !important;
}

.gibdd-text {
    display: flex;
    flex-direction: column;
    color: #fff;
    line-height: 1.1;
}

.gibdd-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
}

.gibdd-subtitle {
    font-size: 8px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ВАШ ЛОГОТИП (ЖЕСТКИЙ РАЗМЕР) --- */
.main-logo img {
    height: 50px !important; /* Соразмерно ГИБДД */
    width: auto !important;
    display: block;
    max-width: 220px !important; /* Чтобы не распирало на планшетах */
}

/* --- 4. ПЛАШКА "СЕРВИСЫ ОНЛАЙН" --- */
.services-badge {
    background: #ffffff;
    padding: 6px 25px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.services-text {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 500;
    font-size: 13px;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- 5. КОНТЕНТ И ФОРМА --- */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin: 40px 0;
}

.info-block { flex: 1; }

.info-block h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8em;
    color: #007BFF;
    line-height: 1.1;
    margin-bottom: 20px;
}

.advantages-list { list-style: none; }

.advantages-list li {
    font-size: 1.4em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #059669;
}

.form-block { width: 420px; }

.form-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.main-form input, .main-form select, .main-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.submit-btn:hover {
    background: #0056b3;
}

/* --- 6. ЧЕКБОКС СОГЛАСИЯ --- */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 20px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0;
    flex-shrink: 0;
    accent-color: #007BFF;
}

.checkbox-group label {
    font-size: 13px;
    line-height: 1.3;
    color: #64748b;
    user-select: none;
}

/* --- 7. КНОПКА WHATSAPP --- */
.whatsapp-button {
    position: fixed;
    bottom: 20px; right: 20px;
    background-color: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1000;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.whatsapp-button img { width: 24px; margin-right: 10px; }

/* --- 8. АДАПТИВНОСТЬ (МОБИЛЬНЫЕ ПРАВКИ) --- */

/* Планшеты и мелкие ноутбуки */
@media (max-width: 992px) {
    .hero-content { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
    }
    .form-block { width: 100%; max-width: 450px; }
    .info-block h1 { font-size: 2.2em; }
}

/* Телефоны */
@media (max-width: 600px) {
    .header { gap: 15px; }
    
    .header-logos { 
        gap: 15px; 
        padding: 0 5px;
    }

    /* Убираем текст ГИБДД, чтобы влез ваш логотип */
    .gibdd-text { display: none; }
    
    .gibdd-logo { padding: 6px 10px; }
    
    .gibdd-emblem { height: 38px !important; }

    .main-logo img { 
        height: 40px !important; /* Уменьшаем основной логотип для мобил */
    }

    .services-badge { padding: 5px 15px; }
    
    .services-text { font-size: 11px; letter-spacing: 1px; }

    .info-block h1 { font-size: 1.8em; }

    .advantages-list li {
        font-size: 1.1em;
        justify-content: center;
    }

    .form-card { padding: 20px; }

    .whatsapp-button span { display: none; } /* На мобиле только иконка WA */
    .whatsapp-button { padding: 12px; border-radius: 50%; }
    .whatsapp-button img { margin-right: 0; }
}