:root {
    --background-color: #1b1f23;
    --text-color: #d1d5db;
    --header-footer-bg: #23272e;
    --navbar-bg: #2c2f36;
    --card-bg: #2d3844;
    --bg-gray: #2a2e37;
    --button-bg: #4aa3f0;
    --button-hover-bg: #3983c9;
    --link-color: #4aa3f0;
    --link-hover-color: #85bbee;
    --hero-bg-dark: linear-gradient(to right, #1a1c21, #2b2d33);
    --hero-bg-light: linear-gradient(to right, #f5f5f5, #e0e0e0);

    --scrollbar-bg: #1b1e24;
    /* Цвет фона скроллбара */
    --scrollbar-thumb: #2b6ea4;
    /* Цвет ползунка */
    --scrollbar-thumb-hover: #3983c9;
    /* Цвет ползунка при наведении */
    --light-color: rgba(111, 191, 245, 0.116);
        /* Цвет огоньков */
        --light-box-shadow: rgba(43, 110, 164, 0.103);
        /* Тень огоньков */
    }
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}
body.light-theme {
    --background-color: #f5f5f5;
    --text-color: #141414;
    --header-footer-bg: #f0f0f0;
    --navbar-bg: #e0e0e0;
    --card-bg: #f8f8f8b6;
    --bg-gray: #2a2e37b8;
    --button-bg: #4aa3f0;
    --button-hover-bg: #3a7fbf;
    --link-color: #0073e6;
    --link-hover-color: #005bb5;
}
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme p {
    text-shadow: none;
}
body.light-theme .cta-button {
    background-color: #0073e6;
    /* Синий цвет кнопки для выделения */
    color: #ffffff;
}

body.light-theme a {
    color: #0056b3;
    /* Более темный синий для ссылок */
}
body.light-theme h2,
body.light-theme h3 {
    color: #444444;
    /* Светло-серый цвет для заголовков */
}
/* General Styles */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
        /* Для того чтобы огоньки были внутри body */
}
h1 {
    color: #ffffff;
}
header,
.footer {
    background-color: var(--header-footer-bg);
    color: var(--text-color);
}

.navbar {
    background-color: var(--navbar-bg);
}

.news-card,
.team,
.tournament-list li {
    background-color: var(--card-bg);
}

.cta-button {
    background-color: var(--button-bg);
    color: var(--text-color);
}

.cta-button:hover {
    background-color: var(--button-hover-bg);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-shadow: 0px 0px 8px rgba(72, 89, 240, 0.116);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
h1,
h2,
h3,
p {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
    /* Легкая тень для улучшения читаемости */
}

.nav-menu a {
    color: #d1d5db;
    /* Светло-серый текст навигации */
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #4aa3f0;
    /* Синий оттенок для акцента при наведении */
}
/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
        /* Светло-серый текст */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}


/* Loader Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121316;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #2b6ea4;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Navbar Styles */
.navbar {
    position: sticky;
    top: 0;
    background-color: #2d3844;
    z-index: 1000;
    box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    background-size: 100%;
    height: 60px;
    width: 173px;
    background-image: url(/images/logo.png);
    transition: transform 0.3s ease;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #e8732e;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px;
}

@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1a1c21;
        position: absolute;
        top: 100%;
        left: 0;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    /* Задайте высоту в зависимости от вашего дизайна */
    background: linear-gradient(to right, #1a1c21e0, rgb(15 15 15 / 92%));
    padding: 100px 0;
    text-align: center;
}
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 20%;
}
.hero h1 {
    font-size: 2.5em;
}

.hero p {
    margin: 20px 0;
}

/* Кнопки и ссылки */
.cta-button {
    background-color: var(--button-bg);
    color: var(--text-color);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    font-weight: bold;
    margin-top: 30px;
}
.cta-button:hover {
    background-color: var(--button-hover-bg);
        /* Немного более темный синий при наведении */
        box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
        transform: translateY(-5px);
}

.social-link {
    color: #ffffff;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #e8732e;
}

/* News Cards */
.teams {
    margin-top: 50px;
}
.news-card,
.team,
.tournament-list li {
    /* Темный оттенок для карточек */
    border: 1px solid #3d414b;
    /* Обводка для выделения */
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover,
.team:hover,
.tournament-list li:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3);
}

.news-card h3 {
    color: #2b6ea4;
    margin-bottom: 10px;
}
/* Gallery Section */
/* Основные стили для галереи */
.gallery {
    margin-top: 50px;
}

.image-slider {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    height: 300px;
}

.slides-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 300px;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Кнопки для управления слайдером */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}
/* Team List */
.team-list {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-content: space-around;
}

/* Footer Styles */
footer {
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.social-links li {
    margin: 0 10px;
}

.social-links a {
    color: #ffffff;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #e8732e;
}

/* Footer Styles */
footer {
    background-color: #2d3844;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

/* Адаптивный дизайн для мобильных устройств */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: center;
        flex-direction: row;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1a1c21;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 50px 20px;
    }

    .news-cards {
        grid-template-columns: 1fr;
    }

    .team-list {
        grid-template-columns: 1fr;
    }
   .team {
       width: calc(50% - 20px);
         /* Две карточки в ряд на планшетах */
    }
}
@media (max-width: 480px) {
    .team {
        width: 100%;
        /* Одна карточка в ряд на мобильных устройствах */
    }
}


/* Стили для рейтингов и матчей */
.ranking,
.matches {
    background-color: #1f2229;
    /* Фон для секций рейтинга и матчей */
    border-radius: 8px;
    padding: 15px;
    color: #d1d5db;
}

