@media (max-width: 1700px) {
  /*.categories {
    font-size: 12px;
  }*/
}

@media (max-width: 1500px) {
  .central-swiper,
  .central-swiper-detail,
  .central-vertical-swiper-wrapper {
    height: auto;
  }

  .catalog-wrapper-many .catalog__card {
    min-width: 33%;
    width: 33%;
  }
  
  .catalog-wrapper-many .catalog__card:nth-of-type(8),
  .catalog-wrapper-many .catalog__card:nth-of-type(9) {
    min-width: 33%;
    width: 33%;
  }
}

@media (max-width: 1440px) { 

  .central-swiper,
  .central-swiper-detail,
  .central-modal-swiper,
  .central-vertical-swiper-wrapper {
    max-width: 525px;
    width: 100%;
    height: 700px;
  }

  .mini-swiper,
  .mini-modal-swiper {
    max-width: 550px;
    width: 100%;
    overflow: hidden;
  }

  /*.mini-swiper-detail {
    max-width: 550px;
    width: 100%;
    overflow: hidden;
  }*/

  .vertical-swiper {
    width: 130px;
    height: 700px;
  }
}

@media (max-width: 1400px) {
  .sliders-box {
    flex-wrap: wrap;
    justify-content: center;
  }

  /*.swiper,
  .offcanvas {
    font-size: 10px;
  }*/

  .block {
    padding: 20px;
  }

  .chat {
    width: 50px;
    height: 50px;
  }

  .categories {
    font-size: 12px;
  }

  .categories__card {
    height: 300px;
  }
  
  .categories__card:nth-of-type(3),
  .categories__card:nth-of-type(4),
  .categories__card:nth-of-type(5) {
    height: 400px;
  }

  .footer-wrapper {
    padding: 20px;
  }
  
  .footer__center {
    margin-bottom: 100px;
  }
}

@media (max-width: 1200px) {
  /*.section,
  .footer {
    font-size: 10px;
  }*/

  .header-wrapper {
    flex-wrap: nowrap;
    gap: 22px;
  }

  .header__navigation {
    width: fit-content;
    margin-right: auto;
  }

  .header__indicators {
    display: flex;
  }

  .offcanvas-body .header__indicators {
    display: none;
  }
}

@media (max-width: 1050px) {
  .catalog-wrapper .catalog__card--quarter,
  .catalog-wrapper .catalog__card--half,
  .catalog-wrapper .catalog__card {
    min-width: 50%;
    width: 50%;
  }
}


@media (max-width: 1024px) {
  .data-FIO,
  .data-contacts {
    flex-wrap: wrap;
  }

  .data-many {
    flex-wrap: wrap;
  }
}

@media (max-width: 991px) {
  
  .header-wrapper {
    padding: 0 20px;
  }

  .categories__card:nth-of-type(4),
  .categories__card:nth-of-type(5) {
    grid-column: span 2;
  }

  .categories__card:nth-of-type(3) {
    grid-column: span 4;
  }

  .categories__card:nth-of-type(3),
  .categories__card:nth-of-type(4),
  .categories__card:nth-of-type(5) {
    height: 300px;
  }

  .catalog.block {
    display: block;
  }

  .side-menu {
    display: none;
  }

  .side-menu_open {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }

  .side-menu__item {
    margin: 0;
  }

  .bread-crumbs {
    margin-bottom: 0px;
  }


  .sort-top_open {
    display: flex;
  }
  
  .btn-filters {
    display: inline-block;
  }

  .vertical-swiper-wrapper {
    display: none;
  }

  .catalog-wrapper .catalog__card--quarter,
  .catalog-wrapper .catalog__card--half,
  .catalog-wrapper .catalog__card {
    min-height: auto;
    min-width: calc(100% / 3);
    width: calc(100% / 3);
  }

}

