* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* pointer-events: none; осторожно - это отключит все события мыши */

    /* Специально для Яндекс.Браузера */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
    /* user-drag: none; */
}

:root {
    --col-1: 9.333%;
    --img-max-width: 700px;
    /* Filter modal layout variables */
    --filter-header-h: 136px;
    --filter-buttons-h: 158px;
    --filter-body-pt-base: 57px;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 55px;
    line-height: 120%;
    letter-spacing: 1.1px;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 130%;
    letter-spacing: 0.56px;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 130%;
    letter-spacing: 0.44px;
}

.text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
}

p {
    margin-bottom: 10px;
}

.p1, p.p1, span.p1, li.p1, .pagination button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: 0.32px;
}

.p2, p.p2, span.p2, li.p2, li {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: 0.32px;
}

.num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 2px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(39, 44, 49, 1) 100%);
}

.no-scroll {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul li {
    color: white;
}

a {
    color: white;
    text-decoration: none;
}

.container,
.container_ {
    width: 100%;
    max-width: 1650px;
    /* max-width: 1602px; */
    margin: 0 auto;
    padding: 0 20px;
}

.wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.menu {
    /* Меню прижато кверху */
    flex: 0 0 auto;
}

.slider {
    /* Слайдер занимает всё оставшееся пространство */
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* pagination */

.pagination-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 80px;
}

.pagination {
    display: flex;
}

.pagination button {
    color: #979797;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.pagination button:hover {
    color: black;
}

.pagination li:not(:last-child) {
    margin-right: 30px;
}

.pagination li:first-child {
    margin-right: 60px;
}

.pagination li:last-child {
    margin-left: 30px;
}

.pagination li.active {
    color: #ff0000;
    padding-top: 1px;
}

.pagination li a {
    color: #979797;
}

.pagination .disabled svg path {
    fill: #c3c3c3;
}

.pagination .next-prew,
.pagination .disabled {
    padding-top: 3px;
}

.pagination .next-prew:hover svg path {
    fill: black;
}

/* Мобильная пагинация */
.pagination.mobile-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.pagination.mobile-pagination .page-info {
    color: #979797;
    font-size: 16px;
}

/* Десктопная пагинация */
.pagination.desktop-pagination {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

/* Точки для многоточия */
.pagination .p1.dots {
    margin-right: 10px;
    margin-left: -20px;
}

.pagination .p1.dots span {
    color: #979797;
    padding: 5px 8px;
}

.pagination.mobile-pagination {
    display: none;
}

.pagination.desktop-pagination {
    display: flex;
}

.load-more-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 92px;
    border-right: 1px solid rgba(195, 195, 195, 0.8);
    border-left: 1px solid rgba(195, 195, 195, 0.8);
    border-bottom: 1px solid rgba(195, 195, 195, 0.8);
}

.load-more-btn {
    color: #979797;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.load-more-btn:hover:not(:disabled) {
    color: #000;
}

/* --/ pagination */

/* header */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(39, 44, 49, 0.8) 100%);
    padding: 0;
    transition: all 0.3s ease-in-out;
    z-index: 999;
}

.header--top {
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(39, 44, 49, 1) 100%);
}

/* Контейнер с контентом ограничен по ширине */
.header__container {
    max-width: 1602px; /* Максимальная ширина контента */
    width: 100%;
    margin: 0 auto; /* Автоматические отступы для центрирования */
    /* padding: 1rem 2rem; Отступы внутри контейнера */
    display: flex;
    height: 92px;
    gap: 321px;
    align-items: center;
    box-sizing: border-box;
}

.header--hidden {
    transform: translateY(-100%);
}

.header__container a {
    margin-right: auto;
}

.header__container .logo {
    width: 197px;
    height: 62px;
}

.header__container .menu {
    width: 654px;
}

.header__container .menu ul {
    display: flex;
    justify-content: space-between;
}

.header__container .menu ul li a,
.footer-top .menu ul li a {
    position: relative;
    padding: 15px 15px 15px 0;
}

.header__container .menu ul li a:hover::before,
.footer-top .menu ul li a:hover::before {
    content: url('../img/hover.png');
    position: absolute;
    top: 13px;
    left: -26px;
}

.header__container .search {
    cursor: pointer;
}

.header__container .search img {
    width: 34px;
    height: 34px;
}

.header__container .burger {
    display: none;
}

.menu-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(39, 44, 49, 1) 100%);
    transition: right 0.3s ease-out;
}

.menu-mobile.active {
    right: 0;
    z-index: 1000;
}

#close-mobile {
    position: absolute;
    top: 17px;
    right: 20px;
    width: 30px;
    height: 30px;
}

.menu-mobile ul {
    margin-top: 100px;
    margin-left: 40px;
}

.menu-mobile ul li:not(:last-child) {
    margin-bottom: 30px;
}

.menu-mobile-catalog {
    display: flex;
    justify-content: space-between;
}

.menu-mobile-catalog-arrow {
    margin-right: 20px;
}
/* --/ header */

/* swiper */

.slider {
    margin-top: 92px;
}

.swiper-nav {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 30px;
    z-index: 10;
    margin-bottom: 30px;
    height: 68px;
}

.swiper-button-prev,
.swiper-button-next {
    position: static;
    margin-top: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* скрываем стандартные стрелки */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

.swiper-counter {
    color: white;
}

/* Скрываем стандартную пагинацию */
.swiper-pagination {
    display: none;
}

.swiper-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.swiper-title {
    width: 625px;
    height: auto;
    color: white;
    opacity: 0;
    /* transform: translateX(-10px); */
    transition: all 0.6s ease 0.6s; /* Задержка 0.6s */
}

.swiper-slide-active .swiper-title {
    opacity: 1;
    /* transform: translateX(0); */
}

.swiper-title h1 {
    margin-bottom: 60px;
}

.swiper-title ul li {
    margin-bottom: 20px;
}

.swiper-title ul li a:hover {
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 1px;
}

.swiper-img {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease 0.3s; /* Задержка 0.3s */
    margin-top: 70px;
}

.swiper-slide-active .swiper-img {
    opacity: 1;
    transform: translateX(0);
}

/* .swiper-img img {
    width: auto;
    height: auto;
    max-width: min(700px, calc(100vw - 50px));
    max-height: min(95vh, calc(100vw * 0.7));
    object-fit: contain;
    height: min(80vh, calc(100vw * 0.8));
} */

.swiper-img img {
    width: auto;
    height: auto;
    max-width: min(700px, calc(100vw - 50px));
    max-height: min(75vh, calc(100vw * 1.2));
    object-fit: contain;
    pointer-events: none;
}

/* @media (max-width: 379px) { :root { --img-max-width: 100%; } }
@media (max-width: 899px) { :root { --img-max-width: 360px; } }
@media (max-width: 1169px) { :root { --img-max-width: 410px; } }
@media (max-width: 1399px) { :root { --img-max-width: 460px; } }
@media (max-width: 1700px) { :root { --img-max-width: 500px; } } */

.to-catalog-top {
    position: relative;
}

.to-catalog-top .to-catalog-arrow {
    position: absolute;
    top: 2px;
    right: -23px;
}

.to-catalog {
    display: none;
}

/* --/ swiper */

/* catalog */

.catalog-main {
    display: flex;
    width: 100%;
    max-width: 1602px;
    margin-left: auto;
    margin-right: auto;
    height: 100vh;
}

.catalog-main-categories {
    padding-top: 16px;
}

.catalog-main-categories .to-main-link img {
    margin-bottom: 89px;
}

.categories {
    width: 418px;
}

.categories ul {
    width: 314px;
}

.categories ul li:not(:last-child) {
    margin-bottom: 23px;
}

.categories .categories-li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
}

