/* Адаптив: брейкпоинты от большего к меньшему. Базовые отступы Figma — только внутри media. */

@media (max-width: 1091px){
    .hero__image--mobile{
        display: block;
    }

    .hero__image{
        display: none;
    }
}

@media (max-width: 1830px){
    .header__nav-links{
        gap: 100px;
    }
}

@media (max-width: 1750px){
    .tariffs__card--description{
        font-size: 18px;
    }
    .about,
    .tariffs,
    .gallery,
    .events,
    .form,
    .how-to-use,
    .contact{
        margin-top: 150px;
    }
}


@media (max-width: 1710px){
    .header__nav-links{
        gap: 50px;
    }
}

@media (max-width: 1620px){
    .header__logo{
        font-size: 30px;
    }

    .header__nav-links,
    .header__nav-links a{
        font-size: 19px;
    }

    .hero__title,
    .hero__title--span,
    .hero__title--mobile{
        font-size: 78px;
    }

    .container__title{
        font-size: 68px;
    }

    .hero__info--text,
    .about__info--text,
    .events__info--text,
    .how-to-use__info--text,
    .contact__info--text,
    .info p{
        font-size: 21px;
    }

    .hero__info--button{
        font-size: 27px;
    }

    .about__tabs--number,
    .about__tabs--name,
    .tariffs__card--title,
    .how-to-use__card--number,
    .how-to-use__card--name{
        font-size: 26px;
    }

    .about__tabs--description,
    .tariffs__card--description,
    .how-to-use__card--description,
    .events__topics--item,
    .events__right--description,
    .events__right--details{
        font-size: 20px;
    }

    .events__right--title,
    .events__right--time,
    .form__block--description{
        font-size: 54px;
    }

    .events__right--button,
    .form__block--button{
        font-size: 27px;
    }

    .form__block--input,
    .form__block--input::placeholder{
        font-size: 27px;
    }

    .tariffs__card--description{
        font-size: 18px;
    }
}

@media (max-width: 1530px){
    .header__nav-links{
        gap: 30px;
    }
}
@media (max-width: 1600px){
    .events__right--title, events__right--time{
        font-size: 42px;
    }
}

@media (max-width: 1500px){
    .header__logo{
        font-size: 29px;
    }

    .header__nav-links,
    .header__nav-links a{
        font-size: 18px;
    }

    .hero__title,
    .hero__title--span,
    .hero__title--mobile{
        font-size: 72px;
    }

    .container__title{
        font-size: 62px;
    }

    .hero__info--text,
    .about__info--text,
    .events__info--text,
    .how-to-use__info--text,
    .contact__info--text,
    .info p{
        font-size: 20px;
    }

    .hero__info--button,
    .events__right--button,
    .form__block--button{
        font-size: 26px;
    }

    .about__tabs--number,
    .about__tabs--name,
    .tariffs__card--title,
    .how-to-use__card--number,
    .how-to-use__card--name{
        font-size: 24px;
    }

    .about__tabs--description,
    .tariffs__card--description,
    .how-to-use__card--description,
    .events__topics--item,
    .events__right--description,
    .events__right--details{
        font-size: 19px;
    }
    .tariffs__card--description{
        font-size: 18px;
    }
    .tariffs__card--title{
        font-size: 22px;
    }
    .tariffs__card--button{
        font-size: 20px;
    }
    .about,
    .tariffs,
    .gallery,
    .events,
    .how-to-use,
    .form,
    .contact{
        margin-top: 150px;
    }
}
@media (max-width: 1340px){
    
.tariffs__card--description{
font-size: 16px;
}
}

@media (max-width: 1440px){
    .header{
        grid-template-columns: 130px 1fr auto;
    }
    .hero__info{
        flex-direction: column;
        gap: 20px;
    }
    .events__right{
        max-width: 540px;
    }
    .hero__info--button{
        font-size: 22px;
    }
    .tariffs__card{
padding: 30px 30px 30px 30px;
    }
    .events__right--title, .events__right--time{
        font-size: 36px;
    }
    .about,
    .tariffs,
    .gallery,
    .events,
    .how-to-use,
    .form,
    .contact{
        margin-top: 140px;
    }
}

@media (max-width: 1300px){
    .tariffs__card--title{
        font-size: 20px;
    }
    .tariffs__card--description{
        font-size: 16px;
    }
    .about,
    .tariffs,
    .gallery,
    .how-to-use,
    .events,
    .form,
    .contact{
        margin-top: 130px;
    }
}


