/* ==========================================================================
   1. НАСТРОЙКИ И ПЕРЕМЕННЫЕ
   ========================================================================== */
:root {
    --bg-body: #000000;
    --card-bg: #1c1c1e;
    --card-border: #2c2c2e;
    --accent: #0a84ff;
    --text-main: #ffffff;
    --text-gray: #86868b;
    --radius: 32px;
    
    /* --- Logo&menu ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ --- */
    --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);
}

* { 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;
    overflow-x: hidden; /* Важно: убирает горизонтальный скролл */
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    
}

/* ==========================================================================
   2. ШАПКА И НАВИГАЦИЯ (VDX HEADER)
   ========================================================================== */
.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;
}

/* ==========================================================================
   3. ГЕРОЙ И ОСНОВНАЯ СТРУКТУРА (HERO & HEADER CASE)
   ========================================================================== */
.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;
}

/* Основной контейнер кейса (Sidebar + Content) */
.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: 100px; 
}

.logo-box {
    margin-bottom: 24px;
    text-align: center;
}
.logo-box img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.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;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    width: 100%;
}
.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;
}

.meta { margin: 15px 0; display: flex; align-items: center; gap: 15px; }
.year { font-weight: 800; font-size: 18px; }
.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;
}

/* ==========================================================================
   4. МЕТРИКИ (METRICS)
   ========================================================================== */
.metrics-fullwidth {
    padding: 120px 0;
    display: flex;
    justify-content: center;
    background: #000;
}

.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;
}

.metrics-container {
    width: 100%;
    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-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: 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-bottom p { color: var(--text-gray); font-size: 16px; }

.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-data { display: flex; flex-direction: column; }

.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);
}

/* ==========================================================================
   5. BENTO КАРТОЧКИ (CODE & TYPO)
   ========================================================================== */
.bento-card {
    max-width: 1100px;
    margin: 0 auto 30px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 60px;
    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; }
.alphabet { color: var(--text-gray); font-size: 14px; letter-spacing: 2px; }

.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; }
.filename { color: #aaa; font-size: 12px; }
.code-window pre { padding: 30px; font-family: 'Courier New', monospace; font-size: 14px; color: #d4d4d4; line-height: 1.6; overflow-x: auto; }

/* ==========================================================================
   6. ПАРАЛЛАКС (PARALLAX & SLIDES)
   ========================================================================== */
.parallax-universe {
    background: var(--bg-body);
    padding-top: 100px;
}

.section-label {
    font-size: clamp(48px, 8vw, 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;
}

.section-title-wrapper {
    padding: 100px 0;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.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);
}

.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: clamp(40px, 5vw, 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;
    animation: pulse-glow 8s infinite alternate;
}
.shape-1 { background: var(--accent); }
.shape-2 { background: #bf5af2; }
.shape-3 { background: #30d158; }

@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
    100% { transform: scale(1.2) translate(20px, -20px); opacity: 0.6; }
}

/* ==========================================================================
   7. ЦИТАТА И ФУТЕР
   ========================================================================== */
.quote-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    padding: 80px 40px;
}

.quote-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.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: 30px;
}

.quote-section blockquote {
    font-size: clamp(24px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    letter-spacing: -0.03em;
}

.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: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(10, 132, 255, 0.05) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   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;
  }
}

/* ==========================================================================
   8. АДАПТИВНОСТЬ (MOBILE FIRST)
   ========================================================================== */

/* --- Мобильное меню (Бургер) --- */
.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;
    }

    .vdx-site-header.vdx-portal-active .vdx-nav-shell { display: flex; }

    .vdx-main-registry { flex-direction: column; gap: 0; width: 100%; }
    .vdx-registry-unit { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .vdx-unit-link { padding: 22px 0; font-size: 24px; color: #fff; width: 100%; }

    /* Бургер анимация */
    .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); }

    /* Скрываем CTA в шапке, показываем в меню */
    .vdx-cta-trigger { display: none; }
    .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;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
}

