* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
:root {
	--index: calc(1vw + 1vh);
	--color-header: #f4efec;
	--color-text: #cdc6c3;
	--gallery-gap: calc(var(--index) * 4.5)
}
@font-face {
	font-family: raleway-c;
	src: url(../fonts/raleway-regular.woff2);
}
@font-face {
	font-family: outfit-c;
	src: url(../fonts/outfit-regular.woff2);
}
/* h1, h2, h3, h4, h5, h6 {
	font-family: outfit-c;
} */

/* Десктопная навигация */
.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out;
    height: auto; /* Автоматическая высота */
    min-height: 90px; /* Минимальная высота */
}



.desktop-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 36px 0; /* увеличено с 20px 0 */
    width: 100%;
    transition: padding 0.4s ease;
}

/* Увеличиваем высоту шапки при выпадении меню */
.desktop-nav.dropdown-expanded {
    min-height: 140px; /* Увеличиваем высоту шапки */
}

.desktop-nav.dropdown-expanded .desktop-nav-header {
    padding: 25px 0; /* Уменьшаем отступы внутри шапки */
}

.desktop-nav .logo {
    color: #ffffff;
    font-family: raleway-c;
    font-size: 2.5rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.desktop-nav .nav-points {
    display: flex;
    gap: 80px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: -100px;
}

.desktop-nav .nav-points a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: normal;
    position: relative;
    transition: all 0.3s ease;
}

.desktop-nav .nav-points a:hover {
    color: #ffffff;
}

.desktop-nav .nav-points a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
}

.desktop-nav .nav-points a:hover::after {
    transform: scaleX(1);
}

.desktop-nav .nav-button {
    background: #D9D9D9;
    color: #000000;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.desktop-nav .nav-button:hover {
    color: #000000; /* Фиксируем цвет текста при наведении */
}

.desktop-nav .nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1; /* Размещаем затемнение под текстом */
}

.desktop-nav .nav-button:hover::before {
    transform: translateX(0);
}

/* Стили для выпадающего меню */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 10px 0;
    margin: 5px 0;
    border-radius: 5px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 20px 0 0 0;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

.dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.65);
}

/* Мобильная навигация */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out;
}



.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 36px 0; /* увеличено с 20px 0 */
    height: 60px; /* Фиксированная высота для шапки */
}

.mobile-nav .logo {
    color: #ffffff;
    font-family: raleway-c;
    font-size: 2rem;
    text-decoration: none;
    letter-spacing: 0.1em;
    line-height: 1; /* Убираем лишнюю высоту строки */
    display: flex;
    align-items: center;
}

/* Бургер-меню */
.menu-toggle-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1002;
    height: 100%; /* Занимает всю высоту контейнера */
}

#menuToggle {
    display: flex;
    align-items: center;
    height: 100%;
}

#menuToggle span {
    margin-bottom: 4px; /* Уменьшаем отступ между линиями бургера */
}

#menuToggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    right: -5px;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    -webkit-touch-callout: none;
}

#menuToggle span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: #ffffff;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                opacity 0.55s ease;
}

#menuToggle span:first-child {
    transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #232323;
}



#menuToggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
}

#menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Занимает всю ширину viewport */
    height: 100vh; /* Занимает всю высоту viewport */
    margin: 0;
    gap: 0;
    padding: 50px;
    padding-top: 75px;
    background: #D9D9D9;
    list-style-type: none;
    transform-origin: 0% 0%;
    transform: translate(100%, 0);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    box-sizing: border-box; /* Учитываем padding в общей ширине */
    overflow-y: auto; /* Добавляем скролл если контент не помещается */
}

#menu li {
    padding: 0;
    font-size: 22px;
    width: 100%; /* Занимает всю ширину */
}

#menu li a {
    text-decoration: none;
    color: #232323;
    transition: color 0.3s ease;
    display: block; /* Делаем ссылку блочным элементом */
    width: 100%; /* Занимает всю ширину */
}

#menu li a:hover {
    color: #000000;
}

#menuToggle input:checked ~ ul {
    transform: none;
}

/* Стили для мобильного выпадающего меню */
.mobile-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 0; /* Убираем отступ снизу */
}

