@media screen and (max-width: 1600px) {
    .hero-lines {
        width: 66%;
        right: -7%;
        bottom: -24%;
        min-width: 1100px;
    }
    
    .container {
        width: 84.58%;
    }

    .adv-lines-2 {
        left: -46.4444vw;
    }

    .adv-lines-1  {
        right: -40.9861vw;
    }
}

@media screen and (max-width: 1366px) {
    .hero-section .container {
        width: 88%;
    }

    html, body {
        font-size: 16px;
    }

    .hero-slider-wrapper {
        right: 5.4583vw;
    }

    .gallery__item-title {
        font-size: 1.1rem;
    }

    .gallery__item-extra {
        font-size: 1rem;
    }

    .gallery__item-price_value {
        font-size: 1.5rem;
    }

    .gallery__item-price small {
        font-size: 0.9rem;
        margin-top: 5px;
    }

    .advantages__title {
        font-size: 2.8rem;
    }

}

@media screen and (max-width: 1024px) {
    .hero-offer__title {
        font-size: 3rem;
    }    

    .hero-offer__message {
        font-size: 1.125rem;
        margin-bottom: 32px;
        max-width: 351px;
    }

    .hero-offer__timer {
        margin-bottom: 32px;
    }

    .hero-slider__item {
        width: 410px;
    }

    .hero-lines {
        right: -36%;
        min-width: 860px;
        bottom: -32%;
    }

    .hero-section {
        padding: 173px 0 95px;
    }

    .gallery-section {
        padding: 80px 0;
    }

    .gallery-section__pretitle {
        font-size: 4rem;
    }

    .gallery-section__title {
        font-size: 2rem;
    }

    .gallery-section__head {
        margin-bottom: 40px;
    }

    .gallery__item-content_head {
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
            -ms-flex-direction: column-reverse;
                flex-direction: column-reverse;
        -webkit-box-align: start;
            -ms-flex-align: start;
                align-items: flex-start;
    }

    .gallery__item-extra {
        font-size: 1.125rem;
        margin-bottom: 6px;
    }

    .gallery__item-title {
        font-size: 1.325em;
    }

    .gallery__item-content_head {
        margin-bottom: 4px;
    }

    .gallery__item-price img {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }

    .advantages-section {
        padding: 80px 0;
    }

    .advantages__title {
        font-size: 2rem;
        max-width: 350px;
        margin-bottom: 40px;
    }

    .advantages-list {
        gap: 20px;
    }

    .advantages-list__item-count {
        font-size: 2rem;
    }

    .advantages-list__item-message {
        font-size: 0.875rem;
    }

    .join__title {
        font-size: 2.625rem;
    }

    .join-message {
        font-size: 1.25rem;
    }

    .footer-wrapper .container {
        width: 83.5164%;
    }

    .footer-wrapper {
        padding: 40px 0;
    }

    .join-section {
        padding: 80px 0;
    }

    .footer {
        padding: 20px 0;
    }
    
}

