@font-face {
    font-family: 'Bebas Neue';
    src: url('../fonts/BebasNeue-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --primary-color: #030f1b;
    --header-bg: #030f1b;
    --secondary-color: #1a2533;
    --accent-color: #ffffff;
    --text-color: #ffffff;
    --text-muted: #8e99a3;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-accent: 'Bebas Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Nav */
header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0 10px 0;
    /* Adjusted for larger logo */
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: var(--font-accent);
    font-size: 80px;
    /* Even larger */
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.8;
    letter-spacing: 1px;
    /* Changed from negative to small positive */
    display: block;
    transform: scaleY(1.3);
    /* More vertical stretch */
    transform-origin: top;
    color: #fff;
}

.logo-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.region-select {
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-desktop {
    display: flex;
    gap: 40px;
    /* More space between items */
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
}

.nav-desktop .nav-link,
.sidebar .nav-link {
    font-family: var(--font-accent);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    /* Increased for better look */
    transform: scaleY(1.2);
    transform-origin: center;
}

.sidebar .nav-link {
    font-size: 24px;
    /* Slightly larger for sidebar */
}

.header-bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.icon {
    font-size: 18px;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: 0.3s;
}

/* Sidebar */
.sidebar {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    /* На всю ширину */
    height: 100%;
    background: var(--secondary-color);
    z-index: 1001;
    transition: 0.5s;
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* Убрал box-shadow так как на весь экран */
}

.sidebar.active {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    /* Одинаковые отступы */
    cursor: pointer;
    font-size: 30px;
    color: var(--text-color);
    line-height: 1;
    z-index: 1002;
    padding: 5px;
    /* Для удобства нажатия */
}

.sidebar-links {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    /* Равномерное распределение */
    padding-top: 50px;
    /* Отступ от крестика */
    align-items: flex-start;
    /* Выравнивание по левому краю */
    padding-left: 10px;
}

.sidebar-links .nav-item {
    width: 100%;
}

.sidebar-links .nav-link {
    font-size: 18px;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Sub-navigation (Pills) */
.sub-nav-container {
    max-width: 1400px;
    margin: 30px auto 40px;
    padding: 0 40px;
}

.sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sub-nav-link {
    padding: 10px 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    text-transform: none;
    /* As in screenshot "О лиге", "руководство" */
}

.sub-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.sub-nav-link.active {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

@media (max-width: 768px) {
    .sub-nav-container {
        padding: 0 20px;
        margin: 20px auto 30px;
    }

    .sub-nav {
        gap: 8px;
    }

    .sub-nav-link {
        padding: 8px 18px;
        font-size: 13px;
    }
}

.sidebar-auth-link {
    margin-top: 20px;
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

@media (max-width: 1024px) {
    .header-bottom {
        display: none;
    }

    .burger {
        display: flex;
    }

    .header-top {
        padding: 15px 0;
    }

    .logo {
        font-size: 18px;
    }

    .container {
        padding: 0 20px;
    }
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}