*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
body {
    background-color: #121110;
    color: #f5f4f0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    cursor: none;
    transition: background-color 0.8s ease;
}
#webgl-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}
#physics-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99;
    pointer-events: none; /* Полностью прозрачен для мыши, не блокирует кнопки */
}
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.cursor-glow {
    position: fixed;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(197, 160, 128, 0.09) 0%, rgba(18, 17, 16, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
}
.custom-cursor {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: #c5a080;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}
.focus-hud-card {
    position: fixed;
    width: 280px;
    padding: 18px;
    background: rgba(18, 17, 16, 0.9);
    border: 1px solid rgba(197, 160, 128, 0.35);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(245, 244, 240, 0.85);
    font-family: 'Plus Jakarta Sans', sans-serif;
    transform: translate(-50%, -125%) scale(0.9);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.focus-hud-card.active {
    opacity: 1;
    transform: translate(-50%, -125%) scale(1);
}
.hud-scanner {
    width: 100%;
    height: 1px;
    background-color: #c5a080;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.7;
    animation: scan 2.5s linear infinite;
}
@keyframes scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #121110;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
}
.preloader-wrap {
    text-align: center;
    width: 200px;
}
.preloader-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 6px;
    display: block;
    margin-bottom: 15px;
    color: #c5a080;
}
.preloader-bar {
    width: 100%;
    height: 1px;
    background-color: rgba(245, 244, 240, 0.1);
    position: relative;
    overflow: hidden;
}
.preloader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #c5a080;
}
.preloader-percent {
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    display: block;
    margin-top: 10px;
    opacity: 0.5;
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 30px 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
.header-status {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(245, 244, 240, 0.4);
}
.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-link {
    color: #f5f4f0;
    text-decoration: none;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s, transform 0.3s;
}
.nav-link:hover {
    opacity: 1;
    color: #c5a080;
    transform: translateY(-1px);
}
.nav-btn {
    border: 1px solid rgba(245, 244, 240, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
}
.scroll-tracker {
    position: fixed;
    right: 4vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    z-index: 1000;
}
.tracker-line {
    width: 1px;
    height: 120px;
    background-color: rgba(245, 244, 240, 0.1);
    position: relative;
}
.tracker-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #c5a080;
}
.tracker-step {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1px;
    opacity: 0.2;
    transition: opacity 0.3s, color 0.3s;
}
.tracker-step.active {
    opacity: 1;
    color: #c5a080;
}
.scroll-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    z-index: 10;
}
.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8vw;
    opacity: 0;
    pointer-events: none;
    transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(25px);
}
.section.active {
    opacity: 1;
    pointer-events: auto;
    filter: blur(0px);
}
.section-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 20;
}
.section-label {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 4px;
    color: #c5a080;
    margin-bottom: 25px;
}

/* Скрываем только стартовые элементы Hero для анимации загрузки */
.word-left, .word-right, .hero-subtitle {
    opacity: 0;
}

.hero-content {
    max-width: 1100px;
    width: 100%;
    z-index: 2;
}
.hero-title {
    display: flex;
    flex-direction: column;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(38px, 11vw, 140px);
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 40px;
}
.word-left {
    align-self: flex-start;
}
.word-right {
    align-self: flex-end;
    color: #c5a080;
    margin-right: 4vw;
}
.hero-subtitle {
    font-size: clamp(14px, 1.4vw, 18px);
    max-width: 500px;
    line-height: 1.6;
    opacity: 0.5;
}
.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}
.manifesto-header {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 3.5vw, 48px);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.manifesto-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.manifesto-paragraph {
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.6;
    opacity: 0.5;
}
.focus-list {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}
.focus-item {
    border-top: 1px solid rgba(245, 244, 240, 0.1);
    padding: 35px 0;
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    transition: border-color 0.3s, background-color 0.3s;
    position: relative;
    cursor: none;
}
.focus-item:last-child {
    border-bottom: 1px solid rgba(245, 244, 240, 0.1);
}
.focus-num {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #c5a080;
}
.focus-name {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(20px, 3vw, 40px);
    letter-spacing: -1px;
    transition: color 0.3s, letter-spacing 0.3s;
}
.focus-desc {
    display: none;
}
.focus-item:hover {
    border-color: #c5a080;
    background-color: rgba(197, 160, 128, 0.02);
}
.focus-item:hover .focus-name {
    color: #c5a080;
    letter-spacing: 1px;
}
.play-instruction {
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.5;
    margin-bottom: 30px;
}

