@media (max-width: 1080px) {
    .header__content-offer {
        display: none;
    }
    .header__content {
        justify-content: center;
        text-align: center;
    }
    .header__content-text {
        text-align: center;
    }
    .header__content-discount {
        display: none;
    }
    .menu__list-item,
    .menu__lang-btn,
    .phone__link {
        font-size: 17px;
    }
    .logo__text {
        font-size: 17px;
    }
    .logo__span {
        font-size: 13px;
        letter-spacing: 0.6px;
    }
    .phone__link::before {
        width: 18px;
        height: 19px;
    }
    .menu__list {
        gap: 0 25px;
    }
}

@media (max-width: 970px) {
    .header__content-title {
        font-size: 56px;
    }
    .header__content-text {
        font-size: 22px;
    }
    .about__achiev-item h3 {
        font-size: 20px;
    }
    .header__content-descr {
        margin-top: 50px;
    }
    .menu__list-item,
    .menu__lang-btn,
    .phone__link {
        font-size: 16px;
    }
    .logo__text {
        font-size: 16px;
    }
    .logo__span {
        font-size: 12px;
        letter-spacing: 0.4px;
    }
    .phone__link::before {
        width: 18px;
        height: 19px;
    }
    .menu__list {
        gap: 0 20px;
    }
}

@media (max-width: 940px) {
    .phone__link {
        display: none;
    }
    .mob__phone {
        display: inline-block;
        position: relative;
    }

    .mob__phone::before {
        position: absolute;
        content: "";
        background-image: url(../images/phone-2.svg);
        background-repeat: no-repeat;
        background-size: cover;
        width: 26px;
        height: 28px;
        left: -50px;
        top: -17px;
    }
}

@media (max-width: 820px) {
    .footer__top-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 24px 0 30px;
    }
    .footer__top-wrapper .footer__top-form {
        order: 2;
    }
    .footer__top-wrapper .footer__top-contacts {
        order: 1;
        text-align: center;
        width: 320px;
    }
    .footer__top-text,
    .footer__phone-text {
        text-align: center;
    }
    .footer__phone-text {
        margin-bottom: 36px;
    }
    .footer__email {
        display: none;
    }
    .footer__phone-telegram {
        margin-bottom: 32px;
    }
}

