/*@media (max-width: 1600px) {*/
/*    .top--main .top__info {*/
/*        max-width: 65%;*/
/*        min-width: 65%;*/
/*    }*/

/*    .top--main .top__logo-wrap {*/
/*        max-width: 35%;*/
/*        min-width: 35%;*/
/*    }*/

/*    .top__logo {*/
/*        min-width: 160px;*/
/*        max-width: 160px;*/
/*    }*/

/*    .top__logo img {*/
/*        max-width: 100%;*/
/*    }*/

/*    .top__logo-text {*/
/*        font-size: 11px;*/
/*        margin-bottom: 0;*/
/*    }*/

/*    .top__menu-item {*/
/*        margin-right: 20px;*/
/*    }*/

/*    .top__phone-number {*/
/*        font-size: 16px;*/
/*    }*/

/*    .top--main .top__city {*/
/*        max-width: 25%;*/
/*        min-width: 25%;*/
/*    }*/

/*    .header-slider-menu {*/
/*        padding: 30px;*/
/*        padding-right: 0;*/
/*    }*/

/*    .header-slider-menu-sub {*/
/*        padding-top: 30px;*/
/*    }*/

/*    .header-slider-menu-link {*/
/*        padding: 10px 0 10px 30px;*/
/*    }*/
/*}*/

@media (max-width: 1328px) {
    
    .container {
        width: 992px;
    }

    .top__info {
        max-width: 42%;
        min-width: 42%;
    }

    .top__search{
        width: 120px;
    }
    
    .top__search input {
        width: 100px;
    }

    .top--main .top__logo-wrap {
        max-width: 35%;
        min-width: 35%;
    }

    .top__city {
        font-size: 12px;
    }

    .top__phone {
        font-size: 12px;
    }

    .top__logo {
        max-width: 150px;
        min-width: 150px;
    }

    .top__logo-text {
        margin-left: 20px;
    }

    .top__compare .material-icons {
        line-height: 40px;
        font-size: 20px;
    }

    .top__cart-sum {
        margin-left: 10px;
    }

    .top--main .top__city {
        max-width: 25%;
        min-width: 25%;
        margin-right: 0;
        padding-right: 15px;
    }

    .top--main .top__phone {
        max-width: 25%;
        min-width: 25%;
        margin-right: 0;
        padding-right: 15px;
    }

    .top__menu-item {
        margin-right: 3px;
    }

    .brand__slider .slick-arrow {
        top: 15px;
    }

    /* Каталог */
    .catalog__list .good__add-icon {
        height: 40px;
    }

    /* Карточка товара */
    .prod__buy {
        padding: 20px;
    }

    .prod__buy-left {
        max-width: 48%;
        min-width: 48%;
    }

    .prod__buy-right {
        max-width: 50%;
        min-width: 50%;
    }

    .prod__buy-price {
        font-size: 25px;
    }

    .prod__buy-sum {
        margin-bottom: 30px;
    }

    .good__price .prod__buy-btns {
        max-width: 130px;
        min-width: 130px;
        margin-right: 10px;
    }

    .good__price .prod__buy-btns .btn {
        padding: 15px 15px;
        font-size: 16px;
    }

    /* Header slider */
    .header-slider__good {
        width: auto;
        max-width: 50%;
        padding: 20px;
    }

    .header-slider__good-name {
        font-size: 25px;
        line-height: 35px;
        margin-right: 15px;
    }

    .header-slider-menu-link {
        font-size: 14px;
        padding: 10px 0 10px 10px;
    }
}