@media screen and (max-width: 768px) {
    
    .hero-slider-wrapper {
        position: static;
        -webkit-transform: none;
            -ms-transform: none;
                transform: none;
        right: unset;
        top: unset;
    }


    .hero-section .container {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
            -ms-flex-direction: column-reverse;
                flex-direction: column-reverse;
    }

    .hero-slider-wrapper {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }

    .hero-offer {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        text-align: center;
    }

    .hero-offer > *:nth-child(3) {
        -webkit-box-ordinal-group: 2;
            -ms-flex-order: 1;
                order: 1;
    }

    .hero-offer > *:nth-child(1) {
        -webkit-box-ordinal-group: 3;
            -ms-flex-order: 2;
                order: 2;
    }

    .hero-offer > *:nth-child(2) {
        -webkit-box-ordinal-group: 4;
            -ms-flex-order: 3;
                order: 3;
    }

    .hero-offer > *:nth-child(4) {
        -webkit-box-ordinal-group: 5;
            -ms-flex-order: 4;
                order: 4;
    }

    .hero-slider-wrapper {
        margin-bottom: 16px;
    }

    .hero-section .container {
        width: 100%;
        padding: 0 20px;
    }

    .header nav,
    .header-wrapper > .btn-primary {
        display: none;
    }
    
    .burger {
        display: block;
        height: 24px;
        width: 32px;
        position: relative;
        font-size: 12px;
        cursor: pointer;
        -webkit-transition: all .2s;
        -o-transition: all .2s;
        transition: all .2s;
        -webkit-tap-highlight-color: transparent;
    }

    .burger .burger-lines, .burger .burger-lines:after, .burger .burger-lines:before {
        pointer-events: none;
        display: block;
        content: "";
        width: 100%;
        border-radius: 0.5em;
        background-color:  #1B1817;
        height: 0.25em;
        position: absolute;
        -webkit-transform: rotate(0);
        -ms-transform: rotate(0);
            transform: rotate(0);
        -webkit-transition: top .2s .2s,left .1s,background-color .4s .2s,-webkit-transform .2s;
        transition: top .2s .2s,left .1s,background-color .4s .2s,-webkit-transform .2s;
        -o-transition: top .2s .2s,left .1s,transform .2s,background-color .4s .2s;
        transition: top .2s .2s,left .1s,transform .2s,background-color .4s .2s;
        transition: top .2s .2s,left .1s,transform .2s,background-color .4s .2s,-webkit-transform .2s;
    }

    .burger .burger-lines {
        top: 50%;
        margin-top: -0.125em;
    }

    .burger .burger-lines:after {
        left: 0;
        top: -10px;
    }
    .burger .burger-lines:before {
        top: 10px;
    }

    .burger.open .burger-lines:before {
        -webkit-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
            transform: rotate(-45deg);
    }

    .burger.open .burger-lines:after {
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
            transform: rotate(45deg);
    }

    .burger.open .burger-lines {
        background-color: initial;
    }

    .burger.open .burger-lines:after, .burger.open .burger-lines:before {
        left: 0.5em;
        top: 0;
    }

    .backdrop {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: block;
        background-color: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        -webkit-transition: all .4s ease;
        -o-transition: all .4s ease;
        transition: all .4s ease;
        z-index: 9999;
    }

    .mobile-menu {
        position: fixed;
        display: block;
        width: 100%;
        max-width: 296px;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 99999;
        background-color: #fff;
        -webkit-transform: translateX(100%);
            -ms-transform: translateX(100%);
                transform: translateX(100%);
        visibility: hidden;
        -webkit-transition: all .4s ease;
        -o-transition: all .4s ease;
        transition: all .4s ease;
        padding: 36px 16px 36px 24px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
    }

    .mobile-menu.open {
        -webkit-transform: translateX(0);
            -ms-transform: translateX(0);
                transform: translateX(0);
        visibility: visible;
    }

    .backdrop.open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu__top {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: end;
            -ms-flex-align: end;
                align-items: flex-end;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

    .mobile-menu__top .burger {
        margin-bottom: 34px;
    }

    .mobile-menu nav {
        width: 100%;
    }

    .mobile-nav__item {
        margin-bottom: 32px;
    }

    .mobile-nav__item .menu__link {
        font-size: 20px;
        line-height: 1.5em;
        color: #1B1817;
    }

    .mobile-menu .footer-social__item {
        margin-left: 0;
        margin-right: 24px;
    }

    .mobile-menu .footer-social {
        margin-bottom: 36px;
    }

    .mobile-menu .btn-primary {
        height: 54px;
        line-height: 54px;
        font-size: 18px;
        padding: 0 24px;
    }

    .container {
        width: 100%;
        padding: 0 20px;
    }

    .gallery {
        gap: 20px;
    }

    .gallery__item-extra {
        font-size: 1rem;
    }

    .gallery__item-title {
        font-size: 1.125rem;
    }

    .gallery__item-price_value {
        font-size: 1rem;
    }

    .gallery__item-price small {
        font-size: 0.750rem;
        margin-top: -3px;
    }

    .gallery__item-price img {
        height: 26px;
        width: 26px;
    }

    .footer-wrapper .container {
        width: 100%;
        padding: 0 24px;
    }

    .hero-lines {
        right: 50%;
        min-width: 860px;
        bottom: 12%;
        -webkit-transform: translateX(50%);
            -ms-transform: translateX(50%);
                transform: translateX(50%);
    }

}

@media screen and (max-width: 576px) {
    .header {
        padding: 36px 0;
    }

    .hero-section {
        padding: 76px 0 64px;
    }

    .hero-slider__item {
        width: 287px;
    }

    .hero-lines {
        min-width: 140%;
    }

    .hero-offer__title {
        font-size: 2.375rem;
        margin-bottom: 16px;
    }

    .hero-offer__message {
        font-size: 1rem;
    }

    .gallery-section {
        padding: 55px 0;    
    }

    .gallery-section__pretitle {
        font-size: 3.438rem;
    }

    .gallery-section__title {
        font-size: 1.75em;
    }

    .gallery {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }

    .gallery__item {
        display: none;
    }

    .gallery__item.active {
        display: block;
    }

    .gallery__item-img::before {
        padding-bottom: 170.5%;
    }

    .gallery__item-img {
        margin-bottom: 24px;
    }

    .gallery__item-extra {
        font-size: 1.125rem;
        margin-bottom: 0;
    }

    .gallery__item-title {
        font-size: 2rem;
    }

    .gallery__item-content_head {
        margin-bottom: 6px;
    }

    .gallery__item-price img {
        height: 32px;
        width: 32px;
    }

    .gallery__item-price_value {
        font-size: 1.625rem;
    }

    .gallery__item-price small {
        font-size: 1.125rem;
        margin-top: 0;
    }

    .advantages-list {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }

    .adv-lines-1 {
        top: -29%;
        right: -35.9861vw;
    }

    .adv-lines-2 {
        bottom: -26%;
    }

    .join-wrapper {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

    .join-img, .join-content {
        width: 100%;
    }

    .join-img {
        margin-bottom: 32px;
    }

    .join__title {
        margin-bottom: 16px;
    }

    .join-message {
        margin-bottom: 32px;
    }

    .join-btn-wrapper {
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
    }

    .join-btn-wrapper .btn-primary {
        /*width: calc(50% - 8px);*/
        width: 300px;
        margin-right: 0 !important;
        height: 64px;
    }

    .footer-row .footer-social {
        display: none !important;
    }

    .footer-wrapper .container {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        text-align: center;
    }

    .footer-row:nth-child(2) {
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
            -ms-flex-direction: column-reverse;
                flex-direction: column-reverse;
    }

    .footer-row:nth-child(3) {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

    .footer-row:nth-child(1) img {
        width: 173px;
        height: auto;
    }

    .policy {
        margin-top: 16px;
        margin-bottom: 8px;
    }

    .extra {
        text-align: center;
        margin-top: 16px;
    }

    .policy, .footer-email {
        font-size: 1rem;
    }

    .copy, .extra {
       font-size: 0.750rem;
        color: #F3F5FC;
    }

    .hero-lines {
        bottom: 36%;
    }

}