@media (max-width: 1500px) {
    .table-cart .item .total{
        font-size: 16px;
        line-height: 24px;
    }
    .table-cart .item-line{
        grid-template-columns: minmax(300px, 1fr) 1fr 200px;
    }
    .table-cart .item-placing{
        gap: 10px;
    }

    .table-cart .item-placing span{
        font-size: 12px;
    }
    .table-cart .calculate-box{
        padding: 0;
    }
}

@media (max-width: 1438px) {
.header__nav .nav__link {
    font-size: 14px;
}
}

@media (max-width: 1403px) {
    .topbar__item,
    .header__btn .auth__text,
    .header__btn_cart span {
        font-size: 14px;
    }
}

@media (max-width: 1400px) {
    .collection__container--grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .topbar__item {
        gap: 6px;
    }
}

@media (max-width: 1300px) {
    .cart-grid{
        gap: 30px;
        grid-template-columns: 1fr 400px;
    }

    .title-sidebar, .sidebar-cart .total-all{
        font-size: 18px;
        line-height: 22px;
    }
    .sidebar-cart > .title-sidebar{
        margin-bottom: 10px;
    }
    .sidebar-cart .block-line{
        margin-bottom: 10px;
    }
    .sidebar-cart .price{
        font-size: 16px;
    }

    .sidebar-cart .sale{
        font-size: 12px;
    }

    .sidebar-cart .block-promo .title{
        font-size: 16px;
        margin-bottom: 10px;
    }

    .sidebar-cart .block-promo{
        margin-bottom: 10px;
    }

    .sidebar-cart button{
        padding: 15px;
        font-size: 16px;
    }

    .table-cart .item-placing img{
        max-width: 100px;
    }
    
    #page-single-product .dimensions-table,
    #page-single-product .cutout-table,
    #page-single-product .details-table,
    #page-single-product .safety-table {
        width: 100%;
    }

}

@media (max-width: 1242px) {
    .topbar__item,
    .header__btn .auth__text,
    .header__btn_cart span {
        font-size: 12px;
    }
    
    .header__btns,
    .header__content-left,
    .header__content {
        gap: 20px;
    }
    
    .header__btn_cart span {
        display: none;
    }
    .header__btn_cart .count-cart-desktop {
        left: 55%;
    }
    
    .header__btns-container {
        width: 50%;
    }
    
    .logo img {
        height: 35px;
    }
    
    .burger-btn, .close-burger-btn {
        --width: 40px;
    }
    
}