.mobile-dropdown-toggle {
    display: block;
    padding: 16px 0; /* Увеличиваем отступы для тапа */
    color: #232323;
    text-decoration: none;
    font-size: 22px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.mobile-dropdown-toggle:hover {
    color: #000000;
}

/* Убираем границу у последнего пункта */
#menu > li:last-child .mobile-dropdown-toggle,
#menu > li:last-child > a {
    border-bottom: none;
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.mobile-dropdown-menu li {
    padding: 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-menu li {
    opacity: 1;
    transform: translateX(0);
}

/* Задержка для каждого пункта меню */
.mobile-dropdown-menu li:nth-child(1) { transition-delay: 0.05s; }
.mobile-dropdown-menu li:nth-child(2) { transition-delay: 0.1s; }
.mobile-dropdown-menu li:nth-child(3) { transition-delay: 0.15s; }
.mobile-dropdown-menu li:nth-child(4) { transition-delay: 0.2s; }

.mobile-dropdown-menu a {
    display: block;
    padding: 12px 20px 12px 40px; /* Увеличиваем отступы */
    color: #232323;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.mobile-dropdown-menu a:hover {
    color: #000000;
    background-color: rgba(0, 0, 0, 0.05);
    border-left-color: #232323;
    padding-left: 45px;
}

/* Стили для обычных пунктов меню (О нас, Контакты) */
#menu > li > a:not(.mobile-dropdown-toggle) {
    display: block;
    padding: 16px 0; /* Такие же отступы как у Продуктов */
    color: #232323;
    text-decoration: none;
    transition: color 0.3s ease;
}

#menu > li > a:not(.mobile-dropdown-toggle):hover {
    color: #000000;
}

/* Адаптация для мобильного меню */
@media (max-width: 767px) {
    #menu li {
        margin-bottom: 0; /* Убираем отступы между пунктами */
    }
    
    #menu li.mobile-dropdown {
        margin-bottom: 0;
    }
    
    .mobile-dropdown-menu {
        background-color: rgba(0, 0, 0, 0.03);
        border-radius: 0 0 8px 8px;
        margin: 0;
        padding: 5px 0;
    }
    
    .mobile-dropdown-toggle {
        padding: 16px 0;
        font-weight: 500;
    }
    
    .mobile-dropdown-menu a {
        padding: 12px 20px 12px 40px;
        font-size: 20px;
        margin: 0;
    }
    
}

/* Плавное закрытие */
.mobile-dropdown:not(.active) .mobile-dropdown-menu {
    transition: all 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.mobile-dropdown:not(.active) .mobile-dropdown-menu li {
    transition: all 0.2s ease;
}

/* Медиа-запросы */
@media screen and (max-width: 767px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }

    /* Добавляем отступ для контента в мобильной версии */
    .content {
        padding-top: 80px; /* Высота мобильной навигации + дополнительный отступ */
    }

    /* Корректируем позиционирование hero-section */
    .hero-section {
        padding-top: 20px;
    }

    /* Корректируем позиционирование hero-text */
    .hero-text {
        padding-top: 20px;
    }

    /* Корректируем позиционирование main-header */
    .main-header {
        padding-top: 20px;
    }
}

@media screen and (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
    
    .desktop-nav {
        display: block;
    }
}

/* Стили для заголовка */
.main-header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /*  Выравниваем текст слева */
}

.container {
    padding: 0 7vw;
    max-width: 100%;
    margin: 0 auto;
}

.container a {
    color: var(--color-header);
    text-decoration: none; /* Убираем подчеркивание */
    transition: 1s linear;
}

.container a:hover {color: #ffffff;
}

/*  Размещаем заголовок слева, как на макете */
.main-title {
    font-size: calc(var(--index) * 4); /* Меньше размер, чем был */
    position: relative; /*  Относительное позиционирование */
    width: auto;  /* Автоматическая ширина */
	left: 40vh;
    bottom: auto; /* Убираем привязку ко дну */
    line-height: 1.2;
    margin-top: 20vh; /*  Сдвигаем вниз */
}

/* will-change */
.content, .hero, .main-header, .gallery > * {
	will-change: transform;
}
body {
	background-image: url(../img/bg_meteorite.png);
	background-size: 50px;
	color: #ffffff;
	font-family: raleway-c;
	overflow-x: hidden;
}
.hero {
	width: calc(var(--index) * 30);
	position: absolute;
	left: 45vw;
	top: 22vh;
	z-index: -1;
}

/* Стили для hero-text (текст на главной странице) */
.hero-text {
    position: absolute;
    top: 10%;
    left: 7vw;
    transform: translateY(-50%);
    color: var(--color-header);
    font-size: calc(var(--index) * 3);
    line-height: 1.2;
    max-width: 50%;
}

