/* =========================
   ADAPTIVE STYLES
========================= */

/* Планшеты */
@media (max-width: 1024px) {
    header {
        width: 100%;
        padding: 20px 5%;
        box-sizing: border-box;
    }

    .section {
        gap: 30px;
    }

    h2 {
        font-size: 2rem;
    }

    /* FAQ Планшет */
    .faq-container {
        padding: 0 10px;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 5%;
    }

    nav {
        display: flex;
        gap: 15px;
    }

    nav a {
        margin: 0;
        font-size: 0.9rem;
    }

    .container {
        margin-top: 180px;
    }

    .section {
        flex-direction: column !important;
        text-align: center;
        margin-bottom: 80px;
    }

    .image-placeholder {
        height: 220px;
        width: 100%;
    }

    .content-block {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .description {
        max-width: 100%;
    }

    h2 {
        font-size: 1.6rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* --- FAQ Адаптив --- */
    .faq-question {
        padding: 15px 18px;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 18px 15px 18px;
        font-size: 0.95rem;
    }

    .faq-item.active .faq-answer {
        max-height: 400px;
    }
}

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
        margin-top: 0;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        width: 80%;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        text-align: center;
    }

    .video-bg video {
        object-position: center;
    }
}


@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .stat-number {
        font-size: 2rem;
    }
}



@media (max-width: 768px) {
    .tech-grid {
        gap: 20px;
    }
    .tech-icon-wrapper {
        width: 60px;
        height: 60px;
        padding: 12px;
    }
    .tech-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .social-item {
        width: 100%;
        justify-content: center;
    }
}


/* Футер */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-desc {
        max-width: 100%;
    }
}