@media (max-width: 1200px) {
    header {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
        top: 15px;
        padding: 0 20px;

        .nav {
            gap: 20px;
            font-size: 16px;
        }
    }

    main {
        display: flex;
        flex-direction: column;
        gap: 20px;
        section {
            &.hero {
                .container {
                    width: 94%;
                }
            }

            &.about {
                .about-content {
                    grid-template: min-content 1fr / 1fr 1fr;

                    .item {
                        &.about-text {
                            grid-column-start: span 2;
                            padding: 0 0 12px;

                            .text {
                                font-size: 24px;
                            }
                        }
                    }
                }
            }

            &.catalogue {
                .container {
                    flex-direction: column;
                    gap: 34px;
                }

                .left {
                    max-width: none;

                    .wrapper {
                        position: static;
                    }
                }

                .right {
                    .category {
                        padding: 32px;

                        .category-left {
                            width: 230px;
                        }
                    }
                }
            }

            &.supply {
                .container {
                    flex-direction: column-reverse;
                    gap: 36px;

                    .left {
                        width: 100%;
                    }

                    .right {
                        .metrics {
                            .item {
                                padding: 20px;
                                .icon{
                                    i{
                                        font-size: 34px;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            &.sigma {
                .row {
                    flex-direction: column;
                    gap: 22px;

                    .right {
                        max-width: none;
                    }

                    .hero-btn {
                        margin: 0;
                    }
                }

                .items {
                    display: grid;
                    grid-template-columns: repeat(2, minmax(0, 1fr));
                    gap: 20px;

                    .item {
                        width: auto;
                    }
                }
            }

            &.letters {
                .letters__grid {
                    grid-template-columns: repeat(3, minmax(0, 1fr));
                }
            }

            &.contacts-catalogue {
                .container {
                    flex-direction: column;
                    gap: 24px;
                }

                .left {
                    max-width: none;
                }

                .right {
                    margin-top: 0;
                }
            }
        }
    }
}

@media (max-width: 992px) {
    body {
        font-size: 16px;
    }

    header {
        .logo {
            img {
                height: 42px;
            }
        }

        .nav {
            gap: 14px;
            font-size: 14px;
        }
    }

    main {
        section {
            &.hero {
                height: auto;
                min-height: 620px;
                margin: 10px;
                border-radius: 12px;

                .container {
                    padding-top: 120px;
                    padding-bottom: 60px;
                }

                p br,
                h1 br {
                    display: none;
                }

                p {
                    max-width: 620px;
                }
            }

            &.partners,
            &.about,
            &.catalogue,
            &.supply,
            &.sigma,
            &.contacts-catalogue,
            &.letters {
               padding: 30px 18px;
            }

            &.partners {
                padding-bottom: 0;
                .partners-title {
                    margin-bottom: 28px;
                    text-align: center;
                    font-size: 18px;
                }

                .partners-marquee {
                    --gap: 12px;
                    --speed: 24s;
                }

                .partner-item {
                    width: 180px;
                    height: 86px;
                    font-size: 13px;
                }
            }

            &.about {
                .about-content {
                    grid-template-columns: 1fr;
                    gap: 16px;

                    .item {
                        &.about-text {
                            grid-column-start: auto;
                            padding: 10px 0;

                            .text {
                                font-size: 20px;
                            }
                        }

                        &.info-item {
                            .top {
                                .icon {
                                    width: 60px;
                                    height: 60px;

                                    i {
                                        font-size: 34px;
                                    }
                                }

                                .title {
                                    font-size: 22px;
                                }
                            }
                        }
                    }
                }
            }

            &.catalogue,
            &.contacts-catalogue,
            &.sigma {
                margin: 10px;
                border-radius: 12px;
            }

            &.catalogue {
                .left {
                    h1 {
                        font-size: 30px;
                    }
                }

                .right {
                    .category {
                        flex-direction: column;
                        gap: 20px;
                        padding: 24px;

                        .category-left {
                            width: 100%;
                            gap: 16px;

                            .text {
                                br {
                                    display: none;
                                }
                            }
                        }
                    }
                }
            }

            &.supply {
                .container {
                    .left {
                        .tabs {
                            flex-direction: column;
                        }

                        .tab-content {
                            .item {
                                ul {
                                    grid-template-columns: 1fr;
                                }
                            }
                        }
                    }

                    .right {
                        > .title {
                            font-size: 32px;
                        }

                        > .subtitle {
                            font-size: 21px;
                        }

                        .metrics {
                            flex-direction: column;
                            margin-top: 26px;

                            .item {
                                width: 100%;
                            }
                        }
                    }
                }
            }

            &.sigma {
                .row {
                    .left {
                        font-size: 32px;
                    }
                }
            }

            &.letters {
                .letters__title {
                    font-size: 32px;
                    margin-bottom: 22px;
                }

                .letters__grid {
                    grid-template-columns: repeat(2, minmax(0, 1fr));
                }
            }

            &.contacts-catalogue {

                .left {
                    h1 {
                        font-size: 30px;
                    }
                }

                .contact-card {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 12px;
                    padding: 12px;

                    .contact-card-left {
                        width: 100%;
                    }
                }
            }
        }
    }
}

@media (max-width: 640px) {
    .container {
        width: min(1320px, 90%);
    }

    header {
        height: auto;
        min-height: 64px;
        padding: 10px 12px;
        align-items: center;
        flex-wrap: wrap;
        column-gap: 10px;
        row-gap: 0;

        .logo {
            img {
                height: 36px;
            }
        }

        .menu-toggle {
            display: inline-flex;

            &[aria-expanded="true"] {
                span:nth-child(1) {
                    transform: translateY(7px) rotate(45deg);
                }

                span:nth-child(2) {
                    opacity: 0;
                }

                span:nth-child(3) {
                    transform: translateY(-7px) rotate(-45deg);
                }
            }
        }

        .nav {
            width: 100%;
            margin-left: 0;
            margin-top: 0;
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            pointer-events: none;
            /*transform: translateY(-8px);*/
            transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.2s ease, margin-top 0.2s ease;
            flex-direction: column;
            gap: 8px;
            font-size: 15px;

            .nav-item {
                width: 100%;
                padding: 10px 12px;
                border-radius: 10px;
                background: rgba(255, 255, 255, 0.08);
            }
        }

        &.menu-open {
            background-color: rgba(7, 20, 43, 1);

            .nav {
                max-height: 100vh;
                opacity: 1;
                pointer-events: auto;
                transform: translateY(0);
                margin-top: 10px;
            }
        }
    }

    body {
        &.menu-open {
            overflow: hidden;
        }
    }

    .hero-btn {
        margin-top: 28px;
        gap: 12px;
        padding: 4px 4px 4px 16px;
        font-size: 14px;

        .arrow {
            width: 38px;
            height: 38px;
            font-size: 18px;
        }
    }

    main {
        section {
            &.hero {
                min-height: 540px;
                .hero-content{
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                }
                .hero-btn{
                    align-self: center;
                }
                h1 {
                    font-size: clamp(1.4rem, 5vw, 2.4rem);
                    text-align: center;
                }

                p {
                    margin-top: 20px;
                    font-size: 15px;
                    text-align: center;
                    max-width: 80%;
                }
            }

            &.partners {
                .partners-title {
                    font-size: 16px;
                    margin-bottom: 20px;
                }

                .partner-item {
                    width: 150px;
                    height: 76px;
                }
            }

            &.about {
                .about-content {
                    .item {
                        padding: 18px;

                        &.info-item {
                            ul {
                                padding-left: 0;

                                li {
                                    gap: 10px;
                                }
                            }

                            .value {
                                font-size: 40px;
                            }
                        }
                    }
                }
            }

            &.catalogue {
                .left {
                    h1 {
                        font-size: 28px;
                    }

                    .subtitle {
                        margin-bottom: 20px;
                    }
                }

                .right {
                    .category {
                        .category-left {
                            .icon {
                                width: 64px;
                                height: 64px;

                                i {
                                    font-size: 36px;
                                }
                            }
                        }
                    }
                }
            }

            &.contacts-catalogue {
                .left {
                    h1 {
                        font-size: 28px;
                    }

                    .subtitle {
                        margin-bottom: 20px;
                    }
                }

                .contact-card {
                    .contact-card-right {
                        font-size: 15px;
                    }
                }
            }

            &.supply {
                .container {
                    .right {
                        > .title {
                            font-size: 28px;
                        }

                        > .subtitle {
                            font-size: 18px;
                        }

                        .metrics {
                            .item {
                                .title {
                                    font-size: 20px;
                                    margin-top: 18px;
                                    margin-bottom: 10px;
                                }
                            }
                        }
                    }
                }
            }

            &.sigma {
                .row {
                    .left {
                        font-size: 28px;
                    }
                }

                .items {
                    grid-template-columns: 1fr;

                    .item {
                        padding: 10px;

                        .icon {
                            width: 50px;
                            height: 50px;

                            i {
                                font-size: 34px;
                            }
                        }
                    }
                }
            }

            &.letters {
                .letters__title {
                    font-size: 28px;
                }

                .letters__lead {
                    text-align: left;
                }

                .letters__grid {
                    grid-template-columns: repeat(2, minmax(0, 1fr));
                    margin-top: 24px;
                }
            }
        }

        footer{
            .container{
                padding: 0 30px 30px;
            }
        }
    }


}
