/* 1. НАСТРОЙКИ И ПЕРЕМЕННЫЕ */
:root {
    --bg-body: #000000;
    --card-bg: #1c1c1e;
    --card-border: #2c2c2e;
    --accent: #0a84ff;
    --text-main: #ffffff;
    --text-gray: #86868b;
    --radius: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Golos Text', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Logo&menu ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ --- */
:root {
    --vdx-accent-color: #ffffff;
    --vdx-glass-base: rgba(10, 10, 10, 0.4);
    --vdx-submenu-bg: rgba(15, 15, 15, 0.8);
    --vdx-line-subtle: rgba(255, 255, 255, 0.08);
    --vdx-text-dim: rgba(255, 255, 255, 0.6);
}

/* --- ШАПКА --- */
.vdx-site-header {
    display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;

  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.vdx-glass-overlay {
    position: absolute;
    inset: 0;
    background: var(--vdx-glass-base);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--vdx-line-subtle);
}

.vdx-header-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* --- НАВИГАЦИЯ (ДЕСКТОП) --- */
.vdx-main-registry {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vdx-unit-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--vdx-text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.vdx-unit-link:hover {
    color: #fff;
}

.vdx-chevron {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 8px;
    opacity: 0.5;
    transition: 0.3s ease;
}

/* --- ВЫПАДАЮЩЕЕ МЕНЮ (ДЕСКТОП) --- */
.vdx-has-submenu {
    position: relative;
    padding-bottom: 15px; 
    margin-bottom: -15px;
}

.vdx-submenu-list {
    position: absolute;
    top: calc(100% + 15px); 
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.98);
    background: var(--vdx-submenu-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 20px;
    list-style: none;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.vdx-submenu-list::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

@media (min-width: 1025px) {
    .vdx-has-submenu:hover .vdx-submenu-list {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    .vdx-has-submenu:hover .vdx-chevron {
        transform: rotate(225deg) translateY(2px);
        opacity: 1;
    }
}

.vdx-submenu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.vdx-submenu-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.vdx-submenu-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #fff;
}

.vdx-submenu-content {
    display: flex;
    flex-direction: column;
}

.vdx-submenu-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.vdx-submenu-desc {
    color: var(--vdx-text-dim);
    font-size: 11px;
    margin-top: 3px;
    line-height: 1.2;
}

/* --- КНОПКА CTA --- */
.vdx-cta-trigger {
    background: rgba(255, 255, 255, 0.05); 
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vdx-cta-trigger:hover {
    background: #fff;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: #fff;
}


/* ================================================= */
/* ФИНАЛЬНАЯ МОБИЛЬНАЯ ВЕРСИЯ (Header, Nav, Burger)  */
/* ================================================= */

/* Кнопка бургера (база) */
.vdx-mobile-commander {
    display: none; /* Скрыт на десктопе */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1100; /* Всегда выше меню */
}

.vdx-bar-element {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, width 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 1024px) {
    /* Показываем бургер */
    .vdx-mobile-commander {
        display: flex;
    }

    /* Прячем обычную навигацию */
    .vdx-nav-shell {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #000000;
        z-index: 1000;
        display: none; /* По умолчанию скрыто */
        flex-direction: column;
        padding: 100px 24px 40px;
        overflow-y: auto;
    }

    /* Когда меню активно (класс от твоего JS) */
    .vdx-site-header.vdx-portal-active .vdx-nav-shell {
        display: flex;
    }

    /* Вертикальный список */
    .vdx-main-registry {
        flex-direction: column;
        gap: 0;
        width: 100%;
        list-style: none;
    }

    .vdx-registry-unit {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .vdx-unit-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 22px 0;
        font-size: 24px;
        color: #fff;
        text-decoration: none;
        width: 100%;
        font-family: 'Golos Text', sans-serif;
    }

    /* --- ПОДМЕНЮ (Портфолио) - ИСПРАВЛЕННОЕ --- */
    .vdx-submenu-list {
        display: none !important; /* Скрыто, пока нет класса is-open */
        position: static !important; /* Выключаем десктопное позиционирование */
        opacity: 1 !important; /* Сбрасываем прозрачность */
        visibility: visible !important; /* Сбрасываем скрытость */
        background: rgba(255, 255, 255, 0.05) !important;
        width: 100% !important;
        padding: 10px 0 !important;
        transform: none !important; /* Убираем десктопные смещения */
    }

    /* Когда кликнули (JS добавил класс is-open) */
    .vdx-has-submenu.is-open .vdx-submenu-list {
        display: block !important;
    }

    /* Чтобы пункты внутри не слипались */
    .vdx-submenu-item {
        width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .vdx-submenu-link {
        padding: 15px 20px !important;
        display: flex !important;
        opacity: 1 !important;
    }

    .vdx-submenu-title { font-size: 18px; display: block; color: #fff; }
    .vdx-submenu-desc { font-size: 13px; color: #888; }

    /* Анимация бургера в крестик */
    .vdx-site-header.vdx-portal-active .vdx-bar-alpha {
        transform: translateY(4px) rotate(45deg);
    }

    .vdx-site-header.vdx-portal-active .vdx-bar-omega {
        transform: translateY(-4px) rotate(-45deg);
    }

    /* Убираем кнопку "Связаться" на мобилках, если она мешает логотипу */
    .vdx-cta-trigger {
        display: none; 
    }
}

@media (max-width: 1024px) {
    /* 1. Делаем контейнер кнопок гибким */
    .vdx-action-zone {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    /* 2. По умолчанию на мобилке кнопку в шапке можно скрыть, 
       ЧТОБЫ ОНА ПОЯВИЛАСЬ ТОЛЬКО ВНУТРИ МЕНЮ */
    .vdx-cta-trigger {
        display: none; /* Скрываем в обычной шапке */
    }

    /* 3. МАГИЯ: показываем кнопку только когда меню открыто! */
    .vdx-site-header.vdx-portal-active .vdx-cta-trigger {
        display: block;
        position: fixed; /* Фиксируем её относительно экрана */
        bottom: 40px;    /* Прижимаем к низу */
        left: 24px;
        right: 24px;
        z-index: 1100;   /* Выше черного фона */
        
        background: #fff;
        color: #000;
        padding: 18px;
        border-radius: 14px;
        text-align: center;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
}


/* 2. ГЕРОЙ И ФОН */
.hero-section {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-body));
    z-index: 2;
}

/* 3. ШАПКА И САЙДБАР */
.main-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    margin-top: -120px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px; /* Отступ до следующего контента */
}

.sidebar {
    position: sticky;
    top: 20px; 
}

.logo-box {
    margin-bottom: 24px;
    text-align: center;
}
.logo-box img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; /* Магия: картинка впишется целиком, сохраняя пропорции, и не обрежется */
    display: block;
}

.tools-box { margin-bottom: 24px; padding-left: 5px; }
.label-small {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-gray);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.tool-list { display: flex; flex-wrap: wrap; gap: 8px; }

.tool-tag {
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #eee;
}

.btn {
    display: block;
    text-align: center;
    padding: 16px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
    transition: transform 0.2s;
}
.btn:hover { transform: scale(1.02); }
.btn-white { background: #fff; color: #000; }
.btn-outline { border: 1px solid #444; color: #fff; background: rgba(0,0,0,0.3); backdrop-filter: blur(10px); }

.content-intro { padding-top: 40px; }
.tags-row { margin-bottom: 20px; }
.tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #444;
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-gray);
    margin-right: 8px;
    margin-bottom: 8px;
}

.main-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.main-desc {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 650px;
    margin-bottom: 40px;
}

.meta { margin: 15px 0; }

.year { font-weight: 800; font-size: 18px; margin-right: 15px; }

.badge {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

/* Описание проекта */
.project-description {
    margin-top: 32px;
    max-width: 900px;
    display: block;
}

.desc-item h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}

.desc-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.desc-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
}

.feature p {
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
}

.feature p strong {
    color: var(--accent);
    font-weight: 600;
}



/* МЕТРИКИ */
.metrics-fullwidth {
    padding: 120px 0;
    display: flex;
    justify-content: center;
    background: #000;
}

.metrics-container {
    width: 90%;
    max-width: 1200px; /* Фиксируем ширину для баланса */
    display: grid;
    grid-template-columns: 1.6fr 1fr; /* Левая карточка доминирует */
    gap: 24px;
}

.m-bento-card {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px; /* Более мягкие углы для премиальности */
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.performance {
    background: radial-gradient(circle at 20% 20%, rgba(10, 132, 255, 0.15), transparent);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px; /* Даем высоту, чтобы цифра "дышала" */
}

/* Огромная цифра */
.m-huge-val {
    font-size: clamp(80px, 8vw, 120px);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -5px;
    margin: 20px 0;
    background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Иконка-фантом на фоне (решаем проблему дыры справа) */
.m-visual-bg {
    position: absolute;
    right: -5%;
    bottom: -10%;
    font-size: 280px;
    color: var(--accent);
    opacity: 0.03;
    transform: rotate(-15deg);
    pointer-events: none;
}

/* Подблоки справа */
.m-sub-group {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

.secondary {
    display: flex;
    align-items: center;
    padding: 30px;
}

.secondary i {
    font-size: 24px;
    color: var(--accent);
    margin-right: 20px;
}

.m-small-val {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.secondary span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-gray);
}

/* 1. Контейнер секции */
.metrics-fullwidth {
    padding: 100px 0;
    background: #000;
}

/* 2. Заголовок */
.metrics-header {
    text-align: center;
    margin-bottom: 80px;
}

.m-pre-title {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 700;
}

.m-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 850;
    line-height: 1.1;
    color: #fff;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. Сетка Bento */
.metrics-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Левая часть шире */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.m-bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.m-bento-card:hover {
    border-color: rgba(10, 132, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* 4. Главная карточка (+25%) */
.performance {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.m-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-icon-new {
    color: var(--accent);
    font-size: 20px;
}

.m-tag {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.m-huge-val {
    font-size: 96px;
    font-weight: 900;
    letter-spacing: -4px;
    margin: 20px 0;
    color: #fff;
}

/* Фоновая ракета */
.m-visual-bg {
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 200px;
    opacity: 0.02; /* Почти невидимая */
    color: #fff;
    transform: rotate(-15deg);
}

/* 5. Правая группа (маленькие карточки) */
.m-sub-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.secondary .m-card-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.secondary i {
    font-size: 24px;
    color: var(--accent);
}

.m-small-val {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.m-data span {
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
}

/* 6. Адаптивность */
@media (max-width: 900px) {
    .metrics-container {
        grid-template-columns: 1fr;
    }
}

/* Стили большой карточки */
.main-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px; /* Увеличиваем отступы для премиальности */
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

/* Иконка: теперь без синего бокса, просто чистый глиф */
.main-card .m-icon {
    background: transparent;
    width: auto;
    height: auto;
    font-size: 24px;
    color: var(--accent); /* Твой основной синий цвет только для самой иконки */
    filter: drop-shadow(0 0 10px rgba(10, 132, 255, 0.5)); /* Легкое неоновое свечение */
}

.main-card .accent-text {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    margin-top: auto; /* Прижимаем к низу */
    margin-bottom: 12px;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Фоновая ракета: делаем её контурной и очень деликатной */
.main-card::after {
    content: '\f135';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -10%;
    bottom: -5%;
    font-size: 180px;
    /* Вместо заливки используем stroke, если шрифт позволяет, 
       либо просто ставим прозрачность на минимум */
    color: #fff;
    opacity: 0.03; 
    transform: rotate(-15deg);
    pointer-events: none;
}

.main-card .m-text span {
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

/* Правая колонка */
.m-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.m-group .m-item {
    flex: 1; /* Чтобы карточки делили высоту поровну */
}

.m-text span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    font-weight: 600;
}

/* Адаптивность: на мобилках в одну колонку */
@media (max-width: 600px) {
    .metrics-mini {
        grid-template-columns: 1fr;
    }
    .main-card {
        min-height: auto;
        flex-direction: row;
        align-items: center;
    }
}

/* 4. КАРТОЧКИ (BENTO GRID) */
.bento-card {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 60px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.card-info { flex: 1; }
.card-info h2 { font-size: 48px; margin-bottom: 15px; letter-spacing: -1px; }
.card-info p { font-size: 18px; color: var(--text-gray); }

.visual-gray {
    flex: 1;
    background: #2c2c2e;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
}
.big-letter { font-size: 140px; font-weight: 800; line-height: 1; color: #fff; margin-bottom: 10px; }

.code-window {
    flex: 1.2;
    background: #000;
    border-radius: 20px;
    border: 1px solid #333;
    overflow: hidden;
}
.window-header { background: #2d2d2f; padding: 12px 20px; display: flex; gap: 15px; align-items: center; }
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.code-window pre { padding: 30px; font-family: 'Courier New', monospace; font-size: 14px; color: #d4d4d4; line-height: 1.6; }

/* ОБНОВЛЕННЫЙ КОНТАКТНЫЙ БЛОК */
.contact-section {
    padding: 100px 0; /* Оставляем хорошие отступы, чтобы дышало */
}

.cta-box {
    position: relative;
    background: linear-gradient(145deg, #1c1c1e 0%, #000000 100%);
    border: 1px solid var(--card-border);
    border-radius: 40px;
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

/* Все остальные стили для h2, p и btn-cta остаются такими же, 
   как мы сделали в предыдущем шаге */
.btn-cta {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,255,255,0.1); }

/* ОБНОВЛЕННАЯ АДАПТИВНОСТЬ (МОБИЛКИ) */
/* 7. APPLE-STYLE АДАПТИВНОСТЬ */
@media (max-width: 900px) {
    /* Убираем сетку, выстраиваем всё в колонку */
    .main-header {
        grid-template-columns: 1fr;
        margin-top: -60px;
        gap: 40px;
        text-align: center;
        padding-bottom: 40px;
    }

    /* Сайдбар больше не липкий и занимает всю ширину */
    .sidebar {
        position: static;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Делаем заголовок резиновым, чтобы не вылезал за края */
    .main-title {
        font-size: clamp(32px, 8vw, 48px);
        letter-spacing: -1px;
    }

    .main-desc {
        font-size: 18px;
        margin: 0 auto 30px;
    }

    /* Центрируем все списки и кнопки */
    .tool-list, .tags-row, .metrics-mini {
        justify-content: center;
    }

    /* Метрики на мобилках лучше смотрятся в столбик или по 2 */
    .metrics-mini {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .m-item {
        width: 100%;
        max-width: 320px;
    }

    /* Bento-карточки: меняем направление и уменьшаем падинги */
    .bento-card {
        flex-direction: column;
        padding: 40px 24px;
        gap: 40px;
        text-align: center;
    }

    /* Чтобы в карточке "Дизайн в коде" сначала шел заголовок, а потом код */
    /* Или наоборот — как тебе больше нравится. Сейчас код будет снизу */
    .code-block {
        flex-direction: column-reverse;
    }

    .card-info h2 {
        font-size: 32px;
    }

    .visual-gray, .code-window {
        width: 100%;
    }

    .big-letter {
        font-size: 100px;
    }
}


/* Фикс для совсем крошечных экранов */
@media (max-width: 480px) {
    .logo-box {
        padding: 30px 20px;
    }
    
    .cta-box {
        padding: 60px 20px;
    }

    .cta-box h2 {
        font-size: 32px;
    }
}

/* ЭФФЕКТ ПОЯВЛЕНИЯ (APPLE STYLE) */
.reveal {
    opacity: 0;
    transform: translateY(40px); /* Карточка чуть ниже */
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); /* Плавный инерционный переход */
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0); /* Карточка встает на место */
}

/* Добавим небольшую задержку для дочерних элементов в сетках, 
   чтобы они появлялись «лесенкой» */
.metrics-container .m-bento-card:nth-child(1) { transition-delay: 0.1s; }
.m-sub-group .m-bento-card:nth-child(1) { transition-delay: 0.2s; }
.m-sub-group .m-bento-card:nth-child(2) { transition-delay: 0.3s; }

/* parallax */
/* ОБЩАЯ ОБЕРТКА */
.parallax-universe {
    background: var(--bg-body);
    padding-top: 100px;
}

.section-label {
    font-size: clamp(64px, 10vw, 110px);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.04em; /* Плотный кернинг для премиальности */
    line-height: 1;
    margin-bottom: 120px;
    
    /* Интимный градиент: от прозрачного к мягкому белому и снова в тень */
    background: radial-gradient(
        circle at center, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0.1) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Легкое размытие, чтобы смягчить края букв */
    filter: blur(0.5px); 
    opacity: 0.8;
    
    /* Плавное появление при скролле */
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Эффект при активации (через твой JS Observer) */
.section-title-wrapper.active .section-label {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1.02);
}

.section-title-wrapper {
    padding: 180px 0 100px; /* Увеличили верхний отступ */
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pre-title {
    display: block;
    text-align: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

/* СЛАЙДЫ */
.parallax-slide {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-body);
    border-top: 1px solid rgba(255, 255, 255, 0.05);

    transition: background-color 0.8s ease; /* Плавная смена фона */
}

/* Оживим абстрактные фигуры (пульсация) */
.abstract-shape {
    animation: pulse-glow 8s infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
    100% { transform: scale(1.2) translate(20px, -20px); opacity: 0.6; }
}


.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    z-index: 2;
}

.step-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 100px; /* Та самая форма пилюли */
    background: rgba(10, 132, 255, 0.1); /* Цвет акцента, но очень прозрачный */
    border: 1px solid rgba(10, 132, 255, 0.2);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 32px;
    backdrop-filter: blur(5px); /* Легкое размытие под пилюлей */
}

.slide-info h2 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.slide-info p {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 450px;
}

/* ГРАФИЧЕСКИЕ ПЯТНА */


.slide-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.abstract-shape {
    width: 400px;
    height: 400px;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
}

.shape-1 { background: var(--accent); }
.shape-2 { background: #bf5af2; } /* Фиолетовый */
.shape-3 { background: #30d158; } /* Зеленый */

/* Адаптив для параллакс-слайдов */
@media (max-width: 900px) {
    /* 1. Заголовок секции: делаем компактнее, но сохраняем стиль */
    .section-label {
        font-size: 48px; /* Уменьшаем, чтобы влезло в ширину */
        margin-bottom: 60px;
        letter-spacing: -2px;
    }

    /* 2. Слайды: отключаем залипание, чтобы скролл был естественным */
    .parallax-slide {
        height: auto; /* Снимаем жесткую высоту */
        min-height: 60vh; /* Но оставляем пространство */
        position: relative !important; /* Убираем sticky */
        top: auto !important;
        padding: 60px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* 3. Контент: выстраиваем в одну колонку */
    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .slide-info h2 {
        font-size: 32px; /* Заголовки шагов поменьше */
        margin-bottom: 16px;
    }

    .slide-info p {
        font-size: 16px;
        line-height: 1.6;
        padding: 0 10px;
    }

    /* 4. Пятна (blur): уменьшаем их, чтобы не тормозили телефон */
    .abstract-shape {
        width: 80vw;
        height: 80vw;
        filter: blur(60px); /* Меньше блюра = легче рендеринг */
        opacity: 0.1;
    }

    /* 5. Пилюли: чуть меньше отступ */
    .step-tag {
        margin-bottom: 20px;
    }
}


.quote-section {
    position: relative;
    height: 100vh; /* Теперь во весь экран, раз мы убрали рамки */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    padding: 0 40px; /* Безопасный отступ для мобилок */
}

.quote-content {
    position: relative;
    z-index: 2;
    text-align: center;
    /* Вместо жесткого контейнера используем max-width в процентах или vw */
    max-width: 80vw; 
}

.quote-section cite {
    font-style: normal; /* Убираем наклон */
    text-transform: uppercase;
    letter-spacing: 0.3em; /* Увеличиваем разрядку для премиального вида */
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
    opacity: 0.9;
    display: block;
    margin-top: 10px;
}

.quote-section blockquote {
    /* Делаем шрифт еще чуть крупнее, так как места теперь много */
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

.quote-section blockquote span {
    display: block;
    margin-top: 24px;
    color: var(--text-gray);
    /* Эффект затухания текста книзу */
    background: linear-gradient(180deg, #86868b 0%, rgba(134, 134, 139, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Свечение теперь растянем пошире */
.abstract-glow {
    position: absolute;
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle at center, rgba(10, 132, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

/* FOOTER */
.footer {
  position: relative;
  padding: 60px 20px;
  background: #060910;
  overflow: hidden;
}

.footer::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -100px;
  width: 800px;
  height: 600px;
  background: radial-gradient(
    70% 60% at 90% 100%,
     rgba(59, 91, 140, 0.35) 0%,
    rgba(59, 91, 140, 0.15) 40%,
    rgba(59, 91, 140, 0.10) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: white;
}

.footer-menu {
  display: flex;
  gap: 32px;
  font-weight: 400;
  font-size: 16px;
}

.footer-menu a {
  color: #B0B8C2;
  text-decoration: none;
  transition: 0.3s;
}

.footer-menu a:hover {
  font-weight: 600;
  color: #ffffff;
}

.footer-cta h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background-color: #11141A;
  border: 1px solid #2A2B2E;
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s;
}

.button:hover {
  background-color: #2b2c31;
}

.button.vk {
  min-width: 85px; /* задаёт минимальную ширину, чтобы текст не вылезал */
  padding: 12px 16px;
}

.button.vk img.icon-vk {
  width: 20px;
  height: 20px;
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0; /* предотвращает сжатие иконки */
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 60px;
  font-size: 14px;
  border-top: 1px solid #2a2a2d;
  padding-top: 20px;
}

.footer-bottom .privacy-link {
  color: #B0B8C2;
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
}

.footer-bottom .privacy-link:hover {
  text-decoration: none;
  color: #ffffff;
}

.crafted {
  display: flex;
  align-items: center;
  gap: 10px;
  
}

.crafted img {
  height: 40px;
}

.scroll-top {
  position: absolute;
  right: 0;
  bottom: 125px; /* сдвиг выше, чтобы не наезжать на crafted */
  color: #fff;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15); 
  padding: 12px 24px;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.scroll-top:hover {
  background-color: #2a2b30;
}

.footer-content {
  position: relative; /* важно! чтобы absolute работал */
}


@media (max-width: 768px) {
  .footer {
    padding: 40px 16px;
    text-align: center;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .footer-menu {
    display: none;
    flex-direction: column;
    gap: 18px;
    font-size: 17px;
  }

  .footer-menu a {
    padding: 6px 0; /* небольшой вертикальный отступ для касания */
    display: block;
  }

  .footer-cta h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .footer-buttons {
    flex-direction: column;
    align-items: center;
    gap: 20px; /* увеличенный отступ между кнопками */
    margin-top: 32px;
  }

  .button {
    width: 100%;
    max-width: 320px;
    padding: 18px 28px; /* увеличенный padding */
    font-size: 17px;
    justify-content: center;
    border-radius: 12px;
  }

  .button img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-right: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
    padding-top: 16px;
    text-align: center;
  }

  .footer-bottom p {
    margin-bottom: 8px; /* разделим текст и ссылку */
    line-height: 1.6;
  }

  .crafted img {
    margin-top: 8px;
    height: 32px;
  }

  .scroll-top {
    position: static;
    margin: 36px auto 0;
    width: 100%;
    max-width: 180px;
    padding: 16px 0;
    font-size: 16px;
    display: block;
    border-radius: 9999px;
  }
}

/* ДРУГИЕ ПРОЕКТЫ */
/* --- Контейнер и Сетка --- */
.cases-shelf {
    padding: 80px 0;
    background: #000;
    width: 100%;
    padding-bottom: 120px;
}

.cases-shelf .container {
    max-width: 1200px; /* Твоя рабочая ширина контента */
    margin: 0 auto;
    padding: 0 24px;
}

.shelf-header {
    color: rgba(255, 255, 255, 0.6); /* Приглушаем, чтобы не "кричал" */
    font-size: 14px; /* Делаем акцент на карточки, а не на подпись */
    text-transform: uppercase;
    letter-spacing: 0.2em; /* Добавляем воздуха */
    font-weight: 500;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- Карточка (Типографика + Эффекты) --- */
.project-item {
    text-decoration: none;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    height: 240px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Большие буквы на фоне (из JS data-abbr) */
.project-item::before {
    content: attr(data-abbr);
    position: absolute;
    font-size: 100px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03); /* Едва заметные */
    transition: all 0.6s ease;
    z-index: 1;
}

/* Призрачная картинка */
.project-preview {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(110%);
    opacity: 0.12; /* "Призрачный" эффект */
    transition: all 0.6s ease;
    z-index: 0;
}

/* Состояние при наведении */
.project-item:hover {
    background: #111;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px);
}

.project-item:hover .project-preview {
    opacity: 0.25;
    transform: scale(1.05);
}

.project-item:hover::before {
    color: rgba(255, 255, 255, 0.07);
    transform: scale(1.1);
}

/* Текст (Заголовок) */
.project-details {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.project-details h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .cases-shelf { padding: 50px 0; }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .project-item { height: 200px; } /* Чуть ниже на мобилках */
}

/* Сетка из 4 колонок */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 50px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #B0B8C2;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
  display: inline-block;
}

.footer-col a:hover {
  color: white;
  transform: translateX(3px);
}

/* Адаптив для планшетов и телефонов */
@media (max-width: 900px) {
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  .footer-col h4 {
    margin-bottom: 15px;
  }
}

@media (max-width: 550px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer-col {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
  }
  .footer-col:last-child {
    border-bottom: none;
  }
  .footer-col h4 {
    cursor: pointer;
    margin-bottom: 12px;
  }
  /* Можно добавить аккордеон на мобильных, но для простоты оставим как есть */
}