@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1E1E1E;
    background-color: #fff;
    line-height: 1.5;
    /* Убираем горизонтальный скролл */
    overflow-x: hidden; 
}

/* Ключевое правило для адаптивности картинок */
img {
    max-width: 100%;
    height: auto;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
    --primary-green: #00B64F;
    --dark-blue: #003366;
    --gray-bg: #F5F5F5;
}

/* --- Header --- */
header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logos {
    display: flex;
    gap: 20px;
    align-items: center;
}
.logos img { height: 50px; }

/* Обертка для меню и кнопок (для мобильного скрытия) */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav ul {
    display: flex;
    gap: 30px;
    font-size: 14px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.btn-login {
    background-color: var(--primary-green);
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

/* Гамбургер меню (скрыт на десктопе) */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-blue);
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero { padding: 80px 0; }
.hero-inner {
    display: flex;
    align-items: center;
    gap: 50px;
}
.hero-text { flex: 1; }
.subtitle {
    color: var(--primary-green);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 10px;
    display: block;
}
h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #003366;
}
.hero-desc {
    color: #666;
    margin-bottom: 30px;
    max-width: 450px;
}
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}
.btn-main {
    background-color: var(--primary-green);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}
.link-how {
    color: #333;
    font-weight: 500;
}
.hero-img { flex: 1; }
.hero-img img {
    width: 100%;
    border-radius: 20px;
}

/* --- Stats --- */
.stats { padding: 60px 0; text-align: center; }
.stats-inner { display: flex; justify-content: space-around; }
.stat-item h3 {
    font-size: 40px;
    color: var(--primary-green);
    margin-bottom: 10px;
}
.stat-item p { color: #555; font-weight: 600; }

/* --- Check Status --- */
.check-status {
    background-color: #F8F9FA;
    padding: 60px 0;
    text-align: center;
}
.check-box { max-width: 600px; margin: 0 auto; }
.check-box h3 { margin-bottom: 20px; }
.input-group { display: flex; gap: 10px; }
.input-group input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #eee;
}
.btn-check {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* --- Partners --- */
.partners { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: #000;
}
.section-desc {
    text-align: center;
    color: #777;
    margin-bottom: 50px;
    font-size: 14px;
}
.partners-content {
    display: flex;
    align-items: flex-start; /* Изменено с center для лучшего вида */
    gap: 50px;
}
.partners-map { flex: 1.5; }
.partners-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}
.partner-card {
    background: #EAEAEA;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 4px;
}
.partner-logo {
    width: 50px;
    height: 50px;
    background: #003366;
    border-radius: 4px;
    flex-shrink: 0;
}
.partner-info h4 { font-size: 14px; margin-bottom: 5px; }
.partner-info p { font-size: 12px; color: #666; }

/* --- News --- */
.news { padding: 60px 0 100px 0; }
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.link-all {
    color: var(--primary-green);
    font-weight: 600;
    white-space: nowrap;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    background-color: #eee;
}
.news-date {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}
.news-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 15px;
}
.news-read {
    color: var(--primary-green);
    font-size: 13px;
    font-weight: 600;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 60px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-col h5 { font-size: 20px; margin-bottom: 20px; }
.footer-col p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 300px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    font-size: 14px;
    opacity: 0.8;
    border-bottom: 1px solid transparent;
}
.copyright {
    text-align: center;
    font-size: 12px;
    opacity: 0.5;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}


/* ========================================= */
/*       АДАПТИВНОСТЬ (MEDIA QUERIES)        */
/* ========================================= */

@media (max-width: 992px) {
    /* Планшеты и маленькие ноутбуки */
    h1 { font-size: 32px; }
    .hero-inner { gap: 30px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Мобильные телефоны */
    
    /* Шапка */
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .burger-menu {
        display: flex; /* Показываем бургер */
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-wrapper {
        display: none; /* Скрываем меню по умолчанию */
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        background: #fff;
        gap: 20px;
    }

    /* Класс для открытия меню через JS */
    .nav-wrapper.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .header-actions {
        flex-direction: column;
        gap: 15px;
    }

    /* Главный экран */
    .hero { padding: 40px 0; }
    .hero-inner {
        flex-direction: column;
    }
    .hero-text {
        text-align: center;
        order: 2; /* Текст под картинкой */
    }
    .hero-img {
        order: 1; /* Картинка сверху */
        margin-bottom: 20px;
    }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    .btn-main { margin-right: 0; width: 100%; text-align: center; }

    /* Статистика */
    .stats-inner {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Проверка статуса */
    .input-group {
        flex-direction: column;
    }
    .btn-check {
        padding: 15px;
        width: 100%;
    }

    /* Партнеры */
    .partners-content {
        flex-direction: column;
    }
    .partners-map {
        width: 100%;
    }

    /* Новости */
    .news-grid {
        grid-template-columns: 1fr; /* Одна колонка */
    }

    /* Футер */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-col p {
        margin: 0 auto;
    }
}