.mw-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    height: 100%;
    align-items: center;
}
.header {
    z-index: 100;
    backdrop-filter: blur(100px);
}

.main_block__wrapper {
    height: 100vh;
}

.subtitle {
    opacity: 0.6;
}

.bg_wrapper img {
    position: absolute;
    right: 0;
    bottom: -350px;
    z-index: -1;
}

.subtitle {
    font-size: 20px;
    color: #fff;
    opacity: 0.5;
    margin-bottom: 30px;
}

.title {
    font-size: 82px;
    line-height: 80px;
    margin-bottom: 20px;
}

.text-yellow {
    color: #E6BF6B;
}

.title_line {
    background: #E6BF6B;
    width: 100px;
    height: 1px;
    display: block;
    margin-bottom: 35px;
}

.text_desc {
    font-size: 17px;
    line-height: 23px;
    margin-bottom: 45px;
}

.text-undertitle {
    margin-top: 50px;
    letter-spacing: 4.5px;
    line-height: 23px;
    font-weight: 400;
    opacity: 0.3;
}

.card-subtitle {
    font-size: 16px;
    color: #fff;
    opacity: 0.5;
    margin-bottom: 20px;
}

.card-title {
    font-size: 36px;
    line-height: 23px;
    color: #fff;
}

.card-subtitle-desc {
    color: #E6BF6B;
    font-size: 16px;
    line-height: 23px;
    margin-bottom: 15px;
}

.card-middle {
    background-color: transparent !important;
    border: 1px solid #e6bf6b69;
}

.card-desc {
    color: #fff;
    font-size: 18px;
    line-height: 23px;
}

.card_img {
    border-radius: 20px;
    overflow: hidden;
}

.card {
    display: flex;
    justify-content: space-between;
    padding: 35px;
    background-color: #100F0E;
    max-width: 1290px;
    margin: 0 auto;
    border-radius: 30px;
    margin-bottom: 12px;
}