.hero-text h1 {
  font-size: 4.5rem;
  letter-spacing: 0.05em; /* Увеличивает расстояние между буквами на 0.1em */
}

.main-header {
	height: 100vh;
}

.container {
	padding: 0 7vw;
}

.container a {
	color: #ffffff;
	transition: 1s linear;
}

.main-title {
	font-size: calc(var(--index) * 5);
	position: absolute;
	width: min-content;
	bottom: 12vh;
	line-height: .9;
}

/* MISSION START */
.mission {
    color: var(--color-text);
    padding: calc(var(--index) * 8) 0; /* Отступы как в галерее */
    overflow: hidden; /* Скрываем контент, выходящий за пределы блока */
}

.mission__content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Размещаем текст и изображение по краям */
}

.mission__text {
    max-width: 50%; /* Занимает половину ширины */
    padding-right: calc(var(--index) * 4);
}

.mission__title {
    font-size: 4rem;
    line-height: 1.2;
    color: var(--color-header);
    margin-bottom: calc(var(--index) * 2);
}

.mission__description {
    font-size: 3rem;
	line-height: 1.4;
    white-space: pre-line; /* Для сохранения переносов строк */
}

.mission__image {
    text-align: right; /* Выравниваем изображение по правому краю */
}

.astronaut-wrapper {
    display: inline-block;
}

.mission__image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.mission__binary {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%; /* Занимает 40% ширины */
    height: 100%;
    z-index: 0; /* Размещаем под текстом и изображением */
    opacity: 0.3; /* Делаем полупрозрачным */
    overflow: hidden; /* Скрываем часть кода, выходящую за пределы блока */
}

.mission__binary img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняем контейнер, обрезая изображение, если необходимо */
    filter: grayscale(100%);
}

/* Добавим анимацию параллакса для космонавта */
.mission__image img {
    transform: translateY(50px); /* Начальное положение смещено вниз */
    transition: transform 0.5s ease-out; /* Плавная анимация */
}

/* Добавим класс для активации анимации (используем JavaScript) */
.mission__image img.active {
    transform: translateY(0); /* Конечная позиция вверху */
}
/* MISSION END */

/* SERVICES START */

.services {
    padding: calc(var(--index) * 4) 0;
    color: var(--color-text);
}

.services__title {
    font-size: 3rem;
    color: var(--color-header);
    text-align: center;
    margin-bottom: calc(var(--index) * 2);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--index) * 2);
    align-items: start; /*  Важно! Выравниваем элементы по верху сетки */
}

.services__item.step-1 {
  transform: translateY(0);
}

.services__item.step-2 {
  transform: translateY(120px); /*  Сдвигаем вниз */
}

.services__item.step-3 {
  transform: translateY(0px); /* Сдвигаем вниз еще больше */
}

.services__item.step-4 {
  transform: translateY(120px); /* Сдвигаем вниз еще больше */
}

.services__item {
    background-color: #1a1a1a;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Добавили transition для box-shadow */
    width: 18vw;
    height: 25vw;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    color: white;
}

.services__item:hover {
    /* transform: translateY(-30px); */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.9); /* Увеличиваем радиус и прозрачность */
}

/* Обводка */
.services__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: border-color 0.3s ease; /* Плавное появление обводки */
    z-index: 3; /* Обводка поверх всего, кроме контента */
    box-sizing: border-box; /* Чтобы обводка не увеличивала размер блока */
}

.services__item:hover::before {
    border-color: rgba(200, 200, 200, 0.2); /* Светло-серый цвет с прозрачностью 0.8 при наведении */
}

.services__item img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.8);
}

.services__item-content {
    position: relative;
    z-index: 2;
    padding: calc(var(--index) * 1);
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-bottom: 0;
}

.services__item-title {
    font-size: 1.5rem;
    margin-bottom: calc(var(--index) * 0.5);
}

.services__item-description {
    font-size: 1rem;
    line-height: 1.4;
}

/* SERVICES END */

.gallery {
	display: flex;
	padding: calc(var(--index) * 8) 0;
}
.gallery > * {
	flex: 1;
	display: flex;
	align-items: center;
	flex-direction: column;
}
.gallery__item {
	max-width: calc(var(--index) * 16);
	margin-bottom: var(--gallery-gap);
	max-height: 180vh;
	border-radius: 8px;
}
.gallery__left {
	margin-top: calc(var(--gallery-gap) * 1.75);
}
.gallery__right .gallery__item {
	margin: 0;
	margin-top: var(--gallery-gap);
}
.text-block {
	color: var(--color-text);
	position: relative;
}
.text-block__h {
	font-size: 3rem;
	line-height: 4rem;
	color: var(--color-header);
	/* margin-bottom: 1.5rem; */
}
.text-block__p {
	line-height: 1.25;
	font-size: 1.5rem;
}

