/* 1. GLOBAL VARIABLES & BASE */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.12);
    --hover-bg: rgba(255, 255, 255, 0.15);
    --glow: rgba(255, 255, 255, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
}

/* 2. BACKGROUND SYSTEM */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background-color: #000;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) contrast(1.1) blur(2px);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -1;
}

/* 3. LAYOUT CONTAINERS */
.container,
.tos-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1;
    z-index: 2;
}

.container {
    justify-content: flex-start;
    align-items: center;
}

/* 4. MAIN PAGE COMPONENTS */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 12vh, 7rem);
    letter-spacing: 25px;
    margin: 8vh 0 0 0;
    text-transform: uppercase;
    text-align: center;
    padding-left: 25px;
    animation: fadeInUp 1s ease-out forwards;
}

.sub-nickname {
    font-size: 1.1rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #555;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.main-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    width: 100%;
    max-width: 900px;
}

/* 5. BUTTONS & SOCIAL GRID */
.nav-btn {
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    width: 290px;
    padding: 18px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: 0.4s;
    text-align: center;
    box-sizing: border-box;
}

.nav-btn:hover {
    background: white;
    color: black;
    box-shadow: 0 0 25px var(--glow);
    transform: translateY(-2px);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 900px;
    margin-bottom: 5vh;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.social-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-btn.large-btn {
    grid-column: span 2;
    padding: 40px 10px;
}

.social-btn i,
.social-btn svg {
    font-size: 1.8rem;
}

.social-btn span {
    font-size: 1.3rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.social-btn:hover {
    background: var(--hover-bg);
    transform: scale(1.03) translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 6. TOS SPECIFIC COMPONENTS */
.tos-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 35px 0 35px 0;
}

.header-spacer {
    width: 160px;
}

.back-btn-social {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 12px 55px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    backdrop-filter: blur(10px);
    transition: 0.4s;
    min-width: 160px;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.back-btn-social:hover {
    background: var(--hover-bg);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.tos-title {
    margin: 0 !important;
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    letter-spacing: 8px !important;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

/* Секции карточек - СДЕЛАЛ УЖЕ */
.tos-card-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 30px;

    /* Уменьшил паддинги */
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.tos-card-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    /* Сделал шрифт чуть меньше */
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Списки ToS */
.tos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tos-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

.tos-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--border-color);
}

/* Компактное предупреждение */
.tos-warning-compact {
    color: #fff !important;
    font-weight: 600;
    padding: 8px 15px !important;
    /* Уменьшил место */
    margin: 10px 0;
    border-left: 2px solid #fff;
    background: rgba(255, 255, 255, 0.05);
    display: block;
}

/* 7. FOOTER SYSTEM */
footer,
.tos-footer-final {
    text-align: center;
    padding: 40px 0;
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    z-index: 2;
}

.warning-18 {
    border-left: 2px solid #333;
    border-right: 2px solid #333;
    padding: 0 15px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #444;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.copyright {
    font-size: 0.75rem;
    color: #333;
    letter-spacing: 1px;
}

.accent-btn {
    margin: 0 auto 20px auto !important;
    background: #fff !important;
    color: #000 !important;
    width: 300px !important;
    /* Чуть уже кнопку */
}

/* 8. RESPONSIVE */
@media (max-width: 768px) {
    .tos-header-layout {
        flex-direction: column;
        gap: 20px;
    }

    .header-spacer {
        display: none;
    }

    .back-btn-social {
        width: 100%;
        order: 2;
    }

    .tos-title {
        order: 1;
    }

    h1 {
        font-size: 3rem;
        margin-top: 10vh;
    }

    .nav-btn {
        width: 100%;
        max-width: 400px;
    }
}

/* Блок запретов (No-Draw Zone) */
.warning-zone {
    list-style: none !important;
    /* Убираем маркер для этого особого пункта */
    padding-left: 0 !important;
    margin-top: 20px !important;
    background: rgba(255, 0, 0, 0.03);
    /* Тончайший красный оттенок для акцента */
    border: 1px dashed rgba(255, 255, 255, 0.15);
    padding: 20px !important;
    border-radius: 4px;
}

.warning-title {
    display: block;
    font-weight: 700;
    color: #ff4d4d;
    /* Неяркий красный, чтобы выделить заголовок */
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.warning-zone p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #bbb;
    font-style: italic;
    /* Делаем текст чуть более сдержанным */
}

/* Убираем тире перед этим конкретным пунктом */
.warning-zone::before {
    content: "" !important;
}