@media (max-width: 1091px){
    .header{
        grid-template-columns: 110px 1fr auto;
    }

    .contact__block--right{
        max-width: 370px;
    }
}


@media (max-width: 1270px){
    .form__block--description{
        width: 100%;
        text-align: left;
    }
}


@media (max-width: 1200px){
    .header__nav-links{
        gap: 48px;
    }

    .header__divider{
        width: 100px;
    }

    .about__tabs{
        flex-wrap: wrap;
    }

    .tab-big{
        flex: 1 1 calc(33.333% - 10px);
        min-width: 260px;
    }

    .tab-small{
        flex: 1 1 calc(50% - 8px);
        min-width: 260px;
    }

    .tariffs__cards,
    .how-to-use__cards{
        flex-wrap: wrap;
    }

    .tariffs__card{
        flex: 1 1 calc(50% - 8px);
        height: auto;
        min-height: 508px;
    }

    .how-to-use__card{
        flex: 1 1 calc(33.333% - 10px);
        min-width: 260px;
    }
    .how-to-use{
        margin-top: 120px;
    }
    .events__right{
        max-width: 560px;
    }

    .about,
    .tariffs,
    .gallery,
    .events,
    .how-to-use,
    .form,
    .contact{
        margin-top: 120px;
    }

    .about__tabs--tab{
        padding: 30px 30px;
    }
.tariffs__card--title{
    font-size: 32px;
}
    .tariffs__card--description{
        font-size: 25px;
    }
}

@media (max-width: 1280px){
    .about__tabs--description{
        width: 100%;
    }
}

@media (max-width: 1300px){
    .header__logo{
        font-size: 28px;
    }

    .header__nav-links,
    .header__nav-links a{
        font-size: 17px;
    }

    .hero__title,
    .hero__title--span,
    .hero__title--mobile{
        font-size: 66px;
    }

    .container__title{
        font-size: 56px;
    }

    .hero__info--text,
    .about__info--text,
    .events__info--text,
    .how-to-use__info--text,
    .contact__info--text,
    .info p{
        font-size: 19px;
    }

    .hero__info--button,
    .events__right--button,
    .form__block--button{
        font-size: 24px;
    }

    .about__tabs--number,
    .about__tabs--name,
    .tariffs__card--title,
    .how-to-use__card--number,
    .how-to-use__card--name{
        font-size: 23px;
    }

    .about__tabs--description,
    .tariffs__card--description,
    .how-to-use__card--description,
    .events__topics--item,
    .events__right--description,
    .events__right--details{
        font-size: 18px;
    }
    .hero__info--button{
        font-size: 22px;
    }
}