@media (max-width: 768px) {
  .header__indicators,
  .header__navigation {
    gap: 15px;
  }

  .header__navigation {
    margin: 0;
  }

  .logo {
    width: 80px;
  }

  .categories {
    font-size: 10px;
  }

  .categories__card {
    padding: 20px;
  }

  .categories__card,
  .categories__card:nth-of-type(3),
  .categories__card:nth-of-type(4),
  .categories__card:nth-of-type(5) {
    grid-column: span 4;
  }
  
  .categories__card:nth-of-type(1), 
  .categories__card:nth-of-type(2),
  .categories__card:nth-of-type(6),
  .categories__card:nth-of-type(9), 
  .categories__card:nth-of-type(10) {
    grid-column: span 4;
  }

  .categories__card:nth-of-type(4) h3,
  .categories__card:nth-of-type(5) h3 {
    text-align: left;
  }

  .swiper {
    font-size: 6px;
  }

  .catalog-wrapper,
  .catalog-wrapper-many {
    justify-content: center;
  }

  .catalog-wrapper .catalog__card--quarter,
  .catalog-wrapper .catalog__card--half,
  .catalog-wrapper .catalog__card {
    margin: auto;
    width: 420px;
    max-width: 100%;
  }

  .sort-top,
  .catalog-wrapper-many .sort-top,
  .catalog-wrapper-many .pages {
    grid-column: span 1;
  }

  .footer__center {
    margin-bottom: 50px;
  }
}

