* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
body {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 0.75rem; /* 12px */
    padding-top: 87px; /* 30px top padding + 30px bottom padding + 27px logo height */
}
a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-size: 1em; /* 12px relative to body */
}
.container {
    padding: 0 20px;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
}

/* HEADER */

.header {
    background-color: white;
    padding: 30px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header > .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    width: 70px;
    height: 27px;
    display: block;
    background: url(images/logo.svg)center / cover no-repeat;
}
.header__nav {
    display: flex;
    flex-wrap: wrap;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: black;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation for mobile menu toggle */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
.header__nav__link {
    margin-right: 30px;
    position: relative;
    transition: color 0.3s ease;
}

.header__nav__link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: black;
    transition: width 0.3s ease;
}

.header__nav__link:hover {
    color: #555;
}

.header__nav__link:hover:after {
    width: 100%;
}
.header__languages {
    display: flex;
    gap: 40px;
}
.header__languages__link {
    display: block;
    border-radius: 23px;
    width: 41px;
    height: 21px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header__languages__link.active {
    background: #F5F7F9;
}

/* PROMO */
.promo {
    padding: 141px 0 131px 0;
    background: url(images/main_bg.png)center / cover no-repeat;
    position: relative;
}
.promo__title {
    font-weight: 500;
    font-size: 3.42em; /* 41px / 12px */
    margin-bottom: 15px;
}
.promo__subtitle {
    width: 40%;
    font-size: 1.92em; /* 23px / 12px */
    line-height: 31px;
    margin-bottom: 90px;
}
.promo__btn {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 30px;
    padding: 3px 3px 3px 11px;
    background: black;
    color: white;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.promo__btn:hover {
    transform: scale(1.05);
    background-color: #333;
}
.promo__btn__arrow {
    margin-left: 10px;
    border-radius: 50%;
    display: block;
    width: 29px;
    height: 29px;
    background: white url(images/arrow.svg)center / 13px 13px no-repeat;
    transition: transform 0.3s ease;
}

.promo__btn:hover .promo__btn__arrow {
    transform: translateX(3px);
}

.promo__bottom {
    max-width: 1320px;
    width: 100%;
    position: absolute;
    bottom:  -8%;
    background: white;
    border-radius: 23px;
    padding: 17px 23px;
    left: 50%;
    transform: translate(-50%, 0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.promo__bottom__item {
    display: flex;
    align-items: center;
    width: 235px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.promo__bottom__item:hover {
    transform: translateY(-5px);
}
.promo__bottom__item__icon {
    width: 60px;
    height: 60px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 80%;
    margin-right: 22px;
}
.promo__bottom__item:nth-child(1) > .promo__bottom__item__icon {
    background-image: url(images/promo_icon_1.svg);
}
.promo__bottom__item:nth-child(2) > .promo__bottom__item__icon {
    background-image: url(images/promo_icon_2.svg);
}
.promo__bottom__item:nth-child(3) > .promo__bottom__item__icon {
    background-image: url(images/promo_icon_3.svg);
}
.promo__bottom__item:nth-child(4) > .promo__bottom__item__icon {
    background-image: url(images/promo_icon_4.svg);
}
.promo__bottom__item__title {
    font-size: 1.5em; /* 18px / 12px */
}
.promo__bottom__item__subtitle {
    font-weight: 400;
    font-size: 1.25em; /* 15px / 12px */
}

/* ABOUT */
.about {
    background: #F5F7F9;
    padding: 120px 0 90px 0;
}
.about__bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: auto;
    /*object-fit: cover;  !* чтобы видео полностью закрывало фон *!*/
    z-index: 0;
}
.rotor {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: auto;
}
.rotor-fill {
    position: absolute;
    top: 140px;
    right: 150px;
    transform: scale(1.22, 1.1);
}
.rotor-circle {
    stroke-dasharray: 472;
    stroke-dashoffset: 472;
    transition: stroke-dashoffset 2s ease-in-out;
}

.rotor-fill.animated .rotor-circle {
    stroke-dashoffset: 614;
}

.about  > .container {
    position: relative;
    /*background: url(images/about_bg.png)right / contain no-repeat;*/
}
.about__label {
    display: inline-block;
    border-radius: 20px;
    padding: 3px 10px;
    border: 1px solid white;
    margin-bottom: 25px;
}
.about__title {
    width: 55%;
    font-weight: 500;
    font-size: 3.42em; /* 41px / 12px */
    margin-bottom: 110px;
}
.about__subtitle {
    width: 55%;
    font-weight: 400;
    font-size: 1.83em; /* 22px / 12px */
    margin-bottom: 90px;
}

/* VIDEO */
.video {
    background: #F5F7F9;
}
.video > .container {
    display: flex;
    justify-content: center;
}
.video > .container > iframe{
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;     /* браузер сам высчитает */
    border-radius: 20px;
    border: 0;
    /*max-width: 1200px;*/
    /*width: 100%;*/
    /*height: 450px;*/
    /*border-radius: 20px;*/
}

/* PLANS AND ACHIEVEMENTS  */
.plans {
    background: #F5F7F9;
    padding: 90px 0;
}
.plans__title {
    font-weight: 500;
    font-size: 3.42em; /* 41px / 12px */
    margin-bottom: 30px;
    text-align: center;
}
.plans__image-wrapper {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}
.plans__image {
    max-width: 1200px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    /* Начальное состояние - изображение скрыто */
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 3s cubic-bezier(0.25, 0, 0.3, 1) 1s;
}

.plans__image.visible {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.plans__image_bg {
    max-width: 1200px;
    width: 100%;
    height: auto;
    position: absolute;
    left: 0;
    z-index: 1;
    opacity: 0.2;
    /*filter: blur(1px);*/

    /* Подложка всегда видна */
}


/* MISSION */
.mission {
    background: white;
    padding: 90px 0;
}
.mission__label {
    display: inline-block;
    border-radius: 20px;
    padding: 3px 10px;
    border: 1px solid #F5F7F9;
    margin-bottom: 25px;
}
.mission__title {
    font-weight: 500;
    font-size: 3.42em; /* 41px / 12px */
    margin-bottom: 38px;
    opacity: 0;
}

.mission__title.animate {
    animation: fadeInUp 1s ease-out forwards;
}
.mission__items {
    display: flex;
    /*flex-wrap: wrap;*/
    justify-content: space-between;
    gap: 30px;
}

.mission__item:nth-child(1) {
    opacity: 0;
}

.mission__item:nth-child(2) {
    opacity: 0;
}

.mission__item:nth-child(3) {
    opacity: 0;
}

.mission__item:nth-child(4) {
    opacity: 0;
}

.mission__item:nth-child(1).animate {
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

.mission__item:nth-child(2).animate {
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.mission__item:nth-child(3).animate {
    animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.mission__item:nth-child(4).animate {
    animation: fadeInUp 0.6s ease-out 0.7s forwards;
}
.mission__item {
    padding: 19px;
    background: #F5F7F9;
    border-radius: 23px;
    max-width: 276px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.mission__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.mission__item__icon {
    display: block;
    width: 60px;
    height: 60px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 80%;
}
.mission__item:nth-child(1) > .mission__item__icon {
    background-image: url(images/mission_icon_1.svg);
}
.mission__item:nth-child(2) > .mission__item__icon {
    background-image: url(images/mission_icon_2.svg);
}
.mission__item:nth-child(3) > .mission__item__icon {
    background-image: url(images/mission_icon_3.svg);
}
.mission__item:nth-child(4) > .mission__item__icon {
    background-size: 60%;
    background-image: url(images/mission_icon_4.svg);
}
.mission__item__title {
    margin: 12px 0;
    font-size: 1.58em; /* 19px / 12px */
}
.mission__item__text {
    font-weight: 400;
    font-size: 1.25em; /* 15px / 12px */
}

/* VALUES */
.values {
    background: white;
    padding: 90px 0;
}
.values  > .container {
    background: url(images/values.svg)right top / 45% no-repeat;
}
.values__label {
    display: inline-block;
    border-radius: 20px;
    padding: 3px 10px;
    border: 1px solid #F5F7F9;
    margin-bottom: 25px;
}
.values__title {
    width: 52%;
    font-weight: 500;
    font-size: 3em; /* 41px / 12px */
    margin-bottom: 2em;
}
.values__subtitle {
    width: 52%;
    font-weight: 400;
    font-size: 1.83em; /* 22px / 12px */
    margin-bottom: 90px;
}

/* PROJECTS */
.projects {
    padding: 90px 0;
    text-align: center;
}
.projects__title {
    font-size: 3.42em; /* 41px / 12px */
    font-weight: 500;
    margin-bottom: 37px;
    opacity: 0;
}

.projects__title.animate {
    animation: fadeInUp 1s ease-out forwards;
}
.projects__text {
    font-weight: 400;
    font-size: 1.83em; /* 22px / 12px */
    margin-bottom: 37px;
}
.projects__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 29px;
}
.projects__gallery img {
    width: 100%;
    border-radius: 27px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.projects__gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* FOR INVESTORS */
.investors {
    padding: 90px 0;
    text-align: center;
    background: #F5F7F9;
}
.investors__label {
    display: inline-block;
    border-radius: 20px;
    padding: 3px 10px;
    border: 1px solid white;
    margin-bottom: 23px;
}
.investors__title {
    font-weight: 500;
    font-size: 3.42em; /* 41px / 12px */
    margin-bottom: 37px;
    opacity: 0;
}
.investors iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 0;
    margin-bottom: 22px;
}

.investors__title.animate {
    animation: fadeInUp 1s ease-out forwards;
}
.investors__text {
    margin-bottom: 22px;
    font-weight: 400;
    font-size: 1.83em; /* 22px / 12px */
}
.investors__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
}
.investors__list__item {
    width: 183px;
    height: 30px;
    border-radius: 75px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 22px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.investors__list__item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.investors__btn {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 30px;
    padding: 3px 3px 3px 11px;
    background: black;
    color: white;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.investors__btn:hover {
    transform: scale(1.05);
    background-color: #333;
}
.investors__btn__arrow {
    margin-left: 10px;
    border-radius: 50%;
    display: block;
    width: 29px;
    height: 29px;
    background: white url(images/arrow.svg)center / 13px 13px no-repeat;
    transition: transform 0.3s ease;
}

.investors__btn:hover .investors__btn__arrow {
    transform: translateX(3px);
}

/* NEWS */
.news {
    padding: 90px 0;
}
.news__title {
    font-weight: 500;
    font-size: 3.42em; /* 41px / 12px */
    margin-bottom: 37px;
    text-align: center;
}

/* News Carousel */
.news-carousel {
    position: relative;
    max-width: 1080px; /* Reduced width to accommodate buttons */
    margin: 0 auto;
    overflow: hidden;
    padding-top: 9px;
}

.news__items {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.news__item {
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
    padding-bottom: 20px;
    border-radius: 10px;
    background: #F5F7F9;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    cursor: pointer;
    height: 570px;
}

.news__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.news__item__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.news__item__title {
    font-weight: 500;
    font-size: 1.5em; /* 18px / 12px */
    margin: 22px 22px 11px 22px;
    min-height: calc(1.2em * 2);
    line-height: 1.2;
}

.news__item__subtitle {
    font-weight: 400;
    font-size: 1.25em; /* 15px / 12px */
    margin: 0 22px 11px 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.news__item__date {
    font-weight: 300;
    font-size: 1em; /* 12px / 12px */
    margin: 0 22px;
}

/* Carousel Navigation */
.carousel-buttons {
    position: relative;
}
.carousel-btn {
    position: absolute;
    top: 300px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/*.carousel-btn:hover {*/
/*    transform: translateY(-50%) scale(1.1);*/
/*    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);*/
/*    opacity: 1;*/
/*}*/

.prev-btn {
    left: 30px; /* Position outside the carousel container with margin */
    transform: translateY(-50%) scaleX(-1); /* Mirror the arrow for left button */
    background: white url(images/arrow.svg) center / 13px 13px no-repeat;
    color: transparent; /* Hide text */
}

/*.prev-btn:hover {*/
/*    transform: translateY(-50%) scale(1.1) scaleX(-1); !* Keep the mirror effect while scaling *!*/
/*    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);*/
/*    opacity: 1;*/
/*}*/

.next-btn {
    right: 30px; /* Position outside the carousel container with margin */
    background: white url(images/arrow.svg) center / 13px 13px no-repeat;
    color: transparent; /* Hide text */
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: #333;
}

/* NEWS MODAL */
.news-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.news-modal-content {
    background-color: #F5F7F9;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: fadeIn 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 2.33em; /* 28px / 12px */
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
}

.close-modal:hover {
    color: black;
}

.modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.news-modal-title {
    font-weight: 500;
    font-size: 2.33em; /* 28px / 12px */
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-modal-text {
    font-weight: 400;
    font-size: 1.33em; /* 16px / 12px */
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* PARTNERS */
.partners {
    padding: 90px 0;
    text-align: center;
}
.partners__label {
    display: inline-block;
    border-radius: 20px;
    padding: 3px 10px;
    border: 1px solid #F5F7F9;
    margin-bottom: 23px;
}
.partners__title {
    font-weight: 500;
    font-size: 3.42em; /* 41px / 12px */
    margin-bottom: 90px;
}
.partners__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 90px;
    flex-wrap: wrap;
}
.partners__logo img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.partners__logo:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.partners__logo:nth-child(1) img {
    width: 150px;
}
.partners__logo:nth-child(2) img {
    width: 190px;
}
.partners__logo:nth-child(3) img {
    width: 150px;
}

/* CONTACTS */
.contacts {
    padding: 90px 0;
}
.contacts__label {
    display: inline-block;
    border-radius: 20px;
    padding: 3px 10px;
    border: 1px solid #F5F7F9;
    margin-bottom: 23px;
}
.contacts__title {
    font-weight: 500;
    font-size: 3.42em; /* 41px / 12px */
    margin-bottom: 37px;
}
.contacts__form {
    background: #F5F7F9;
    padding: 50px 20px;
    border-radius: 23px;
    display: flex;
    justify-content: space-between;
    position: relative;
}
.contacts__form__left {
    width: 50%;
    display: flex;
    flex-direction: column;
}
.contacts__form__text {
    font-weight: 400;
    font-size: 1.83em; /* 22px / 12px */
    max-width: 370px;
}
.contacts__form__btn__block {
    margin-top: auto;
    display: flex;
    align-items: center;
}
.contacts__form__btn {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 30px;
    padding: 3px 3px 3px 11px;
    background: black;
    color: white;
    margin-right: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contacts__form__btn:hover {
    transform: scale(1.05);
    background-color: #333;
}
.contacts__form__btn__arrow {
    margin-left: 10px;
    border-radius: 50%;
    display: block;
    width: 29px;
    height: 29px;
    background: white url(images/arrow.svg)center / 13px 13px no-repeat;
    transition: transform 0.3s ease;
}

.contacts__form__btn:hover .contacts__form__btn__arrow {
    transform: translateX(3px);
}
.contacts__form__btn__text {
    font-weight: 300;
    font-size: 1em; /* 12px / 12px */
}
.contacts__form__btn__text--bold {
    font-weight: 500;
}
.contacts__form__right {
    width: 50%;
}
.contacts__form__bottom {
    position: absolute;
    bottom: 50px;
}
.contacts__form__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contacts__form__input {
    border: 1px solid black;
    border-radius: 11px;
    padding: 19px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contacts__form__input:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #555;
}
.contacts__form__textarea {
    resize: none;
    min-height: 175px;
}

/* FOOTER */
.footer {
    background: #F5F7F9;
    padding: 90px 0 45px 0;
}
.footer__content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 90px;
}
.footer__logo {
    width: 142px;
    height: 76px;
    background: url(images/logo_big.svg)center / cover no-repeat;
}
.footer__list {
    list-style: none;
}
.footer__list li {
    margin-bottom: 12px;
}
.footer__list__link {
    margin-bottom: 6px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer__list a.footer__list__link:hover {
    color: #555;
    transform: translateX(5px);
}
.footer__list__title {
    font-weight: 500;
    font-size: 1.5em; /* 18px / 12px */
}
.footer__medias {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer__media {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer__media:hover {
    transform: translateY(-5px) scale(1.1);
    opacity: 0.8;
}

.footer__copyright {
    font-weight: 300;
    font-size: 1em; /* 12px / 12px */
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .promo__title {
        font-size: 3em; /* 36px / 12px */
    }
    .promo__subtitle {
        font-size: 1.67em; /* 20px / 12px */
    }
    .about__title, .values__title, .plans__title, .mission__title,
    .projects__title, .investors__title, .news__title, .partners__title,
    .contacts__title {
        font-size: 2.3em; /* 36px / 12px */
    }
    .about__subtitle, .values__subtitle, .projects__text,
    .investors__text, .contacts__form__text {
        font-size: 1.67em; /* 20px / 12px */
    }
    .mission__item__title {
        font-size: 1.42em; /* 17px / 12px */
    }
    .mission__item__text {
        font-size: 1.17em; /* 14px / 12px */
    }
    .promo__bottom__item__title {
        font-size: 1.33em; /* 16px / 12px */
    }
    .promo__bottom__item__subtitle {
        font-size: 1.17em; /* 14px / 12px */
    }
}

@media (max-width: 992px) {
    .promo__title {
        font-size: 2.67em; /* 32px / 12px */
    }
    .promo__subtitle {
        font-size: 1.5em; /* 18px / 12px */
    }
    .about__title, .values__title, .plans__title, .mission__title,
    .projects__title, .investors__title, .news__title, .partners__title,
    .contacts__title {
        font-size: 2em; /* 32px / 12px */
    }
    .about__subtitle, .values__subtitle, .projects__text,
    .investors__text, .contacts__form__text {
        font-size: 1.5em; /* 18px / 12px */
    }
    .news__item {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    .footer__list__title {
        font-size: 1.33em; /* 16px / 12px */
    }

    /* Layout adjustments for tablets */
    .promo {
        padding: 100px 0 120px 0;
    }
    .about__title, .values__title {
        width: 70%;
        margin-bottom: 90px;
    }
    .about__subtitle, .values__subtitle {
        width: 70%;
        margin-bottom: 70px;
    }
    .rotor {
        transform: scale(0.7);
        transform-origin: top right;
    }
    .about__bg {
        /*width: 400px;*/
    }
    .mission__items {
        gap: 20px;
    }
    .mission__item {
        max-width: 220px;
    }
    .partners__logos {
        gap: 60px;
    }
    .header__nav__link {
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.69rem; /* 11px */
    }
    a {
        font-size: 1em; /* 11px relative to body */
    }
    .promo__title {
        font-size: 2.55em; /* 28px / 11px */
    }
    .promo__subtitle {
        font-size: 1.45em; /* 16px / 11px */
        margin-bottom: 60px;
        line-height: 1.5em;
    }
    .about__title, .values__title, .plans__title, .mission__title,
    .projects__title, .investors__title, .news__title, .partners__title,
    .contacts__title {
        font-size: 2.55em; /* 28px / 11px */
    }
    .about__subtitle, .values__subtitle, .projects__text,
    .investors__text, .contacts__form__text {
        font-size: 1.45em; /* 16px / 11px */
    }
    .mission__item__title {
        font-size: 1.36em; /* 15px / 11px */
    }
    .mission__item__text {
        font-size: 1.18em; /* 13px / 11px */
    }
    .news__item__title {
        font-size: 1.45em; /* 16px / 11px */
    }
    .news__item__subtitle {
        font-size: 1.27em; /* 14px / 11px */
    }
    .news-modal-title {
        font-size: 2.18em; /* 24px / 11px */
    }
    .news-modal-text {
        font-size: 1.27em; /* 14px / 11px */
    }

    /* Layout adjustments for medium screens */
    .header__nav {
        gap: 10px;
    }
    .header__nav__link {
        margin-right: 15px;
    }
    .promo {
        padding: 0;
        background: none;
    }
    .promo .container {
        padding: 20px;
        background: url(images/main_bg.png) 50% center / cover no-repeat;
    }
    .promo__bottom {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0px;
        position: relative;
    }
    .promo__bottom__item {
        width: 45%;
    }
    .about__title, .values__title {
        width: 85%;
        margin-bottom: 80px;
    }
    .about__subtitle, .values__subtitle {
        width: 85%;
        margin-bottom: 60px;
    }
    .about .container {
        display: flex;
        flex-direction: column;
    }
    .about__label {
        align-self: flex-start;
    }
    .rotor {
        transform: scale(0.6);
        position: relative;
        display: flex;
        width: 300px;
        height: 300px;
        align-self: center;
    }
    .about__bg {
        /*width: 350px;*/
    }
    .mission__items {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    .mission__item {
        max-width: 45%;
    }
    .values .container {
        padding-bottom: 250px;
        background: url(images/values_bg.png) center bottom / 60% no-repeat;
    }
    .values__title {
        /*margin-top: 300px;*/
    }
    .projects__gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .prev-btn {
        left: 15px;
        transform: translateY(100%) scaleX(-1);
    }
    .next-btn {
        right: 15px;
        transform: translateY(100%);
    }
    .investors__list {
        gap: 15px;
        margin-bottom: 30px;
    }
    .investors__list__item {
        margin-bottom: 0;
    }
    .partners__logos {
        gap: 0;
        flex-wrap: nowrap;
    }
    .partners__logo img {
        max-width: 25vw;
    }
    .contacts__form__bottom {
        margin-top: 20px;
        position: relative;
        bottom: 0;
    }
    .contacts__form__bottom > .contacts__form__btn__block {
        display: flex;
        flex-direction: column;
    }
    .contacts__form__bottom > .contacts__form__btn__block > .contacts__form__btn__text {
        margin-top: 10px;
        text-align: center;
    }
    .footer__content {
        align-items: center;
        text-align: center;
    }
    /*.footer .container {*/
    /*    padding: 0 20px;*/
    /*    max-width: 1320px;*/
    /*    width: 100%;*/
    /*    margin: 0 auto;*/
    /*    display: flex;*/
    /*    flex-direction: column;*/
    /*    align-items: center;*/
    /*}*/
}

@media (max-width: 576px) {
    .promo__title {
        font-size: 2.18em; /* 24px / 11px */
    }
    .promo__subtitle {
        font-size: 1.27em; /* 14px / 11px */
        margin-bottom: 1.5em;
    }
    .about__title, .values__title, .plans__title, .mission__title,
    .projects__title, .investors__title, .news__title, .partners__title,
    .contacts__title {
        font-size: 2.18em; /* 24px / 11px */
    }
    .about__subtitle, .values__subtitle, .projects__text,
    .investors__text, .contacts__form__text {
        font-size: 1.27em; /* 14px / 11px */
    }
    .promo__bottom__item__title {
        font-size: 1.27em; /* 14px / 11px */
    }
    .promo__bottom__item__subtitle {
        font-size: 1.09em; /* 12px / 11px */
    }
    .news__item {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .footer__list__title {
        font-size: 1.27em; /* 14px / 11px */
    }

    /* Additional layout adjustments for mobile */
    .promo {
        padding: 0;
    }
    .about {
        padding: 30px 0 60px 0;
    }
    .about__title, .values__title {
        width: 100%;
        margin-bottom: 30px;
    }
    .about__subtitle, .values__subtitle {
        width: 100%;
        margin-bottom: 60px;
    }
    .plans, .mission, .values, .projects, .investors, .news, .partners,
    .contacts {
        padding: 30px 0;
    }
    .mission__items {
        justify-content: center;
    }
    .mission__item {
        max-width: 100%;
    }
    .partners__logos {
        justify-content: space-between;
        gap: 0;
    }
    .contacts__form {
        flex-direction: column;
    }
    .contacts__form__left, .contacts__form__right {
        width: 100%;
    }
    .contacts__form__left {
        margin-bottom: 30px;
    }
    .footer__content {
        flex-direction: column;
        gap: 30px;
    }

    /* Mobile menu */
    .mobile-menu-toggle {
        display: flex;
    }
    .header__nav {
        position: absolute;
        top: 87px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, padding 0.5s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        opacity: 0;
    }
    .header__nav.active {
        padding: 20px;
        max-height: 40vh;
        opacity: 1;
        flex-wrap: nowrap;
    }
    .header__nav__link {
        margin-right: 0;
        margin-bottom: 15px;
        font-size: 1.45em; /* 16px / 11px */
    }
    .header > .container {
        justify-content: space-between;
    }
    .header__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* Центрирование логотипа */
    }
    .mobile-menu-toggle {
        order: 1;
    }

    .header__languages {
        order: 3;
        position: relative;
    }
    .header__languages .header__languages__link {
        display: none;
    }
    .header__languages .header__languages__link.active {
        display: flex;
    }
    .header__languages.open {
        position: absolute;
        top: 0px;
        right: 0;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
        padding: 30px 20px;
        gap: 20px;
        display: flex;
        flex-direction: column;
        z-index: 1002;
    }
    .header__languages.open .header__languages__link {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 21px;
        width: 41px;
        border-radius: 23px;
    }

    .header__nav {
        gap: 15px;
    }
    .promo__bottom {
        justify-content: flex-start;
        display: flex;
        flex-wrap: nowrap;           /* не переносим */
        overflow-x: auto;            /* скролл по горизонтали */
        -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
        gap: 15px;                   /* расстояние между карточками */
        padding-bottom: 10px;        /* чуть место снизу, чтобы не резало скролл */
        /*flex-direction: column;*/
        /*align-items: center;*/
    }
    .promo__bottom__item {
        flex: 0 0 auto;              /* фиксируем ширину */
        min-width: 180px;            /* ширина карточки */
        /*width: 100%;*/
        /*margin-bottom: 0;*/
    }
    .about__bg {
        /*width: 250px;*/
        /*top: auto;*/
        /*bottom: 0;*/
    }
}