@media (max-width: 1200px) {
    .cart-grid h2{
        padding-top: 30px;
        font-size: 22px;
    }
    .cart-grid{
        grid-template-columns: 1fr;
    }

    #page-single-cart .sidebar-cart{
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }
    
    /* Blog стили */
    .blog_block > img {
        height: fit-content;
    }
}
/*
@media (max-width: 1000px) {
    #page-single-product .dimensions-table,
    #page-single-product .cutout-table,
    #page-single-product .details-table,
    #page-single-product .safety-table {
        width: 100%;
    }
}
*/
@media (max-width: 800px) {
    .hero {
        height: 100vh;
    }
    /*
    .header-home .burger-icon{
        background: #fff;
    }

    .header-home .burger-icon::before, .header-home .burger-icon::after{
        background: #fff;
    }
    */

    main.main,
    #page-single-product,
    section.subcategory.collection {
        margin-top: 124px;
    }
    
    .header__content-left .header__btn_cart{
        display: block;
    }
    
    .header__content-right {
        display: none;
    }
    /*
    .header-home .header__content-left .header__btn_cart .dark-mode{
        display: block;
    }

    .header-home .header__content-left .header__btn_cart .light-mode{
        display: none;
    }
    */
    #modal_order_product .contact-us__title{
        font-size: 26px;
        line-height: 36px;
        margin: 20px 0 0;
    }
    .modal-header .btn-close{
        font-size: 20px;
    }
    .cart-grid{
        padding: 0;
    }
    .table-cart .item-line{
        grid-template-columns: 220px 1fr;
    }

    .table-cart .item-line:first-of-type{
        display: none;
    }

    .table-cart .item-price{
        justify-content: space-between;
        gap: 15px;
    }

    .table-cart .item-sum{
        display: none;
    }

    .table-cart .item-placing img{
        max-width: 80px;
    }

    .table-cart .item-placing p{
        font-size: 16px;
    }

    .table-cart .item-placing span{
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    body {
    font-size: 14px;
  }

  section {
    margin-bottom: 40px;
  }

  h2 {
    font-size: 28px;
    padding-bottom: 20px;
  }

  .video__wrapper {
    height: 282px;
  }

  .icon--play {
    width: 80px;
    height: 80px;
  }

  .about-us__descr-title {
    font-size: 28px;
  }

  .blog__inner {
    gap: 20px;
  }

  .blog__inner .btn {
    margin: 0 auto;
  }

  .blog__item-info {
    padding: 20px 10px;
  }

  .card__bottom {
    padding: 13px 8px;
  }

  .card__subtitle {
    font-size: 12px;
  }

  .card__btn {
    border: none;
  }

  .catalog__inner {
    min-height: 544px;
  }

  .catalog__descr {
    font-size: 14px;
  }

  .collection__content {
    gap: 32px;
  }

  .collection__section-title {
    margin-bottom: 24px;
    font-size: 12px;
  }

  .contact-us__inner {
    min-height: 569px;
  }

  .contact-us__form {
    padding: 20px 10px;
  }

  .contact-us__top {
    text-align: center;
    gap: 20px;
    margin-bottom: 20px;
  }

  .contact-us__title {
    margin: 0 auto;
  }

  .contact-us__inputs {
    gap: 20px;
  }

  .contact-us__input {
    font-weight: 400;
    padding-bottom: 5px;
    font-size: 14px;
  }

  .contact-us__submit {
    font-size: 16px;
    height: 36px;
  }

  .contact-us .small {
    text-align: center;
  }

  .footer__info {
    font-size: 14px;
  }

  .checkbox__label {
    font-size: 10px;
  }

  .header {
    padding: 38px 0 20px;
    /*position: relative;*/
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
  }
/*
  .header-home {
      position: absolute;
  }
  */

    /*
  .header-home .logo .light-mode {
    display: none;
  }

  .header-home .logo .dark-mode {
    display: block;
  }
  */

  .header__content-left {
    width: 100%;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }

  .header__content-right {
    display: none;
  }

  .hero {
    --overlay: rgba(0, 0, 0, 0.5);
    background-position: 16% center;
  }

  .hero__inner {
    min-height: 640px;
  }

  .hero__content {
    gap: 24px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

  .logo img {
    height: 32px;
    object-fit: contain;
  }

    .header__btn_cart .count-cart {
        top: 22%;
    }  
  .header__btn img {
      height: 50px;
  }

  .reviews__inner {
    gap: 20px;
  }

  .reviews__item {
    min-height: 327px;
    padding: 20px 15px;
  }

  .runline--2 {
    margin-top: 0;
    margin-bottom: 40px;
  }

  .collection__swiper--line .swiper-scrollbar,
  .reviews__swiper .swiper-scrollbar,
  .blog__swiper .swiper-scrollbar {
    display: block;
  }

  .collection__swiper--line .swiper-button-prev,
  .collection__swiper--line .swiper-button-next,
  .reviews__swiper .swiper-button-prev,
  .reviews__swiper .swiper-button-next,
  .blog__swiper .swiper-button-prev,
  .blog__swiper .swiper-button-next {
    display: none;
  }

  .topbar {
    display: none;
  }
  
    .close-burger-btn-container {
        display: flex;
        align-items: end;
        flex-direction: column;
        margin-top: 40px;
    }
    .calculate-input{
        font-size: 16px;
    }
    #page-single-product .info-under{
        margin: 0 auto;
        width: 100%;
    }
    #page-single-product .card__btn{
        font-size: 18px;
    }
    #page-single-product .card__subtitle{
        font-size: 18px;
    }
    #page-single-product .card__title{
        font-size: 26px;
    }

    #page-single-product .imgs{
        padding: 50px 0;
    }
    #page-single-product .large-text-info-product {
        width: 100%;
    }
    #page-single-product .info-product {
        width: 100%!important;
    }
    .grid-product{
        grid-template-columns: 1fr;
        gap: 0;
    }

    .collection__container--grid{
        grid-template-columns: 1fr;
    }

    #page-search{
        padding-top: 100px;
    }
    
    /* blog стили */
    .blog_block {
        flex-direction: column;
    }
    .body_index h1 {
        font-size: 2.5em;
    }
    .body_index img {
        max-width: 100%;
    }
    .blog_block p:has(img) img {
        width: 100%;
    }
    .blog_block > img {
        max-width: 100%;
    }
    
    .footer__inner {
        flex-direction: column;
        align-content: center;
    }
    .footer__logo-wrapper {
        margin: auto;
    }
}

@media (max-width: 500px) {
    .burger-menu__list {
        font-size: 20px;
    }
    /* blog стили */
    .blog_block_bottom_imgs {
        flex-direction: column;
    }
    
    #page-single-product .product_thumbnail {
        height: 100px;
    }
    
    .card__bottom {
        height: auto;
    }
    .card__title {
        font-size: 20px;
    }
}