/* CTA SECTION */
.cta-section {
    background-color: #000;
    padding: calc(var(--index) * 4) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content h2 {
    color: var(--color-header);
    font-size: 3rem;
    margin-bottom: calc(var(--index) * 2);
}

.cta-button {
    display: inline-block;
    padding: calc(var(--index) * 0.75) calc(var(--index) * 2);
    background-color: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #777777;
}

.cta-meteorite {
 width: calc(var(--index) * 4);
 position: absolute;
 left: 0vw;
 top: 50%;
 transform: translateY(-50%);
 z-index: 1;
 opacity: 0.9;
}

/* FOOTER */
.footer {
    background-color: #000;
    color: var(--color-text);
    padding: calc(var(--index) * 2) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
}

.footer-left, .footer-center, .footer-right {
    text-align: left;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--color-header);
    text-decoration: none;
}

.footer-center {
    font-size: 2.5rem;
}

.footer-right {
    font-size: 2.5rem;
}

.footer-center p {
    margin: 0;
}

.footer-center a {
    color: var(--color-text);
    text-decoration: none;
}

.footer-center .phone_number {
    font-family: outfit-c; /* Или другой шрифт с фиксированной шириной */
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-social a {
    display: inline-block;
}

.footer-social img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    transition: transform 0.3s ease; /* Добавим плавность иконке при наведении */
}

.footer-social a:hover img {
    transform: scale(1.15); /* Небольшое увеличение иконки при наведении (по желанию) */
}

.footer-nav {
    list-style: none;
    display: flex;
    align-items: center;
}

.footer-nav .footer-button {
    margin-left: 10vh;
}

.footer-nav a {
    text-decoration: none;
    color: var(--color-header);
}

.footer-nav .footer-button {
    position: relative; /*  Важно для позиционирования псевдоэлемента */
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav .footer-button:hover {
    color: #ffffff; /*  Цвет при наведении */
}

.footer-nav .footer-button::after {
    content: ''; /*  Обязательно для псевдоэлемента */
    position: absolute;
    bottom: -2px; /* Располагаем линию под текстом (немного ниже) */
    left: 0;
    width: 100%;
    height: 1px; /* Толщина линии */
    background-color: #fff; /* Цвет линии */
    transform: scaleX(0); /* Изначально линия не видна */
    transform-origin: left; /* Точка начала анимации (слева) */
    transition: transform 0.3s ease-in-out; /* Плавная анимация */
}

.footer-nav li a:hover::after {
    transform: scaleX(1); /* Делаем линию видимой при наведении */
}

/* Ползунок (thumb) */
::-webkit-scrollbar-thumb {
    background-color: #1f1f1f;  /* Цвет ползунка */
    border-radius: 10px;   /* Скругление углов */
    border: 2px solid transparent; /* Добавляем обводку */
    background-clip: padding-box; /* Обрезаем фон под обводкой */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;  /* Цвет ползунка при наведении */
}

/* Трек (track) */
::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Цвет трека */
    border-radius: 10px;   /* Скругление углов */
}

/* Углы */
::-webkit-scrollbar-corner {
    background-color: transparent; /* Цвет углов */
}

/* Кнопки (arrows) */
::-webkit-scrollbar-button {
    display: none; /* Скрываем кнопки */
}

/* Ширина скроллбара */
::-webkit-scrollbar {
    width: 10px; /* Ширина скроллбара */
}

/* Media Queries */

/* Для больших экранов (1200px и больше) */
@media (min-width: 1200px) {
    .hero-text h1 {
        font-size: 5rem; /* Немного увеличиваем шрифт */
    }

    .services__grid {
        grid-template-columns: repeat(4, 1fr); /* 4 колонки */
    }
}

/* Для средних экранов (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {

  :root {
    --index: calc(1.5vw + 1.5vh); /* Ещё больше увеличим --index */
  }

    .hero-text h1 {
        font-size: 4rem;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    }

    .mission__content {
        flex-direction: column;
        text-align: center;
    }

    .mission__text {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: calc(var(--index) * 2);
    }

    .mission__image {
        text-align: center;
    }
}

