/* ============ АДАПТИВНЫЕ СТИЛИ ============ */

/* ===== TABLET / LAPTOP (1024px и меньше) ===== */

@media (max-width: 1024px) {
    .hero {
        min-height: 420px;
        padding: 40px 16px 50px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .header-container {
        padding: 0 16px;
    }

    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .categories-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .features {
        padding: 46px 16px;
    }

    .categories {
        margin-bottom: 46px;
    }

    .statistics {
        padding: 46px 16px;
    }
}

/* ===== TABLET / БОЛЬШИЕ МОБИЛИ (768px и меньше) ===== */

@media (max-width: 768px) {
    header {
        background: rgba(255, 255, 255, 0.98);
    }

    .header-container {
        height: auto;
        flex-wrap: wrap;
        padding: 12px 14px;
        row-gap: 10px;
    }

    .logo {
        font-size: 20px;
        order: 1;
    }

    nav {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    nav a {
        font-size: 12px;
    }

    .phone-btn {
        order: 2;
        width: 100%;
        justify-content: center;
        font-size: 13px;
        padding: 8px 12px;
    }

    .hero {
        margin-top: 80px;
        min-height: 380px;
        padding: 36px 14px 45px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-title,
    .features-title,
    .faq-title {
        font-size: 26px;
        margin-bottom: 32px;
    }

    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 18px 14px;
    }

    .stat-number {
        font-size: 34px;
    }

    .stat-label {
        font-size: 13px;
    }

    .categories-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-card,
    .testimonial-card {
        padding: 20px 18px;
    }

    .category-card h3 {
        font-size: 17px;
    }

    .category-card p {
        font-size: 13px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-item {
        padding: 16px 14px;
    }

    .feature-icon {
        font-size: 26px;
        margin-bottom: 6px;
    }

    .feature-item h4 {
        font-size: 15px;
    }

    .feature-item p {
        font-size: 13px;
    }

    .features {
        padding: 40px 14px;
        margin-bottom: 40px;
    }

    .categories,
    .testimonials {
        padding: 40px 14px;
        margin-bottom: 40px;
    }

    .statistics {
        padding: 40px 14px;
        margin-bottom: 40px;
    }

    .faq {
        padding: 40px 14px;
    }

    .faq-container {
        max-width: 100%;
    }

    .accordion-item {
        margin-bottom: 8px;
    }

    .accordion-header {
        padding: 14px 14px;
        font-size: 14px;
    }

    .accordion-body {
        font-size: 13px;
        padding: 0 14px;
    }

    .accordion-item.active .accordion-body {
        padding: 10px 14px 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    footer {
        padding: 36px 14px 14px;
    }

    .footer-section h4 {
        font-size: 14px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 12px;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 12px;
    }

    .cookie-text h3 {
        font-size: 13px;
    }

    .cookie-text p {
        font-size: 12px;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .cookie-btn {
        flex: 1;
        font-size: 12px;
        padding: 8px 10px;
    }

    .cookie-modal-content {
        max-width: 100%;
        max-height: 90vh;
    }

    /* ФОРМЫ НА SCHEDULE / CONTACTS */

    .faq-container .accordion-body {
        max-height: none;
    }

    form {
        width: 100%;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    textarea,
    select {
        width: 100%;
        padding: 12px 10px;
        font-size: 14px;
    }

    label {
        font-size: 13px;
    }

    .mb-20 {
        margin-bottom: 14px;
    }
}

/* ===== МОБИЛИ (600px и меньше) ===== */

@media (max-width: 600px) {
    .header-container {
        padding: 10px 12px;
    }

    .logo {
        font-size: 18px;
        width: 100%;
        text-align: center;
        order: 2;
    }

    .phone-btn {
        order: 1;
        width: 100%;
        font-size: 12px;
        padding: 8px 10px;
    }

    nav {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }

    nav ul {
        gap: 6px;
        row-gap: 6px;
    }

    nav a {
        font-size: 11px;
        padding-bottom: 3px;
    }

    .hero {
        margin-top: 90px;
        min-height: 340px;
        padding: 30px 12px 40px;
    }

    .hero-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .hero-buttons {
        gap: 8px;
    }

    .btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 13px;
    }

    .section-title,
    .features-title,
    .faq-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .section-title::after,
    .features-title::after,
    .faq-title::after {
        width: 48px;
        margin-top: 8px;
    }

    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 14px 10px;
        text-align: center;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 11px;
    }

    .categories-grid,
    .testimonials-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-card {
        padding: 16px 12px;
    }

    .category-icon {
        font-size: 28px;
    }

    .category-card h3 {
        font-size: 15px;
    }

    .category-card p {
        font-size: 12px;
    }

    .testimonial-card {
        padding: 14px 12px;
    }

    .rating {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .testimonial-text {
        font-size: 12px;
    }

    .testimonial-author {
        font-size: 11px;
    }

    .feature-item {
        padding: 14px 12px;
    }

    .feature-icon {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .feature-item h4 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .feature-item p {
        font-size: 12px;
    }

    .categories,
    .testimonials,
    .features {
        padding: 32px 12px;
        margin-bottom: 32px;
    }

    .statistics {
        padding: 32px 12px;
        margin-bottom: 32px;
    }

    .faq {
        padding: 32px 12px;
    }

    .accordion-header {
        padding: 12px 12px;
        font-size: 13px;
    }

    .accordion-icon {
        width: 16px;
        height: 16px;
        font-size: 12px;
    }

    .accordion-body {
        font-size: 12px;
        padding: 0 12px;
    }

    .accordion-item.active .accordion-body {
        max-height: 300px;
        padding: 8px 12px 12px;
    }

    footer {
        padding: 32px 12px 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-section h4 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 11px;
        line-height: 1.6;
    }

    .footer-bottom {
        font-size: 10px;
        padding-top: 10px;
    }

    .cookie-banner {
        padding: 12px;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-text h3 {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .cookie-text p {
        font-size: 11px;
    }

    .cookie-buttons {
        width: 100%;
        gap: 6px;
    }

    .cookie-btn {
        flex: 1;
        padding: 7px 8px;
        font-size: 11px;
        border-radius: 999px;
    }

    .cookie-modal {
        padding: 12px;
    }

    .cookie-modal-content {
        max-width: 100%;
        padding: 14px;
        max-height: 85vh;
    }

    .cookie-modal-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .cookie-option {
        padding: 10px;
        margin-bottom: 8px;
    }

    .cookie-option-label {
        font-size: 13px;
    }

    .cookie-option-desc {
        font-size: 11px;
        margin-left: 26px;
    }

    .cookie-modal-btn {
        font-size: 12px;
        padding: 8px;
    }

    /* ФОРМЫ */

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    textarea,
    select {
        padding: 10px 8px;
        font-size: 13px;
    }

    input::placeholder,
    textarea::placeholder {
        font-size: 12px;
    }

    label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .mb-20 {
        margin-bottom: 12px;
    }

    /* TABLE */

    table {
        font-size: 11px;
    }

    th,
    td {
        padding: 8px 6px;
    }

    /* ANIMATIONS — уменьшаем размеры элементов */

    .car {
        width: 70px;
        height: 30px;
    }

    .traffic-sign {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .traffic-light {
        width: 22px;
        padding: 6px 4px;
    }

    .traffic-light .light {
        width: 11px;
        height: 11px;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ МОБИЛИ (400px и меньше) ===== */

@media (max-width: 400px) {
    .header-container {
        padding: 8px 10px;
    }

    .logo {
        font-size: 16px;
    }

    .phone-btn {
        font-size: 11
}

/* ===== ОТКЛЮЧЕНИЕ АНИМАЦИЙ НА МОБИЛЯХ И ПЛАНШЕТАХ ===== */

@media (max-width: 1024px) {
    .blob {
        animation: none !important;
    }

    .wave {
        animation: none !important;
    }
}

@media (max-width: 600px) {
    /* на мобилях делаем блобы полупрозрачнее и менее интенсивными */
    .blob {
        opacity: 0.08 !important;
        animation: none !important;
    }

    .wave {
        opacity: 0.05 !important;
        animation: none !important;
    }
}

/* Логотип на мобилях */

@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }

    .logo-letter {
        animation: logo-bounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    }

    .logo-plus {
        animation: logo-scale-pulse 1s ease-in-out infinite;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 18px;
    }

    .logo-letter {
        animation: logo-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    }

    .logo-plus {
        animation: logo-scale-pulse 0.9s ease-in-out infinite;
        margin-left: 0.2em;
    }
}

/* Отключение анимации на очень слабых устройствах */

@media (prefers-reduced-motion: reduce) {
    .logo-letter,
    .logo-plus {
        animation: none !important;
    }
}


@media (max-width: 768px) {
    .logo-icon {
        width: 28px;
        height: 28px;
        margin-right: 0.6em;
        animation: logo-diamond-pulse 4s ease-in-out 2s infinite !important;
    }

    .logo-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 600px) {
    .logo-icon {
        width: 26px;
        height: 26px;
        margin-right: 0.5em;
        animation: logo-diamond-pulse 4s ease-in-out 2s infinite !important;
    }

    .logo-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-icon {
        animation: none !important;
    }

    .logo-icon svg {
        animation: none !important;
    }

    .logo:hover .logo-icon {
        animation: none !important;
    }

    .logo:hover .logo-icon svg {
        animation: none !important;
    }

    .logo:hover .logo-icon svg circle {
        animation: none !important;
    }
}