/* .categories-link {
    cursor: pointer;
} */

.categories-li:hover .svg-shape {
    fill: #ff0000;
}

.categories-arrow {
    position: relative;
}

.categories-arrow.selected .svg-shape {
    fill: #ff0000;
}

.categories-arrow.selected::after {
    content: url('../img/arrow-gray.png');
    position: absolute;
    top: -4px;
    left: 89px;
}

.categories-arrow .to-catalog-arrow {
    position: absolute;
    top: 5px;
    left: -10px;
}

.catalog-main-category {
    width: 100%;
    padding-top: 25px;
    padding-left: 123px;
    background: linear-gradient(
        to right,
        rgba(31, 35, 39, 1.6) 0%,
        rgba(31, 35, 39, 0.1) 10%
    );
    position: relative;
}

.close-mobile,
.back-button {
    display: none;
}

.catalog-main-category.visible .close {
    display: flex;
    /* justify-content: space-between;
    align-items: flex-start; */
    justify-content: end;
}

.catalog-main-category.hidden .close {
    text-align: right;
}

/* .catalog-main-category .close-link img {
    margin-bottom: 102px;
    text-align: right;
} */

.category-info-title {
    width: 450px;
    margin-top: 100px;
    /* position: absolute; */
}

.category-info-title h2 {
    color: white;
    margin-bottom: 50px;
}

.category-info-title ul li:not(:last-child) {
    margin-bottom: 20px;
}

.category-info-link:hover {
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 1px;
}

.category-info-img {
    position: absolute;
    bottom: 80px;
    right: 0;
}

.category-info-img img {
    width: 514px;
    height: auto;
}

/* --/ catalog */

/* footer */

.footer {
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(39, 44, 49, 1) 100%);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 163px;
}

.footer-top .logo {
    width: 197px;
    height: 62px;
}

.footer-top .menu {
    width: 919px;
}

.footer-top .menu ul {
    display: flex;
    justify-content: space-between;
}

.footer-bottom {
    background-color: rgba(195, 195, 195, 0.15);
    border-top: 1px solid #979797;
}

.footer-bottom .menu {
    display: flex;
    align-items: center;
    gap: 208px;
    height: 55px;
}

.footer-bottom .menu li {
    color: #c3c3c3;
}

.footer-bottom .menu li:first-child {
    margin-right: auto;
}

/* --/ footer */

/* modal window */

.modal {
    transition: opacity 0.3s ease;
}

.modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.modal-content {
    background-color: white;
    width: 100%;
    height: 100vh;
    /* width: 1700px;
    height: 1000px; */
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: start;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content-body {
    /* width: 1575px; */
    margin: 0 auto;
}

.search-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
} 

.modal-close-container {
    width: 1594px;
    margin: 0 auto;
}

.modal-close-btn,
.filter-close-btn {
    /* position: absolute;
    top: 31px;
    right: 234px; */
    text-align: end;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.modal-close-btn {
    width: 100%;
    margin-top: 30px;
}

.modal-close-btn img {
    width: 34px;
    height: 34px;
}

@keyframes modalFadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --/ modal window for search */

/* search result */

.search-results {
    width: 100%;
}

.input-body {
    position: relative;
    display: flex;
    width: 100%;
    height: 113px;
    margin-top: 90px;
}

.line {
    width: 1194px;
    background-color: #c3c3c3;
    height: 1px;
    border: none;
}

.search-black {
    display: flex;
    align-items: flex-start;
    margin-right: 35px;
}

.search-black img {
    width: 46px;
    height: 46px;
}

/* .search-input {
    width: 100%;
    border: none;
    outline: none;
    font-weight: 600;
    font-size: 28px;
    line-height: 130%;
    letter-spacing: 0.56px;
} */

.search-input::placeholder,
.search-textarea::placeholder {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 130%;
    letter-spacing: 0.56px;
    color: #c3c3c3;
    padding-top: 6px;
}

.search-textarea {
    width: 100%;
    resize: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.6;
    letter-spacing: 0.56px;
    border: none;
    outline: none;
    background-color: transparent;
}

.search-textarea:focus {
    outline: none;
    border-color: none;
}

.results-container {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    /* height: 500px; */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Полоса прокрутки целиком */
::-webkit-scrollbar {
    width: 4px; /* ширина вертикальной полосы */
    /* height: 12px; высота горизонтальной полосы */
  }
  
  /* Дорожка (фон) */
::-webkit-scrollbar-track {
    background: rgba(195, 195, 195, 0.3);
  }
  
  /* Бегунок (ползунок) */
::-webkit-scrollbar-thumb {
    background: #c3c3c3;
  }
  
  /* Бегунок при наведении
::-webkit-scrollbar-thumb:hover {
    background: #555;
  } */
  
  /* Кнопки (стрелки) */
::-webkit-scrollbar-button {
    display: none; /* скрыть кнопки */
  }

.search-results-category,
.search-results-prod {
    display: grid;
    grid-template-columns: repeat(3, 365px);
    row-gap: 37px;
    column-gap: 43px;
    padding-bottom: 40px;
}

.search-results-prod {
    margin-top: 40px;
    margin-bottom: 60px;
}

.search-prod-item {
    height: 187px;
    display: flex;
    flex-direction: column;
}

.search-prod-img {
    width: 106px;
    height: 106px;
    flex-shrink: 0;
    margin-bottom: 15px;
}

.search-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.result-link {
    color: #979797;
    text-decoration: none;
}

.result-link:hover {
    color: black;
}

.results-container .no-results {
    color: #979797;
}

.full-search .no-results {
    padding-top: 40px;
    padding-bottom: 80px;
    color: black;
}

.clear-search-btn {
    color: #979797;
    background: transparent;
    border: none;
    position: absolute;
    top: 35px;
    cursor: pointer;
}

.clear-search-btn:hover {
    color: black;
}

.show-all-btn {
    background: transparent;
    border: none;
    cursor: pointer;
}

.show-all-btn img {
    width: 46px;
    height: 46px;
}

/* --/ search result */

/* category */

.category-body {
    padding-top: 172px;
    margin-bottom: 80px;
}

.category-body h1 {
    margin-bottom: 100px;
    width: 1200px;
    color: white;
}

.category-body ul.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* border: 1px solid rgba(151, 151, 151, 0.5); */
}

.category-body ul.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* border: 1px solid rgba(151, 151, 151, 0.5); */
}

