:root {
    --bg-dark: #1a1a1a;
    --text-white: #ffffff;
    --text-muted: #888888;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Плавная прокрутка страницы */
html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- ТЕМНАЯ ШАПКА ВО ВСЮ ШИРИНУ --- */
.header {
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-dark);
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__left {
    width: 35.5%;
    padding-left: 35px;
    display: flex;
    align-items: center;
}

.header__right {
    width: 64.5%;
    padding-right: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 13px;
    letter-spacing: 0.03em;
}

.logo__name {
    font-weight: 500;
    text-transform: uppercase;
}

.logo__sub {
    color: var(--text-muted);
    font-weight: 300;
}

.nav {
    display: flex;
    gap: 44px;
}

.nav__link {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.nav__link:hover,
.nav__link.active {
    opacity: 1;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icon {
    color: inherit;
    font-size: 17px; /* Размер иконок */
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.social-icon:hover {
    opacity: 1;
}

/* --- ФИКС ПОЗИЦИОНИРОВАНИЯ ЛЕВОЙ КОЛОНКИ И СТРЕЛКИ --- */

/* 1. Главный контейнер на всю высоту экрана */
.hero-split {
    display: flex;
    width: 100%;
    height: 100vh; /* Занимает ровно 100% высоты окна браузера */
    box-sizing: border-box;
    overflow: hidden;
}

/* 2. Левая колонка растягивается на всю высоту и толкает стрелку вниз */
.hero-split__left {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Заголовок посередине, контакты со стрелкой СТРОГО ВНИЗУ */
    padding: 120px 40px 40px 40px; /* 120px сверху (отступ от шапки) и 40px снизу */
    box-sizing: border-box;
    background-color: #0d0d0d;
}

/* 3. Текст и кнопка центрируются в отведенном им пространстве */
.hero-split__content {
    flex: 1; /* Занимает всё свободное место между шапкой и стрелкой */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрирует текст и кнопку по вертикали */
    align-items: flex-start;
}

/* 4. Блок контактов и стрелки прижат к самому низу */
.hero-split__bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: auto; /* Дополнительно прижимает блок к низу */
}

/* 5. Правая колонка с картинкой */
.hero-split__right {
    height: 100%;
    flex: 1;
}

.hero-split__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-split__title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 36px;
    letter-spacing: -0.01em;
}

.btn-outline {
    display: inline-block;
    padding: 15px 34px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    font-size: 12px;
    letter-spacing: 0.09em;
    font-weight: 400;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--bg-dark);
}

/* АНИМИРОВАННАЯ СТРЕЛКА ВНИЗ */
.scroll-down {
    position: absolute;
    bottom: 30px;
    opacity: 0.6;
    transition: opacity 0.3s;
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.hero-split__right {
    width: 64.5%;
    height: 100%;
}

.hero-split__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- СЕКЦИЯ КОНТАКТОВ (ПО СКРОЛЛУ) --- */
.contacts-section {
    width: 100%;
    padding: 100px 20px 120px;
    background-color: #161616;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.contacts-section__container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacts-section__title {
    font-size: 38px;
    font-weight: 300;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.contacts-section__phone {
    font-size: 18px;
    color: var(--text-white);
    opacity: 0.85;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.contacts-section__phone:hover {
    opacity: 1;
}

.contacts-section__socials {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Белые круглые иконки соцсетей из вашего скриншота */
.social-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #161616;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, opacity 0.3s;
}

.social-circle-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Базовый стиль ссылок меню */
.nav__link {
    position: relative;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

/* Линия подчеркивания */
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

/* Эффект при наведении */
.nav__link:hover::after {
    width: 100%;
}

/* Активная страница — всегда подчеркнута */
.nav__link.active::after {
    width: 100%;
}

/* Кнопка-стрелка */
.scroll-down-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Плавный поворот самой иконки или кнопки */
.scroll-down-btn .scroll-arrow {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Состояние, когда контакты открыты — поворачиваем стрелку вверх */
.scroll-down-btn.active .scroll-arrow {
    transform: rotate(180deg);
}

.scroll-down-btn:hover {
    opacity: 0.8;
}

/* Главный экран на всю высоту */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Ровно 100% высоты экрана */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    padding-top: var(--header-height, 80px);
}

/* Кнопка-стрелка снизу первого экрана */
.scroll-down-container {
    display: flex;
    justify-content: center;
    padding-bottom: 30px;
    position: relative;
    z-index: 10;
}

.scroll-down-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.scroll-down-btn .scroll-arrow {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Разворот стрелки вверх */
.scroll-down-btn.active .scroll-arrow {
    transform: rotate(180deg);
}

/* Блок контактов под первым экраном */
.contacts-block {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111111;
    padding: 80px 20px;
    box-sizing: border-box;
}

/* Левая панель */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 60px 40px 40px;
    box-sizing: border-box;
}

/* Контейнер внизу левой панели */
.hero-left__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}



/* Оформление самих контактов */
.contacts-info {
    padding-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #a0a0a0;
}

.contacts-phone, 
.contacts-email {
    margin-bottom: 6px;
    color: #ffffff;
}

.contacts-socials {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.contacts-socials a {
    color: #888888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.contacts-socials a:hover {
    color: #ffffff;
}

/* Кнопка-стрелка */
.scroll-down-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

/* Плавный поворот стрелки */
.scroll-down-btn .scroll-arrow {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Когда активна — разворачиваем на 180 градусов */
.scroll-down-btn.active .scroll-arrow {
    transform: rotate(180deg);
}

/* --- СТИЛИ ВЫДВИЖНОЙ ПАНЕЛИ КОНТАКТОВ --- */

.hero-split__left {
    position: relative; /* Важно для абсолютного позиционирования контактов */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 120px 40px 40px 40px;
    box-sizing: border-box;
    background-color: #0d0d0d;
    overflow: hidden; /* Скрывает контакты, когда они спрятаны за пределами экрана */
}

/* Блок контактов выезжает снизу вверх */
.contacts-drawer {
    position: absolute;
    bottom: 80px; /* Выезжает ровно над кнопкой-стрелкой */
    left: 40px;
    right: 40px;
    background-color: #0d0d0d;
    padding-top: 20px;
    z-index: 20;
    
    /* Начальное состояние: сдвинут вниз и прозрачен */
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none; /* Защита от случайных кликов во время скрытия */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Состояние "Открыто" */
.contacts-drawer.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.contacts-info {
    font-size: 14px;
    line-height: 1.6;
    color: #a0a0a0;
}

.contacts-phone, 
.contacts-email {
    margin-bottom: 6px;
    color: #ffffff;
}

.contacts-socials {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.contacts-socials a {
    color: #888888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.contacts-socials a:hover {
    color: #ffffff;
}

/* Стрелка */
.scroll-down-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px; /* Небольшой отступ, чтобы область клика была больше самой стрелки */
    margin-left: -8px; /* Выравнивает стрелку по левому краю текста выше */
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    position: relative;
    z-index: 30;
    transition: opacity 0.2s ease;
}

.scroll-down-btn:hover {
    opacity: 0.7;
}

/* Анимация переворота остается прежней */
.scroll-down-btn .scroll-arrow {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-down-btn.active .scroll-arrow {
    transform: rotate(180deg);
}

/* --- СТРАНИЦА ПРОЕКТОВ (СВЕТЛЫЙ СТИЛЬ) --- */

/* Светлый фон страницы */
body.projects-page {
    background-color: #e5e5e5;
    color: #1a1a1a;
}

/* Светлая шапка */
body.projects-page .header {
    background-color: #e5e5e5;
}

/* Тёмный текст для всех элементов шапки */
body.projects-page .logo__name,
body.projects-page .logo__sub,
body.projects-page .nav__link,
body.projects-page .social-icon {
    color: #1a1a1a;
}

/* Состояния ссылок (активная, наведение) */
body.projects-page .nav__link,
body.projects-page .social-icon {
    opacity: 0.55;
    transition: opacity 0.2s ease, color 0.2s ease;
}

body.projects-page .nav__link.active,
body.projects-page .nav__link:hover,
body.projects-page .social-icon:hover {
    opacity: 1;
    color: #000000;
}

/* Контейнер проектов */
.projects-container {
    max-width: 1200px; /* Фиксированная ширина как на скриншоте */
    margin: 0 auto;
    padding: 120px 20px 80px;
    padding-bottom: 40px; /* Чтобы отступ снизу выглядел гармонично */
    display: flex;
    flex-direction: column;
    gap: 120px; /* Расстояние между большими проектами */
}

/* Карточка проекта */
.project-card {
    display: block;
    width: 100%;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
}

.project-card__image-wrapper {
    position: relative;
    width: 100%;
    height: 75vh; /* Высокая подача как на скриншоте */
    overflow: hidden;
    background-color: #d0d0d0;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Оверлей ("дымка" при наведении) */
.project-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.45); /* Затемнение */
    backdrop-filter: blur(4px); /* Легкая размытая дымка */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0; /* По умолчанию скрыт */
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Название проекта */
.project-card__title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card__sub {
    font-size: 13px;
    color: #cccccc;
    letter-spacing: 0.05em;
    font-weight: 300;
    transform: translateY(10px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

/* --- HOVER ЭФФЕКТЫ --- */

.project-card:hover .project-card__image {
    transform: scale(1.03); /* Мягкое приближение кадра */
}

.project-card:hover .project-card__overlay {
    opacity: 1; /* Появление дымки */
}

.project-card:hover .project-card__title,
.project-card:hover .project-card__sub {
    transform: translateY(0); /* Плавное всплытие текста */
}

/* --- 1. ФИКС СМЕЩЕНИЯ МЕНЮ (ВСЕГДА ПОКАЗЫВАЕМ СКРОЛЛБАР) --- */
html {
    /* Принудительно оставляет место под скроллбар на всех страницах, 
       чтобы меню не «прыгало» при переходах */
    overflow-y: scroll;
}

/* --- 2. ЕДИНЫЙ ЦВЕТ ФОНА И ТЕКСТА ДЛЯ СВЕТЛЫХ СТРАНИЦ --- */
body.philosophy-page,
body.projects-page {
    background-color: #e5e5e5; /* Единственный точный цвет фона */
    color: #1a1a1a;
    margin: 0;
}

/* Светлый фон шапки */
body.philosophy-page .header,
body.projects-page .header {
    background-color: #e5e5e5;
}

/* Единые цвета шрифта в шапке */
body.philosophy-page .logo__name,
body.philosophy-page .logo__sub,
body.philosophy-page .nav__link,
body.philosophy-page .social-icon,
body.projects-page .logo__name,
body.projects-page .logo__sub,
body.projects-page .nav__link,
body.projects-page .social-icon {
    color: #1a1a1a;
}

/* --- 3. ФИКС СМЕЩЕНИЯ ТЕКСТА ИЗ-ЗА АКТИВНОЙ ССЫЛКИ --- */
.nav__link {
    display: inline-block;
    font-weight: 400; /* Фиксируем одинаковую толщину шрифта */
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.nav__link.active,
.nav__link:hover {
    opacity: 1;
    font-weight: 400; /* Не меняем weight при hover/active, чтобы буквы не расширялись */
}

/* --- СТРАНИЦА ОТДЕЛЬНОГО ПРОЕКТА --- */

body.project-detail-page {
    background-color: #e5e5e5;
    color: #1a1a1a;
}

body.project-detail-page .header {
    background-color: #e5e5e5;
}

body.project-detail-page .logo__name,
body.project-detail-page .logo__sub,
body.project-detail-page .nav__link,
body.project-detail-page .social-icon {
    color: #1a1a1a;
}

/* Описание проекта */
.project-detail__header {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 20px 60px;
    text-align: center;
}

.project-detail__title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.project-detail__meta {
    font-size: 13px;
    color: #777777;
    margin-bottom: 24px;
}

.project-detail__description {
    font-size: 16px;
    line-height: 1.7;
    color: #444444;
}

/* Галерея рендеров */
.project-detail__gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gallery__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Разделитель "Другие проекты" */
.next-projects-heading {
    max-width: 1200px;
    margin: 120px auto 40px;
    padding: 0 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888888;
}

.next-projects {
    padding-top: 0 !important; /* Убираем лишний верхний отступ у контейнера */
}

/* Подвал с контактами */
.footer-contacts {
    background-color: #0d0d0d;
    color: #ffffff;
    padding: 80px 20px;
    margin-top: 120px;
    text-align: center;
}

.footer-contacts__content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-contacts__phone,
.footer-contacts__email {
    font-size: 16px;
    margin: 0;
    color: #ffffff;
}

.footer-contacts__socials {
    display: flex;
    gap: 20px;
    margin-top: 12px;
}

.footer-contacts__socials a {
    color: #888888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-contacts__socials a:hover {
    color: #ffffff;
}

.contacts-socials-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0 12px;
}

.contacts-socials-list a {
    color: #ffffff;
    text-decoration: none;
}

.footer-contacts__extra {
    font-size: 14px;
    color: #888888;
    margin: 0;
}

/* Выравнивание иконок в шапке */
.social-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social-icon:hover {
    opacity: 0.7;
}

/* Ссылки с иконками в подвале и шторке */
.footer-contact-link i{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #888888;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.2s ease;
}

.footer-contact-link:hover {
    color: #ffffff;
}

/* Контейнер контактов */
.footer-contacts__content,
.contacts-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

/* Номер телефона */
.footer-contacts__phone,
.contacts-phone {
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
}

.footer-contacts__phone:hover,
.contacts-phone:hover {
    opacity: 0.8;
}

/* Доп. информация (MAX) */
.footer-contacts__extra,
.contacts-extra {
    font-size: 13px;
    color: #888888;
    margin: 0;
}

/* Блок иконок под телефоном (в одну строчку рядом) */
.footer-contacts__socials,
.contacts-socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

/* Иконки в подвале и шторке */
.footer-contact-link {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.footer-contact-link i {
    font-size: 18px; /* Точно такой же размер, как в шапке сверху */
}

.footer-contact-link:hover {
    opacity: 1;
}

/* =========================================================
   FINAL MOBILE OVERRIDE
   ========================================================= */

@media screen and (max-width: 768px) {

    /* ---------- HEADER ---------- */

    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 60px !important;

        padding: 0 14px !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;

        background: #1a1a1a !important;

        z-index: 1000 !important;

        box-sizing: border-box !important;
    }

    .header__left {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;

        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
    }

    .logo {
        display: flex !important;
        align-items: baseline !important;

        width: 100% !important;
        min-width: 0 !important;

        font-size: 0 !important;
        line-height: 1 !important;

        white-space: nowrap !important;
        overflow: hidden !important;

        letter-spacing: 0 !important;
    }

    .logo__name {
        font-size: 9px !important;
        line-height: 1 !important;
        font-weight: 500 !important;

        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .logo__sub {
        font-size: 7.5px !important;
        line-height: 1 !important;
        font-weight: 300 !important;

        white-space: nowrap !important;

        color: #888 !important;

        flex-shrink: 0 !important;
    }


    /* ---------- RIGHT HEADER ---------- */

    .header__right {
        width: auto !important;

        padding: 0 !important;

        margin-left: 8px !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;

        flex-shrink: 0 !important;
    }


    /* ---------- DESKTOP NAV ---------- */

    .header .nav {
        display: none !important;
    }


    /* ---------- SOCIAL ICONS ---------- */

    .social-icons {
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;

        margin: 0 !important;
    }

    .social-icon {
        width: 22px !important;
        height: 40px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        font-size: 14px !important;

        opacity: 0.8 !important;

        padding: 0 !important;
    }


    /* ---------- BURGER ---------- */

    .burger {
        display: flex !important;

        width: 44px !important;
        height: 44px !important;

        margin: 0 0 0 2px !important;
        padding: 0 !important;

        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 5px !important;

        border: 0 !important;
        background: transparent !important;

        color: #fff !important;

        cursor: pointer !important;
        flex-shrink: 0 !important;
    }

    .burger span {
        display: block !important;

        width: 17px !important;
        height: 1px !important;

        background: currentColor !important;
    }


    /* ---------- MOBILE MENU ---------- */

    .mobile-menu {
        display: flex !important;

        position: fixed !important;

        top: 60px !important;
        left: 0 !important;

        width: 100% !important;
        height: calc(100dvh - 60px) !important;

        padding: 40px 24px !important;

        flex-direction: column !important;

        background: #1a1a1a !important;

        z-index: 999 !important;

        transform: translateY(-100%) !important;
        visibility: hidden !important;

        transition:
            transform 0.4s ease,
            visibility 0s linear 0.4s !important;
    }

    .mobile-menu.is-open {
        transform: translateY(0) !important;
        visibility: visible !important;

        transition:
            transform 0.4s ease,
            visibility 0s linear 0s !important;
    }

    .mobile-nav {
        display: flex !important;
        flex-direction: column !important;

        gap: 22px !important;
    }

    .mobile-nav a {
        display: block !important;

        padding: 6px 0 !important;

        color: #fff !important;

        font-size: 19px !important;
        font-weight: 300 !important;

        text-decoration: none !important;
    }


    /* ---------- HERO ---------- */

    .hero-split {
        width: 100% !important;

        height: auto !important;
        min-height: 100dvh !important;

        padding-top: 60px !important;

        display: flex !important;
        flex-direction: column !important;

        overflow: visible !important;
    }


    /* IMAGE FIRST */

    .hero-split__right {
        order: -1 !important;

        width: 100% !important;
        height: 56vh !important;

        padding: 0 !important;

        flex: none !important;

        overflow: hidden !important;
    }

    .hero-split__image {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;

        border-radius: 0 !important;
    }


    /* TEXT */

    .hero-split__left {
        width: 100% !important;

        height: auto !important;
        min-height: calc(100dvh - 56vh - 60px) !important;

        padding: 48px 20px 32px !important;

        display: flex !important;
        flex-direction: column !important;

        background: #0d0d0d !important;

        position: relative !important;

        overflow: visible !important;
    }

    .hero-split__content {
        flex: none !important;

        display: flex !important;
        flex-direction: column !important;

        justify-content: flex-start !important;
        align-items: flex-start !important;
    }

    .hero-split__title {
        max-width: 100% !important;

        margin-bottom: 28px !important;

        font-size: 25px !important;
        line-height: 1.28 !important;

        font-weight: 400 !important;
    }

    .btn-outline {
        display: inline-block !important;

        padding: 14px 22px !important;

        font-size: 11px !important;

        letter-spacing: 0.08em !important;
    }


    /* ---------- BOTTOM / CONTACTS ---------- */

    .hero-split__bottom {
        width: 100% !important;

        margin-top: 48px !important;

        display: flex !important;
    }

    .scroll-down-btn {
        width: 44px !important;
        height: 44px !important;

        padding: 8px !important;
        margin: 0 !important;
    }

    .contacts-drawer {
        position: relative !important;

        left: auto !important;
        right: auto !important;
        bottom: auto !important;

        width: 100% !important;

        margin-top: 20px !important;
        padding: 0 !important;

        background: transparent !important;

        transform: none !important;

        max-height: 0 !important;
        opacity: 0 !important;

        overflow: hidden !important;

        pointer-events: none !important;

        transition:
            max-height 0.4s ease,
            opacity 0.3s ease !important;
    }

    .contacts-drawer.is-open {
        max-height: 300px !important;

        opacity: 1 !important;

        pointer-events: auto !important;
    }
}

/* =========================================================
   PROJECTS — ШАПКА
   ========================================================= */

/* DESKTOP — светлая шапка / тёмный текст */
@media (min-width: 769px) {

    .projects-page .header {
        background-color: #d8d8d8;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .projects-page .header .logo__name {
        color: #2b2b2b !important;
    }

    .projects-page .header .logo__sub {
        color: #777777 !important;
    }

    .projects-page .header .nav__link {
        color: #2b2b2b !important;
    }

    .projects-page .header .social-icon {
        color: #2b2b2b !important;
        border-color: rgba(0, 0, 0, 0.3);
    }

    .projects-page .header .nav__link.active {
        color: #2b2b2b !important;
    }
}


/* MOBILE — тёмная шапка / светлый текст */
@media (max-width: 768px) {

    .projects-page .header {
        background-color: #1a1a1a;
    }

    .projects-page .header .logo__name,
    .projects-page .header .nav__link,
    .projects-page .header .social-icon {
        color: #f7f7f7 !important;
    }

    .projects-page .header .logo__sub {
        color: #bdbdbd !important;
    }

    .projects-page .header .social-icon {
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* =========================================================
   ГЛАВНАЯ — БЛОК КОНТАКТОВ
   ========================================================= */

.contacts-section {
    display: none;
}


/* =========================================================
   ГЛАВНАЯ — МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 768px) {

    /* Первый экран */
    .hero-split {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    /* Левая часть */
    .hero-split__left {
        width: 100%;
        height: calc(100vh - var(--header-height));
        min-height: 600px;
        padding: 60px 30px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-color: #0d0d0d;
    }

    /* Контент */
    .hero-split__content {
        flex: none;
        width: 100%;
        justify-content: center;
        align-items: flex-start;
    }

    /* Картинка */
    .hero-split__right {
        width: 100%;
        height: 65vh;
        flex: none;
    }

    .hero-split__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* =====================================================
       КОНТАКТЫ
       ===================================================== */

    .contacts-section {
        display: flex;
        width: 100%;
        min-height: 220px;
        padding: 60px 30px;
        box-sizing: border-box;
        background-color: #0d0d0d;
        align-items: center;
        justify-content: center;
    }

    .contacts-section .contacts-info {
        padding: 0;
        text-align: center;
        font-size: 13px;
        line-height: 1.7;
        color: #a0a0a0;
    }

    .contacts-section .contacts-phone,
    .contacts-section .contacts-email {
        margin: 0 0 8px;
        color: #ffffff;
    }

    /* Старую стрелку полностью убираем */
    .hero-split__bottom,
    .scroll-down-btn {
        display: none !important;
    }

    /* Старую механику drawer отключаем */
    .contacts-drawer {
        display: none;
    }
}
/* =========================================================
   СТРАНИЦЫ ПРОЕКТОВ — СВЕТЛАЯ ШАПКА
   ========================================================= */

.project-detail-page .header {
    background-color: #d8d8d8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.project-detail-page .header .logo__name {
    color: #2b2b2b !important;
}

.project-detail-page .header .logo__sub {
    color: #777777 !important;
}

.project-detail-page .header .nav__link {
    color: #2b2b2b !important;
}

.project-detail-page .header .social-icon {
    color: #2b2b2b !important;
    border-color: rgba(0, 0, 0, 0.3);
}

.project-detail-page .header .nav__link.active {
    color: #2b2b2b !important;
}

/* =========================================================
   СТРАНИЦЫ ПРОЕКТОВ — МОБИЛЬНАЯ ШАПКА
   ========================================================= */

@media (max-width: 768px) {

    .project-detail-page .header {
        background-color: #1a1a1a;
        color: #ffffff;
        border-bottom: none;
    }

    .project-detail-page .header .logo,
    .project-detail-page .header .logo__name,
    .project-detail-page .header .logo__sub,
    .project-detail-page .header .nav__link,
    .project-detail-page .header .social-icon {
        color: #ffffff !important;
    }

    .project-detail-page .header .logo__sub {
        opacity: 0.55;
    }

    .project-detail-page .header .social-icon {
        opacity: 0.8;
    }

    .project-detail-page .header .nav__link.active {
        color: #ffffff !important;
    }
}

/* =========================================================
   КОНТАКТЫ — ДЕСКТОП
   ========================================================= */

@media (min-width: 769px) {

    .contacts-section {
        display: block;
        width: 100%;
        box-sizing: border-box;

        max-height: 0;
        overflow: hidden;
        opacity: 0;

        padding: 0 40px;

        transition:
            max-height 0.4s ease,
            opacity 0.4s ease,
            padding 0.4s ease;

        background-color: #0d0d0d;
        color: #ffffff;
    }

    .contacts-section.is-open {
        max-height: 180px;
        opacity: 1;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .contacts-section .contacts-info {
        color: #ffffff;
    }

    .contacts-section .contacts-phone,
    .contacts-section .contacts-email {
        color: #ffffff;
    }
}