.card_text {
    max-width: 550px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mission-subtitle {
    font-size: 16px;
    opacity: 0.5;
    margin-bottom: 40px;
}

.mission-title {
    color: #E6BF6B;
    font-size: 48px;
    line-height: 45px;
    margin-bottom: 70px;
}

.mission-desc {
    font-size: 20px;
}

.mission_block__wrapper {
    margin-top: 115px;
}

.mission-text_wrapper {
    max-width: 450px;
}

.mission-number {
    font-size: 200px;
    filter: blur(10px);
    font-weight: 200;
    opacity: 0.8;
}

.mission_card {
    display: flex;
    justify-content: space-between;
    padding-bottom: 85px;
    margin-bottom: 85px;
    border-bottom: 1px solid #ffffff16;
}

.mission-title span {
    opacity: 0.3;
}

.quote_wrapper {
    border: 1px solid #ffffff15;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 60px;
    border-radius: 30px;
    height: auto !important;
    background: url(../images/quote-bg.jpg) no-repeat;
    background-size: cover;
}

.quote-subtitle {
    color: #fff;
    font-size: 17px;
}

.quote-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.quote-title {
    font-size: 32px;
    font-weight: 300;
    margin-top: 65px;
    max-width: 715px;
    margin-bottom: 75px;
}

.footer {
    background: url(../images/footer-img.png) no-repeat;
    background-size: cover;
    height: 600px;
    position: relative;
    display: flex;
    align-items: flex-end; /* Выравнивание по нижнему краю */
    justify-content: center; /* Центрирование по горизонтали */
}

.footer-text {
    font-size: 20px;
    opacity: 0.4;
    line-height: 17px;
    text-align: center;
    margin-bottom: 40px; /* Отступ от нижнего края */
}

.footer-text span {
    opacity: 0.5;
    font-weight: 300;
    margin-top: 5px;
    font-size: 16px;
}


/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale3d(0.95, 0.95, 1);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Анимация главного блока */
.main_block-hero .text_wrapper > * {
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
}

.main_block-hero .subtitle {
  animation-delay: 0.3s;
}

.main_block-hero .title {
  animation-delay: 0.5s;
}

.main_block-hero .title_line {
  animation-delay: 0.7s;
}

.main_block-hero .text_desc {
  animation-delay: 0.9s;
}

.main_block-hero .logo-shape {
  animation: scaleIn 1s forwards, float 6s ease-in-out infinite;
  animation-delay: 1.1s, 2s;
}

.main_block-hero .text-undertitle {
  animation-delay: 1.3s;
}

/* Плавающая анимация для сферы */
.bg_wrapper img {
  animation: float 8s ease-in-out infinite;
  animation-delay: 1s;
}

/* Анимация для header при скролле */
.header {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
  background-color: rgba(16, 15, 14, 0.95);
  backdrop-filter: blur(10px);
}

/* Улучшение производительности */
.card,
.mission_card,
.quote_wrapper,
.header {
  will-change: transform, opacity;
}

/* Для пользователей, которые предпочитают уменьшенное движение */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Более сложная анимация с плавным стартом и замедлением */
.mission-flowe {
    animation: smoothRotate 30s linear infinite;
    transform-origin: center;
}

@keyframes smoothRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Добавляем небольшую пульсацию для большего визуального интереса */
.mission-flowe img {
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}
















/* Адаптив */

/* Медиа-запросы для адаптивности */

/* Большие десктопы (1200px и выше) */
@media (min-width: 1200px) {
  .mw-container {
    max-width: 1140px;
  }
}

/* Ноутбуки и маленькие десктопы (992px - 1199px) */
@media (max-width: 1199px) {
  .mw-container {
    max-width: 960px;
    padding: 0 20px;
  }
  
  .title {
    font-size: 70px;
    line-height: 68px;
  }
  
  .card {
    padding: 30px;
  }
  
  .card_text {
    max-width: 480px;
    padding: 20px;
  }
  
  .mission-text_wrapper {
    max-width: 400px;
  }
  
  .mission-number {
    font-size: 160px;
  }
}

/* Планшеты (768px - 991px) */
@media (max-width: 991px) {
  .mw-container {
    max-width: 720px;
  }

  
  .menu-toggle {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
  }
  
  .menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    position: absolute;
    transition: 0.3s;
  }
  
  .menu-toggle span:nth-child(1) { top: 0; }
  .menu-toggle span:nth-child(2) { top: 9px; }
  .menu-toggle span:nth-child(3) { top: 18px; }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
  }
  
  .title {
    font-size: 56px;
    line-height: 54px;
  }
  
  .main_block-hero .text_wrapper {
    text-align: center;
    margin: 0 auto;
  }
  
  .title_line {
    margin: 20px auto 35px;
  }
  
  .bg_wrapper img {
    width: 70%;
    bottom: -250px;
    right: -50px;
  }
  
  .card {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }
  
  .card-middle {
    flex-direction: column-reverse;
  }
  
  .card_img {
    margin: 20px 0;
    max-width: 100%;
  }
  
  .card_img img {
    width: 100%;
    height: auto;
  }
  
  .card_text {
    max-width: 100%;
    padding: 0;
  }
  
  .mission_card {
    flex-direction: column;
    text-align: center;
    padding-bottom: 60px;
    margin-bottom: 60px;
  }
  
  .mission_card:nth-child(2) {
    flex-direction: column-reverse;
  }
  
  .mission-text_wrapper {
    max-width: 100%;
    margin-bottom: 30px;
  }
  
  .mission-flowe {
    margin: 30px 0;
    order: 2;
  }
  
  .mission-number {
    font-size: 120px;
    order: 3;
    margin-top: 20px;
  }
  
  .mission-title {
    font-size: 36px;
    line-height: 34px;
    margin-bottom: 40px;
  }
  
  .quote_wrapper {
    padding: 40px;
  }
  
  .quote-title {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 50px;
  }
  
  .footer {
    height: 400px;
  }
}