.ranking .team {
    color: #ffffff;
}

.matches .match {
    color: #d1d5db;
}

.matches .match .team {
    color: #4aa3f0;
    /* Цвет команды */
}
.team {
    background-color: var(--card-bg);
    /* Темный оттенок для фона карточек */
    border-radius: 8px;
    padding: 20px;
    width: calc(33.333% - 20px);
    /* Адаптивная ширина для карточек */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.team img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}
.team:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
}
.team h3 {
    color: var(--text-color);
    margin: 10px 0 5px;
}
.team p {
    color: var(--text-color);
    margin-bottom: 10px;
}
.team-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.team-stat {
    font-weight: bold;
    color: #4aa3f0;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

.nav-toggle span {
    display: block;
    background-color: #ffffff;
    height: 3px;
    width: 25px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #4aa3f0;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: background-color 0.3s ease;
}

#back-to-top:hover {
    background-color: #3983c9;
}
/* Контейнеры для формы */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    color: var(--text-color);
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 10px;
    border: 1px solid #3d414b;
    border-radius: 5px;
    background-color: #1b1e24;
    color: #d1d5db;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #4aa3f0;
    /* Синий цвет выделения */
    outline: none;
}

/* Стили для кнопки отправки */
.cta-button {
    background-color: var(--button-bg);
    color: var(--text-color);
    padding: 12px 24px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button1 {
    background-color: var(--button-bg);
    color: var(--text-color);
    padding: 12px 24px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 30px;
}

.cta-button:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-3px);
}

/* Адаптивные стили для контактной формы */
@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
    }
}
/* Общие стили для ссылок */

a:hover {
    transform: scale(1.05);
    /* Немного увеличиваем размер при наведении */
}

/* Стили для ссылок в списке турниров */
.tournament-list li {
    margin-bottom: 15px;
    /* Пробел между элементами списка */
    list-style-type: none;
    /* Убираем стандартные маркеры (точки) */
    padding-left: 0;
    /* Убираем отступы слева */
}
.tournament-list li a {
    display: inline-block;
    padding: 10px 15px;
    /* Внутренние отступы для лучшего визуального восприятия */
    border-radius: 5px;
    /* Скругленные углы для ссылок */
    background-color: #2d3844;
    /* Темный фон */
    color: #ffffff;
    /* Белый цвет текста */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tournament-list li a:hover {
    background-color: #4aa3f0;
    /* Меняем фон при наведении */
    color: #ffffff;
    /* Цвет текста при наведении */
    transform: translateY(-3px);
    /* Плавный подъем при наведении */
    text-decoration: underline;
    /* Добавляем подчеркивание при наведении */
}

body {
    font-family: 'Roboto', sans-serif;
    /* Основной шрифт для текста */
}
/* Стили для заголовков */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}
a {
    font-family: 'Montserrat', sans-serif;
}
.testimonial-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
}

.testimonial {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    color: #b2b4bb;
    min-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.video-container {
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4aa3f0;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    padding: 15px;
    cursor: pointer;
    display: none;
    /* Скрыта по умолчанию */
    z-index: 1000;
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: #3983c9;
}

/* Стили для кнопки переключения темы */
.theme-toggle {
    background-color: var(--button-bg);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 10px;
}

.theme-toggle:hover {
    background-color: var(--button-hover-bg);
    color: var(--text-color);
}
/* Стили для огоньков */
.light {
    position: absolute;
    width: 0px;
    opacity: 0.75;
    background-color: var(--light-color);
    box-shadow: 0px 0px 20px 2px var(--light-box-shadow);
    opacity: 0;
    top: 100vh;
    left: 0px;
    right: 0px;
    bottom: 0px;
    margin: auto;
    z-index: 1;
        /* Огоньки находятся позади основного контента */
}
.main-content {
    position: relative;
    z-index: 2;
    /* Основной контент находится поверх огоньков */
}
.x1 {
    animation: floatUp 4s infinite linear;
    transform: scale(1.0);
}

.x2 {
    animation: floatUp 7s infinite linear;
    transform: scale(1.6);
    left: 15%;
}

.x3 {
    animation: floatUp 2.5s infinite linear;
    transform: scale(0.5);
    left: -15%;
}

.x4 {
    animation: floatUp 4.5s infinite linear;
    transform: scale(1.2);
    left: -34%;
}

.x5 {
    animation: floatUp 8s infinite linear;
    transform: scale(2.2);
    left: -57%;
}

.x6 {
    animation: floatUp 3s infinite linear;
    transform: scale(0.8);
    left: -81%;
}

.x7 {
    animation: floatUp 5.3s infinite linear;
    transform: scale(3.2);
    left: 37%;
}

.x8 {
    animation: floatUp 4.7s infinite linear;
    transform: scale(1.7);
    left: 62%;
}

.x9 {
    animation: floatUp 4.1s infinite linear;
    transform: scale(0.9);
    left: 85%;
}

/* Анимации для огоньков */
@keyframes floatUp {
    0% {
        top: 100vh;
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    50% {
        top: 0vh;
        opacity: 0.8;
    }

    75% {
        opacity: 1;
    }

    100% {
        top: -100vh;
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
.breadcrumb {
    display: flex;
    list-style: none;
    padding: 10px 0;
    background: transparent;
}

.breadcrumb-item a {
    color: var(--link-color);
    text-decoration: none;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    padding: 0 8px;
    color: var(--text-color);
}