@media(max-width: 600px) {
  .main-swiper .swiper-slide.video{
    height: 100%;
  }

  .main-swiper .swiper-slide.video a {
    display: block;
    height: 100%;
  }

  .main-swiper .swiper-slide video{
    height: 100%;
  }

  .main-swiper .swiper-slide{
    height: auto;
  }

  .mini-swiper{
    max-width: 340px;
    width: 100%;
    overflow: hidden;
  }
  .mini-swiper-wrapper {
    width: auto;
    height: auto;
  }
  .mini-swiper-detail{
    max-width:none;
    width: 100%;
    overflow: hidden;
  }

  .central-swiper,
  .central-swiper-detail,
  .central-vertical-swiper-wrapper {
    max-width: 400px;
    width: 100%;
    height: 535px;
  }

  .section-data {
    flex-wrap: wrap;
  }
  .catalog__card.long .card-image-block{
    width: 150px;
  }
  .catalog__card.long .card-info-block{
    width: calc(100% - 150px);
  }
  .document-grid__item.large{
    width: calc(50% - 20px);
  }
  .document-file{
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .offcanvas-body {
    padding: 0;
  }

  .submenu-list {
    padding: 0 0 0 20px;
    position: static;
  }

  .header {
    font-size: 12px;
    height: 60px;
  }

  .header__indicators img,
  .header__navigation img {
    width: 20px;
  }

  .logo {
    width: 80px;
  }

  .modal-content {
    padding: 20px;
  }

  .modal-content .modal-content__input {
    max-width: 100%;
  }

  .fast-cart {
    top: calc(100% + 15px);
    right: -80px;
    padding: 15px;
    width: 280px;
    gap: 10px;
  }

  .fast-cart .fast-cart__image {
    width: 80px;
  }

  .orders-table th.orders-table__sort{
    padding: 4px 5px;
    border-radius: 5px !important;
  }
  .sort-item {
    font-size: 12px;
  }
}

@media (max-width: 460px) {
  .catalog__card.long .card-wrapper{
    /*flex-direction: column;*/

  }
  .catalog__card.long .card-image-block {
    /*width: 70%;*/
    /*margin: 0 auto;*/
  }

  .catalog__card.long .card-info-block {
    /*width: 100%;*/
    /*margin-top: 20px;*/
    /*padding-left: 0px;*/
  }
}

@media (max-width: 440px) {
  .header__navigation {
    /*width: 100%;*/
  }

  .header__indicators {
    width: fit-content;
  }

  .header__indicators, .header__navigation {
    /*gap: 10px;*/
  }

  .btn,
  .footer .btn {
    min-width: 200px;
  }

  .footer-info {
    max-width: 100%;
  }

  .footer__top {
    margin-bottom: 20px;
    justify-content: center;
    gap: 20px;
  }

  .footer__center,
  .footer-info {
    display: block;
    text-align: center;
  }

  .footer__center {
    margin-bottom: 20px;
  }

  .central-swiper,
  .central-swiper-detail,
  .central-vertical-swiper-wrapper {
    max-width: 300px;
    width: 100%;
    height: 400px;
  }
}

@media(max-width: 380px) {
  .mini-swiper{
    max-width: 280px;
    width: 100%;
    overflow: hidden;
  }
  /*.mini-swiper-detail{
    max-width: 280px;
    width: 100%;
    overflow: hidden;
  }*/
}

/* подвал */

@media(max-width: 440px) {
  .footer,
  .footer p,
  .footer p a,
  .footer h3{
    font-size: 12px;
  }

  .footer__top {
    justify-content: space-between;
    gap: 5px;
  }
  .footer__top a img {
    width: 25px;
  }
  .footer__top h3 {
    width: 140px;
    font-weight: 500;
  }
  .footer__top button {
    width: 100px !important;
    font-weight: 500;
    min-height: 25px;
    padding: 0px;
    min-width: unset !important;
  }
  .footer-categories {
    margin-bottom: 21px;
  }
  .footer-categories h3 {
    margin-top: 0px;
    margin-bottom: 9px;
  }
  .footer-categories h3:last-child {
    margin-top: 0px;
    margin-bottom: 0px;
  }
  .footer-categories h3 + h3 {
    margin-top: 0px;
  }
  .footer-info{
    margin-bottom: 36px;
  }
  .footer-info>div {
    margin-bottom: 21px;
  }
  .footer-info>div:last-child {
    margin-bottom: 0px;
  }
  .footer-info h3 {
    margin-top: 0px;
    margin-bottom: 9px;
  }
  .footer-info p {
    margin: 0;
  }
  .footer-info p + p {
    margin: 0;
  }
}

/* подвал */

/* список товаров */

@media(max-width: 768px) {
  .catalog.block {
    padding-top: 0px;
  }

  .catalog .catalog-wrapper {
    row-gap: 5px;
  }

  .catalog .catalog-wrapper, .catalog-wrapper-many {
    justify-content: start;
  }

  .catalog .catalog-wrapper .catalog__card--quarter,
  .catalog .catalog-wrapper .catalog__card--half,
  .catalog .catalog-wrapper .catalog__card {
    min-width: calc(100% / 2);
    width: calc(100% / 2);
    margin: 0;
  }
}

@media(max-width: 560px) {
  .catalog .card-wrapper {
    padding: 10px;
  }
  .catalog .card-slider__images__image,
  .card-slider .card-slider__images__image {
    border-radius: 10px;
  }
  .cart-order .catalog .card-promo {
    left: 5px;
    top: 5px;
    width: unset;
  }
  .catalog .card-promo {
    left: 15px;
    top: 15px;
    width: unset;
  }
  .catalog .card-promo span,
  .swiper-container--cards .card-promo span {
    padding: 4px 10px;
    font-size: 6px;
    line-height: 7px;
  }
  .cart-order .catalog .card-heart,
  .cart-order .catalog.card-eye {
    width: 15px;
    height: 15px;
    right: 5px;
    top: 5px;
  }
  .catalog .card-heart,
  .catalog.card-eye {
    width: 15px;
    height: 15px;
    right: 15px;
    top: 15px;
  }
  .catalog .card-description,
  .swiper-container--cards .card-description {
    font-size: 12px;
    margin: 10px 0 5px 0;
    font-weight: 500;
  }
  .catalog .card-price,
  .swiper-container--cards .card-price{
    font-size: 14px;
    gap: 5px;
  }
  .catalog .card-price__procent,
  .swiper-container--cards .card-price__procent{
    font-size: 8px;
    line-height: 9px;
    padding: 3px 8px;
  }
  .catalog .card-colors span,
  .swiper-container--cards .card-colors span{
    width: 6px;
    height: 6px;
  }
  .swiper-container--cards {
    padding: 0px 0 0 0;
  }
  .swiper-container--cards .card-promo {
    left: 5px;
    top: 5px;
  }
  .swiper-container--cards .card-heart {
    width: 15px;
    height: 15px;
    top: 5px;
    right: 5px;
  }
}

/* список товаров */

/* детальная товара */

@media(max-width: 768px) {
  .block--product .spec-header {
    gap: 4px;
    padding-top: 20px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .block--product .spec-header::-webkit-scrollbar {
    display: none;
  }

  .block--product .spec-header__btn {
    margin-bottom: 10px;
    padding: 6px 10px;
    font-size: 0.8125em;
    line-height: 1.25;
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

@media(max-width: 560px) {
  .block--product .card-promo {
    left: 10px;
    top: 10px;
    width: unset;
  }
  .block--product .card-promo span {
    padding: 4px 10px;
    font-size: 10px;
    line-height: 12px;
  }
  .block--product .sliders-box__heart {
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
  }
  .block--product .sliders-box__content h1 {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 5px;
    padding-right: 0px;
  }
  .block--product .sliders-box__content p {
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
  }
  .block--product .sliders-box__content p.sliders-box__content__table-sizes {
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
  }
  .block--product .sliders-box__content__price {
    font-size: 14px;
    line-height: 17px;
    padding: 4px 10px;
    margin-bottom: 20px;
  }
  .block--product .sliders-box__content__size {
    margin-top: 20px;
  }
  .block--product .product-controls {
    height: 35px;
  }
  .block--product .spec-header {
    gap: 2px;
    padding-top: 16px;
  }
  .block--product .spec-header__btn {
    margin-bottom: 8px;
    padding: 6px 8px;
    font-size: 0.75em;
  }
}

@media(max-width: 440px) {
  /*.block--product .central-swiper,
  .block--product .central-swiper-detail,
  .block--product .central-vertical-swiper-wrapper {
    max-width: 320px;
    height: 427px;
  }*/
  .central-swiper-wrapper {
    margin-right: 20px;
    margin-left: 20px;
    width: 100%;
  }
  .central-swiper, .central-swiper-detail,
  .central-vertical-swiper-wrapper {
    max-width: 400px;
    width: 100%;
    height: auto;
  }
}

/* детальная товара */

/* попапы */

@media(max-width: 560px) {
  .modal-content .modal-title {
    font-size: 16px;
    line-height: 20px;
    padding-right: 15px;
  }
  .modal-choice__item {
    font-size: 14px;
    line-height: 17px;
  }
  .modal-content .modal-content__input {
    padding: 10px 15px;
    border: solid 1px var(--border-gray);
    font-size: 12px;
    line-height: 18px;
  }
  .form__metadata {
    margin-bottom: 20px;
  }
  .page-checkbox--compact .page-checkbox__text {
    font-size: 12px;
    line-height: 18px;
  }
  .modal .btn {
    font-size: 12px;
    line-height: 18px;
    min-height: 40px;
  }
  .modal-info {
    margin-top: 10px;
    margin-bottom: 0px;
    font-size: 14px;
    line-height: 15px;
    font-weight: 500;
  }
  .modal-content .btn-choice-two {
    margin-bottom: 20px;
  }
  .modal-description {
    font-size: 12px;
    line-height: 15px;
    margin-bottom: 0px;
  }
}
.modal-info span {
  font-weight: bold;
}
/* попапы */

/* правки */

/* Стабильная адаптивная сетка разделов на главной. */
@media (max-width: 768px) {
  .categories.block {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .categories > .categories__card {
    grid-column: 1 / -1;
    height: 300px;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .categories.block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px;
  }

  .categories > .categories__card {
    grid-column: span 1;
    height: 300px;
  }

  .categories > .categories__card:nth-of-type(3),
  .categories > .categories__card:nth-of-type(8),
  .categories > .categories__card:nth-of-type(11) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) {
  .categories.block {
    padding-block: clamp(20px, calc(9.6154vw - 114.615px), 70px);
    padding-inline: clamp(20px, calc(10.7692vw - 130.769px), 76px);
  }

  .categories__card h3 {
    font-size: clamp(19.5px, calc(1.25vw + 2px), 26px);
  }

  .categories > .categories__card:nth-of-type(1),
  .categories > .categories__card:nth-of-type(2),
  .categories > .categories__card:nth-of-type(3),
  .categories > .categories__card:nth-of-type(7),
  .categories > .categories__card:nth-of-type(8) {
    height: clamp(300px, calc(13.4615vw + 111.538px), 370px);
  }

  .categories > .categories__card:nth-of-type(4),
  .categories > .categories__card:nth-of-type(5),
  .categories > .categories__card:nth-of-type(6) {
    height: clamp(400px, calc(19.2308vw + 130.769px), 500px);
  }

  .categories > .categories__card:nth-of-type(9),
  .categories > .categories__card:nth-of-type(10),
  .categories > .categories__card:nth-of-type(11) {
    height: 450px;
  }
}

@media(max-width: 560px) {
  .account__content h4 {
    /*text-align: center;*/
  }
  .account__tabs {
    justify-content: center;
    gap: 10px 20px;
  }
  .account__tabs .nav-link {
    font-weight: 500;
    font-size: 12px;
    text-align: center;
  }
  .account__radio-group {
    justify-content: center;
  }
  .account__tab {
    padding-top: 0px;
  }
  .radio-group__text {
    display: inline;
    font-weight: 400;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    padding: 7px 16px 8px 16px;
  }
  .fast-cart {
    position: fixed;
    top: 50px;
    right: 50%;
    margin-right: -140px;
  }
  .fast-cart-item {
    gap: 10px;
  }
  .fast-cart__content__description {
    width: 140px;
    max-width: 140px;
  }
  .search-results {
    border-radius: 8px;
  }
  .about-section h2 {
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
  }
  .about-section__inner {
    font-weight: 400;
    font-size: 12px;
    /*line-height: 100%;*/
    text-align: center;
    gap: 0px 110px;
  }
  .special-section h2 {
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
  }
  .advantages__card h4 {
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;

  }
  .advantages__card p {
    font-weight: 400;
    font-size: 12px;
    text-align: center;
  }

}

@media(max-width: 768px) {
  .select-list {
    width: 180px;
  }
}

@media(max-width: 560px) {
  .select-list {
    width: 180px;
  }
}

@media(max-width: 600px) {
  .document-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* три равные колонки */
    gap: 15px 5px;
    width: 100%;
  }
  .document-wrap-file {
    display: grid;
    width: auto;
  }
  .document-grid__item.document-file {
    width: 100%;
    border-radius: 6px;
    padding: 9px 18px;
  }
  .document-grid__item.document-file .document-file__title {
    display: none !important;
  }
  .document-grid__item.document-file .document-file__controls {
    /*display: none !important;*/
    gap: 2px;
    bottom: 15%;
    padding: 0 15px;
    justify-content: space-between;
  }
  .document-grid__item.document-file .document-file__controls .document-file__button {
    width: 30px;
    height: 30px;
  }
  .document-grid__item.document-file .document-file__metainfo {
    /*display: none !important;*/
  }
  .document-wrap-text {
    font-weight: 400;
    font-size: 12px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;     /* сколько строк показывать */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* правки */
