@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Montserrat:wght@200;400&display=swap');

/* НАСТРОЙКИ ДЛЯ БАЗОВЫХ ФУНКЦИЙ ФОНА */
:root {
    --bg-opacity: 0.05;        /* Прозрачность фона (от 0 до 1) */
    --bg-blur: 0px;           /* Размытие глубины (0px — идеально четкий) */
    --bg-scale: 1.04;         /* Масштаб под микро-параллакс (1.04 дает идеальный запас) */
    --bg-brightness: 100%;     /* Яркость изображения */
    --bg-contrast: 100%;      /* Контрастность изображения */
}

/* Обнуление и базовые настройки */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #050505;
    color: #dddddd;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    letter-spacing: 0.15em;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* СЛОЙ КАРТИНКИ ЗАДНЕГО ФОНА */
.main-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bg_negative_1920x1080.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0; /* Под всеми эффектами */
    pointer-events: none;

    /* Перенос опций из :root */
    opacity: var(--bg-opacity);
    filter: blur(var(--bg-blur)) brightness(var(--bg-brightness)) contrast(var(--bg-contrast));
    transform: scale(var(--bg-scale));
    
    will-change: transform;
    transition: opacity 0.5s ease, filter 0.5s ease;
}

/* Зернистый гранж-шум */
.grain {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: transparent 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.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.05"/%3E%3C/svg%3E') repeat;
    animation: noiseAnimation 0.15s infinite;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

@keyframes noiseAnimation {
    0% { transform: translate(0,0); }
    50% { transform: translate(-5%, 5%); }
    100% { transform: translate(1%, -1%); }
}

/* Глубокая виньетка в стиле темного барокко */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 15, 15, 0) 20%, rgba(3, 3, 3, 0.95) 90%);
    z-index: 2;
    pointer-events: none;
}

/* Интерактивный готический луч света */
.light-ray {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    width: 160vw;
    height: 30vh;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
    filter: blur(80px);
    z-index: 3;
    pointer-events: none;
    will-change: left, top;
}

/* Готические кутюрные углы */
.gothic-corner {
    position: fixed;
    width: 140px;
    height: 140px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
    z-index: 5;
    pointer-events: none;
    transition: stroke 0.5s ease;
}
.corner-tl { top: 30px; left: 30px; }
.corner-tr { top: 30px; right: 30px; transform: scaleX(-1); }
.corner-bl { bottom: 30px; left: 30px; transform: scaleY(-1); }
.corner-br { bottom: 30px; right: 30px; transform: scale(-1); }

/* Контейнер контента — СТРОГО СТАНДАРТНЫЙ И ОТЦЕНТРОВАННЫЙ */
.main-container {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 60px 40px;
    margin: auto;
}

/* Верхний саб-тайтл */
.meta-tag {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 200;
    color: #555555;
    letter-spacing: 0.4em;
    margin-bottom: 35px;
}

/* Контейнер металлического заголовка */
.chrome-title-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 10px auto;
    display: inline-block;
    user-select: none;
    cursor: crosshair;
    z-index: 15;
    filter: drop-shadow(0px 0px 30px rgba(255, 255, 255, 0.35));
}

/* Зона чувствительности мыши */
.chrome-title-container::before {
    content: '';
    position: absolute;
    top: -300px;
    left: -300px;
    right: -300px;
    bottom: -300px;
    z-index: 3;
    background: transparent;
}

.title-img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

/* Белая матовая основа */
.title-base {
    position: relative;
    z-index: 1;
    opacity: 0.85;
}

/* Верхний металлический слой с радиальной маской */
.title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    pointer-events: none;
    
    -webkit-mask-image: radial-gradient(
        circle var(--mask-radius, 0px) at var(--mask-x, 0px) var(--mask-y, 0px), 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 1) 70%, 
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: radial-gradient(
        circle var(--mask-radius, 0px) at var(--mask-x, 0px) var(--mask-y, 0px), 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.4) 70%, 
        rgba(0, 0, 0, 0) 100%
    );

    transition: -webkit-mask-image 0.25s ease, mask-image 0.25s ease;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Разделитель */
.divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    margin: 35px auto;
    position: relative;
}
.divider::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 5px;
    height: 5px;
    background-color: #ffffff;
    box-shadow: 0 0 8px #fff;
}

/* Статусный блок */
.status-box {
    margin-bottom: 15px;
}
.status-badge {
    font-size: 11px;
    font-weight: 400;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(5px);
}

/* Описание */
.manifesto {
    font-size: 12px;
    font-weight: 200;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    line-height: 2;
    max-width: 550px;
    margin: 25px auto 0 auto;
}

/* Навигация */
.navigation {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    z-index: 20;
}

.nav-link {
    color: #555555;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    position: relative;
    padding: 5px 0;
    transition: color 0.4s ease;
    z-index: 20;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
    z-index: 20;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after {
    width: 100%;
}

/* Адаптивность */
@media (max-width: 900px) {
    .gothic-corner {
        width: 90px;
        height: 90px;
    }
    .corner-tl { top: 15px; left: 15px; }
    .corner-tr { top: 15px; right: 15px; }
    .corner-bl { bottom: 15px; left: 15px; }
    .corner-br { bottom: 15px; right: 15px; }
}

@media (max-width: 600px) {
    .main-container {
        padding: 40px 15px;
    }
    .meta-tag {
        font-size: 9px;
        letter-spacing: 0.3em;
        margin-bottom: 25px;
    }
    .chrome-title-container::before {
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
    }
    .divider {
        margin: 25px auto;
    }
    .status-badge {
        font-size: 10px;
        letter-spacing: 0.35em;
        padding: 5px 14px;
    }
    .manifesto {
        font-size: 10px;
        letter-spacing: 0.18em;
        line-height: 1.8;
        max-width: 100%;
    }
    .navigation {
        margin-top: 45px;
        gap: 20px;
        flex-direction: column;
    }
    .nav-link {
        font-size: 10px;
        letter-spacing: 0.2em;
    }
}