@media (max-width: 1090px){

    .header__bar{
        gap: 0;
    }

    .header__divider{
        width: auto;
        flex: 1;
        min-width: 0;
        margin-left: 40px;
        margin-right: 40px;
    }

    .header__burger{
        display: flex;
    }

    .header--open .header__burger{
        visibility: hidden;
        pointer-events: none;
    }

    .header__overlay{
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1100;
        background-color: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .header--open .header__overlay{
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header__nav{
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(720px, 70vw);
        min-width: 300px;
        height: 100vh;
        height: 100dvh;
        z-index: 1200;
        display: block;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        visibility: hidden;
        pointer-events: none;
    }

    .header--open .header__nav{
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .header__nav-inner{
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
        background-color: #EEEBE6;
    }

    .header__nav-top{
        display: flex;
        align-items: center;
        flex-shrink: 0;
        padding: 55px 48px 32px;
        box-sizing: border-box;
    }

    .header__nav-top-line{
        display: block;
        flex: 1;
        height: 2px;
        background-color: #000000;
        margin-right: 40px;
    }

    .header__nav-close{
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 48px;
        height: 48px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        flex-shrink: 0;
    }

    .header__nav-close:hover{
        background-color: transparent;
        color: #000000;
    }

    .header__nav-close-line{
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #000000;
    }

    .header__nav-close-line:nth-child(1){
        transform: rotate(45deg);
    }

    .header__nav-close-line:nth-child(2){
        transform: rotate(-45deg);
    }

    .header__nav-body{
        display: flex;
        flex: 1;
        min-height: 0;
        align-items: stretch;
    }

    .header__nav-bg{
        display: block;
        flex: 0 0 42%;
        max-width: 520px;
        background-color: #DCDCDC;
    }

    .header__nav-links{
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 48px;
        padding: 0 80px 80px;
        background-color: #F5F4F0;
        box-sizing: border-box;
        padding-top: 24px;
    }

    body.menu-open{
        overflow: hidden;
    }
}

@media (max-width: 1050px){
    .form__block{
        flex-direction: column;
    }
    .form__block--right{
        text-align: center !important;
    }
    .form__block--description{
        text-align: center !important;
    }
    .form__block--arrow-down{
        display: block;
    }
    .form__block--arrow-right{
        display: none;
    }
    .form__block--button{
        width: 100%;
        max-width: 240px;
    }
}


@media (max-width: 992px){

    .header__nav-top{
        padding: 40px 48px 28px;
    }

    .hero__info--buttons{
        flex-direction: column;
        gap: 20px;
        width: 100%;
        align-items: center;
    }

    .hero__info--button{
        width: 100%;
        max-width: 260px;
    }

    .tariffs__cards{
        margin-top: 20px;
    }

    .gallery__slider{
        margin-top: 20px;
    }
    .events__title{
        margin-bottom: 20px;
    }

    .about__tabs--desktop{
        display: none;
    }

    .about__info{
        margin: 20px 0;
    }

    .about__tabs--slider{
        display: block;
    }

    .about__tabs--desktop .about__tabs > .about__tabs--tab.tab-big,
    .about__tabs--desktop .about__tabs > .about__tabs--tab.tab-small{
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }

    .about__swiper .about__tabs--tab{
        flex: none;
        width: 100%;
        height: auto;
        min-height: 300px;
    }

    .events__block{
        flex-direction: column;
        gap: 20px;
    }

    .tariffs__card{
        flex: 1 1 100%;
        min-height: 420px;
    }

    .how-to-use__card{
        flex: 1 1 100%;
        height: auto;
        min-height: 300px;
    }

    .gallery__slider{
        gap: 24px;
    }

    .events__left{
        max-width: none;
    }

    .events__right{
        max-width: none;
    }

    .form__block{
        flex-direction: column;
        align-items: center;
    }

    .form__block > img{
        align-self: center;
        max-width: 120px;
    }

    .contact__block--map{
        max-width: none;
        min-height: 360px;
    }

    .events__right--details{
      margin-top: 30px;
      margin-bottom: 20px;

    }

    .events__right--description{
      margin-top: 30px;
    }

    .tariffs__card--title{
        font-size: 28px;
    }

    .tariffs__card--description{
        font-size: 20px;
        margin-top: 40px;
    }
}

@media (max-width: 768px){
    .gallery__swiper .gallery__image{
        display: none;
    }

    .gallery__swiper .gallery__image--mobile{
        display: block;
    }

    .events__info{
        margin-bottom: 20px;
    }

    .contact__block{
        flex-direction: column;
    }
    

    .contact__right--bottom{
        margin-top: 60px;
        text-align: center;
    }

    .contact__block .contact__block--right{
        max-width: none;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin-top: 20px;
    }

    .header__divider{
        margin-left: 24px;
        margin-right: 24px;
    }

    .header__nav-top{
        padding: 32px 24px 24px;
    }

    .header__nav-top-line{
        margin-right: 24px;
    }

    .header__nav-links{
        gap: 32px;
        padding: 0 40px 60px;
        padding-top: 24px;

    }

    .header__nav-bg{
        flex: 0 0 38%;
    }

    .hero__image--mobile{
        margin: 24px 0;
    }

    .about__tabs--tab,
    .how-to-use__card{
        min-height: 260px;
    }

    .tariffs__card{
        min-height: 380px;
    }

    .gallery__slider{
        gap: 0;
    }

    .gallery__nav--prev,
    .gallery__nav--next{
        display: none;
    }

    .contact__block--map{
        min-height: 280px;
    }

    .contact__block{
gap: 20px;
    }

    .footer{
        padding-top: 30px;
    }
}

@media (max-width: 590px){
    .hero__title,
    .hero__title--span,
    .hero__title--mobile{
        text-align: left;
    }

    

    .events__right{
        padding: 30px;
    }
}

@media (max-width: 560px){
    .header__burger{
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px){
    .form__block--arrow-down{
        width: 30px;
    }

    .contact{
        margin-bottom: 30px;
        margin-top: 30px;
    }

    .about__tabs--tab,
    .how-to-use__card{
        min-height: 60px;
    }

    .about__swiper .about__tabs--tab{
        min-height: 200px;
    }

    .header{
        padding: 24px 16px;
    }

    .header__burger{
        width: 24px;
        height: 24px;
    }

    .header__divider{
        margin-left: 40px;
        margin-right: 80px;
    }

    .header__nav-top{
        padding: 24px 16px 20px;
    }

    .header__nav-top-line{
        margin-right: 16px;
    }

    .header__nav-bg{
        flex: 0 0 35%;
    }

    .header__nav-links{
        gap: 28px;
        padding: 0 24px 48px;
        padding-top: 24px;
    }

    .hero__title{
        display: none;
    }

    .hero__title--span{
        text-align: right;
    }

    .hero__title--mobile{
        display: block;
    }

    .hero__image--mobile{
        display: none;
    }

    .hero__image{
        display: none;
    }

    .hero__image--small{
        display: block;
        margin: 24px 0;
    }

    .hero__info--button,
    .tariffs__card--button,
    .events__right--button,
    .form__block--button{
        height: 64px;
    }

    .events__topics--item{
        padding: 12px 0;
    }

    .contact__block--map{
        min-height: 220px;
        border-radius: 12px;
    }
}

/* Типографика: плавное уменьшение от десктопа (база) к минимуму на 480px */

@media (max-width: 1280px){
    .hero__title, .hero__title--span{
        font-size: 64px;
    }
}

@media (max-width: 1200px){
    .header__logo{
        font-size: 28px;
    }

    .header__nav-links,
    .header__nav-links a{
        font-size: 17px;
    }

    .hero__title,
    .hero__title--span,
    .hero__title--mobile{
        font-size: 60px;
    }

    .container__title{
        font-size: 52px;
    }

    .hero__info--text,
    .about__info--text,
    .events__info--text,
    .how-to-use__info--text,
    .contact__info--text,
    .info p{
        font-size: 18px;
    }

    .hero__info--button{
        font-size: 23px;
    }

    .about__tabs--number,
    .about__tabs--name{
        font-size: 22px;
    }

    .about__tabs--description{
        font-size: 17px;
    }

    .tariffs__card--title,
    .how-to-use__card--number,
    .how-to-use__card--name{
        font-size: 22px;
    }

    .tariffs__card--description,
    .how-to-use__card--description{
        font-size: 17px;
    }

    .tariffs__card--price{
        font-size: 22px;
    }

    .tariffs__card--button{
        font-size: 22px;
    }

    .events__topics--title{
        font-size: 18px;
    }

    .events__topics--item{
        font-size: 17px;
    }

    .events__right--title,
    .events__right--time{
        font-size: 26px;
    }

    .events__right--description,
    .events__right--details{
        font-size: 17px;
    }

    .events__right--button{
        font-size: 23px;
    }

    .form__block--label{
        font-size: 13px;
    }

    .form__block--input,
    .form__block--input::placeholder{
        font-size: 24px;
    }

    .form__block--bottom{
        font-size: 13px;
    }

    .form__block--button{
        font-size: 23px;
    }

    .form__block--title{
        font-size: 20px;
    }

    .form__block--description{
        font-size: 52px;
    }

    .contact__contacts--title{
        font-size: 20px;
    }

    .contact__contacts--description{
        font-size: 18px;
    }

    .contact__right--text{
        font-size: 15px;
    }
    .hero__info--button{
        font-size: 20px;
    }
}

@media (max-width: 992px){
    .hero__title,
    .hero__title--span,
    .hero__title--mobile{
        font-size: 48px;
    }

    .container__title{
        font-size: 44px;
    }

    .hero__info--text,
    .about__info--text,
    .events__info--text,
    .how-to-use__info--text,
    .contact__info--text,
    .info p{
        font-size: 19px;
    }

    .hero__info--button{
        font-size: 24px;
    }

    .about__tabs--number,
    .about__tabs--name,
    .tariffs__card--title,
    .how-to-use__card--number,
    .how-to-use__card--name{
        font-size: 22px;
    }

    .about__tabs--description,
    .tariffs__card--description,
    .how-to-use__card--description{
        font-size: 16px;
    }

    .tariffs__card--price,
    .tariffs__card--button{
        font-size: 20px;
    }

    .events__topics--title{
        font-size: 16px;
    }

    .events__topics--item{
        font-size: 18px;
    }

    .events__right--title,
    .events__right--time{
        font-size: 24px;
    }

    .events__right--description,
    .events__right--details{
        font-size: 18px;
    }

    .events__right--button{
        font-size: 24px;
    }

    .form__block--input,
    .form__block--input::placeholder{
        font-size: 22px;
    }

    .form__block--button{
        font-size: 24px;
    }

    .form__block--title{
        font-size: 18px;
    }

    .form__block--description{
        font-size: 44px;
    }
}

@media (max-width: 768px){
    .header__logo{
        font-size: 24px;
    }

    .hero__title,
    .hero__title--span,
    .hero__title--mobile{
        font-size: 40px;
    }

    .container__title{
        font-size: 36px;
    }

    .hero__info--text,
    .about__info--text,
    .events__info--text,
    .how-to-use__info--text,
    .contact__info--text,
    .info p{
        font-size: 18px;
    }

    .hero__info--button{
        font-size: 20px;
    }

    .about__tabs--number,
    .about__tabs--name,
    .tariffs__card--title,
    .how-to-use__card--number,
    .how-to-use__card--name{
        font-size: 20px;
    }

    .about__tabs--description,
    .tariffs__card--description,
    .how-to-use__card--description{
        font-size: 14px;
    }

    .tariffs__card--price,
    .tariffs__card--button{
        font-size: 18px;
    }

    .events__topics--title{
        font-size: 14px;
    }

    .events__topics--item{
        font-size: 17px;
    }

    .events__right--title,
    .events__right--time{
        font-size: 22px;
    }

    .events__right--description{
        font-size: 16px;
    }

    .events__right--details{
        font-size: 17px;
    }

    .events__right--button{
        font-size: 20px;
    }

    .form__block--label{
        font-size: 12px;
    }

    .form__block--input,
    .form__block--input::placeholder{
        font-size: 20px;
    }

    .form__block--bottom{
        font-size: 12px;
    }

    .form__block--button{
        font-size: 20px;
    }

    .form__block--title{
        font-size: 15px;
    }

    .form__block--description{
        font-size: 40px;
    }

    .contact__contacts--title{
        font-size: 18px;
    }

    .contact__contacts--description{
        font-size: 16px;
    }

    .contact__right--text{
        font-size: 14px;
    }
}

@media (max-width: 650px){
    .hero__title{
        display: none;
    }
    .hero__title--mobile{
        display: block;
    }
}

@media (max-width: 590px){

.hero__title--span{
    text-align: right;
}

    .hero__title,
    .hero__title--span,
    .hero__title--mobile{
        font-size: 30px;
    }

    .container__title{
        font-size: 28px;
    }

    .form__block--description{
        font-size: 38px;
    }

    .info p{
        font-size: 14px;
    }
}

@media (max-width: 480px){
    .header__logo{
        font-size: 16px;
    }

    .header__nav-links,
    .header__nav-links a{
        font-size: 16px;
    }

    .hero__title--mobile{
        font-size: 24px;
    }

    .hero__title--span{
        font-size: 24px;
    }

    .container__title{
        font-size: 22px;
    }

    .hero__info--text,
    .about__info--text,
    .events__info--text,
    .how-to-use__info--text,
    .contact__info--text,
    .info p{
        font-size: 16px;
    }

    .hero__info--button,
    .tariffs__card--button,
    .events__right--button,
    .form__block--button{
        font-size: 16px;
    }

    .about__tabs--number,
    .about__tabs--name,
    .how-to-use__card--number,
    .how-to-use__card--name,
    .tariffs__card--title{
        font-size: 18px;
    }

    .about__tabs--description,
    .tariffs__card--description,
    .how-to-use__card--description{
        font-size: 12px;
    }

    .tariffs__card--price{
        font-size: 16px;
    }

    .events__topics--title{
        font-size: 12px;
    }

    .events__topics--item{
        font-size: 16px;
    }

    .events__right--title,
    .events__right--time{
        font-size: 18px;
    }

    .events__right--description{
        font-size: 12px;
    }

    .events__right--details{
        font-size: 14px;
    }

    .form__block--label{
        font-size: 12px;
    }

    .form__block--input,
    .form__block--input::placeholder{
        font-size: 18px;
    }

    .form__block--bottom{
        font-size: 10px;
    }

    .form__block--title{
        font-size: 12px;
    }

    .form__block--description{
        font-size: 36px;
    }
}

@media (max-width: 450px){
    .info p{
        font-size: 12px;
    }
    .contact__contacts--title{
        font-size: 14px;
    }

    .contact__contacts--description{
        font-size: 12px;
    }

    .contact__right--text{
        font-size: 12px;
    }
}
