/* Адаптивные стили для различных размеров экранов */

/* Планшеты (до 1200px) */
@media (max-width: 1200px) {
    .firstCategory-hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .firstCategory-hero-title {
        font-size: 36px;
    }

    .firstCategory-hero-subtitle {
        font-size: 18px;
    }

    .firstCategory-advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .firstCategory-advantage-card {
        padding: 25px;
    }

    .firstCategory-advantage-icon img {
        width: 90px;
        height: 90px;
    }

    .firstCategory-advantage-card h3 {
        font-size: 22px;
    }

    .firstCategory-advantage-card p {
        font-size: 14px;
    }

    .firstCategory-specifications-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .firstCategory-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .firstCategory-installation-content {
        flex-direction: column;
    }

    .firstCategory-contacts-content {
        flex-direction: column;
    }
}

/* Планшеты (до 992px) */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .firstCategory-section-title {
        font-size: 30px;
    }

    .firstCategory-about-content {
        flex-direction: column;
    }

    .firstCategory-type-item,
    .firstCategory-type-item.firstCategory-reverse {
        flex-direction: column;
    }

    .firstCategory-type-description h3 {
        font-size: 24px;
    }

    .firstCategory-advantages-grid {
        gap: 20px;
    }

    .firstCategory-advantage-card {
        padding: 22px;
    }

    .firstCategory-advantage-icon img {
        width: 85px;
        height: 85px;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .logo {
        font-size: 22px;
    }

    .main-nav {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-link {
        text-align: center;
        padding: 10px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }

    .firstCategory-hero {
        padding: 40px 20px;
        min-height: auto;
    }

    .firstCategory-hero-title {
        font-size: 28px;
    }

    .firstCategory-hero-subtitle {
        font-size: 16px;
    }

    .firstCategory-cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    section {
        padding: 50px 20px;
    }

    .firstCategory-section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .firstCategory-advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .firstCategory-advantage-card {
        padding: 20px;
    }

    .firstCategory-advantage-icon {
        margin-bottom: 15px;
    }

    .firstCategory-advantage-icon img {
        width: 80px;
        height: 80px;
    }

    .firstCategory-advantage-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .firstCategory-advantage-card p {
        font-size: 14px;
        line-height: 1.5;
    }

    .firstCategory-type-item {
        margin-bottom: 40px;
    }

    .firstCategory-type-description h3 {
        font-size: 22px;
    }

    .firstCategory-type-description p {
        font-size: 15px;
    }

    .firstCategory-step-item {
        flex-direction: column;
        text-align: center;
    }

    .firstCategory-step-number {
        margin: 0 auto 15px;
    }

    .firstCategory-specifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .firstCategory-spec-item {
        padding: 20px;
    }

    .spec-item h4 {
        font-size: 16px;
    }

    .spec-item p {
        font-size: 14px;
    }

    .firstCategory-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .firstCategory-gallery-item img {
        height: 250px;
    }

    .firstCategory-contact-info h3 {
        font-size: 24px;
    }

    .firstCategory-contact-item {
        padding: 15px;
        gap: 15px;
    }

    .firstCategory-contact-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .firstCategory-contact-text a {
        font-size: 16px;
    }
}

/* Малые мобильные устройства (до 480px) */
@media (max-width: 480px) {
    .firstCategory-container {
        padding: 0;
    }

    .header {
        padding: 15px 0;
    }

    .logo {
        font-size: 18px;
        text-align: center;
    }

    .firstCategory-hero-title {
        font-size: 24px;
    }

    .firstCategory-hero-subtitle {
        font-size: 14px;
    }

    .firstCategory-section-title {
        font-size: 22px;
        padding-bottom: 15px;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    .firstCategory-about-text p,
    .firstCategory-type-description p,
    .firstCategory-installation-text p,
    .firstCategory-warranty-content p {
        font-size: 14px;
        text-align: left;
    }

    .firstCategory-advantages-grid {
        gap: 15px;
    }

    .firstCategory-advantage-card {
        padding: 18px;
    }

    .firstCategory-advantage-icon {
        margin-bottom: 12px;
    }

    .firstCategory-advantage-icon img {
        width: 70px;
        height: 70px;
    }

    .firstCategory-advantage-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .firstCategory-advantage-card p {
        font-size: 13px;
        line-height: 1.5;
    }

    .firstCategory-type-description h3 {
        font-size: 20px;
    }

    .firstCategory-step-item h4 {
        font-size: 18px;
    }

    .firstCategory-step-item p {
        font-size: 14px;
    }

    .firstCategory-specifications-grid {
        grid-template-columns: 1fr;
    }

    .firstCategory-contact-info h3 {
        font-size: 20px;
    }

    .firstCategory-contact-item {
        padding: 12px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }

    .firstCategory-contact-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .firstCategory-contact-text a {
        font-size: 15px;
    }

    .footer-content p {
        font-size: 14px;
    }
}

/* Очень малые экраны (до 360px) */
@media (max-width: 360px) {
    .firstCategory-hero-title {
        font-size: 20px;
    }

    .firstCategory-hero-subtitle {
        font-size: 13px;
    }

    .firstCategory-section-title {
        font-size: 20px;
    }

    .firstCategory-cta-button {
        padding: 10px 25px;
        font-size: 14px;
    }

    .firstCategory-advantages-grid {
        gap: 12px;
    }

    .firstCategory-advantage-card {
        padding: 15px;
    }

    .firstCategory-advantage-icon {
        margin-bottom: 10px;
    }

    .firstCategory-advantage-icon img {
        width: 60px;
        height: 60px;
    }

    .firstCategory-advantage-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .firstCategory-advantage-card p {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* Ландшафтная ориентация для планшетов */
@media (max-width: 1024px) and (orientation: landscape) {
    .firstCategory-hero {
        min-height: 400px;
    }

    .firstCategory-advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Высокие экраны */
@media (min-height: 900px) {
    .firstCategory-hero {
        min-height: 600px;
    }
}