:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #1d3557;
    --secondary-light: #457b9d;
    --accent: #e9d8a6;
    --light: #f8f9fa;
    --dark: #212529;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --shadow-3d: 0 20px 60px rgba(0,0,0,0.3);
    --shadow-card: 0 10px 40px rgba(0,0,0,0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* БЕГУЩАЯ СТРОКА 3D */
.news-ticker {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 45px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1001;
}

.ticker-label {
    background: var(--primary);
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 4px 0 10px rgba(0,0,0,0.2);
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
    padding-left: 100%;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 50px;
    font-size: 0.95rem;
    font-weight: 500;
}

.ticker-sep {
    margin-left: 20px;
    opacity: 0.7;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* HEADER 3D */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-3d);
    position: sticky;
    top: 0;
    z-index: 1000;
    transform-style: preserve-3d;
    transition: var(--transition);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateZ(20px);
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: var(--transition);
}

.logo:hover img {
    transform: rotateY(360deg) scale(1.1);
}

.logo span {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ПЕРЕКЛЮЧАТЕЛЬ ХК/МХК 3D */
.league-switcher-3d {
    display: flex;
    gap: 12px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    padding: 6px;
    border-radius: 16px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}

.league-btn-3d {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.league-btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.league-btn-3d:hover::before,
.league-btn-3d.active::before {
    opacity: 1;
}

.league-btn-3d:hover,
.league-btn-3d.active {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

.league-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* NAVIGATION 3D */
.main-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    border-radius: 10px;
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

/* BUTTONS 3D */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-3d {
    transform-style: preserve-3d;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(29, 53, 87, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-4px);
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* HEADER BOTTOM */
.header-bottom {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.bottom-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.bottom-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 8px;
}

.bottom-link:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    transform: translateY(-2px);
}

/* HERO SECTION 3D */
.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    transform: translateZ(50px);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) translateZ(100px);
    opacity: 0.1;
}

.hero-image img {
    width: 400px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MAIN CONTENT */
.main-content {
    padding: 60px 0;
    min-height: calc(100vh - 400px);
}

.main-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

/* CARDS 3D */
.mini-standings, .top-players, .calendar-section, .news-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-card);
    margin-bottom: 25px;
    transform-style: preserve-3d;
    transition: var(--transition);
}

.mini-standings:hover, .top-players:hover {
    transform: translateY(-5px) translateZ(20px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.standings-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
    transition: var(--transition);
}

.standings-row:hover {
    background: linear-gradient(90deg, rgba(230, 57, 70, 0.1), transparent);
    padding-left: 10px;
    border-radius: 8px;
}

.standings-row.highlight {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(230, 57, 70, 0.05));
    padding: 12px 15px;
    border-radius: 12px;
    font-weight: 700;
    margin: 5px -10px;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

/* CALENDAR 3D WITH LOGOS */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 25px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    color: var(--secondary);
    padding: 12px 5px;
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(29, 53, 87, 0.2);
}

.calendar-day {
    min-height: 130px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 8px;
    background: white;
    transition: var(--transition);
    position: relative;
}

.calendar-day:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.2);
    transform: translateY(-3px);
}