@media (max-width: 992px) {
    /* Общие */
    .wrapper {
        padding-top: 80px;
        padding-bottom: 10px;
    }

    /* Заголовки */
    h1 a, .h1 a {
        display: inline-flex;
        -webkit-align-items: center;
        align-items: center;
        font-size: 15px;
    }

    h1 a img, .h1 a img {
        margin-left: 10px;
    }

    /* Шапка */
    .top {
        display: none;
    }

    /* Хлебные крошки */
    .path {
        display: none;
    }

    /* Брендслайдер */
    .brand {
        display: none;
    }

    /* Фильтр и каталог */
    .filter__item--xs {
        display: block;
    }

    .catalog__lcol {
        max-width: 0%;
        min-width: 0%;
    }

    .filter__top {
        display: none;
    }

    .catalog__rcol {
        max-width: 100%;
        min-width: 100%;
        padding-left: 0;
    }

    .sort__view {
        display: none;
    }

    .filter__top--xs {
        display: flex;
    }

    .filter-wrap {
        width: 0;
        opacity: 0;
        overflow: hidden;
    }

    .filter-wrap--open {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        opacity: 1;
        overflow-y: scroll;
        background: rgba(84, 79, 76, 0.7);
        z-index: 10;
        padding: 40px 15px;
    }

    .filter {
        padding: 20px 10px 5px;
        background: #FFF;
        -webkit-border-radius: 4px;
        border-radius: 4px;
    }

    .filter-wrap__top {
        display: flex;
        -webkit-justify-content: space-between;
        justify-content: space-between;
        -webkit-align-items: center;
        align-items: center;
        color: #FFF;
        margin-bottom: 25px;
        font-weight: bold;
        font-size: 20px;
        text-transform: uppercase;
    }

    .filter-wrap-close {
        color: #FFF;
    }

    .pagination__item {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }

    /* Карточка товара */
    .prod__images-previews {
        display: none;
    }

    .prod__images-image {
        width: 100%;
    }

    .prod__maker {
        padding: 0;
        display: block;
    }

    .prod__maker img {
        display: block;
        margin-bottom: 10px;
    }

    .prod__buy {
        display: block;
    }

    .prod__buy-left, .prod__buy-right {
        max-width: 100%;
        min-width: 100%;
    }

    .prod__buy-left {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .prod__buy-sum {
        margin-bottom: 0;
    }

    .prod__sert {
        max-width: 35%;
        min-width: 35%;
    }

    .prod__cols {
        display: block;
    }

    .prod__lcol {
        max-width: 100%;
        min-width: 100%;
    }

    .prod__rcol {
        max-width: 100%;
        min-width: 100%;
    }

    /* Список товаров линией */
    .lgood {
        padding-left: 0;
    }

    .cart .lgood__info {
        margin-right: 15px;
    }

    .lgood__name {
        font-size: 14px;
    }

    .lgood__img {
        max-width: 20%;
        min-width: 20%;
    }

    .cart .lgood__info {
        max-width: 35%;
    }

    /* Счётчик */
    .counter {
        width: 150px;
        padding: 0 50px;
        height: 50px;
    }

    .counter__minus, .counter__plus {
        width: 50px;
        height: 50px;
        line-height: 50px;
    }

    .counter__value {
        width: 50px;
        height: 50px;
        line-height: 50px;
    }

    /* Бренды */
    .p-brands__line-in {
        -webkit-justify-content: space-between;
        justify-content: space-between;
    }

    .p-brands__item {
        max-width: 48%;
        min-width: 48%;
        margin-right: 0;
    }

    /* Сравнение */
    .compare {
        margin-bottom: 40px;
    }

    .compare__line-item {
        max-width: 33.3%;
        min-width: 33.3%;
    }

    /* Форма */
    .form-wrap {
        overflow: hidden;
    }

    .form-wrap-in {
        padding: 40px 100px 40px 30px;
    }

    .form__right {
        display: none;
    }

    .form__left {
        max-width: 100%;
        min-width: 100%;
    }

    .form__left-img {
        right: -120px;
    }

    .map-footer {
        width: 40%;
    }

    /* Футер */
    .footer {
        height: auto;
        margin-top: 0;
        padding-top: 30px;
        padding-bottom: 20px;
        border-top: 1px solid #DDD2C9;
    }

    .footer__menu {
        display: none;
    }

    .footer__line {
        padding: 0;
    }

    .footer__line .container {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .footer__logo {
        display: none;
    }

    .footer__info {
        display: flex;
        margin-top: 30px;
    }

    /* Header slider */
    .header-slider-menu {
        display: none;
    }

    .header-slider-wrap {
        max-width: 100%;
        min-width: 100%;
    }

    .header-slide {
        height: 500px;
    }

    .header-slider-wrap {
        height: 500px;
    }

    /* M-catalog */
    .m-catalog {
        margin-bottom: 40px;
    }

    .m-catalog__all {
        display: none;
    }

    .m-catalog__list {
        -ms-overflow-x: scroll;
        overflow-x: scroll;
    }

    .m-catalog__list .good {
        max-width: 33%;
        min-width: 33%;
    }

    /* О компании */
    .about__left {
        max-width: 100%;
        min-width: 100%;
    }

    .about__right {
        display: none;
    }

    .about__left-img {
        display: block;
        height: 250px;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: top center;
        margin-bottom: 20px;
    }

    .partners {
        margin-bottom: 40px;
    }

    .partners__slider {
        padding: 0;
    }

    .partners__slider .slick-arrow {
        display: none !important;
    }

    .partners__slide {
        padding-right: 15px;
    }

    /* Услуги */
    .service {
        margin-bottom: 40px;
    }

    .service__item-img {
        max-width: 40%;
        min-width: 40%;
        height: 150px;
    }

    .service__item-text {
        padding-right: 0;
        font-size: 14px;
        line-height: 24px;
    }

    /* Страницы */
    .pages {
        flex-direction: column;
        gap: 24px;
    }

    .pages__tabs {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        overflow-x: auto;
        position: static;
        max-height: none;
        gap: 8px;
        padding-bottom: 8px;
    }

    .pages__tabs-item {
        white-space: nowrap;
        min-width: fit-content;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .pages__tabs-item.active {
        border-left: none;
        border-bottom: 3px solid #e70000;
    }

    .pages__content {
        max-height: none;
        overflow-y: visible;
    }

    .pages__content-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   Экраны до 750px (малые планшеты и большие смартфоны)
   ========================================================================== */
@media (max-width: 750px) {
    /* Каталог */
    .catalog__list {
        -webkit-justify-content: space-between;
        justify-content: space-between;
    }

    .catalog__list .good {
        max-width: 49%;
        min-width: 49%;
        margin-right: 0;
    }

    /* Карточка товара */
    .prod__top {
        display: block;
        margin-bottom: 20px;
    }

    .prod__images {
        max-width: 100%;
        min-width: 100%;
    }

    .prod__info {
        max-width: 100%;
        min-width: 100%;
    }

    .prod__buy-left {
        display: block;
    }

    .prod__buy-sum {
        margin-bottom: 20px;
    }

    .prod__bottom {
        display: block;
    }

    .prod__show {
        max-width: 100%;
        min-width: 100%;
    }

    .prod__sert {
        max-width: 100%;
        min-width: 100%;
        margin-top: 15px;
    }

    /* Список товаров линией */
    .lgood {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .lgood__img {
        max-width: 100%;
        min-width: 100%;
    }

    .lgood__info-wrap {
        max-width: 100%;
        min-width: 100%;
        margin-left: 0;
        margin-top: 15px;
    }

    .lgood__info-wrap {
        border-bottom: none;
    }

    /* Корзина */
    .cart__total {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        margin-bottom: 40px;
    }

    .cart__total-text {
        display: flex;
        -webkit-align-items: center;
        align-items: center;
        -webkit-justify-content: space-between;
        justify-content: space-between;
    }

    .cart__total-sum {
        margin-bottom: 15px;
    }

    .cart__total-price {
        margin-bottom: 15px;
    }

    .cart__total .btn {
        max-width: 100%;
        min-width: 100%;
    }

    .cart__total-text a {
        font-size: 12px;
    }

    /* Бренды */
    .p-brands__alphabet {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        padding: 15px;
    }

    .p-brands__alphabet-left {
        max-width: 100%;
        min-width: 100%;
        display: flex;
        -webkit-align-items: center;
        align-items: center;
        margin-bottom: 20px;
    }

    .p-brands__alphabet-title {
        margin-bottom: 0;
        margin-right: 30px;
    }

    .p-brands__alphabet-right {
        max-width: 100%;
        min-width: 100%;
    }

    .p-brands__alphabet-item {
        max-width: 30px;
        min-width: 30px;
        height: 30px;
        line-height: 30px;
    }

    .p-brands__item {
        max-width: 100%;
        min-width: 100%;
    }

    .checkbox-brands {
        padding: 5px;
        font-size: 12px;
        margin-right: 2px;
    }

    .checkbox-brands:before {
        content: none;
    }

    .checkbox-brands input:checked ~ .checkbox-brands__text:after {
        content: none;
    }

    .checkbox-brands input:checked ~ .checkbox-brands__text {
        color: #FF5C00;
    }

    .p-brands__letter {
        margin-bottom: 20px;
    }

    /* Сравнение */
    .compare__line-item {
        max-width: 50%;
        min-width: 50%;
    }

    /* Контакты */
    .contacts {
        height: auto;
        margin-top: 40px;
    }

    .form-wrap.container {
        padding: 0;
    }

    .form-wrap-in {
        border-radius: 0;
    }

    .map-footer {
        position: static;
        width: 100%;
        height: 250px;
        margin-bottom: 20px;
    }

    /* Showroom */
    .show {
        padding: 40px 0;
        margin-bottom: 40px;
    }

    .show__btns {
        display: block;
        margin-bottom: 20px;
    }

    .show__btn {
        padding: 10px 20px;
        color: #28272C;
        font-size: 13px;
        margin-right: 0;
        border-bottom: 3px solid transparent;
    }

    .show__btn--active {
        color: #FF5C00 !important;
        border-bottom: 3px solid #FF5C00;
        background: none;
    }

    .show__item {
        max-width: 100%;
        min-width: 100%;
    }

    .show__item--active {
        display: block;
    }

    /* Header slider */
    .header-slider-block {
        padding: 0;
    }

    .header-slide {
        height: auto;
    }

    .header-slider-wrap {
        height: auto;
    }

    .header-slide__img {
        height: 370px;
        z-index: -1;
    }

    .header-slider__good {
        position: static;
        margin: 355px 15px 0px;
        border-radius: 4px;
        max-width: 100%;
    }

    .header-slider__good-name {
        font-size: 16px;
        line-height: 26px;
    }

    .header-slider__good-price {
        font-size: 16px;
    }

    /* M-catalog */
    .m-catalog__list .good {
        max-width: 50%;
        min-width: 50%;
    }

    .m-catalog__tag {
        background: none;
        padding: 10px 20px;
        color: #28272C;
        font-size: 13px;
        margin-right: 0;
        border-bottom: 3px solid transparent;
    }

    .m-catalog__tag img {
        display: none;
    }

    .m-catalog__tag--active {
        color: #FF5C00 !important;
        border-bottom: 3px solid #FF5C00;
    }

    /* О компании */
    .partners {
        text-align: left;
    }

    .partners .btn {
        padding: 0;
        background: none;
    }

    /* Услуги */
    .service__item {
        max-width: 100%;
        min-width: 100%;
    }

    .service__item-text {
        min-height: auto;
    }

    /* Страницы */
    .pages__tabs {
        gap: 6px;
    }

    .pages__tabs-item {
        padding: 12px 16px;
        font-size: 14px;
    }

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

    .pages__content-item {
        margin-bottom: 40px;
    }
}

/* ==========================================================================
   Экраны до 600px (мобильные устройства)
   ========================================================================== */
@media (max-width: 600px) {
    /* Список товаров линией */
    .lgood__info-wrap {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .cart .lgood__info {
        max-width: 100%;
        min-width: 100%;
    }

    /* Сравнение */
    .compare__line-item {
        max-width: 100%;
        min-width: 100%;
    }
}

/* ==========================================================================
   Экраны до 550px (малые мобильные)
   ========================================================================== */
@media (max-width: 550px) {
    /* Карточка товара */
    .prod__buy-right {
        flex-direction: column;
    }

    .prod__buy-btns {
        max-width: 100%;
        min-width: 100%;
        margin-top: 20px;
    }
}

/* ==========================================================================
   Экраны до 500px (очень малые мобильные)
   ========================================================================== */
@media (max-width: 500px) {
    /* Каталог */
    .catalog__list .good {
        max-width: 100%;
        min-width: 100%;
        margin-right: 0;
    }

    .sort__left .js-select {
        width: 115px;
    }

    .sort--bottom .sort__right {
        display: none;
    }

    .sort--bottom .sort__left {
        max-width: 100%;
        min-width: 100%;
    }

    /* M-catalog */
    .m-catalog__list .good {
        max-width: 90%;
        min-width: 90%;
    }

    /* Услуги */
    .service__item-img {
        max-width: 165px;
        min-width: 165px;
        height: 135px;
    }

    .service__item-text {
        font-size: 16px;
        line-height: 26px;
    }
}

/* ==========================================================================
   Дополнительные адаптивные правила
   ========================================================================== */

/* Адаптивные изображения */
@media (max-width: 992px) {
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Адаптивные таблицы */
@media (max-width: 750px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Скрытие элементов на мобильных */
@media (max-width: 992px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Показ только на мобильных */
@media (min-width: 993px) {
    .show-mobile {
        display: none !important;
    }
}

/* Адаптивные отступы */
@media (max-width: 750px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    h1, .h1, h2, .h2 {
        margin-top: 30px;
        margin-bottom: 24px;
        font-size: 20px;
    }
}

/* Адаптивная типографика */
@media (max-width: 500px) {
    body {
        font-size: 14px;
    }

    h1, .h1 {
        font-size: 18px;
        line-height: 24px;
    }

    h2, .h2 {
        font-size: 16px;
        line-height: 22px;
    }
}

/* Ориентация экрана */
@media (orientation: landscape) and (max-height: 500px) {
    .header-slider-wrap,
    .header-slide {
        height: 400px;
    }
}

/* Ретина дисплеи */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Улучшенное отображение для Retina */
    .top__logo img,
    .footer__logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Контейнер на планшетах и мобильных не шире экрана (раньше было фиксированные 992px) */
@media (max-width: 992px) {
    .container {
        width: auto;
        max-width: 100%;
    }
}

/* Новая карточка товара (?v=new) */
@media (max-width: 1328px) {
    .pcard__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        grid-template-areas:
            "head head"
            "gallery info"
            "aside aside"
            "features features";
    }
    .pcard__aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
    .pcard__features {
        margin-top: 20px;
    }
}
@media (max-width: 750px) {
    .pcard__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "head"
            "gallery"
            "aside"
            "info"
            "features";
    }
    .pcard__aside {
        grid-template-columns: minmax(0, 1fr);
    }
    .pcard__title {
        font-size: 22px;
    }
    .pcard__box {
        padding: 20px;
    }
    .pcard__price-main {
        font-size: 30px;
    }
    .pcard__h2 {
        font-size: 20px;
    }
    .pcard-section {
        padding: 30px 0;
    }
    .pcard-objects {
        grid-template-columns: minmax(0, 1fr);
    }
    .pcard-texture-banner {
        min-height: 260px;
    }
}
