/* ===== MEDIA QUERIES ДЛЯ АДАПТИВНОСТИ ===== */

/* Глобальные настройки для предотвращения прокрутки */
html, body {
    overflow-x: hidden;
    width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Адаптация для планшетов (скрываем картинку, чтобы не сжимать текст) */
@media (max-width: 1024px) {
    .hero-image-container {
        display: none;
    }
}

/* Для мобильных устройств (максимальная ширина 768px) */
@media (max-width: 768px) {

    /* Общие стили */
    .container {
        padding: 0 10px;
    }

    section {
        padding: 60px 0;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .big-text {
        font-size: 3.5rem;
    }

    /* Навигация */
    .nav-links {
        display: none; /* Скрываем навигацию */
    }

    .main-header {
        top: 10px;
        padding: 0 10px;
        width: auto;
        left: 0;
        right: 0;
        transform: none;
    }

    .nav-container {
        padding: 10px 15px;
    }

    .logo {
        font-size: 1.3rem;
    }

    /* Герой секция */
    .hero-section {
        padding: 80px 20px 60px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    /* Секция "О компании" */
    #about .glass-card {
        padding: 20px;
    }

    /* Секция "Вакансии" */
    .vacancies-container {
        flex-direction: column;
    }

    .category-section {
        width: 100%;
        margin-bottom: 20px;
    }

    .connector-line {
        display: none;
    }

    .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Секция "Почему мы" */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Секция "Наша команда" */
    .team-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 25px;
    }

    #team .glass-card {
        padding: 25px;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Секция "Наши услуги для компаний" */
    #services .glass-card>div {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .asymmetric-layout {
        grid-template-columns: 1fr;
    }

    /* Секция "Контакты" */
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact-item {
        text-align: center;
    }

    .contact-item i {
        margin-bottom: 10px;
    }
}

/* Для еще меньших экранов (максимальная ширина 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .masonry-grid,
    .team-grid,
    .contact-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .big-text {
        font-size: 2rem;
    }
}