.category-body ul.grid-1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* border: 1px solid rgba(151, 151, 151, 0.5); */
}

.category-body .grid-1 li {
    min-width: 0;
    height: 350px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 50px;
    cursor: pointer;
}

.category-body .grid-2 li,
.category-body .grid-3 li {
    min-width: 0;
    height: 350px;
    /* border-right: 1px solid rgba(151, 151, 151, 0.5);
    border-bottom: 1px solid rgba(151, 151, 151, 0.5);
    border-left: 1px solid transparent;
    margin-right: -1px;
    margin-bottom: -1px; */
    border: 1px solid rgba(151, 151, 151, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 50px;
    cursor: pointer;
}

/* .category-body .grid-2 li:nth-child(3n),
.category-body .grid-3 li:nth-child(3n) {
    border-right: none;
}

.category-body .grid-2 li:nth-last-child(-n+3),
.category-body .grid-3 li:nth-last-child(-n+3) {
    border-bottom: none;
} */


.category-body .subcategory-item:hover {
    background: linear-gradient(90deg, rgba(39, 44, 49, 1) 0%, rgba(0, 0, 0, 1) 100%);
    /* border-left: 1px solid rgba(151, 151, 151, 0.5); */
    /* border-left-color: rgba(151, 151, 151, 0.5); */
    border-color: #979797;
}

/* .category-body .subcategory-item:nth-child(n+4) {
    border-top: 1px solid transparent;
}

.category-body .subcategory-item:nth-child(n+4):hover {
    border-top-color: rgba(151, 151, 151, 0.5);
} */

.category-body .subcategory-item a {
    color: #c3c3c3;
}

.category-body .subcategory-item a:hover {
    color: #ffffff;
}

.category-body .subcategory-item.active {
    background: linear-gradient(90deg, rgba(39, 44, 49, 1) 0%, rgba(0, 0, 0, 1) 100%);
}

.category-body .subcategory-item h3 {
    width: 340px;
    margin-top: 30px;
}

.category-body .subcategory-item-img {
    width: 200px;
    height: 200px;
}

.category-body .subcategory-item-img img {
    pointer-events: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* .category-body ul li img {
    
    margin-top: 30px;
    margin-bottom: 30px;
} */

.banner {
    margin-top: 80px;
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.banner .banner-text {
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner .banner-text .banner-text-body {
    width: 400px;
    color: white;
}

.banner .banner-text h2 {
    margin-bottom: 46px;
}

.banner .banner-text ul li {
    padding-left: 0;
}

.banner .banner-text li:not(:last-child) {
    margin-bottom: 30px;
}

.banner .banner-image {
    text-align: center;
    width: 500px;
    height: 500px;
}

.banner .banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.subcategory-body {
    background-color: white;
}

/* --/ category */

/* subcategory */

.subcategory {
    flex: 1 1 auto;
    background-color: white;
}

.subcategory-title {
    padding-top: 125px;
    padding-bottom: 80px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(39, 44, 49, 1) 100%);
}

.subcategory-title .p2 {
    color: #c3c3c3;
}

.subcategory-title h1 {
    margin-top: 23px;
    color: white;
    width: 1200px;
}

.subcategory-body .subsubcategories {
    color: #979797;
    padding-top: 60px;
    /* margin-bottom: 50px; */
    display: flex;
    flex-wrap: wrap;
    /* gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none; */
}

/* .subsubcategories::-webkit-scrollbar {
    display: none;
} */

.subsubcategories .subsubcategory-item {
    color: #979797;
    display: flex;
    justify-content: start;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    margin-bottom: 20px;
}

.subsubcategories .subsubcategory-item:hover,
.subsubcategories .subsubcategory-item:hover .subsubcategory-arrow .svg-shape {
    color: black;
    fill: black;
}

.subsubcategories .subsubcategory-item.selected {
    color: black;
}
.subsubcategories .subsubcategory-item img {
    width: 7px;
    height: 14px;
    margin-left: 10px;
}

.subsubcategories .subsubcategory-item:not(:last-child) {
    margin-right: 36px;
}

.subsubcategory-arrow {
    margin-left: 10px;
    padding-top: 4px;
}

.subsubcategory-arrow.selected .svg-shape {
    fill: black;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    border: 1px solid rgba(195, 195, 195, 0.8);
    margin-top: 50px;
}

.product-card {
    color: black;
    border-right: 1px solid rgba(195, 195, 195, 0.8);
    border-bottom: 1px solid rgba(195, 195, 195, 0.8);
    margin-right: -1px;
    margin-bottom: -1px;
    padding: 40px 33px 17px 33px;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    height: 425px;
    overflow: hidden;
}

/* .product-card:nth-child(4n),
.product-card:nth-child(3n),
.product-card:nth-child(2n) {
    border-right: none;
}

.product-card:nth-last-child(-n+4),
.product-card:nth-last-child(-n+3),
.product-card:nth-last-child(-n+2) {
    border-bottom: none;
}

.product-card {
    border-right: none;
}

.product-card:last-child {
    border-bottom: none;
} */
.product-card img {
    transition: transform 0.3s ease;
}

.product-card:hover {
    /* border: 2px solid #979797; */
    box-shadow: inset 0 0 0 2px #979797;
}

.product-card:hover img.product-img {
    transform: scale(1.17); /* Увеличение на 17% */
}

.product-card p {
    width: 100%;
    text-align: left;
}

.product {
    margin-bottom: 40px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 230px;
    height: 230px;
    /* flex-shrink: 0; */
}

.product .product-img {
    /* width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none; */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product .new {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
}

/* --/ subcategory */

/* product-info */

.product-info-body {
    padding-top: 92px;
    background-color: white;
    flex: 1 1 auto;
}

.breadcrumbs {
    padding-top: 35px;
    padding-bottom: 40px;
    display: flex;
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.breadcrumbs::-webkit-scrollbar {
    display: none;
}

.breadcrumbs li {
    position: relative;
    color: #979797;
    white-space: nowrap;
}

.breadcrumbs li:not(:last-child) {
    margin-right: 40px;
}

.breadcrumbs li:not(:first-child):before {
    position: absolute;
    content: "";
    top: 7px;
    left: -20px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #979797;
}

.breadcrumbs li a {
    color: inherit;
}

.breadcrumbs li a:hover {
    color: black;
}

.product-info-body .product-flex {
    display: flex;
    justify-content: space-between;
    gap: 166px;
}

.product-flex.partners {
    padding-top: 97px;
}

.col-5 {
    width: calc(5 * var(--col-1) - var(--col-1) / 2);
}

.col-6 {
    width: calc(6 * var(--col-1) - var(--col-1) / 2);
}

.product-desc-name {
    width: 66%;
}

.product-desc-value {
    width: 33%;
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

.product-desc-top {
    margin-bottom: 100px;
}

.product-desc-top.partners {
    width: 786px;
}

.product-desc-title {
    margin-bottom: 30px;
}

.product-desc-articul {
    color: #979797;
    /* text-transform: uppercase; */
    margin-bottom: 50px;
}

.product-desc-body {
    margin-top: 50px;
    margin-bottom: 25px;
}

.product-desc {
    display: flex;
    gap: 30px;
    padding-top: 13px;
    padding-bottom: 13px;
    border-bottom: 1px solid #c3c3c3;
}

.show-more {
    overflow: hidden;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 270px;
}

.show-more.expanded {
    max-height: 2000px !important;
}

.more-params {
    margin-top: 14px;
    border: none;
    background-color: transparent;
    color: black;
    cursor: pointer;
}

.product-desc-desc {
    margin-bottom: 24px;
}

.product-desc-files {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.file-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.file-icon {
    width: 36px;
    height: 36px;
    margin-right: 30px;
}

.file-item:hover .pdf-hover {
    fill: #E90A0A;
    transition: fill 0.3s ease;
}

.file-name {
    color: black;
}

/* --/ product-info */

/* product-info image gallery */

.main-image {
    margin-bottom: 40px;
    cursor: pointer;
    width: 650px;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.main-image.modal-gallery {
    width: 700px;
    height: 700px;
}

.thumbnails {
    margin-bottom: 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* .thumbnails-mobile {
    display: none;
} */

.thumbnails.modal-gallery {
    justify-content: center;
}

.thumbnails button {
    border: none;
    background-color: transparent;
    cursor: pointer;
    width: 218px;
    height: 218px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(195, 195, 195, 0.2);
}

.thumbnails img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* .thumbnails .thumbnail-btn.active img, */
.thumbnails button:hover {
    border-color: #979797;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gallery-nav-btn img {
    width: 70px;
    height: auto;
}

.prev-btn {
    left: 185px;
}

.next-btn {
    right: 185px;
}

.main-image {
    position: relative;
}

/* --/ product-info image gallery */

/* filter */

.filter-btn {
    padding-top: 50px;
    display: flex;
    flex-wrap: wrap;
}

.filter-btn-body {
    width: 195px;
    height: 38px;
    color: white;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(39, 44, 49, 1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-right:20px;
    position: relative;
}

.count-mobile {
    display: none;
}

.filter-btn-mobile {
    display: none;
}

.modal-overlay-filter {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.filter {
    position: fixed;
    top: 0;
    right: -100%;
    width: 623px;
    background: transparent;
    transition: all 0.3s ease-out;
    display: flex;
    flex-direction: column;
    height: 100vh;
    z-index: 1001;
}

.filter.active {
    right: 0;
}

.filter-header {
    position: sticky;
    top: 0;
    z-index: 3;
    flex-shrink: 0;
    height: 136px;
    padding-top: 30px;
    /* background: rgba(255, 255, 255, 0.6); */
    background: linear-gradient(to bottom, 
        rgba(255,255,255,1) 80%,   /* Белый до 80% */
        rgba(255,255,255,0) 100%   /* Прозрачный с 80% до конца */
    );
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-close-btn {
    margin-right: 50px;
}

.filter-close-btn img {
    padding-bottom: 70px;
}

.filter-buttons {
    position: sticky;
    bottom: 0;
    z-index: 3;
    flex-shrink: 0;
    height: 158px;
    /* padding-top: 50px; */
    /* background: rgba(255, 255, 255, 0.6); */
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0) 0%,    /* Прозрачный от начала */
        rgba(255,255,255,1) 20%    /* Белый с 20% до конца */
    );
    display: flex;
    align-items: center;
    gap: 30px;
}

.filter-body {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    z-index: 1;
    /* allow content to slide under sticky header/footer for translucency */
    /* margin-top: calc(-1 * var(--filter-header-h));
    padding-top: calc(var(--filter-body-pt-base) + var(--filter-header-h));
    margin-bottom: calc(-1 * var(--filter-buttons-h));
    padding-bottom: var(--filter-buttons-h); */
    margin-top: calc(-1 * 136px);
    padding-top: calc(57px + 136px);
    margin-bottom: calc(-1 * 158px);
    padding-bottom: 158px;
}

.filter-header,
.filter-body,
.filter-buttons {
    padding-left: 60px;
}

.filter-buttons button,
.filter-btn button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.filter-buttons .show,
.filter-btn .show {
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(39, 44, 49, 1) 100%);
    color: white;
}

.filter-buttons .choise-reset,
.filter-btn .reset-selected {
    border: 1px solid black;
    color: black;
    height: 38px;
    background-color: #fff;
}

.choise-reset,
.choise {
    width: 190px;
    height: 38px;
}

.filter-selected {
    padding: 0 15px;
    margin-bottom: 15px;
    margin-right: 20px;
    height: 38px;
}

.reset-selected {
    width: 195px;
}

.filter-group {
    margin-bottom: 50px;
}

.filter-group p {
    margin-bottom: 25px;
}

.filter-group .inputs {
    display: flex;
    flex-direction: column;
    margin-bottom: 33px;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 30px;
}

.custom-checkbox:not(:last-child) {
    margin-bottom: 15px;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 34px;
    height: 34px;
    background-image: url('../img/check-unchecked.png');
    transition: background-image 0.2s ease;
}

.checkbox-input:hover+.checkbox-custom {
    background-image: url('../img/check-hover.png');
}

.checkbox-input:checked+.checkbox-custom {
    background-image: url('../img/check-checked.png');
}

.checkbox-input:focus+.checkbox-custom {
    outline: none;
    outline-offset: 0;
}

.custom-checkbox.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.custom-checkbox.disabled span {
    color: #979797;
}

.filter-count {
    font-size: 0.8em;
    color: #c3c3c3;
}

.custom-checkbox.disabled .filter-count {
    color: #979797;
}

.range-filter {
    display: flex;
    gap: 30px;
}

.range-input {
    width: 190px;
    height: 70px;
    border: 1px solid #c3c3c3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.range-input label {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.range-input label.text {
    color: #979797;
    margin-left: 20px;
}

.range-input input {
    border: none;
    outline: none;
    color: black;
    margin-left: 20px;
    width: 80%;
}

.range-input input[type="number"]::-webkit-outer-spin-button,
.range-input input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.range-input input::placeholder {
    color: black;
}

.range-input:focus-within,
.range-input:hover {
    border-color: black;
}

.min-input:focus::placeholder,
.max-input:focus::placeholder {
    color: #c3c3c3;
}

.range-error {
    color: #ff0000;
    margin-top: 10px;
}

.filter-selected {
    position: relative;
}

.filter-selected-range-name {
    color: #c3c3c3;
    margin-right: 12px;
}

.filter-selected-range-value {
    color: #c3c3c3;
    margin-right: 22px;
}

.filter-selected-check-name {
    color: #c3c3c3;
    margin-right: 12px;
}

.filter-selected-check-value {
    color: #c3c3c3;
    margin-right: 12px;
}

.filter-selected .filter-selected-check-value:last-of-type {
    margin-right: 22px;
}

.close-selected {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 10px;
    right: 12px;
}

/* --/ filter */

/* partners */

.catalogs-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.catalogs-item a {
    color: black;
    text-decoration: underline;
}

.partners-tel {
    color: black;
}

.catalogs-item img {
    width: 60px;
    height: 60px;
    margin-right: 27px;
}

/* --/ partners */

/* Desktop-First (max-width) — убывающие стили */

/* До 1700px */
@media (max-width: 1700px) {
    /* Стили для 1400-1700px */
    .container,
    .container_ {
        width: auto;
        max-width: auto;
        /* max-width: 1370px; */
        margin-left: 60px;
        margin-right: 60px;
        padding-left: 0;
        /* padding-right: 0; */
    }

    .header__container {
        width: auto;
        max-width: auto;
        margin-left: 60px;
        margin-right: 60px;
        gap: 198px;
    }

    .swiper-wrapper {
        align-items: center;
    }


    .swiper-title {
        width: 625px;
    }

    .swiper-img img {
        max-width: min(500px, calc(100vw - 50px));
    }

    .catalog-main-categories {
        max-width: unset;
        padding-left: 60px;
    }

    .catalog-main-categories .to-main-link img {
        margin-bottom: 84px;
    }

    .category-info-title {
        width: 309px;
        margin-top: 0;
    }

    .category-info-img {
        bottom: 60px;
        right: 60px;
    }

    /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */

    .category-info-img img {
        width: 420px;
    }

    .category-body h1 {
        margin-bottom: 80px;
    }
    
    .categories {
        width: 402px;
    }
    
    .categories ul {
        width: 298px;
    }

    .categories-arrow.selected::after {
        left: 89px;
    }

    .catalog-main-category {
        padding-top: 31px;
        padding-right: 60px;
        padding-left: 95px;
        background: linear-gradient(
            to right,
            rgba(31, 35, 39, 1.6) 0%,
            rgba(31, 35, 39, 0.1) 10%,
            rgba(31, 35, 39, 0.6) 100%
        );
    }
    
    .catalog-main-category .close-link img {
        margin-bottom: 97px;
    }

    .modal-content {
        /* width: 1400px;
        height: 800px; */
        align-items: center;
    }

    .product-card {
        padding: 40px 26px 17px 26px;
    }

    .line {
        width: 100%;
    }

    .modal-close-container {
        width: 100%;
    }

    .input-body {
        width: 1171px;
        margin-top: 43px;
    }

    .search-results-category,
    .search-results-prod {
        grid-template-columns: repeat(3, 350px);
        column-gap: 58px;
        width: 1171px;
    }

    .line {
        width: 1171px;
    }

    .product-info-body .product-flex {
        gap: 139px;
    }
        
    .product-gallery .main-image {
        width: 515px;
        height: 515px;
    }
    
    .product-gallery .thumbnails button {
        width: 173px;
        height: 173px;
    }

    .main-image.modal-gallery {
        width: 580px;
        height: 580px;
    }
    
    .thumbnails.modal-gallery button {
        width: 120px;
        height: 120px;
    }

    .gallery-nav-btn img {
        width: 50px;
        height: 50px;
    }
    
    .prev-btn {
        left: 170px;
    }
    
    .next-btn {
        right: 170px;
    }

    .footer-top .menu {
        width: 756px;
    }

    .footer-bottom .menu {
        gap: 73px;
    }

    .filter {
        width: 610px;
    }
    
    /* :root { --filter-buttons-h: 148px; } */
    .filter-buttons {
        height: 148px;
    }
    
    .filter-body {
        /* padding-top: calc(var(--filter-body-pt-base) + var(--filter-header-h)); */
        margin-top: calc(-1 * 136px);
        padding-top: calc(40px + 136px);
        margin-bottom: calc(-1 * 148px);
        padding-bottom: 148px;
    }

    .filter-header,
    .filter-body,
    .filter-buttons {
        padding-left: 46px;
    }
}

/* До 1399px */
@media (max-width: 1399px) {
    /* Стили для 1169-1399px */
    h1 {
        font-size: 37px;
        line-height: 140%;
        letter-spacing: 0.74px;
    }

    h3 {
        font-size: 19px;
        letter-spacing: 0.38px;
    }

    /* .container {
        max-width: 1140px;
    } */

    .header__container {
        gap: 83px;
    }

    .header__container .menu {
        width: 581px;
    }

    .swiper-title {
        width: 510px;
    }

    .swiper-title h1 {
        margin-bottom: 50px;
    }

    .swiper-img {
        margin-top: 0;
    }

    .swiper-img img {
        max-width: min(460px, calc(100vw - 50px));
    }

    .catalog-main-categories {
        padding-top: 80px;
    }

    .category-info-img {
        bottom: 50px;
        right: 60px;
    }

    .category-body h1 {
        width: 800px;
    }

    .category-body ul li {
        padding-left: 30px;
    }

    /* .category-body ul li img {
        width: 180px;
        height: auto;
    } */

    .category-body .subcategory-item-img {
        width: 180px;
        height: 180px;
    }

    .category-body .grid-1 li,
    .category-body .grid-2 li,
    .category-body .grid-3 li {
        padding-left: 30px;
    }

    .categories {
        width: 304px;
    }
    
    .categories ul {
        width: 254px;
    }

    .categories-arrow.selected::after {
        left: 35px;
    }

    .catalog-main-category {
        padding-right: 60px;
        padding-left: 74px;
    }
    
    .catalog-main-category .close-link img {
        margin-bottom: 0;
    }

    .subcategory-title h1 {
        width: 800px;
    }

    .category-body .subcategory-item h3 {
        width: 220px;
    }

    .to-main-link {
        display: none;
    }

    .input-body {
        width: 880px;
        margin-top: 38px;
    }

    .results-container {
        margin-top: 30px;
    }

    .search-results-category,
    .search-results-prod {
        grid-template-columns: repeat(2, 420px);
        row-gap: 25px;
        column-gap: 30px;
        padding-bottom: 30px;
        width: 880px;
    }

    .line {
        width: 880px;
    }


    .search-results-prod {
        margin-top: 30px;
    }

    .search-prod-item {
        height: 90px;
        flex-direction: row;
        align-items: center;
    }

    .search-prod-img {
        width: 90px;
        height: 90px;
        margin-right: 15px;
        margin-bottom: 0;
    }

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

    .product-info-body .product-flex {
        gap: 120px;
    }

    .product-gallery .main-image {
        width: 419px;
        height: 419px;
        margin-bottom: 30px;
    }
    
    .product-gallery .thumbnails button {
        width: 140px;
        height: 140px;
    }

    .main-image.modal-gallery {
        width: 505px;
        height: 505px;
    }
    
    .thumbnails.modal-gallery button {
        width: 120px;
        height: 120px;
    }

    .gallery-nav-btn img {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: 150px;
    }
    
    .next-btn {
        right: 150px;
    }

    .product-desc-top {
        margin-bottom: 96px;
    }

    .product-desc-files {
        grid-template-columns: repeat(1, 1fr);
    }

    .footer-top {
        justify-content: center;
    }

    .footer-top .logo {
        display: none;
    }

    .footer-bottom .menu {
        justify-content: center;
        /* gap: 89px; */
    }

    .footer-bottom .menu li:first-child {
        margin-right: 0;
    }

    .filter {
        width: 535px;
    }

    .filter-close-btn img {
        width: 30px;
        height: 30px;
        padding-bottom: 0;
    }
    
    /* :root { --filter-buttons-h: 148px; } */
    .filter-body {
        /* padding-top: calc(var(--filter-body-pt-base) + var(--filter-header-h)); */
        margin-top: calc(-1 * 136px);
        padding-top: calc(0px + 136px);
        margin-bottom: calc(-1 * 108px);
        padding-bottom: 108px;
    }
    
    .filter-buttons {
        height: 148px;
    }

    .filter-header,
    .filter-body,
    .filter-buttons {
        padding-left: 54px;
    }

    .choise-reset,
    .choise,
    .range-input {
        width: 170px;
    }
}

/* До 1169px */
@media (max-width: 1169px) {
    /* Стили для 900-1169px */

    .container,
    .container_ {
        /* max-width: 870px; */
        margin-left: 33px;
        margin-right: 33px;
    }

    .header__container {
        gap: 57px;
        margin-left: 33px;
        margin-right: 33px;
    }

    .header__container .menu {
        width: 486px;
    }

    .swiper-title {
        width: 407px;
    }

    .swiper-img img {
        max-width: min(410px, calc(100vw - 50px));
    }

    .category-body {
        padding-top: 162px;
    }

    .category-info-img {
        bottom: 50px;
        right: 30px;
    }

    /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */

    .category-info-img img {
        width: 360px;
    }

    .category-body h1 {
        margin-bottom: 70px;
    }

    .banner {
        margin-top: 70px;
        margin-bottom: 70px;
        gap: 20px;
    }
    
    .banner .banner-text .banner-text-body {
        width: 340px;
    }
    
    .banner .banner-image {
        width: 360px;
        height: 360px;
    }

    /* каталог */

    .catalog-main-categories {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 17px;
        background-color: unset;
    }

    .catalog-main-category.visible .close {
        justify-content: space-between;
        align-items: flex-start;
    }

    .categories {
        width: 100%;
        padding-bottom: 53px;
    }
    
    .categories ul {
        width: 100%;
    }

    .categories-arrow.selected {
        color: #c3c3c3;
    }

    .categories-arrow.selected::after {
        display: none;
    }

    .catalog-main-category.hidden {
        display: none;
        background-color: unset;
    }

    .catalog-main-category.visible {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        overflow-y: auto;
        padding-left: 20px;
        padding-right: 20px;
        background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(39, 44, 49, 1) 100%);
    }

    .catalog-main-category .close {
        justify-content: space-between;
        align-items: center;
        margin-bottom: 53px;
    }

    .category-info-title {
        width: 100%;
    }

    .category-info-link:hover {
        text-decoration: none;
    }

    .category-info-img {
        bottom: 30px;
        right: 20px;
    }

    .category-info-img.catalog-invisible-img img {
        display: none;
    }

    .category-info-img img {
        width: 220px;
    }

    /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */

    .close-mobile {
        display: block;
        margin-bottom: 53px;
        text-align: right;
    }

    .back-button {
        display: block;
        background: none;
        border: none;
    }

    .close-link img {
        width: 30px;
        height: 30px;
    }

    /* каталог конец */

    /* .modal-content {
        width: 900px;
        height: 650px;
    } */

    /* .modal-close-btn {
        right: 30px;
    } */

    .input-body {
        width: 768px;
    }

    .results-container {
        margin-top: 35px;
    }

    .search-results-category,
    .search-results-prod {
        grid-template-columns: repeat(2, 337px);
        row-gap: 21px;
        column-gap: 42px;
        padding-bottom: 35px;
        width: 768px;
    }

    .line {
        width: 768px;
    }

    .search-results-prod {
        margin-top: 35px;
    }

    .search-prod-item {
        height: 88px;
    }

    .search-prod-img {
        width: 78px;
        height: 78px;
    }

    .subcategory-title {
       /* padding-top: 84px; */
        padding-bottom: 1px;
    }

    .subcategory-title h1 {
        margin-bottom: 60px;
    }

    .products-grid {
        margin-top: 30px;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-card {
        height: 100%;
        padding: 40px 23px 4px 23px;
    }

    .product {
        margin-bottom: 18px;
    }
    
    .product {
        width: 153px;
        height: 153px;
    }

    .breadcrumbs {
        padding-top: 25px;
        padding-bottom: 20px;
    }

    .col-5, .col-6 {
        width: 100%;
    }

    .product-info-body .product-flex {
        gap: 92px;
    }

    .product-desc-top {
        margin-bottom: 60px;
    }

    .product-desc-title {
        margin-bottom: 25px;
    }

    .product-gallery .main-image {
        width: 337px;
        height: 337px;
        margin-bottom: 20px;
    }

    .product-gallery .thumbnails {
        margin-bottom: 40px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-gallery .thumbnails button {
        width: 169px;
        height: 169px;
    }

    .product-desc-title.about {
        margin-bottom: 40px;
    }

    .product-gallery .main-image.about {
        margin-bottom: 40px;
    }

    /* .thumbnails .thumbnail-btn.active,
    .thumbnails img:hover {
        outline: 1px solid #979797;
    } */

    .product-gallery .main-image {
        width: 337px;
        height: 337px;
    }

    .main-image.modal-gallery {
        padding-top: 130px;
    }

    .prev-btn,
    .next-btn {
        display: none;
    }

    .footer-bottom {
        padding-top: 25px;
        height: 164px;
    }

    .filter-btn {
        padding-top: 32px;
    }

    /* .count-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #ff0000;
        color: white;
        width: 17px;
        height: 17px;
        border-radius: 50%;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 13px;
        line-height: 100%;
        position: absolute;
        top: -5px;
        right: -5px;
    } */

    .filter-header {
        height: 103px;
    }
    
    .filter-body {
        margin-top: calc(-1 * 103px);
        padding-top: calc(20px + 103px);
        margin-bottom: calc(-1 * 114px);
        padding-bottom: 114px;
    }

    .filter-close-btn {
        margin-right: 30px;
    }

    .filter {
        right: -495px;
        width: 495px;
    }

    .filter-header,
    .filter-body,
    .filter-buttons {
        padding-left: 54px;
    }

    .filter-group {
        margin-bottom: 40px;
    }

    .filter-buttons {
        height: 114px;
    }
}

/* До 899px */
@media (max-width: 899px) {
    :root { --filter-header-h: 70px; --filter-buttons-h: 98px; }
    /* Стили для 380-899px */
    h1 {
        font-size: 31px;
        line-height: 140%;
        letter-spacing: 0.62px;
    }

    h2 {
        font-size: 20px;
        letter-spacing: 0.4px;
    }

    .num {
        font-size: 28px;
        letter-spacing: 1.4px;
    }

    .container {
        /* max-width: 350px; */
        margin-left: 20px;
        margin-right: 20px;
        padding: 0;
    }

    .container_ {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }

    .pagination li:not(:last-child) {
        margin-right: 20px;
    }
    
    .pagination li:first-child {
        margin-right: 40px;
    }
    
    .pagination li:last-child {
        margin-left: 20px;
    }

    .pagination.mobile-pagination {
        display: flex;
    }

    .pagination.desktop-pagination {
        display: none;
    }

    .header__container {
        height: 64px;
        gap: 40px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .header__container .menu {
        display: none;
    }

    .header__container .logo {
        width: 140px;
        height: 44px;
    }

    .header__container .burger {
        display: block;
    }

    .slider {
        margin-top: 64px;
        align-items: flex-start;
        padding-top: 0;
        padding-bottom: 0;
    }

    .swiper-nav {
        justify-content: center;
        gap: 30px;
    }

    .swiper-counter {
        width: 110px;
        text-align: center;
    }

    .swiper-flex {
        flex-direction: column;
    }

    .swiper-title {
        width: 100%;
        height: 176px;
        margin-top: 29px;
    }

    .swiper-title h1 {
        margin-bottom: 25px;
    }

    .swiper-title ul {
        display: none;
    }

    .swiper-title ul li a:hover {
        text-decoration: none;
    }

    .to-catalog-top {
        display: none;
    }

    .to-catalog {
        display: block;
        margin-bottom: 25px;
        position: relative;
    }

    .to-catalog .to-catalog-arrow {
        position: absolute;
        top: 5px;
        left: 90px;
    }

    .to-catalog a {
        color: #979797;
    }

    .swiper-img img {
        /* max-width: min(366px, calc(100vw - 50px)); */
        max-width: 100%;
        height: calc(100vh - 176px - 64px - 98px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .category-body {
        padding-top: 95px;
    }

    .category-body h1 {
        margin-bottom: 60px;
        width: 100%;
    }

    .category-body ul.grid-1,
    .category-body ul.grid-3,
    .category-body ul.grid-2 {
        grid-template-columns: 1fr;
        margin-right: -20px;
        margin-left: -20px;
    }

    .category-body ul.grid-1 li,
    .category-body ul.grid-3 li,
    .category-body ul.grid-2 li {
        max-width: 100%;
        flex-direction: row;
        justify-content: start;
        align-items: center;
        height: 133px;
        padding-left: 20px;
        margin-bottom: 0;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid rgba(151, 151, 151, 0.5);
        /* background: linear-gradient(90deg, rgba(39, 44, 49, 1) 0%, rgba(0, 0, 0, 1) 100%); */
        background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(39, 44, 49, 1) 100%);
    }

    .category-body .subcategory-item-img {
        width: 90px;
        height: 90px;
        margin-right: 40px;
    }

    .category-body .subcategory-item:hover {
        background: transparent;
        border-color: rgba(151, 151, 151, 0.5);;
    }

    /* .category-body ul li img {
        width: 90px;
        height: auto;
        margin-bottom: 0;
        margin-top: 0;
        margin-right: 40px;
    } */

    .category-body .subcategory-item h3 {
        width: 100%;
        margin-right: 20px;
    }

    .category-body .subcategory-item a {
        display: flex;
        color: #ffffff;
    }

    .subcategory-body .subsubcategories {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-top: 30px;
    }
    
    .subsubcategories::-webkit-scrollbar {
        display: none;
    }

    .subcategory-body .subsubcategories .subsubcategory-item:first-child {
        margin-left: 20px;
    }

    .subcategory-body .subsubcategories .subsubcategory-item:last-child {
        margin-right: 20px;
    }

    .banner {
        margin-top: 60px;
        margin-bottom: 50px;
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .banner .banner-text .banner-text-body {
        width: 100%;
    }

    .banner .banner-text h2 {
        margin-bottom: 40px;
    }
    
    .banner .banner-image {
        width: 350px;
        height: 350px;
    }

    /* каталог */

    /*
    .catalog-main-categories {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 17px;
        background-color: unset;
    }

    .catalog-main-category.visible .close {
        justify-content: space-between;
        align-items: flex-start;
    }

    .categories {
        width: 100%;
        padding-bottom: 53px;
    }
    
    .categories ul {
        width: 100%;
    }

    .categories-arrow.selected {
        color: #c3c3c3;
    }

    .categories-arrow.selected::after {
        display: none;
    }

    .catalog-main-category.hidden {
        display: none;
        background-color: unset;
    }

    .catalog-main-category.visible {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        overflow-y: auto;
        padding-left: 20px;
        padding-right: 20px;
        background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(39, 44, 49, 1) 100%);
    }

    .catalog-main-category .close {
        justify-content: space-between;
        align-items: center;
        margin-bottom: 53px;
    }

    .category-info-title {
        width: 100%;
    }

    .category-info-img {
        bottom: 30px;
        right: 20px;
    }

    .category-info-img.catalog-invisible-img img {
        display: none;
    }

    .category-info-img img {
        width: 220px;
    }

    .close-mobile {
        display: block;
        margin-bottom: 53px;
        text-align: right;
    }

    .back-button {
        display: block;
        background: none;
        border: none;
    }

    .close-link img {
        width: 30px;
        height: 30px;
    } */

    /* каталог конец */

    .modal-content-body {
        width: 100%;
    }

    /* .modal-close-btn {
        position: absolute;
        top: 17px;
        right: 30px;
    } */

    .modal-close-btn img {
        width: 30px;
        height: 30px;
    }

    .search-results {
        padding: 0 20px;
    }

    .search-input,
    .search-textarea {
        font-size: 20px;
        letter-spacing: 0.4px;
    }
    
    .search-input::placeholder,
    .search-textarea::placeholder {
        font-size: 20px;
        letter-spacing: 0.4px;
    }

    .input-body {
        flex-direction: row-reverse;
        height: 80px;
        width: 100%;
    }

    .search-black {
        margin-right: 0;
    }

    .search-textarea {
        margin-right: 22px;
    }

    .show-all-btn img {
        width: 34px;
        height: 34px;
    }

    .results-container {
        margin-top: 20px;
        height: auto;
    }

    .search-results-category,
    .search-results-prod {
        grid-template-columns: repeat(1, 100%);
        row-gap: 21px;
        padding-bottom: 20px;
        width: 100%;
    }

    .line {
        width: 100%;
    }

    .search-results-prod {
        margin-top: 20px;
    }

    .search-prod-item {
        height: 78px;
    }

    .search-prod-img {
        width: 78px;
        height: 78px;
    }

    .subcategory-title {
        padding-top: 84px;
        padding-bottom: 1px;
    }

    .subcategory-title h1 {
        width: 100%;
        margin-bottom: 60px;
    }

    .products-grid {
        margin-top: 30px;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: dense;
    }

    .product-card {
        padding: 20px 12px 10px 15px;
        align-items: flex-start;
    }

    .product {
        margin-bottom: 18px;
    }
    
    .product {
        width: 153px;
        height: 153px;
    }

    .product-info-body {
        padding-top: 64px;
    }

    .product-info-body .product-flex {
        flex-direction: column;
        gap: 0;
    }

    .product-flex.partners {
        padding-top: 67px;
    }

    .breadcrumbs {
        padding-top: 25px;
        padding-bottom: 20px;
    }

    .breadcrumbs li:first-child {
        margin-left: 20px;
    }

    .breadcrumbs li:last-child {
        margin-right: 20px;
    }

    .col-5, .col-6 {
        width: 100%;
    }

    .product-desc-top {
        margin-bottom: 60px;
    }

    .product-desc-top.partners {
        width: 100%;
    }

    .product-desc-title {
        margin-bottom: 20px;
    }

    .product-desc-body {
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .product-gallery .main-image {
        width: 430px;
        height: 430px;
        margin-bottom: 20px;
    }

    /* .product-gallery .thumbnails {
        display: none;
        margin-bottom: 40px;
    } */

    .product-gallery .thumbnails {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        margin-bottom: 40px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-right: -20px;
        margin-left: -20px;
    }

    .product-gallery .thumbnails::-webkit-scrollbar {
        display: none;
    }

    
    .product-gallery .thumbnails button {
        width: 119px;
        height: 119px;
        border: none;
        background-color: transparent;
        flex: 0 0 auto; /* Не сжимать кнопки */
        white-space: nowrap;
    }

    .product-gallery .thumbnails button img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border: 1px solid rgba(195, 195, 195, 0.2);
    }

    .product-gallery .thumbnails button:first-child {
        margin-left: 20px;
    }

    .product-gallery .thumbnails button:last-child {
        margin-right: 20px;
    }
    
    /* .thumbnails .thumbnail-btn.active img{
        border-color: #979797;   
    } */

    /* .thumbnails .thumbnail-btn.active,
    .thumbnails img:hover {
        outline: 1px solid #979797;
    } */

    .main-image.modal-gallery {
        padding-top: 130px;
    }

    .prev-btn,
    .next-btn {
        display: none;
    }
    
    .footer-top {
        height: 311px;
    }

    .footer-top .menu {
        width: 100%;
    }

    .footer-top .menu ul {
        display: block;
    }

    .footer-top .menu {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .footer-top .menu ul li:not(:last-child) {
        margin-bottom: 30px;
    }

    .footer-bottom {
        padding-top: 25px;
        height: 164px;
    }

    .footer-bottom .menu {
        display: block;
    }

    .footer-bottom .menu li:not(:last-child) {
        margin-bottom: 20px;
    }

    .footer-bottom .menu li:not(:last-child) {
        margin-bottom: 20px;
    }

    .filter-btn {
        padding-top: 32px;
    }

    .filter-btn-desck {
        display: none;
    }
    
    .filter-btn-mobile {
        display: block;
    }

    .filter-btn-body {
        width: 38px;
        margin-bottom: 15px;
    }

    .count-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #ff0000;
        color: white;
        width: 17px;
        height: 17px;
        border-radius: 50%;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 13px;
        line-height: 100%;
        position: absolute;
        top: -5px;
        right: -5px;
    }

    .filter-selected {
        display: none;
    }

    .filter {
        right: -100%;
        width: 100%;
    }

    .filter-header {
        padding-top: 17px;
        height: 80px;
    }

    .filter-close-btn {
        margin-right: 23px;
    }
    
    .filter-btn-body {
        width: 38px;
    }

    .filter-btn-desck {
        display: none;
    }
    
    .filter-btn-mobile {
        display: block;
    }

    .filter {
        width: 100%;
    }

    .filter-header,
    .filter-body,
    .filter-buttons {
        padding-left: 20px;
        padding-right: 20px;
    }

    .filter-body {
        margin-top: calc(-1 * 80px);
        padding-top: calc(15px + 80px);
        margin-bottom: calc(-1 * 98px);
        padding-bottom: 98px;
    }

    .filter-group {
        margin-bottom: 35px;
    }

    .choise-reset,
    .choise,
    .range-input {
        width: 177px;
    }

    .filter-buttons {
        height: 98px;
    }
}

/* До 450px */
@media (max-width: 450px) {

    .choise-reset,
    .choise,
    .range-input {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .product-card {
        align-items: start;
        position: relative;
    }

    .product .new {
        top: 20px;
        right: 20px;
    }

    .product {
        width: 140px;
        height: 140px;
        position: unset;
    }

    .product-gallery .main-image {
        width: 100%;
        height: 100%;
    }

    .product-gallery .thumbnails button {
        width: 96px;
        height: 96px;
    }
}

/* До 379px */
@media (max-width: 379px) {
    /* Стили для <380px */
    h1 {
        font-size: 26px;
        line-height: 120%;
        letter-spacing: 0.52px;
    }

    h3 {
        font-size: 17px;
        letter-spacing: 0.34px;
    }

    /* .container {
        max-width: 100%;
        padding: 0 10px;
    } */

    .text {
        font-size: 15px;
    }

    .pagination li {
        display: none;
    }

    .pagination .next-prew,
    .pagination .disabled {
        display: block;
    }

    .pagination li:first-child {
        margin-right: 0px;
    }

    .header__container {
        gap: 36px;
    }

    /* .swiper-img {
    } */

    .swiper-img img {
        max-width: min(100%, calc(100vw - 50px));
        height: calc(100vh - 140px - 64px - 98px);
    }

    .swiper-title {
        height: 140px;
        margin-top: 10px;
    }

    /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */

    .category-body ul li img {
        width: 60px;
        height: auto;
        margin-right: 18px;
    }

    .banner .banner-text h2 {
        margin-bottom: 30px;
    }

    .banner .banner-text li:not(:last-child) {
        margin-bottom: 20px;
    }

    .banner .banner-image {
        width: 280px;
        height: 280px;
    }

    .subcategory-body .subsubcategories {
        padding-top: 30px;
    }

    .category-body h1 {
        margin-bottom: 50px;
    }

    /* .products-grid {
        grid-template-columns: repeat(1, 1fr);
    } */

    .product-card {
        align-items: start;
        /* position: relative; */
    }

    /* .product {
        position: unset;
    } */

    /* .product .new {
        top: 20px;
        right: 20px;
    } */

    .range-filter,
    .filter-buttons {
        gap: 13px;
    }
}