@media (max-width: 790px) {
    .header__content-descr {
        margin-top: 48px;
    }
    .mob__phone {
        display: inline-block;
        position: relative;
    }

    .mob__phone::before {
        position: absolute;
        content: "";
        background-image: url(../images/phone-2.svg);
        background-repeat: no-repeat;
        background-size: cover;
        width: 26px;
        height: 28px;
        left: -21px;
        top: 0;
    }

    .header__content-img {
        right: 10px;
        width: 540px;
    }
    /* Button Menu Burger Mobile */
    .header__menu-list {
        z-index: 10;
        width: 100%;
        height: 100%;
        background-color: #181818;
        color: #ffffff;
        flex-direction: column;
        align-items: center;
        gap: 20px 0;
        padding: 25px 0;
        position: absolute;
        left: 0;
        top: 0;
        transform: translateY(-500%);
        transition: transform 0.4s ease;
    }

    /* Центрируем блок по вертикали по центру моб устройств */
    .header__content-descr {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
        margin-top: -50px;
    }

    /* Mob version */
    .mob__header-content {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        font-size: 20px;
        line-height: 1.6;
        font-weight: 500;
    }
    .mob__header-content--btn {
        margin-top: 28px;
    }

    
    .mob__header-content-phone,
    .mob__header-content-calc {
        display: block;
        width: 100%;
        padding: 18px 20px;
        background: radial-gradient(circle, #fe6776, #c44451);
        color: #ffffff;
        font-size: 18px;
        border-radius: 5px;
        position: relative;
    }
    .mob__header-content-phone::before {
        position: absolute;
        content: "";
        background-image: url(../images/phone-2.svg);
        background-repeat: no-repeat;
        background-size: cover;
        width: 22px;
        height: 24px;
        left: 90px;
        top: 21px;
    }
    .header__content-title {
        font-size: 54px;
        margin-bottom: 40px;
    }
    .header__content {
        justify-content: center;
        text-align: center;
    }
    .header__content-offer,
    .header__content-text,
    .header__content-discount,
    .menu__phone {
        display: none;
    }
    /* Переместили меню бургер из центра в крайнее правое положение */
    .header__menu {
        order: 1;
    }
    .menu__lang {
        display: none;
    }
    .header__top {
        align-items: flex-start;
        padding-right: 5px;
        padding-left: 5px;
    }
    .menu__list.menu__list--open {
        transform: translateY(0);
    }
    .mobile-nav {
        display: block;
    }
    .mobile__phone-nav {
        display: block;
    }
    .mobile__phone-link {
        color: #ffffff;
        font-size: 26px;
        font-weight: 600;
        position: relative;
    }
    .mobile__phone-link::before {
        position: absolute;
        content: "";
        background-image: url(../images/phone-2.svg);
        background-repeat: no-repeat;
        background-size: cover;
        width: 22px;
        height: 24px;
        left: -30px;
        top: 4px;
    }
    .menu__close {
        display: inline-block;
    }
    .mobile-menu__item {
        margin-bottom: 35px;
    }
    .menu__close-btn {
        position: absolute;
        top: 36px;
        right: 20px;
        cursor: pointer;
    }
    .menu__close-btn img {
        width: 30px;
        height: 30px;
    }
    .menu__btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 40px;
        height: 26px;
        position: relative;
        z-index: 10;
    }
    .menu__btn span {
        height: 2px;
        background-color: #ffffff;
        width: 100%;
        border-radius: 10px;
    }
    .mob__menu-lang {
        display: flex;
        justify-content: center;
        gap: 0 12px;
        margin: 40px 0 40px;
    }
    .menu__list-link {
        font-size: 30px;
        color: #ffffff;
        font-weight: 500;
    }
    .menu__lang-btn {
        font-size: 20px;
    }
    .menu__link-uk,
    .menu__link-ru {
        color: #808080;
    }
    .menu__list-item {
        margin-bottom: 20px;
        font-weight: 500;
    }
    .form-container {
        width: 422px;
    }
    .about__descr {
        margin-bottom: 50px;
        text-align: center;
        width: 100%;
    }
    .about__title {
        text-align: center;
    }
    .about__achiev {
        flex-wrap: wrap;
        justify-content: space-around;
        text-align: center;
    }
    .footer__button-text {
        font-size: 14px;
    }

    body {
        font-size: 16px;
    }
    .about__title,
    .advant__title,
    .teachers__title {
        font-size: 30px;
    }
    .footer__top-text,
    .footer__phone {
        display: none;
    }
    .mob__footer-phone {
        display: block;
        color: #ffffff;
        position: relative;
        font-size: 20px;
        margin-bottom: 30px;
    }
    .mob__footer-phone::before {
        position: absolute;
        content: "";
        background-image: url(../images/phone-2.svg);
        background-repeat: no-repeat;
        background-size: cover;
        width: 20px;
        height: 22px;
        left: 43px;
        top: 5px;
    }
    .footer__top-text--mob {
        display: block;
        margin-bottom: 30px;
        text-align: center;
        color: #ffffff;
        line-height: 1.4;
    }
    .form__messenger-text {
        margin-top: 10px;
    }
    .form__lessons {
        margin-top: 30px;
    }
    .discount-10 {
        font-size: 16px;
    }
    .footer__phone-text {
        margin-top: 30px;
    }
    .footer__logo {
        margin: 20px auto 0;
    }
    .footer__contact-info {
        margin-left: 0;
    }
    .footer__map::before {
        position: absolute;
        content: "";
        background-image: url(../images/map-marker.svg);
        background-repeat: no-repeat;
        background-size: cover;
        width: 25px;
        height: 25px;
        left: -22px;
        top: 2px;
    }
    .footer__input-phone {
        margin-bottom: 26px;
    }
    .footer__logo {
        width: 200px;
        text-align: center;
        line-height: 1.1;
    }
    .footer__logo span {
        font-size: 16px;
        font-weight: 300;
    }
    .menu__list-item-calc {
        background: radial-gradient(circle, #fe6776, #c44451);
        -webkit-background-clip: text;
        color: transparent;
        font-weight: 700;
    }
    .calculator__header-wrapper {
        margin-top: 40px;
    }

    /* Анимация мигания */
    @keyframes blink {
        0% {
            opacity: 1;
        }
        50% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }
    .mob__header-content-calc {
        animation: blink 1s ease-in-out 0s 2; /* Мигать дважды (2 раза) */
    }
}

@media (max-width: 650px) {
    .menu__phone {
        display: none;
    }
    .form-container {
        width: 400px;
    }
    .about,
    .services,
    .price {
        padding: 40px 0 60px;
    }
    .gallary {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    header {
        background-image: url(../images/shino-small.webp); /* Для меньших экранов */
    }
    /* .mob__gallary {
        display: block;
    } */
    .header__content-title {
        font-size: 38px;
    }
    .header__content-descr {
        margin-top: -120px;
    }
    .form-container {
        width: 360px;
    }
    .form-container input[type="text"] {
        padding: 16px;
        margin-bottom: 14px;
        background-color: #fff;
        border-radius: 5px;
        font-size: 14px;
        height: 44px;
    }
    .title {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 40px;
    }
    .about__achiev-item h3 {
        font-size: 18px;
    }
    .about__achiev {
        margin-bottom: 45px;
    }
    .services__achiev {
        gap: 50px 40px;
    }
    .mob__gallary {
        padding: 40px 0 80px;
    }
    #scrollToTopButton {
        display: none !important; /* Скрыть кнопку на мобильных устройствах */
    }
}
@media (max-width: 420px) {
    .price__achiev-item {
        height: 450px;
    }
    .form-container {
        width: 300px;
    }
    .footer__button-text {
        font-size: 12px;
    }
    .logo__text {
        width: 200px;
    }
    .logo__text span {
        font-size: 14px;
        font-weight: 300;
        letter-spacing: -0.5px;
    }
    .price__achiev {
        gap: 10px;
    }
}
@media (max-width: 370px) {
    .footer__map::before {
        display: none;
    }
}
@media (max-width: 340px) {
    .footer__top-wrapper .footer__top-contacts {
        width: 302px;
    }
    .form-container {
        width: 280px;
    }
    .footer__button-text {
        font-size: 11px;
    }
}
@media (max-width: 330px) {
    .header__content-title {
        font-size: 30px;
        margin-bottom: 20px;
    }
    .mob__header-content--descr {
        font-size: 16px;
    }
    .mob__header-content-phone,
    .mob__header-content-calc {
        font-size: 16px;
    }
}

/* ---------- Высота экрана ------------ */
@media (max-height: 700px) {
    .header__content-descr {
        margin-top: 50px;
    }
    .header__content-offer {
        margin-top: 120px;
    }
}
@media (max-width: 480px) and (max-height: 700px) {
    .header__content-descr {
        margin-top: -40px;
    }
    .header__content-offer {
        margin-top: 120px;
    }
}
