@media screen and (max-width: 1650px) {
    .header {
        background-position: -210px;
    }

    
    
    .header_top {
    height: 100px;
    }



    .header__logo {
        margin-right: 25px;
        max-width: 290px;
    }

    .header__nav_link {
        font-size: var(--fs-m);
    }

    .header__nav_link__floating > .header__nav_link {
        line-height: calc(var(--fs-base) * 1.6);
    }
        .topcontacts{
            margin-bottom: 0;
    }    
    .topundercontacts{
            font-size: 22px
    }    


    .page {
        margin-top: 94px;
    }
    .header_contacts{
        display: none
    }
}

@media screen and (max-width: 1270px) {
    /* Index */
    .search input {
        width: 190px;
    }

    .header__nav_link {
        font-size: var(--fs-base);
    }

    .header__nav_link__floating > .header__nav_link {
        line-height: calc(var(--fs-base) * 1.6);
    }

    .header__logo {
        margin-right: 35px;
        max-width: 290px;
    }

    .header {
        background-position: -280px;
        position: static;
    }

     .header__bottom {
        display: none;
    }

    
    /* About */
    .about__logos img {
        min-height: 100px;
        max-height: 100px;
        max-width: 20%;
    }

    /* Catalog */
    
    .catalog__list {
        grid-template-columns: repeat(3, 1fr);
    }

    .catalog__block {
        flex-direction: column;
    }

    .catalog__block form {
        width: 100%;
    }

    .catalog__block form button {
        margin-bottom: 0;
    }

    .catalog__block form > div {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: var(--spacing-m);
    }

    .catalog__show_filters__button {
        display: block;
    }

    /* Services */
    .services__list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .services__list div {
        min-width: 30%;
        max-width: 30%;
    }

    /* Brands */
    .brands__inner {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    .brand__inner {
        flex-direction: column;
        justify-content: flex-start;
        gap: var(--spacing-xxl);
    }

    .brand__left {
        max-width: 100%;
    }

    .brand__logo {
        max-width: 100%;
        max-height: 350px;
    }

    .page {
        margin-top: 0px;
    }

    
@media screen and (max-width: 960px) {
    /* Root */
    :root {
        --fs-s: 12px;
        --fs-base: 15px;
        --fs-m: 19px;
        --fs-l: 24px;
        --fs-xl: 31px;
        --fs-xxl: 39px;

        --spacing-s: 4px;
        --spacing-base: 6px;
        --spacing-m: 9px;
        --spacing-l: 15px;
        --spacing-xl: 25px;
        --spacing-xxl: 40px;
    }

    .page {
    margin-top: 94px;
    }
    
    .product__full_description {
    font-size: var(--fs-m);
    }
    .product__price span {
    font-size: var(--fs-m);
    margin-right: var(--spacing-s);
    }   

    /* Index */
    .header__mobile {
        display: flex;
    }

    .header {

        left: auto;
        right: -100%;

        padding-top: 0;
        position: fixed;
        transition: right .2s ease;

    }
    

    .header_top {
        background: var(--color-white);
        background-image: none;

        flex-direction: column;
        gap: var(--spacing-xl);

        width: fit-content;
        height: 100vh;

        justify-content: flex-start;

    }


    .header.active {
        right: 0;
    }

    .header > button {
        display: block;
        position: absolute;
        top: var(--spacing-l);
        right: var(--spacing-xxl);
        background-color: transparent;
    }

    .header .header__logo {
        display: none;
    }

    .header__nav {
        flex-direction: column;
        margin-right: 0;
        gap: var(--spacing-m);
        margin-top: 94px;
    }

    .header__contacts {
        justify-content: center;
        align-items: center;
        gap: var(--fs-base);
        text-align: center
    }

    .header__nav_link.header__nav_link--pc {
        display: none !important;
    }

    .header__nav_link.header__nav_link--mobile {
        display: inline-block !important;
    }

    .header__nav_link {
        font-size: var(--fs-m);
        text-align: center;
    }

    .topcontacts{
            margin-bottom: var(--spacing-l);
    }    
    .topundercontacts{
            font-size: 30px
    }    


    .footer__inner {
        flex-direction: column;
    }

    .footer__col {
        flex: 1;
        width: 100%;
        text-align: center;
    }
    

    .footer__logo {
        width: 200px;
    }

    /* Home */
    .popular_products__block .slick-slide {
        min-height: auto;
    }

    .intro__text {
        font-size: var(--fs-m);
        padding-bottom: 10px;
    }
    .intro__btn {
        font-size: var(--fs-m);
    }
    .decor_text {
        display: block
    }
    .ul_huyul {
        gap: 40px 0;
    }

    .delimap{
    width: 110%;
    }
    
    .contact_block {
    flex-direction: column;
    }

    .contact_text{
    font-size: var(--fs-m);    
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .category-item:nth-child(-n+6),
    .category-item:nth-child(n+7) {
        grid-column: span 1;
    }

    .category-item span {
        font-size: 16px;
    }
    .contacts__inner{
        gap: 20px;
    }


    /* Catalog */
    .catalog__inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalog__list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About */
    .about__logos img {
        max-width: 40%;
    }

    /* Services */
    .services__list div {
        min-width: 45%;
        max-width: 45%;
    }

    /* Product */
    .product__head {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: var(--spacing-l);
    }

    .main-image img{
        max-width: 100%;
    }


    .mejmed{
        padding-bottom: 15px; 
        padding-top: 15px; 
    }

    .carrback_button{
    padding-left: 2px; 
    padding-right: 2px; 
    
}
    .prefooter {
        padding-left: 0px;
    padding-right: 0px;
    }

    .prefooter img{
        max-width: 100%;
        
    }
    .prefooter12 img{
        max-width: 70%;
        
    }

    .product__stats {
        max-width: 100%;
    }

    .product__specs_table th {
        font-size: var(--fs-base);
        padding: var(--spacing-base);
    }

    .delivery_top{
        font-size: var(--fs-m);
    }
}

@media screen and (max-width: 670px) {
    /* Brands */
    .brands__inner {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 1fr);
    }

    /* Contacts */
    .contacts h2 {
        width: 100%;
    }

    /* About */
    .about__logos img {
        width: 100%;
        min-height: initial;
        max-height: 300px;
        height: auto;
        max-width: 100%;
    }


    .innermap {
        transform: scale(1);
        object-fit: contain;
        height: 300px;
    }
    .delimap {
        transform: scale(1) ;
    }

    /* Catalog */
    .catalog__list {
        grid-template-columns: repeat(1, 1fr);
    }

    .catalog__block form > div {
        display: block;
    }

    .catalog__block form button {
        margin-bottom: var(--spacing-m);
    }

    /* Services */
    .services__list div {
        min-width: 100%;
        max-width: 100%;
    }

    /* footer */
    .footer__col div {
        text-align: center; 
    }

}

@media screen and (max-width: 500px) {
    .catalog__inner {
        grid-template-columns: repeat(1, 1fr);
    }

    .overflow__block input,
    .overflow__block textarea {
        border-radius: var(--spacing-m);
        font-size: var(--fs-m);
        padding: var(--spacing-m);
    }

    .overflow__message {
        font-size: var(--fs-m);
        padding: var(--spacing-m);
    }
    /*.category-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
        padding: 5px;
    }*/


}