﻿@media (max-width: 1279px) {

    .cookie {
        bottom: 0;
        border-radius: 12px 12px 0 0;
        left: 0;
        width: 100%;
    }

    .cookie__desc {
        max-width: 650px;
        font-size: 14px;
    }
    .main {
        padding-top: calc(76px + 20px);
    }
    section {
        margin-bottom: 90px;
    }

    body .maxwidth-theme, body.fill_bg_y.visible_banner .contacts-page-map, body.fill_bg_y.visible_banner .banners-big .maxwidth-banner, body.fill_bg_y.visible_banner>.body>.main, body.fill_bg_y.visible_banner footer, .banners-big.short-banner.small .maxwidth-banner, .fill_bg_y.visible_banner header .line-row, .container {
        max-width: 768px;
    }

    .main-page h2 {
        font-size: 32px;
    }

    .btn {
        font-size: 16px;
    }
    .btn-blue {
        width: 264px;
    }

    .staples {
        font-size: 16px;
    }

    .catalog__mobile,
    .item__mobile {
        display: none;
        position: fixed;
        margin: 0 auto;
        left: 50%;
        transform: translate(-50%, 0);
        padding: 93px 0 50px 0;
        width: 100vw;
        display: block;
        background-color: #052537;
        color: #fff;
        z-index: 200;
    }
    .catalog__mobile {
        height: 100%;
        min-width: 320px;
        padding-bottom: 0;
        overflow: hidden;
    }
    .catalog__mobile .container {
        height: 100%;
        overflow: auto;
        padding-bottom: 40px;
    }
    .header-catalog__item {
        padding: 14px 12px;
        border-bottom: 1px solid #506673;
    }

    .header-catalog__menu-mobile div:last-child {
        border: none;
    }

    .header-catalog__item:nth-child(1):after {
        content: '';
    }

    .header-catalog__menu-mobile .header-catalog__item.is-child:after {
        content: url('../img/arrow_right_mobil.svg');
        height: 14px;
    }

    .header-catalog__menu-mobile {
        margin-bottom: 21px;
    }

    .header-catalog__menu-mobile div {
        border-bottom: 1px solid #506673;
    }

    .submenu__item__mobile {
        padding: 16px 12px;
        border-bottom: 1px solid #506673;
    }

    .submenu__mobile {
        margin-bottom: 64px;
    }

    .btn__call {
        margin-bottom: 24px;
        width: 100%;
    }

    .phone__mobile {
        display: flex;
        align-items: center;
        gap: 22px;
    }

    .menu__bottom-mobile {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* #PIPELINE, suspension-system, FITTINGS */

    .item__mobile {
        position: fixed;
        z-index: 200;
        height: 835px;
        display: none;
    }

    .back__btn {
        display: inline-flex;
        align-items: center;

        gap: 4px;
        font-size: 20px;
        text-transform: uppercase;
        margin-bottom: 20px;

        cursor: pointer;
    }

    .back__btn:before {
        content: url('../img/back_btn.svg');
        display: flex;
        align-items: center;
        justify-content: center;
        height: 20px;
        width: 20px;
        margin-bottom: -1px;
    }


    .details__title {
        display: flex;
        justify-content: space-between;
        background-color: #fff;
        color: #052537;

        border-radius: 12px;
        text-transform: uppercase;
        padding: 14px 12px;

        cursor: pointer;

    }

    .details__title::after {
        content: url('../img/blue_arrow.svg');
        width: 18px;
        height: 17px;
    }


    .details__item {
        padding: 12px;
        border-bottom: 1px solid #506673;
    }

    .details__item a:hover {
        font-weight: 700;
    }

    /* HEADER */
    .menu-list {
        display: none;
    }

    .header {
        display: none;
    }

    .header__mobile {
        width: 100%;
        position: fixed;
        /* top: 73px; */
        display: block;
        background-color: transparent;
        z-index: 500;
    }

    .hm {
        background-color: #052537;
        border-bottom: 1px solid #50626b;
    }

    .header__wrap {
        display: flex;
        align-items: center;
        gap: 6px;
        justify-content: space-between;
        padding: 16px 0;
    }

    .logo {
        width: 97px;
        height: 40px;
        margin: 0;
    }
    .header__mobile .logo {
        margin-right: auto;
    }
    .form__input {
        width: 301px;
        height: 40px;
    }

    .btn__input {
        width: 80px;
        font-size: 14px;
        top: 2px;
        right: 2px;
        bottom: 2px;
        border-radius: 5px;
    }

    .header__search {
        width: 220px;
        height: 40px;
        padding-left: 42px;
    }

    .phone__btn {
        position: relative;
        z-index: 12;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #fff;
        border-radius: 9px;
        padding: 0;
        background-color: transparent;
    }

    .phone__btn:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #fff;
        border-radius: 8px;
        opacity: 0.2;
        z-index: 11;
    }
    .phone__btn {
        position: relative;
        z-index: 12;
        width: 40px;
        height: 40px;
        border: 1px solid #fff;
        border-radius: 9px;
        padding: 0;
        background-color: transparent;
        cursor: pointer;
    }

    .phone__btn:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #fff;
        border-radius: 8px;
        opacity: 0.2;
        z-index: 11;
    }


    .header__cart {
        position: relative;
        justify-content: center;
        margin: 0;
        color: #fff;
        z-index: 12;
        width: 73px;
        height: 38px;
        border: 1px solid #fff;
        border-radius: 9px;
        padding: 0;
        background-color: transparent;
    }

    .header__cart:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #fff;
        border-radius: 8px;
        /* background: url('bg.jpg') center/cover no-repeat; */
        opacity: 0.2;
        z-index: 11;
    }
    .catalog__btn {
        width: 166px;
        height: 40px;
        margin: 0;

        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;

    }

    .header__shedule,
    .header__list,
    .header__adress {
        font-size: 16px;
    }

    .header__shedule {
        margin-right: 240px;
    }

    .cart__count {
        font-size: 11px;
    }

    /* ГЛАВНАЯ */

    .haupt {
        height: 800px;
    }
    .haupt .nav-btn--prev {
        left: max(calc((100% - 768px) / 2 + 20px), 20px);
    }
    .haupt .nav-btn--next {
        right: max(calc((100% - 768px) / 2 + 20px), 20px);
    }
    .haupt .container {
        padding-bottom: 40px;
    }
    .haupt .haupt__title {
        margin-bottom: 4px;
        padding-top: 530px;
        font-size: clamp(38px, 10.54vw, 81px);
    }
    .haupt .header-subitle__wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    .haupt__subtitle {
        display: block;
        font-size: 38px;
        margin-bottom: 16px;
    }

    .haupt__text {
        max-width: 100%;
        font-size: 18px;
        margin-bottom: 32px;
    }

    .haupt__buttons .btn {
        flex: 1;
        width: auto;
    }

    /* КАТАЛОГ */
    .section__header {
        margin-bottom: 24px;
    }
    .section__control .btn-gray {
        min-width: 0;
    }

    .catalog__navigation {
        margin-bottom: 8px;
    }

    .navigation__item {
        margin: 0 0 12px 0;
    }

    .catalog__cards-items {
        gap: 24px 12px;
    }

    .cards__name {
        font-size: 16px;
    }

    /* О НАС */

    .about {
        margin-bottom: 40px;
    }

    .about__wrap {
        grid-template-columns: auto;
    }

    .about__desc {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .about__cell {
        max-width: 100%;
        font-size: 14px;
        margin-bottom: 32px;
    }

    .about__btn {
        width: 100%;
    }

    /* NUMBERS */
    .numbers__wrap {
        gap: 12px;
    }
    .numbers__numb {
        font-size: 52px;
        margin-bottom: 12px;
    }

    .numbers__desc {
        font-size: 14px;
    }

    /* УСЛУГИ */
    .card__number {
        font-size: 40px;
    }

    .card__text {
        font-size: 16px;
    }
    .services__card {
        padding: 8px;
    }
    .services__arrow {
        width: 12px;
        height: 12px;
    }


    /* ЗАКАЗЧИК */

    .customers__slider {
        gap: 12px;
    }

    .customers__text {
        font-size: 16px;
        bottom: 12px;
        left: 8px;
    }

    /* ПРЕИМУЩЕСТВА */

    .advantages__accord .accordion {
        padding: 12px;
    }

    .advantages__accord .accordion::before {
        content: none;
    }

    .item__title {
        margin-left: 0;
        font-size: 16px;
    }

    .panel {
        font-size: 16px;
        padding: 0 12px 0px 12px;
    }

    .shipment__img {
        margin-bottom: 12px;
    }

    .shipment__date {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .shipment__place {
        margin-bottom: 4px;
        font-size: 14px;
    }

    .shipment__name {
        font-size: 16px;
    }

    /* ОТПРАВИТЬ ЗАЯВКУ */
    .application__wrap {
        flex-direction: column;
        gap: 12px;
    }

    .application__left,
    .application__right {
        width: 100%;
    }

    .application__left {
        height: 440px;
        display: flex;
        /* justify-content: space-between; */
        flex-direction: column;
    }

    .application__title {
        max-width: 90%;
        margin-top: auto;
        margin-bottom: 16px;
    }

    .application__subtitle {
        max-width: 100%;
        font-size: 14px;
    }

    .application__right {
        padding: 32px 24px;
    }

    .name,
    .phone,
    .email,
    .message {
        box-sizing: border-box;
        width: 335px;
        height: 48px;
        margin: 0;
        padding: 12px;
        border: none;
        border-radius: 8px;
        outline: none;
        font-size: 14px;
    }

    .name__phone,
    .email__file {
        gap: 12px;
    }

    .email__file {
        align-items: center;
    }

    .form__download {
        font-size: 16px;
    }

    .message {
        height: 90px;
        margin-bottom: 24px;
    }

    .conf__link,
    .application__conf {
        font-size: 14px;
    }

    /* КОНТАКТЫ */

    .contacts {
        margin-bottom: 40px;
    }

    .contacts__wrap {
        flex-direction: column;
    }

    .contacts__tile {
        width: 395px;
        margin-bottom: 24px;
    }

    .contacts__items {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto auto;
        grid-auto-flow: row;
        gap: 24px;
    }

    .contacts-1, .contacts-2 {
        grid-column: span 2;
    }


    .contacts-3 {
        order: 1;
    }
    .contacts-4 {
        order: 3;
    }
    .contacts-5 {
        order: 5;
    }
    .contacts-6 {
        order: 2;
    }
    .contacts-7 {
        order: 4;
    }
    .contacts-8 {
        order: 6;
    }

    .contacts__title {
        font-size: 14px;
    }

    .contacts__text {
        font-size: 16px;
        line-height: 1;
    }

    .telegram {
        width: 32px;
        height: 32px;
    }

    /* КАРТА */

    .map2 {
        height: 441px;
    }

    /* FOOTER */
    .footer__columns {
        flex-direction: column;
        font-size: 14px;
        margin-bottom: 24px;
        gap: 0;
    }

    .footer__center {
        display: flex;
        justify-content: space-between;
        margin-bottom: 40px;
    }

    .logo-footer {
        width: 132px;
        max-width: none;
        height: 54px;
        margin-bottom: 0;
        margin-right: 21px;
    }

    .media {
        font-size: 20px;
        gap: 16px;
        display: none;
    }

    .column-one {
        flex-direction: row;
        align-items: center;
        width: 370px;
        margin-bottom: 32px;
    }

    .column-one__subtitle {
        font-size: 14px;
    }

    .column-two {
        width: 180px;
    }

    .column-three {
        width: 180px;
    }

    .column-four {
        width: 343px;
    }

    .column-five {
        width: 100%;
    }

    .column__title-5 {
        margin-bottom: 20px;
    }

    .footer__btn {
        width: 100%;
        margin-bottom: 20px;
    }

    .column-five__phone,
    .column-five__email,
    .column-five__adress {
        font-size: 16px;
    }

    .column-five__schedule {
        font-size: 14px;
    }

    .column-five__email {
        margin-bottom: 24px;
    }

    .column-five__adress {
        margin-bottom: 40px;
    }

    .media-2 {
        display: flex;
        gap: 20px;
        margin-top: auto;
        font-size: 16px;
    }

    .footer__bottoms {
        font-size: 14px;
        grid-template-columns: repeat(2, 343px);
        row-gap: 12px;
        column-gap: 42px;
    }
    .catalog .col-md-6 {
        width: 100%;
    }
}