body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #22009f, #000000, #d10000);
    background-attachment: fixed;
}

/* Стили шапки перенесены в header.css */

.signup {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.signup:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-text {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    width: 100%;
    padding: 0 20px;
    font-family: 'Ebbe', sans-serif;
}

.hero-text h1 {
    font-size: 64px;
    font-weight: normal;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-button {
    background-color: rgba(16, 25, 203, 0.7);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-family: 'Teko', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-button:hover {
    background-color: rgba(16, 25, 203, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dropdown {
    position: relative;
    display: inline-block;
}

/* .dropdown:hover .dropdown-menu {
    display: block;
} */

.dropdown-menu a {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-family: 'Teko', sans-serif;
    font-size: 18px;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(16, 25, 203, 0.9);
    backdrop-filter: blur(5px);
    min-width: 180px;
    border-radius: 5px;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(251, 248, 248, 0.892);
    z-index: 1000;
}

/* .dropdown:hover .dropdown-content {
    display: block;
} */

.dropdown-content a {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-family: 'Teko', sans-serif;
    font-size: 18px;
    transition: background-color 0.3s;
}

/* .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1); */
/* } */

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 15px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(16, 25, 203, 0.9);
    backdrop-filter: blur(5px);
    min-width: 150px;
    border-radius: 5px;
    padding: 8px 0;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* .dropdown:hover .dropdown-content {
    display: block;
} */

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: 'Teko', sans-serif;
    font-size: 18px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link:focus,
.dropdown-content a:focus,
.signup:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(16, 25, 203, 0.9);
    backdrop-filter: blur(5px);
    min-width: 150px;
    border-radius: 5px;
    padding: 8px 0;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* .dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
} */

/* Стили logo-link перенесены в header.css */

.dropdown-content a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: rgba(16, 25, 203, 0.9);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    position: relative;
    color: white;
}

.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #999;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.modal-content input {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-content input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.modal-content button {
    padding: 10px;
    background: #ffffff;
    border: none;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-content button:hover {
    background: rgba(255, 255, 255, 0.8);
}

.scroll-section .hero-text {
    z-index: 2;
}

.hero-section .hero-text {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    width: 100%;
    padding: 0 20px;
    font-family: 'Ebbe', sans-serif;
}

.hero-section .hero-text h1 {
    font-family: 'Teko', sans-serif;
    font-size: 48px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.scroll-section .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    width: 100%;
    padding: 0 20px;
    font-family: 'Ebbe', sans-serif;
}

.scroll-section .hero-text h1 {
    font-family: 'Teko', sans-serif;
    font-size: 48px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    /* Фолбэк JPEG; в поддерживающих браузерах ниже подменится на WebP через image-set */
    background-color: #000000;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('/static/tournaments/images/riz.jpg');
    background-image: image-set(
        url("/static/tournaments/images/riz.webp") type("image/webp"),
        url("/static/tournaments/images/riz.jpg") type("image/jpeg")
    );
    margin-top: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Мобильные: уменьшенная копия (~35 KB WebP вместо полного кадра) */
@media (max-width: 768px) {
    .hero-section {
        background-image: url('/static/tournaments/images/riz.jpg');
        background-image: image-set(
            url("/static/tournaments/images/riz-m.webp") type("image/webp"),
            url("/static/tournaments/images/riz.jpg") type("image/jpeg")
        );
    }
}

.scroll-section {
    background: linear-gradient(135deg, #22009f, #000000, #d10000);
    min-height: auto;
    display: block;
    padding: 0;
    position: relative;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.hero-section,
.scroll-section {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.hero-section.hidden,
.scroll-section.hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* Общая секция с единым фоном */
.main-content-section {
    background: linear-gradient(135deg, #22009f, #000000, #d10000);
    padding: 40px 20px;
    min-height: 100vh;
}

/* Секция видов спорта */
.sports-section {
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.sports-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.sport-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    padding: 20px;
    width: calc(33.333% - 15px);
    min-width: 300px;
    min-height: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sport-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.sport-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.sport-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sport-overlay p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Секция чемпионов */
.champions-section {
    margin-bottom: 60px;
}

.champions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.champion-card-link {
    text-decoration: none;
    color: inherit;
}

.champion-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.champion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Секция новостей */
.news-section {
    margin-bottom: 40px;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.other-section {
    background: linear-gradient(135deg, #22009f, #000000, #d10000);
}

/* Современные секции */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Секция Чемпионы недели */
.champions-section {
    background: linear-gradient(135deg, #22009f, #000000, #d10000);
    padding: 120px 0 80px 0;
    position: relative;
}

/* Стили для новостей внутри champions-section */
.champions-section .news-container {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.champions-section::before {
    display: none;
}

.champions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.champions-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 25px !important;
}

.champion-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 50% !important; /* Круглая форма */
    overflow: hidden !important;
    border: none !important; /* Убираем границу */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    aspect-ratio: 1 / 1 !important; /* Гарантируем квадрат */
    padding: 0 !important;
    margin: 0 !important;
}

/* Убираем градиентный ободок */
.champion-card::before {
    display: none !important;
}

.champion-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.champion-card:hover::before {
    display: none !important;
}

.champion-image {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 1 / 1 !important; /* Гарантируем квадрат */
    overflow: hidden !important;
    border-radius: 50% !important; /* Круглая форма */
    padding: 0 !important;
    margin: 0 !important;
}

.champion-image img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 1 / 1 !important; /* Гарантируем квадрат */
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.4s ease !important;
    border-radius: 50% !important; /* Круглая форма */
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

.champion-card:hover .champion-image img {
    transform: scale(1.1) !important;
}

/* Специальные стили для SVG изображений */
.champion-image img[src*=".svg"] {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    padding: 20px !important;
}

.champion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(209, 0, 0, 0.2), rgba(34, 0, 159, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50% !important; /* Круглая форма */
}

.champion-card:hover .champion-overlay {
    opacity: 1;
}

.champion-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ff6b6b;
}

.champion-rank {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.champion-content {
    padding: 20px;
}

.champion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.champion-header h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
}

.champion-sport {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.champion-achievement {
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.champion-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Секция Новости */
/* News секция теперь внутри champions-section */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.news-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(78, 205, 196, 0.3);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.news-content p {
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-author {
    font-size: 0.85rem;
    color: #888888;
}

.read-more {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ffffff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .champions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 20px !important;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .champion-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .champion-stats {
        gap: 15px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}