/* Полностью невидимая интерактивная область на Слайде 4 (без серых рамок и фонов) */
.interactive-area {
    width: 100%;
    height: 48vh;
    border: none;
    border-radius: 0;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    cursor: grab; /* Иконка открытой руки при наведении */
}
.interactive-area:active {
    cursor: grabbing; /* Иконка сжатого кулака при удержании */
}

.cta-wrap {
    text-align: center;
    margin: 0 auto;
    z-index: 20;
    position: relative;
}
.cta-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(50px, 9vw, 130px);
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -3px;
    margin-bottom: 50px;
    display: inline-block;
    position: relative;
}
.cta-text {
    display: inline-block;
}
.cta-question {
    display: inline-block;
    color: #c5a080;
    cursor: grab;
    user-select: none;
    position: relative;
    z-index: 999;
}
.cta-question:active {
    cursor: grabbing;
}
.portals-container {
    display: flex;
    justify-content: center;
    gap: 40px;
}
.portal-sphere {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #302e2b 0%, #171615 70%);
    border: 1px solid rgba(197, 160, 128, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #f5f4f0;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.8);
    transition: border-color 0.4s, box-shadow 0.4s;
    z-index: 1001;
    cursor: none;
}
.portal-sphere::after {
    content: attr(data-label);
    position: absolute;
    bottom: -30px;
    font-size: 8px;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    color: #c5a080;
    transform: translateY(5px);
}
.portal-sphere:hover {
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(197, 160, 128, 0.25), inset -5px -5px 15px rgba(0,0,0,0.8);
}
.portal-sphere:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Глобальный контейнер с перспективой для 3D-наклона плавающих ассетов */
.floating-assets-global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    perspective: 1000px;
}

.floating-asset {
    position: absolute;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
    opacity: 0;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.asset-1 {
    width: 32vw;
    max-width: 420px;
    top: 15%;
    left: -10vw;
}
.asset-2 {
    width: 35vw;
    max-width: 480px;
    bottom: -5%;
    right: -13vw;
}
.asset-3 {
    width: 30vw;
    max-width: 380px;
    top: -5%;
    right: -10vw;
}

@media (max-width: 768px) {
    body { cursor: default; }
    .custom-cursor, .cursor-glow, .focus-hud-card { display: none; }
    .scroll-tracker { display: none; }
    .site-header { padding: 20px 6vw; }
    .header-status { display: none; }
    .section { padding: 0 6vw; }
    .manifesto-grid { grid-template-columns: 1fr; gap: 20px; }
    .focus-item { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; cursor: default; }
    .focus-desc { display: block; font-size: 13px; opacity: 0.5; line-height: 1.5; }
    .asset-1 { left: -15vw; width: 45vw; }
    .asset-2 { right: -18vw; bottom: -5%; width: 50vw; }
    .asset-3 { right: -15vw; top: -5%; width: 40vw; }
}
/* Оптимизация шапки 3D-сайта под длинную кнопку "ГЛАВНАЯ СТРАНИЦА" */
@media (max-width: 768px) {
    /* Скрываем второстепенные ссылки в мобильном меню, чтобы всё поместилось */
    .header-nav .nav-link[href="#about"],
    .header-nav .nav-link[href="#focus"] {
        display: none !important;
    }
    
    .header-nav {
        gap: 15px !important; /* Уменьшаем зазоры */
    }
    
    .nav-link {
        font-size: 10px !important;
        letter-spacing: 1px !important;
    }
}

/* БЛОКИРОВКА СИСТЕМНОГО МЕНЮ ВЫДЕЛЕНИЯ ЯНДЕКСА/GOOGLE НА ИНТЕРАКТИВНОЙ ЗОНЕ */
.interactive-area, canvas {
    -webkit-touch-callout: none !important; /* iOS Safari */
    -webkit-user-select: none !important;   /* Safari */
    -khtml-user-select: none !important;    
    -moz-user-select: none !important;      /* Firefox */
    -ms-user-select: none !important;       
    user-select: none !important;           
    touch-action: none !important;          /* Запрещает браузеру перехватывать жесты скролла/выделения */
}