/* Большие мобильные (576px - 767px) */
@media (max-width: 767px) {
  .mw-container {
    max-width: 540px;
    padding: 0 15px;
  }

  
  .main_block__wrapper {
    height: auto;
    min-height: 100vh;
    padding: 100px 0 50px;
  }
  
  .title {
    font-size: 42px;
    line-height: 40px;
  }
  
  .subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .text_desc {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .bg_wrapper img {
    width: 80%;
    position: relative;
    bottom: 0;
    right: 0;
    margin: 40px auto 0;
    display: block;
  }
  
  .text-undertitle {
    margin-top: 30px;
    font-size: 14px;
  }
  
  .card {
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
  }
  
  .card-title {
    font-size: 28px;
  }
  
  .card-desc {
    font-size: 16px;
  }
  
  .mission_block__wrapper {
    margin-top: 80px;
  }
  
  .mission_card {
    padding-bottom: 40px;
    margin-bottom: 40px;
  }
  
  .mission-subtitle {
    margin-bottom: 20px;
  }
  
  .mission-title {
    font-size: 28px;
    line-height: 26px;
    margin-bottom: 30px;
  }
  
  .mission-desc {
    font-size: 16px;
  }
  
  .mission-number {
    font-size: 80px;
  }
  
  .mission-flowe img {
    max-width: 80px;
  }
  
  .quote_wrapper {
    padding: 30px 20px;
  }
  
  .quote-top img {
    width: 40px;
  }
  
  .quote-subtitle {
    font-size: 14px;
  }
  
  .quote-title {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
  }
  
  .footer {
    height: 300px;
  }
  
  .footer-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .footer-text span {
    font-size: 14px;
  }
}

/* Маленькие мобильные (до 575px) */
@media (max-width: 575px) {
  .mw-container {
    padding: 0 10px;
  }
  
  .title {
    font-size: 36px;
    line-height: 34px;
  }
  
  .text_desc br {
    display: none;
  }
  
  .card {
    padding: 15px;
    border-radius: 15px;
  }
  
  .card-text-title, .card-text-desc {
    padding: 10px 0;
  }
  
  .card-subtitle {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .card-title {
    font-size: 24px;
  }
  
  .card-subtitle-desc {
    font-size: 14px;
  }
  
  .card-desc {
    font-size: 14px;
  }
  
  .mission_card {
    padding-bottom: 30px;
    margin-bottom: 30px;
  }
  
  .mission-title {
    font-size: 24px;
    line-height: 22px;
    margin-bottom: 20px;
  }
  
  .mission-desc {
    font-size: 14px;
  }
  
  .mission-number {
    font-size: 60px;
  }
  
  .quote-title {
    font-size: 18px;
  }
  
  /* Скрываем некоторые элементы на очень маленьких экранах */
  .mission-flowe,
  .mission-number {
    display: none;
  }
}

/* Очень высокие экраны */
@media (min-height: 1000px) {
  .main_block__wrapper {
    height: 80vh;
  }
  
  .bg_wrapper img {
    bottom: -200px;
  }
}

/* Ландшафтная ориентация на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
  .main_block__wrapper {
    height: auto;
    padding: 80px 0;
  }
  .bg_wrapper img {
    width: 40%;
    bottom: -100px;
  }
}



/* Адаптация анимаций для мобильных устройств */
@media (max-width: 767px) {
  .main_block-hero .text_wrapper > * {
    animation: none;
    opacity: 1;
  }
  
  .main_block-hero .logo-shape {
    animation: none;
  }
  
  .bg_wrapper img {
    animation: none;
  }
  
  /* Упрощаем анимации для мобильных устройств */
  .mission-flowe {
    animation: smoothRotate 40s linear infinite;
  }

    .mw-container {
        padding: 0 10px;
        flex-direction: column;
    }

    .main_block-hero .text_wrapper {
        margin-top: 60px;
    }

    .main_block-hero .logo-shape img {
        margin: 0 auto;
    }
    .title {
        font-size: 43px;
        line-height: 43px;
    }

        .bg_wrapper img {
        width: 120%;
        }

        .cards_block__wrapper {
            margin-top: -300px;
        }

        .card {
            margin: 10px;
        }

        .card-text-title, .card-text-desc {
            padding: 18px 0;
        }

        .mission-title {
            font-size: 24px;
            line-height: 22px;
            margin-bottom: 45px;
        }

        .quote_wrapper {
            padding: 30px !important;
        }

            .mw-container {
                padding: 0 20px;
                width: 100%;
                flex-direction: column;
            }
    }

/* Отключение анимаций для пользователей, которые их не хотят */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .mission-flowe {
    animation: none;
  }
  
  .mission-flowe img {
    animation: none;
  }
}

