@media screen and (width < 1420px) {
    .header__bottom-nav {
        gap: 10%;
    }

@media screen and (width < 1250px) {
    .header__bottom-nav {
        gap: 5%;
    }  

@media screen and (width < 1200px) {
    .header__bottom-nav {
        gap: 3%;
    }
    .space__item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .massage-description__about {
        display: grid;
        grid-template-rows: 1fr 2fr;
        grid-template-columns: none;
        justify-items: center;
        margin-bottom:20px;
    }
    .massage-description__img {
        margin: 0px;
    }
    .massage-description__text {
       grid-row: 2/3;
       grid-column: 1/2;
       gap: 15px;
    }   
}
@media screen and (width < 1080px) {
    .header__bottom-nav {
        gap: 1%;
    }
    .tablet__item {
        width: calc(30% - 15px);
    }
    .home-sertificate__wraper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }  
    .double-bloc__wraper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }  
}
@media screen and (width < 940px) {
    .header {
        top: -160px;
    }  

    /* для маленькой навигации */
    .header__bottom {
        display: none;
    }
    .header__bottom-nav-elem {
        padding: 0 2%;
        margin: 0 2%;
    }
    .header__bottom-small {
        display: flex;
        flex-direction: column;
        border-top: 1px solid var(--background-color2);
        border-bottom: 1px solid var(--background-color2); 
    }
}
@media screen and (width < 780px) {
    .header {
        position:ralative;
    }
    .header__bottom-nav-elem {
        padding: 0 1%;
        margin: 0 1%;
    }
    .middle__painting { 
        width: calc(50% - 10px);
    }
    .middle__painting-img {
        margin-top: 50px; 
    }
    .middle__painting-title {
        font-size: 26px;
        font-weight: 700;
    }
    .middle__painting-text {
        font-size: 20px;
        font-weight: 600;
        padding: 0px 0px 0px 15%;
    }
    .footer__container {
        display: grid;
        grid-template-columns: none;
        justify-content: center;
        align-items: center;
    }
    .tablet__item {
        width: calc(50% - 15px);
    }
    .footer__container {
        padding-left: 30px;   
        padding-right: 30px;
    }
    .footer__social-tel-elem {
        padding: 6px;
    }
    .footer__nav-list {
        margin-left: 0px;
    }

    /* Кнопка наверх */
    .top {
        width: 40px;
        height: 40px;
    }
}
@media screen and (width < 650px) {

    /* Банер */
    .banner {
        background-image: url(../img/fon-index-mini.png);
    }
    .home-sertificate__img  img{
        height: 380Px;
    }
}
@media screen and (width < 600px) {
    .header__bottom-nav-top-small {
        letter-spacing: normal;
    }
    .header__bottom-nav-bottom-small {
        letter-spacing: normal;
    }
    .header__bottom-nav-top-small a {
        font-size: 24px;
        font-weight: 600;
        padding: 8px;
        margin: 8px;
    }
    .header__bottom-nav-bottom-small a {
        font-size: 24px;
        font-weight: 600;
        padding: 8px;
        margin: 8px;
    }
    .banner-yoga {
        background-image: url(../img/banner-yoga-mini.jpg);
    }
    .banner_slogan {
        font-size: 12px;
    }
    .tablet__item {
        width: calc(100% - 15px);
    }
    .home-sertificate__img  img{
        height: 320px;
    }
    .space__img-1 {
        height: 320px;
    }
    .space__img  {
        height: 320px;
    }    
    .footer__container {
       flex-direction: column;
       justify-content: space-between;
       align-items: center;
       row-gap: 40px;
       font-size: 24px;
    }
    .footer__social-tel {
        display: block;
        margin-bottom: 30px;
        text-align: center;
    }
    .home-sertificate__img {
        height: 380px;
    }
    .massage-description__img img {
        height: 320px;
    }
}   

@media screen and (width < 480px) {
    .header {
        top: -130px;
        }  
    .header__top-logo img {
        height: 90px ;
    }
    .header__bottom-nav-top-small a {
        font-size: 20px;
        font-weight: 600;
        padding: 5px;
        margin: 5px;
    }
    .header__bottom-nav-bottom-small a {
        font-size: 20px;
        font-weight: 600;
        padding: 5px;
        margin: 5px;
    }
    .home-sertificate__img {
        height: 216px;
        margin: 10px;
    }
    .home-sertificate__img  img{
        height: 216px;
        margin: 10px;
    }
    .home-sertificate__about {
        margin: 10px;
    }
    .massage-description__img img {
        height: 280px;
    }
    .double-bloc__left-img {
        height: 216px;
        margin: 10px;
}
    .double-bloc__right-img {
        height: 216px;
        margin: 10px;
 }
    .space__img-1 {
        height: 216px;
        margin: 10px;
    }
    .space__img {
        height: 216px;
        margin: 10px;
    }    
    .footer__social-tel {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer__nav-list {
        display: grid;
        grid-template-columns: 1fr;
        margin-left: 0px;
    } 
}

@media screen and (width < 440px) {
    .header__bottom-nav-top-small a {
        font-size: 22px;
        margin: 3px;
    }
    .header__bottom-nav-bottom-small a {
        font-size: 22px;
        margin: 3px;
    }
}

@media screen and (width < 405px) {
    .header__bottom-nav-elem {
        padding: 0 3px;
        margin: 0 3px;
    }
}

@media screen and (width < 390px) {
    .header__bottom-nav-top-small a {
        font-size: 18px;
        margin: 3px;
    }
    .header__bottom-nav-bottom-small a {
        font-size: 18px;
        margin: 3px;
    }
}

@media screen and (width < 370px) {
    .header__bottom-nav-elem {
        padding: 0 2px;
        margin: 0 2px;
    }
}

@media screen and (width < 320px) {
    .header__bottom-nav-top-small a {
        margin: 1%;
    }
    .header__bottom-nav-bottom-small a {
        margin: 1%;
    }
    .massage-description__img img {
        height: 300px;
        margin: 10px;
    }
}