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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
}

.logo span {
    color: #e74c3c;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #e74c3c;
}

.header-link {
    background: #e74c3c;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
}

.header-link:hover {
    background: #c0392b;
    color: white !important;
}

/* Hero Section */
.hero {
    background: url('https://images.unsplash.com/photo-1589994965851-a8f479c573a9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn:hover {
    background: #c0392b;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.section {
    background: white;
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e74c3c;
}

.schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.day-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.day-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.rules-list {
    list-style-type: none;
}

.rules-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.rules-list li:before {
    content: "•";
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1.5rem 0;
}

/* Video Section */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card iframe {
    width: 100%;
    height: 200px;
    border: none;
}

.video-info {
    padding: 1rem;
}

.video-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.video-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Players Section */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.player-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.player-card:hover {
    transform: translateY(-3px);
}

.player-card.top-3 {
    border-left-color: #f39c12;
}

.player-card.top-1 {
    border-left-color: #e74c3c;
}

.player-card.top-2 {
    border-left-color: #95a5a6;
}

.player-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.player-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.player-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.stat {
    color: #666;
}

.stat strong {
    color: #2c3e50;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .number {
    font-size: 2.2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-card .label {
    font-size: 1em;
    color: #666;
    font-weight: 500;
}

/* Judges Section */
.judges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.judge-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #9b59b6;
    transition: transform 0.3s ease;
}

.judge-card:hover {
    transform: translateY(-3px);
}

.judge-card.top-1 {
    border-left-color: #e74c3c;
}

.judge-card.top-2 {
    border-left-color: #f39c12;
}

.judge-card.top-3 {
    border-left-color: #3498db;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #34495e;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.social-btn.youtube {
    background: #ff0000;
}

.social-btn.twitch {
    background: #6441a5;
}

.social-btn.vk {
    background: #4a76a8;
}

.social-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Registration Options */
.registration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.registration-option {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.registration-option h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.registration-option p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Модальное окно регистрации */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 2px solid #e74c3c;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8em;
}

.modal-body {
    padding: 30px;
}

.registration-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: #e74c3c;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.step-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.step-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.step-btn:hover {
    background: #2980b9;
    color: white;
}

.step-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.step-info strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 10px;
}

.step-info ul {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.step-info li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.registration-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.primary-btn {
    background: #e74c3c;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.primary-btn:hover {
    background: #c0392b;
    color: white;
}

.secondary-btn {
    background: #95a5a6;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.secondary-btn:hover {
    background: #7f8c8d;
}

.registration-contacts {
    text-align: center;
    padding: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.registration-contacts h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.registration-contacts p {
    color: #666;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #e74c3c;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
}

/* Состояния загрузки и ошибок */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: #ffeaa7;
    border-radius: 8px;
    border-left: 4px solid #fdcb6e;
}

/* Анимация загрузки */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .players-grid, .judges-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 200px;
        justify-content: center;
    }

    /* Адаптивность для модального окна */
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-number {
        align-self: center;
    }
    
    .registration-actions {
        flex-direction: column;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        justify-content: center;
    }

    .registration-options {
        grid-template-columns: 1fr;
    }
}
/* Players Section */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Judges Section */
.judges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Для десктопов показываем в 2 колонки */
@media (min-width: 1024px) {
    .players-grid,
    .judges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Для мобильных - 1 колонка */
@media (max-width: 1023px) {
    .players-grid,
    .judges-grid {
        grid-template-columns: 1fr;
    }
}