/* Для маленьких экранов (до 767px) - ТЕЛЕФОНЫ */
@media (max-width: 767px) {

    :root {
        --index: calc(2vw + 2vh); /* Максимальное значение --index */
    }

    body {
        overflow-x: hidden;
        background-color: #000;
        color: #ffffff; /* Изменяем цвет текста на белый */
    }
    
    .content, .hero, .main-header, .gallery > * {
        will-change: auto; /*  или will-change: initial; */
    }

    /* Humburger menu */
    .menu-toggle-container {
        display: block;
        position: fixed;
        z-index: 1;
        -webkit-user-select: none;
        user-select: none;
    }

    #menuToggle{
        display: block;
        /* You can also use relative/absolute here if you want to stay on the top */
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1;
        -webkit-user-select: none;
        user-select: none;
    }

    #menuToggle a {
        text-decoration: none;
        color: #232323;
        transition: color 0.3s ease;
    }

    #menuToggle a:hover{
        color: rgb(49, 49, 49);
    }

    #menuToggle input{
        display: block;
        width: 40px;
        height: 32px;
        position: absolute;
        top: -7px;
        right: -5px;
        cursor: pointer;
        opacity: 0; /* hide this */
        z-index: 2; /* and place it over the hamburger */
        -webkit-touch-callout: none;
    }

    /*
    * Just a quick hamburger
    */
    #menuToggle span{
        display: block;
        width: 33px;
        height: 4px;
        margin-bottom: 5px;
        position: relative;
        background: #cdcdcd;
        border-radius: 3px;
        z-index: 1;
        transform-origin: 4px 0px;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    opacity 0.55s ease;
    }

    #menuToggle span:first-child{
    transform-origin: 0% 0%;
    }

    #menuToggle span:nth-last-child(2){
    transform-origin: 0% 100%;
    }

    /* 
    * Transform all the slices of hamburger
    * into a crossmark.
    */
    #menuToggle input:checked ~ span{
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #232323;
    }

    /*
    * But let's hide the middle one.
    */
    #menuToggle input:checked ~ span:nth-last-child(3){
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
    }

    /*
    * Ohyeah and the last one should go the other direction
    */
    #menuToggle input:checked ~ span:nth-last-child(2){
    transform: rotate(-45deg) translate(0, -1px);
    }

    /*
    * Make this absolute positioned
    * at the top left of the screen
    */
    #menu {
        flex-direction: column;
        position: fixed; /* Изменено на fixed */
        top: 0;
        left: 0;
        width: 100%; /* Занимает весь экран */
        margin: 0; /* Убираем отступы */
        padding: 50px;
        padding-top: 75px;
        box-sizing: border-box;
        overflow-y: auto;
        background: #D9D9D9;
        list-style-type: none;
        -webkit-font-smoothing: antialiased;
        transform-origin: 0% 0%;
        transform: translate(100%, 0);
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    }

    #menu li {
    padding: 10px 0;
    font-size: 22px;
    }

    #menu li label {
    cursor: pointer;
    }

    /*
    * And let's slide it in from the left
    */
    #menuToggle input:checked ~ ul {
    transform: none;
    }

    /*  Добавляем стили для логотипа в бургер-меню */
    .burger-logo a {
        font-size: 2.5rem;
        font-weight: bold;
        color: #000; /*  Подберите цвет */
        text-decoration: none;
        margin-bottom: 20px; /* Отступ между логотипом и остальными пунктами */
        display: block; /*  Чтобы занимал всю ширину контейнера */
        text-align: left; /* Центрируем логотип */
    }

    /* Навигация */
    .main-nav {
        position: relative; /* Убираем фиксацию */
        top: 0;
        left: 0;
        padding: calc(var(--index) * 0.25) 0;
    }

    .main-nav .nav-button{
        display: none;
    }

    .main-nav .container {
        align-items: flex-start;
    }

    .main-nav .container .logo {
        font-size: 1.5rem;
        font-weight: bold;
        margin-right: 12%;
        margin-top: 8px;
        margin-bottom: 10px;
    }

    .main-nav-header ul {
        display: none; 
        flex-direction: column;
        width: 100%;
    }

    .main-nav li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    /* Отображаем иконку меню (нужен JS для работы) */
    .menu-checkbox {
        display: block;
        cursor: pointer;
        /* Добавьте стили для иконки меню (гамбургер) */
    }

    .nav-points.active {
        display: flex; /* Показываем меню при активации */
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #000;
        padding: 10px;
    }

    /* Hero Section */
    .hero-text {
        position: static; /* Убираем абсолютное позиционирование */
        transform: none;
        max-width: 100%;
        text-align: center;
        padding: calc(var(--index) * 2);
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero {
        position: relative;
        left: auto;
        top: auto;
        width: 70vw;
        margin: 0 auto;
        display: block;
    }

    .main-header {
        transform: none !important; /* Отменяем все transform */
        position: static; /* Убираем absolute позиционирование */
        display: block; /*  Убираем flex */
        height: auto;
        text-align: center;
    }

    .main-title {
        position: relative;
        font-size: calc(var(--index) * 3);
        margin-top: 0;
        left: 0;
    }

    /* Mission Section */
    .mission {
        padding: calc(var(--index) * 1.5) 0;
    }

    .mission__content {
        flex-direction: column;
        text-align: center;
    }

    .mission__text {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: calc(var(--index) * 2);
    }

    .mission__title {
        font-size: 2.5rem;
        margin-bottom: calc(var(--index) * 1);
        text-align: left;
    }

    .mission__description {
        font-size: 1.5rem;
        text-align: left;
    }

    .mission__image {
        text-align: center;
    }

    .astronaut-wrapper {
        display: inline-block;
    }

    .mission__image img {
        max-width: 60%;
    }

    /* Services Section */
    .services {
        padding: calc(var(--index) * 0) 0;
    }

    .services__grid {
        grid-template-columns: repeat(1, 1fr); /* Один столбец */
    }

    .services__item {
        width: 100%;
        height: 100%;
        margin-bottom: calc(var(--index) * 2);
    }

    .services__item img {
        height: 100%; /* Фиксированная высота изображения */
        object-fit: cover;
    }

    .services__item.step-1 {
        transform: translateY(0);
    }
      
    .services__item.step-2 {
        transform: translateY(0); /*  Сдвигаем вниз */
    }
    
    .services__item.step-3 {
        transform: translateY(0px); /* Сдвигаем вниз еще больше */
    }
    
    .services__item.step-4 {
        transform: translateY(0); /* Сдвигаем вниз еще больше */
    }

    /* Gallery Section */
    .gallery {
        flex-direction: column;
        padding: calc(var(--index) * 0) 0;
    }

    .gallery > * {
        width: 100%;
    }

    .gallery__item {
        max-width: 100%;
        margin-bottom: calc(var(--index) * 2);
    }

    .text-block__h {
        font-size: 2rem;
        line-height: 2.5rem;
        text-align: center;
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-button {
        font-size: 1.2rem;
        padding: calc(var(--index) * 0.55) calc(var(--index) * 1.2);
    }

    .cta-meteorite {
        width: calc(var(--index) * 2.5);
        position: absolute;
        left: 0vw;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
        opacity: 0.9;
    }

    /* Footer */
    .footer-content {
        flex-direction: column; /* Вертикальное расположение */
        align-items: flex-start; /* Выравнивание по левому краю */
        text-align: left; /* Текст тоже выравниваем по левому краю */
    }

    .footer-left,
    .footer-center,
    .footer-right {
        text-align: left; /* Каждый блок тоже выравниваем по левому краю */
        margin-bottom: 10px; /* Отступ между блоками */
    }

    .footer-nav {
        flex-direction: column; /* Пункты навигации один под другим */
        align-items: flex-start; /* Выравниваем пункты по левому краю */
    }

    .footer-nav .footer-button {
        margin-left: 0; /* Убираем отступ у пунктов меню */
        margin-bottom: 5px; /* Добавляем отступ снизу */
    }

    .footer-social {
        justify-content: flex-start; /* Выравниваем иконки по левому краю */
    }

    .footer-center {
        font-size: 2rem;
    }

    /* Добавляем стили для текста на странице проектов */
    .projects-page .text-block__h,
    .projects-page .text-block__p,
    .projects-page .project-description,
    .projects-page .project-title {
        color: #ffffff;
    }
}

/* Стили для логотипа в меню */
.burger-logo {
    margin-bottom: 30px; /* Увеличиваем отступ после логотипа */
}

.burger-logo a {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    display: block;
    width: 100%;
}

/* Стили для кнопки в меню */
.burger-button {
    display: inline-block;
    background: #232323;
    color: #D9D9D9 !important;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

html {
  scroll-behavior: smooth;
}


