/* ===== CSS VARIABLES ===== */
:root {
    --color-primary: #FACC15;      /* Жёлтый */
    --color-secondary: #000000;     /* Чёрный */
    --color-white: #FFFFFF;
    --color-gray: #6B7280;
    --color-light: #F3F4F6;
    --color-red: #DC2626;          /* Для статистики */
    
    --font-main: 'Inter', sans-serif;
    --font-display: 'Bebas Neue', sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-white);
    color: var(--color-secondary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.btn-primary:hover {
    background-color: #EAB308;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(250, 204, 21, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 2px;
}

.highlight {
    color: var(--color-primary);
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: var(--color-secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-secondary);
    min-width: 200px;
    padding: 10px 0;
    border-radius: 8px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    border: 1px solid var(--color-primary);
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
}

.dropdown-menu a:hover {
    background-color: rgba(250, 204, 21, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('basketball pattern.png');
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 200px;
    margin: 0 auto 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(250, 204, 21, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}

.hero-year {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-primary);
    letter-spacing: 3px;
}

/* Next Match Card */
.next-match {
    margin-top: 3rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-primary);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.next-match-label {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.vs {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 2rem;
}

.match-info {
    margin-top: 1rem;
    color: var(--color-gray);
    font-size: 0.9rem;
}

/* ===== MATCHES SECTION ===== */
.matches-section {
    padding: 4rem 0;
    background-color: var(--color-light);
}

.matches-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
}

.matches-carousel::-webkit-scrollbar {
    height: 8px;
}

.matches-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.matches-carousel::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 4px;
}

.match-card {
    flex: 0 0 300px;
    background: var(--color-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--color-gray);
}

.match-league {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 900;
    margin: 1.5rem 0;
}

.team-home, .team-away {
    text-align: center;
}

.team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 0.5rem;
}

.team-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.score-divider {
    color: var(--color-gray);
    font-weight: 400;
}

.match-footer {
    text-align: center;
    color: var(--color-gray);
    font-size: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-light);
}

/* ===== MINI STATS ===== */
.mini-stats {
    padding: 4rem 0;
    text-align: center;
}

.stats-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.leader-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.leader-card::before {
    content: attr(data-rank);
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-secondary);
}

.leader-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--color-primary);
}

.leader-name {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.leader-team {
    color: var(--color-gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.leader-stat {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-red);
}

.leader-label {
    color: var(--color-gray);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== MERCH SECTION ===== */
.merch-preview {
    padding: 4rem 0;
    background-color: var(--color-secondary);
    color: var(--color-white);
    text-align: center;
}

.merch-preview .section-title {
    color: var(--color-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--color-white);
    color: var(--color-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ===== INSTAGRAM SECTION ===== */
.instagram-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--color-secondary), #1a1a1a);
    color: var(--color-white);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.instagram-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-icon {
    width: 40px;
    height: 40px;
    fill: var(--color-white);
}

/* ===== SPONSORS ===== */
.sponsors-section {
    padding: 3rem 0;
    background-color: var(--color-white);
}

.sponsors-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.sponsor-logo {
    height: 50px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.sponsor-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    height: 80px;
    margin: 0 auto 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--color-gray);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.copyright {
    color: var(--color-gray);
    font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-secondary);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border: none;
        background-color: rgba(250, 204, 21, 0.1);
    }

    .dropdown-menu.show {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2rem;
    }
}