/* 1. ПЕРЕМЕННЫЕ И ШРИФТЫ */
@font-face {
    font-family: 'Stratum2';
    src: url('./fonts/Stratum2-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Stratum2';
    src: url('./fonts/Stratum2-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Stratum2';
    src: url('./fonts/Stratum2-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-purple: #8C4793;
    --white: #ffffff;
    --accent-yellow: #fdc500;
    --btn-cyan: #5FB9C0;
    --light-magenta: #DAB3D4;
    --font-main: 'Stratum2', sans-serif;
    --section-spacing: 80px;
    --container-width: 1224px;
    --gap: 24px;
}

/* 2. СБРОС И БАЗОВЫЕ СТИЛИ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-purple);
    font-family: var(--font-main);
    color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
    text-align: center;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. ШАПКА */
.header {
    padding: clamp(20px, 5vw, 40px) 0;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1012px; 
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.logo-main {
    /* логотип #ТриЧетыре */
    height: clamp(48px, 10vw, 100px); 
    width: auto;
    display: block;
    flex-shrink: 0;
}

.logo-power {
    /* Логотип Powernet */
    height: clamp(35px, 5vw, 72px); 
    width: auto;
    display: block;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
}

/* 4. ГЛАВНЫЙ БАННЕР (HERO) И ДЕКОР */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden; 
    padding-bottom: var(--section-spacing);
}

.diagonal-decor-wrapper {
    position: absolute;
    /* Центрируем враспор карточки */
    top: 0; 
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1740px; 
    height: clamp(400px, 75vh, 1200px); 
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.diagonal-decor {
    height: 100%; 
    width: auto;
    min-width: none;
    object-fit: contain;
    flex-shrink: 0;
}

.hero-card {
    position: relative;
    z-index: 1;
    background: var(--white);
    margin: 0 auto;
    width: clamp(280px, 55vh, 1012px); 
    aspect-ratio: 0.8 / 1; 
    padding: clamp(10px, 2.5vh, 30px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    color: var(--bg-purple);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* КОНТЕЙНЕР ДЛЯ СЛАЙДОВ */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    flex-shrink: 0;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* СЛАЙДЫ */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    display: block !important;
    transition: opacity 0.1s;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* ЛОГОТИП CS2 — ВСЕГДА ПОВЕРХ */
.hero-logo-overlay {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    right: clamp(20px, 5vw, 32px) !important;
    bottom: clamp(20px, 5vw, 32px) !important;
    width: clamp(140px, 38%, 392px) !important;
    height: auto !important;
}

/* АНИМАЦИЯ ГЛИЧА */
.glitch {
    animation: glitch-anim 0.4s linear;
    z-index: 3 !important;
}

@keyframes glitch-anim {
    0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: translate(0); }
    5% { clip-path: polygon(0 80%, 100% -20%, 100% -15%, 0 85%); transform: translate(-5px, 3px); }
    10% { clip-path: polygon(0 110%, 100% 10%, 100% 20%, 0 120%); transform: translate(-10px, 6px); }
    15% { clip-path: polygon(0 50%, 100% -50%, 100% -45%, 0 55%); transform: translate(5px, -3px); }
    20% { clip-path: polygon(0 90%, 100% -10%, 100% 0%, 0 100%); transform: translate(12px, -7px); }
    25% { clip-path: polygon(0 100%, 100% 0%, 100% 5%, 0 105%); transform: translate(-8px, 4px); }
    30% { clip-path: polygon(0 130%, 100% 30%, 100% 45%, 0 145%); transform: translate(-15px, 8px); }
    40% { clip-path: polygon(0 60%, 100% -40%, 100% 10%, 0 110%); transform: translate(18px, -4px); }
    50% { clip-path: polygon(0 120%, 100% 20%, 100% 35%, 0 135%); transform: translate(-12px, 7px); }
    60% { clip-path: polygon(0 95%, 100% -5%, 100% 10%, 0 110%); transform: translate(14px, -5px); }
    70% { clip-path: polygon(0 140%, 100% 40%, 100% 55%, 0 155%); transform: translate(-8px, 4px); }
    80% { clip-path: polygon(0 70%, 100% -30%, 100% -15%, 0 85%); transform: translate(10px, -6px); }
    85% { clip-path: polygon(0 100%, 100% 0%, 100% 4%, 0 104%); transform: translate(-4px, 2px); }
    90% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: translate(-4px, 2px); }
    100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: translate(0); }
}

/* ПРИЗОВОЙ ФОНД */
.prize-pool {
    margin-top: auto; 
    padding-bottom: 10px;
    width: 100%;
}

.prize-pool h1 {
    font-size: clamp(48px, 11vh, 200px); 
    line-height: 0.9;
    margin-top: clamp(12px, 5vh, 24px);
}

.prize-pool p {
    font-size: clamp(12px, 4vh, 48px);
}

/* 5. ИНФОРМАЦИОННЫЕ БЛОКИ */
.location-info h2 {
    font-size: clamp(32px, 4vw, 64px);
    text-transform: uppercase;
}

.location-info p {
    font-size: clamp(18px, 2vw, 32px);
}

.info-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--gap);
    margin: var(--section-spacing) auto;
    max-width: 1200px;
}

.info-item {
    flex: 1;
    min-width: 280px;
}

.info-item h3 {
    font-size: clamp(24px, 2.5vw, 40px);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.info-item p {
    font-size: clamp(16px, 1.5vw, 24px);
    line-height: 1.4;
}

.info-item span {
    display: block;
    font-size: 0.7em;
    margin-top: 10px;
    opacity: 0.8;
}

.info-link {
    color: inherit !important;
    text-decoration: underline;
}

.info-link:hover {
    text-decoration: none;
}

/* 6. КНОПКИ */
.actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 20px; 
    margin: var(--section-spacing) auto;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 80px;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 28px);
    transition: transform 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-outline {
    background: var(--white);
    color: var(--bg-purple);
}

.btn-fill {
    background: var(--btn-cyan);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.btn-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: flash-move 3s infinite;
}

@keyframes flash-move {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* 7. АРХИВ */
.section-title {
    font-size: clamp(32px, 4vw, 64px);
    color: var(--light-magenta);
    margin-bottom: 40px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    padding-bottom: 80px;
}

.archive-card {
    grid-column: span 4;
}

.archive-link {
    display: block;
    transition: transform 0.3s;
}

.archive-link:hover {
    transform: scale(1.02);
}

.archive-card img {
    width: 100%;
    display: block;
}

/* 8. АДАПТИВНОСТЬ */
@media (max-width: 992px) {
    .info-grid {
        justify-content: center;
    }
    .info-item, .archive-card {
        grid-column: span 12;
        flex: none;
        width: 100%;
    }
    .actions {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        max-width: 100%;
    }
}
@media (min-width: 768px) {
    .actions {
        flex-direction: row;
        justify-content: space-between;
        gap: 24px;
        padding: 0;
    }

    .btn {
        flex: 1; 
        max-width: none;
    }
}
/* АДАПТИВ ДЛЯ МОБИЛОК */
@media (max-width: 480px) {
    .hero-card {
        width: calc(100% - 40px); 
        max-width: 360px;
        aspect-ratio: auto; 
        padding: 20px 15px;
    }

    .prize-pool h1 {
        font-size: clamp(54px, 18vw, 85px);
        margin-top: 10px;
        letter-spacing: -2px;
    }

    .prize-pool p {
        font-size: clamp(16px, 10vw, 24px); 
        line-height: 1.1;
        text-transform: uppercase;
        max-width: 90%;
        margin: 5px auto 0;
}
}