/* --- ФИНАЛЬНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ (APPLE STYLE) --- */
@media (max-width: 900px) {
    /* Общий сброс контейнера */
    .container {
        padding: 0 20px !important;
        width: 100% !important;
    }

    /* 1. ГЛАВНЫЙ БЛОК (Header) */
    .main-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 40px 0 !important;
        margin-top: -60px !important; /* Чуть поднимаем, чтобы перекрыть героя */
        gap: 0 !important;
    }

    /* 2. САЙДБАР (Лого и Кнопки) */
    .sidebar {
        width: 100% !important;
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 40px !important;
    }

    .tools-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .tool-list { justify-content: center !important; margin-bottom: 20px !important; }

    /* Кнопки - вертикальный стек */
    .actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 0 auto !important;
    }
    .btn { width: 100% !important; justify-content: center !important; }

    /* 3. КОНТЕНТ (Заголовок и Описание) */
    .content-intro {
        width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .tags-row { justify-content: center !important; margin-bottom: 20px !important; }
    
    .meta { 
        justify-content: center !important; 
        margin-bottom: 20px !important; 
    }

    .main-title {
        font-size: clamp(36px, 10vw, 48px) !important;
        text-align: center !important;
        margin-bottom: 24px !important;
    }

    .project-description { text-align: center !important; }
    .desc-features { 
        text-align: left !important; /* Фичи внутри лучше читать слева */
        max-width: 400px; 
        margin: 0 auto; 
    }

    /* 4. МЕТРИКИ */
    .metrics-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .m-bento-card { width: 100% !important; max-width: 400px !important; margin: 0 auto !important; }
    .m-sub-group { width: 100% !important; max-width: 400px !important; margin: 0 auto !important; }

    /* 5. BENTO (Код и Типографика) */
    .bento-card {
        flex-direction: column !important;
        padding: 40px 24px !important;
        text-align: center !important;
        gap: 40px !important;
    }
    .code-block { flex-direction: column-reverse !important; }
    .visual-gray, .code-window { width: 100% !important; }
    .big-letter { font-size: 100px !important; }

    /* 6. ПАРАЛЛАКС */
    .parallax-slide {
        height: auto !important;
        min-height: 60vh !important;
        position: relative !important;
        top: auto !important;
        padding: 60px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    .slide-content {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 40px !important;
    }
    .slide-info p { margin: 0 auto !important; }
    .abstract-shape { width: 300px !important; height: 300px !important; filter: blur(60px) !important; }
}

/* Совсем мелкие экраны */
@media (max-width: 480px) {
    .main-title { font-size: 32px !important; }
    .footer { padding: 40px 16px; }
    .footer-buttons { flex-direction: column; width: 100%; }
    .button { width: 100%; justify-content: center; }
}

/* Анимации появления */
.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); }


/* ДРУГИЕ ПРОЕКТЫ */
/* --- Контейнер и Сетка --- */
.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;
  }
  /* Можно добавить аккордеон на мобильных, но для простоты оставим как есть */
}


/* Стили только для контентной области, чтобы не влиять на остальной сайт */
    .article-light-content {
      background: #ffffff;
      border-radius: 32px;
      padding: 2rem;
      margin: 2rem auto;
      color: #1a1a1a;
      box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    }
    .article-light-content h2 {
      color: #000;
      font-weight: 700;
      margin-top: 1.8rem;
      margin-bottom: 1rem;
    }
    .article-light-content h3 {
      color: #2c3e5c;
      font-weight: 600;
    }
    .article-light-content p {
      color: #2d2d2f;
      line-height: 1.7;
      margin-bottom: 1.2rem;
    }
    .article-light-content ul, .article-light-content ol {
      color: #2d2d2f;
      margin-bottom: 1.2rem;
    }
    .article-light-content li {
      margin-bottom: 0.4rem;
    }
    .article-light-content strong {
      color: #000;
    }
    .article-light-content a {
      color: #0a84ff;
      text-decoration: underline;
    }
    .article-light-content .content-img {
      margin: 1.5rem 0;
    }
    .article-light-content .content-img img {
      border-radius: 24px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    .article-light-content .img-caption {
      color: #6c6c70;
      font-size: 0.85rem;
      text-align: center;
      margin-top: 8px;
    }
    .article-light-content .tip-box {
      background: #eef2fa;
      border-left: 4px solid #0a84ff;
      padding: 1rem 1.2rem;
      border-radius: 20px;
      margin: 1.5rem 0;
    }
    @media (max-width: 768px) {
      .article-light-content {
        width: 100vw;           /* занимает 100% ширины окна */
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);  /* компенсирует отступы родителя */
    border-radius: 0;       /* убираем скругления */
    padding: 1.2rem;
      }
    }

  /* ПОЛОСА ПРОГРЕССА ЧТЕНИЯ Индикатор прогресса */
  .scroll-progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #4a92f3, #0a84ff);
    z-index: 9999;
    transition: width 0.1s linear, opacity 0.2s ease;
    box-shadow: 0 -2px 8px rgba(74, 146, 243, 0.3);
    border-radius: 0 2px 0 0;
    pointer-events: none; /* чтобы не мешать кликам по ссылкам в футере */
  }