.calendar-day-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.match-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin: 6px 0;
    background: linear-gradient(135deg, #f8f9fa, white);
    border-radius: 10px;
    font-size: 0.8rem;
    border: 2px solid #e9ecef;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.match-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.match-item.vhl::before {
    background: linear-gradient(180deg, #e63946, #c1121f);
}

.match-item.nmhl::before {
    background: linear-gradient(180deg, #457b9d, #1d3557);
}

.match-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.match-info {
    flex: 1;
    min-width: 0;
}

.match-opponent {
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-time {
    font-size: 0.7rem;
    color: #666;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-time::before {
    content: '⏰';
    font-size: 0.8rem;
}

.match-league-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
    margin-left: auto;
}

.match-league-badge.vhl {
    background: linear-gradient(135deg, #e63946, #c1121f);
    color: white;
}

.match-league-badge.nmhl {
    background: linear-gradient(135deg, #457b9d, #1d3557);
    color: white;
}

/* NEWS CARDS 3D */
.news-container {
    display: grid;
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.news-card:hover {
    transform: translateY(-8px) translateZ(30px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

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

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

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

.news-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-excerpt {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* FOOTER 3D */
.site-footer {
    background: linear-gradient(135deg, var(--secondary) 0%, #0d1b2a 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary-light), var(--accent));
}

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

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* MOBILE MENU */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
    transition: var(--transition);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: relative;
        top: 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .header-bottom {
        display: none;
    }
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        font-size: 0.75rem;
    }
    .calendar-day {
        min-height: 90px;
        padding: 5px;
    }
    .match-item {
        font-size: 0.7rem;
        padding: 5px;
    }
    .team-logo {
        width: 18px;
        height: 18px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   МОБИЛЬНАЯ ВЕРСИЯ (ИСПРАВЛЕННАЯ)
   ═══════════════════════════════════════════════════════════════════════ */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85%;
    height: 100vh;
    background: linear-gradient(180deg, white 0%, #f8f9fa 100%);
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.mobile-menu-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.mobile-league-switcher {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.mobile-league-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: #666;
    background: white;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.mobile-league-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.mobile-nav {
    padding: 10px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(230, 57, 70, 0.08);
    color: var(--primary);
    padding-left: 25px;
}

.mobile-nav-divider {
    height: 1px;
    background: #e9ecef;
    margin: 15px 0;
}

/* Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .header-actions .btn-sm {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo-text {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 10px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .league-switcher {
        display: none;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        font-size: 0.75rem;
    }
    
    .calendar-day {
        min-height: 70px;
        padding: 4px;
    }
    
    .match-item {
        font-size: 0.7rem;
        padding: 4px;
    }
    
    .team-logo {
        width: 16px;
        height: 16px;
    }
    
    .news-ticker {
        height: 35px;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.8rem;
    }
    
    .ticker-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 60px;
    }
    
    .match-opponent {
        font-size: 0.65rem;
    }
    
    .news-image-wrapper {
        height: 150px;
    }
}

/* Логотипы лиг в шапке */
.league-logo-btn {
    background: white !important;
    border: 1px solid #e9ecef;
    padding: 5px 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.league-logo-btn:hover {
    transform: scale(1.1);
}

.league-logo-btn img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

/* MAX ссылка в футере */
.social-link.max {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.social-link.max:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
/* Стили для логотипов соцсетей */
.social-link img {
    height: 24px;
    width: auto;
    vertical-align: middle;
}

.social-link.max {
    background: none !important; /* Убираем фон кнопки */
    padding: 0 !important;
    border: none !important;
}

.social-link.max img {
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.social-link.vk {
    background: none !important;
    padding: 0 !important;
}

.social-link.vk img {
    height: 28px;
}

/* Мобильное меню */
.mobile-social-logo img {
    height: 24px;
    width: auto;
    margin-right: 10px;
}
.team-logo, .team-logo-large {
    background: white;
    border-radius: 50%;
    padding: 2px;
}
.team-logo[src=""], .team-logo-large[src=""],
.team-logo:not([src]), .team-logo-large:not([src]) {
    display: none;
}

/* Фолбэк для логотипов */
.team-logo, .team-logo-large {
    background: white;
    border-radius: 50%;
    padding: 2px;
    object-fit: contain;
}
.team-logo[src=""], .team-logo-large[src=""],
.team-logo:not([src]), .team-logo-large:not([src]) {
    display: none;
}
.team-logo.error, .team-logo-large.error {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   3D АНИМАЦИЯ ЛОГОТИПА ХК ТАМБОВ
   ═══════════════════════════════════════════════════════════════════════ */

/* Логотип в шапке с 3D анимацией */
.logo img.logo-3d {
    height: 60px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    animation: logo3dRotate 8s ease-in-out infinite;
    transition: all 0.3s;
}

.logo img.logo-3d:hover {
    animation-play-state: paused;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.6);
}

@keyframes logo3dRotate {
    0%, 100% {
        transform: perspective(500px) rotateY(0deg);
    }
    25% {
        transform: perspective(500px) rotateY(15deg);
    }
    75% {
        transform: perspective(500px) rotateY(-15deg);
    }
}

/* Мобильный логотип */
.mobile-menu-logo img.mobile-logo-3d {
    height: 80px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    animation: logo3dRotate 8s ease-in-out infinite;
}

/* Логотипы лиг */
.league-logo {
    height: 24px;
    width: auto;
    vertical-align: middle;
    margin-right: 5px;
}

.action-logo {
    height: 20px;
    width: auto;
}

.mobile-league-logo {
    height: 28px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

/* Иконки соцсетей */
.social-icon {
    height: 24px;
    width: 24px;
    border-radius: 4px;
    margin-right: 10px;
    object-fit: cover;
}

.footer-logo {
    height: 80px;
    width: auto;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.social-link img {
    width: 24px;
    height: 24px;
    object-fit: cover;
}

/* League switcher без кавычек */
.league-btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

.league-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Mobile league switcher */
.mobile-league-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-league-btn span {
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════
   ЛОГОТИПЫ - ПРАВИЛЬНОЕ МАСШТАБИРОВАНИЕ
   ═══════════════════════════════════════════════════════════════════════ */

/* Логотип в шапке */
.logo img.logo-3d {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    animation: logo3dRotate 8s ease-in-out infinite;
    transition: all 0.3s;
}

.logo img.logo-3d:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

@keyframes logo3dRotate {
    0%, 100% { transform: perspective(500px) rotateY(0deg); }
    25% { transform: perspective(500px) rotateY(10deg); }
    75% { transform: perspective(500px) rotateY(-10deg); }
}

/* Мобильный логотип */
.mobile-menu-logo img.mobile-logo-3d {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    animation: logo3dRotate 8s ease-in-out infinite;
}

/* Логотипы лиг */
.league-logo {
    height: 20px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 5px;
}

.action-logo {
    height: 18px;
    width: auto;
    max-width: 50px;
    object-fit: contain;
}

.mobile-league-logo {
    height: 24px;
    width: auto;
    max-width: 70px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

/* Иконки соцсетей */
.social-icon {
    height: 24px;
    width: 24px;
    border-radius: 4px;
    margin-right: 10px;
    object-fit: cover;
}

.footer-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}

.social-link img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    padding: 2px;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .logo img.logo-3d {
        height: 45px;
        max-width: 120px;
    }
    
    .league-logo {
        height: 18px;
        max-width: 50px;
    }
    
    .footer-logo {
        height: 70px;
        max-width: 180px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .logo img.logo-3d {
        height: 40px;
        max-width: 100px;
    }
    
    .league-logo {
        height: 16px;
        max-width: 45px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   3D АНИМАЦИЯ ЭМБЛЕМЫ ХК ТАМБОВ
   ═══════════════════════════════════════════════════════════════════════ */

.logo img.logo-3d {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
    animation: logo3dFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.logo img.logo-3d:hover {
    animation-play-state: paused;
    transform: scale(1.15) rotateY(360deg);
    box-shadow: 0 12px 35px rgba(230, 57, 70, 0.6);
}

@keyframes logo3dFloat {
    0%, 100% {
        transform: perspective(500px) rotateY(0deg) translateY(0px);
    }
    25% {
        transform: perspective(500px) rotateY(15deg) translateY(-3px);
    }
    50% {
        transform: perspective(500px) rotateY(0deg) translateY(-5px);
    }
    75% {
        transform: perspective(500px) rotateY(-15deg) translateY(-3px);
    }
}

/* Мобильный логотип с 3D */
.mobile-menu-logo img.mobile-logo-3d {
    height: 100px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
    animation: logo3dFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* Эффект свечения для логотипа */
.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .logo img.logo-3d {
        height: 50px;
        max-width: 120px;
    }
    
    .mobile-menu-logo img.mobile-logo-3d {
        height: 80px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .logo img.logo-3d {
        height: 45px;
        max-width: 100px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   БЕГУЩАЯ СТРОКА НОВОСТЕЙ (Desktop only)
   ═══════════════════════════════════════════════════════════════════════ */

.news-ticker-wrapper {
    display: none;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    height: 40px;
    overflow: hidden;
    position: relative;
}

.news-ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-weight: 700;
    z-index: 10;
    font-size: 0.9rem;
}

.news-ticker {
    margin-left: 140px;
    overflow: hidden;
    height: 100%;
}

.news-ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 100%;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 40px;
    font-size: 0.95rem;
}

.ticker-sep {
    margin-right: 40px;
    opacity: 0.6;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Desktop only class */
.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Логотип ХК Тамбов - 3D анимация */
.logo-3d {
    height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    animation: logo3dFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: all 0.4s;
}

.logo-3d:hover {
    animation-play-state: paused;
    transform: scale(1.1) rotateY(360deg);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
}

@keyframes logo3dFloat {
    0%, 100% { transform: perspective(500px) rotateY(0deg) translateY(0px); }
    25% { transform: perspective(500px) rotateY(15deg) translateY(-3px); }
    50% { transform: perspective(500px) rotateY(0deg) translateY(-5px); }
    75% { transform: perspective(500px) rotateY(-15deg) translateY(-3px); }
}

/* Логотип в футере */
.footer-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .logo-3d {
        height: 50px;
    }
    
    .footer-logo {
        height: 70px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .logo-3d {
        height: 45px;
    }
    
    .footer-logo {
        height: 60px;
        max-width: 150px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   БЕГУЩАЯ СТРОКА НОВОСТЕЙ (Desktop only)
   ═══════════════════════════════════════════════════════════════════════ */

.news-ticker-wrapper {
    display: none;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    height: 45px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.news-ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    padding: 0 25px;
    display: flex;
    align-items: center;
    font-weight: 700;
    z-index: 10;
    font-size: 0.95rem;
    box-shadow: 4px 0 10px rgba(0,0,0,0.2);
}

.news-ticker {
    margin-left: 140px;
    overflow: hidden;
    height: 100%;
}

.news-ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
    padding-left: 100%;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 50px;
    font-size: 0.95rem;
    font-weight: 500;
}

.ticker-sep {
    margin-right: 50px;
    opacity: 0.7;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Desktop only */
.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   БЕГУЩАЯ СТРОКА НОВОСТЕЙ
   ═══════════════════════════════════════════════════════════════════════ */

.news-ticker-wrapper {
    background: linear-gradient(90deg, #1d3557 0%, #e63946 100%);
    color: white;
    height: 45px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.news-ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    padding: 0 25px;
    display: flex;
    align-items: center;
    font-weight: 700;
    z-index: 10;
    font-size: 0.95rem;
}

.news-ticker {
    margin-left: 140px;
    overflow: hidden;
    height: 100%;
}

.news-ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
    padding-left: 100%;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 50px;
    font-size: 0.95rem;
    font-weight: 500;
}

.ticker-sep {
    margin-right: 50px;
    opacity: 0.7;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ═══════════════════════════════════════════════════════════════════════
   ПЕРЕКЛЮЧАТЕЛЬ ВХЛ/НМХЛ В ТОП МЕНЮ
   ═══════════════════════════════════════════════════════════════════════ */

.league-switcher-top {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.league-btn-top {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.league-btn-top:hover {
    background: #e9ecef;
}

.league-btn-top.active {
    background: linear-gradient(135deg, var(--primary), #c1121f);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.league-logo-small {
    height: 20px;
    width: auto;
}

.action-logo {
    height: 20px;
    width: auto;
}

/* Mobile league switcher */
.mobile-league-switcher {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.mobile-league-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    color: #666;
    background: white;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.mobile-league-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.mobile-league-logo {
    height: 24px;
    width: auto;
}

/* Mobile adaptations */
@media (max-width: 968px) {
    .news-ticker-wrapper {
        display: none;
    }
    
    .league-switcher-top {
        margin-right: 10px;
    }
    
    .league-btn-top {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .league-logo-small {
        height: 18px;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
}

@media (max-width: 768px) {
    .league-switcher-top {
        display: none;
    }
}
