/* css/styles.css */

/* 1. RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    color: #111;
    background-color: #f5f4ef;
}

/* 2. VARIABLES */
:root {
    --color-primary: #e63946;
    --color-dark: #111;
    --color-light: #f5f4ef;
    --color-white: #fff;
    --color-gray: #666;
    --container-max: 1200px;
    --gap: 1.5rem;
    --radius: 0.5rem;
    --transition: 0.3s ease;
}

/* 3. UTILITIES */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: var(--gap);
}

.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    opacity: 0.9;
}

.btn--secondary {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.btn--secondary:hover {
    opacity: 0.9;
}

.btn--small {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

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

.section-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* 4. HEADER */
.site-header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.main-nav .nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.main-nav a {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 600;
}

.btn--nav {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
}

/* 5. HERO */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--gap);
    padding: 3rem 0;
}

.hero__media img {
    width: 100%;
    border-radius: var(--radius);
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
}

.hero__subtitle {
    font-size: 1.25rem;
    margin: 1rem 0;
    color: var(--color-white);
}

/* 6. LEAGUES */

.league-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.league-card__icon {
    width: 48px;
    margin-bottom: 1rem;
}

.league-card__title {
    font-size: 1.25rem;
    font-weight: 700;
}

.league-card__text {
    color: var(--color-gray);
    margin: 0.5rem 0 1rem;
}

/* 7. INTRO */
.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--gap);
}

.intro__label {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.intro__heading {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.intro__text {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.intro__media img {
    width: 100%;
    border-radius: var(--radius);
}

/* 8. FEATURED */
.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--gap);
}

.featured__media img {
    width: 100%;
    border-radius: var(--radius);
}

.featured__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.featured__text {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

/* 9. TESTIMONIALS */

.testimonials__text {
    padding-right: var(--gap);
}

.testimonials__list {
    display: grid;
    gap: var(--gap);
}

.testimonial {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.testimonial__quote {
    font-style: italic;
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.testimonial__author {
    font-weight: 700;
    text-align: right;
}

/* 10. BLOG PREVIEW */

.blog-preview__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.blog-preview__title {
    font-size: 1.75rem;
    font-weight: 800;
}

.post-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
}

.post-card img {
    width: 100%;
    display: block;
}

.post-card__date {
    display: block;
    color: var(--color-primary);
    font-size: 0.875rem;
    margin: 1rem;
}

.post-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 1rem 1rem;
}

/* 11. CTA BANNER */
.cta-banner {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 3rem 0;
    border-radius: var(--radius);
    margin: 4rem 0;
}

.cta-banner__text {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* 12. FOOTER */
.site-footer {
    background: var(--color-dark);
    color: var(--color-white);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap);
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
}

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

.footer-col a {
    color: var(--color-white);
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

/* 13. MEDIA QUERIES */
@media (max-width: 992px) {
    .cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero, .intro, .featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .cols-2 {
        grid-template-columns: 1fr;
    }

    .blog-preview__header {
        flex-direction: column;
        gap: var(--gap);
    }
}

/* ----------------------------------------------
   0. Hero-Section как на макете
   ---------------------------------------------- */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 80vh;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    color: var(--color-white);
}

.hero__title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ----------------------------------------------
   1. Сетка карточек «Leagues»
   ---------------------------------------------- */
.leagues {
    padding: 3rem 0;
}

.leagues.grid {
    grid-template-columns: repeat(4, 1fr);
}

.league-card {
    background-color: var(--color-light);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.league-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.league-card__icon {
    width: 90px;
    margin-bottom: 1rem;
}

.league-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.league-card__text {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.league-card .link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

/* ----------------------------------------------
   2. Кнопки – скругляем больше и убираем border
   ---------------------------------------------- */
.btn {
    border: none;
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    opacity: 0.9;
}

.btn--secondary {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.btn--secondary:hover {
    opacity: 0.9;
}

/* ----------------------------------------------
   3. Навигация (header)
   ---------------------------------------------- */
.site-header {
    background-color: var(--color-white);
    padding: 1rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 var(--radius) var(--radius);
}

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

.main-nav .nav-list {
    gap: 2rem;
}

.main-nav a {
    font-weight: 600;
    text-transform: uppercase;
}

/* ----------------------------------------------
   4. Убираем «лишние» <img> и центрируем лого
   ---------------------------------------------- */
.logo img {
    display: block;
}

/* ----------------------------------------------
   5. Отступы секций
   ---------------------------------------------- */
/* Универсальные отступы для всех секций */
section {
    padding: 4rem var(--gap); /* 4rem сверху/снизу и var(--gap) слева/справа */
}

/* Секция Testimonials */
.testimonials {
    background-color: var(--color-light);
    padding: 4rem var(--gap);
    border-radius: var(--radius);
}

.testimonials.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: start;
}

/* Левый столбец — текст */
.testimonials__text {
    padding: var(--gap);
}

.testimonials__text .section-label {
    margin-bottom: 0.5rem;
}

.testimonials__text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.testimonials__text p {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

/* Кнопка */
.testimonials__text .btn--secondary {
    padding: 0.75rem 1.5rem;
}

/* Правый столбец — список отзывов */
.testimonials__list {
    display: grid;
    gap: var(--gap);
}

/* Сами блоки отзывов */
.testimonial {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.testimonial__quote {
    font-style: italic;
    color: var(--color-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial__author {
    font-weight: 700;
    text-align: right;
    color: var(--color-dark);
}

/* Адаптив */
@media (max-width: 768px) {
    .testimonials.grid {
        grid-template-columns: 1fr;
    }
}

/* 1. Фиксируем высоту хедера */
.site-header {
    height: 80px; /* или любое нужное значение */
    padding: 0; /* убираем дополнительный padding */
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center; /* центруем контент по вертикали */
    justify-content: space-between;
    padding: 0 var(--gap); /* боковые отступы */
}

/* 2. Увеличиваем логотип внутри зафиксированного хедера */
.logo img {
    height: 60px; /* высота логотипа, вписывается в 80px хедера */
    width: auto; /* сохраняем пропорции */
}

/* 3. Уменьшаем размер остальных элементов, если нужно */
.main-nav .nav-list a {
    line-height: 1; /* гарантируем, что ссылки не растянут хедер */
    padding: 0.5rem 0; /* верхний/нижний padding не увеличивает высоту */
}

.btn--nav {
    padding: 0.5rem 1rem; /* чуть уменьшим кнопку */
    line-height: 1;
}

/* Language switcher wrapper (в хедере) */
.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--color-light);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-gray);
}

/* Ссылки как табы */
.lang-switcher__link {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark);
    transition: background var(--transition), color var(--transition);
}

/* Разделитель убираем — теперь нет нужды */
.lang-switcher__divider {
    display: none;
}

/* Состояние неактивного таба */
.lang-switcher__link:not(.active):hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Активный таб */
.lang-switcher__link.active {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Mobile header adjustments */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-icon {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    position: relative;
    display: block;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    position: absolute;
    left: 0;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

/* Hide nav on small screens, show toggle */
@media (max-width: 1018px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }

    .main-nav.open {
        max-height: 600px; /* достаточно для пунктов меню */
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-list a {
        display: block;
        padding: 1rem var(--gap);
    }

    .menu-toggle {
        display: block;
    }

    .lang-switcher,
    .btn--nav {
        display: none;
    }
}

/* ────────────────────────────────────────────
   Responsive adjustments for main content
   ──────────────────────────────────────────── */
@media (max-width: 992px) {
    /* Hero: единственная колонка, меньше padding */
    .hero {
        grid-template-columns: 1fr !important;
        min-height: 60vh;
        padding: 2rem var(--gap);
    }

    .hero__content {
        text-align: center;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    /* Leagues: 2 колонки */
    .leagues.grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Intro: единственная колонка, текст сверху, изображение снизу */
    .intro {
        grid-template-columns: 1fr !important;
        padding: 2rem var(--gap);
    }

    .intro__info {
        text-align: center;
        margin-bottom: var(--gap);
    }

    .intro__media img {
        width: 70%;
        margin: 0 auto;
        display: block;
    }

    /* Featured: единственная колонка */
    .featured {
        grid-template-columns: 1fr !important;
        padding: 2rem var(--gap);
    }

    .featured__media img {
        width: 100%;
    }

    .featured__title {
        font-size: 1.5rem;
    }

    /* Testimonials: 1 колонка */
    .testimonials.grid {
        grid-template-columns: 1fr !important;
    }

    /* Blog Preview: 1 колонка в списке */
    .blog-preview__list.grid {
        grid-template-columns: 1fr !important;
    }

    .blog-preview__header {
        flex-direction: column;
        gap: var(--gap);
        text-align: center;
    }

    /* CTA Banner: уменьшаем padding */
    .cta-banner {
        padding: 2rem var(--gap);
    }

    .cta-banner__text {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    /* Hero — ещё меньше */
    .hero {
        padding: 1.5rem var(--gap);
        min-height: 50vh;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    /* Leagues — одна колонка */
    .leagues.grid {
        grid-template-columns: 1fr !important;
    }

    /* Уменьшаем размеры кнопок */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ────────────────────────────────────────────────
   NBA Page Styles
   ──────────────────────────────────────────────── */

/* Hero Section — NBA */
.hero--nba {
    background: url("../assets/hero-nba.png") center/cover no-repeat;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero--nba::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero--nba .hero__content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    padding: 2rem;
    max-width: 600px;
}

.hero--nba .hero__title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero--nba .hero__subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Upcoming Games */
.upcoming-games {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.upcoming-games h2,
.upcoming-games h3 {
    margin-bottom: 1rem;
}

.games-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.games-table th,
.games-table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

.link--block {
    display: inline-block;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: 0.5rem;
}

/* Latest Results */
.latest-results {
    padding: 2rem 0;
}

.results-grid .result-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.result-card__teams {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-card__score {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.result-card__date {
    font-size: 0.875rem;
    color: var(--color-gray);
}

/* Standings */
.standings {
    padding: 2rem 0;
}

.standings-grid .conference {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.standings-table th,
.standings-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.conference h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Top Teams */
.top-teams {
    padding: 2rem 0;
}

.top-teams .team-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.team-card__logo {
    width: 60px;
    margin-bottom: 1rem;
}

.team-card__name {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-card__record {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

/* Featured Article */
.featured-article {
    padding: 2rem 0;
}

.featured-article .post-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.featured-article .post-card__image {
    width: 100%;
    display: block;
}

.featured-article .post-card__date {
    display: block;
    margin: 0.5rem 0;
    color: var(--color-primary);
}

.featured-article .post-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Adjust CTA Banner on NBA page */
.nba .cta-banner {
    padding: 2rem 0;
}

.nba .cta-banner__text {
    font-size: 1.75rem;
}

/* ────────────────────────────────────────────────
   NBA Page Specific Adjustments
   ──────────────────────────────────────────────── */

/* Section titles */
section .section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-dark);
    text-transform: uppercase;
}

/* Upcoming Events list */
.events-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.events-list li {
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.events-list li:last-child {
    border-bottom: none;
}

/* Latest Results adjustments */
.latest-results .results-grid {
    grid-template-columns: 1fr !important; /* одна колонка */
}

.result-card {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.result-card__teams a {
    color: var(--color-dark);
    text-decoration: none;
    font-size: 1.25rem;
}

.result-card__teams a:hover {
    color: var(--color-primary);
}

.result-card__note {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-top: 0.5rem;
}

/* Standings lists */
.standings-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.standings-list li {
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.standings-list li:last-child {
    border-bottom: none;
}

/* Top Teams grid */
.top-teams .grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
}

.team-card {
    padding: 1rem;
}

.team-card__logo {
    width: 50px;
    margin-bottom: 0.5rem;
}

/* Featured Article */
.featured-article {
    text-align: center;
    padding: 2rem 0;
}

.featured-article .post-card {
    margin: 0 auto;
}

.post-card__excerpt {
    font-size: 1rem;
    color: var(--color-gray);
    margin: 1rem 0;
}

.post-card__title a {
    color: var(--color-dark);
    text-decoration: none;
    font-size: 1.25rem;
}

.post-card__title a:hover {
    color: var(--color-primary);
}

/* Ensure CTA is full width */
.nba .cta-banner {
    text-align: center;
    padding: 2rem var(--gap);
}

/* Mobile adaptation for NBA hero */
@media (max-width: 768px) {
    .hero.hero--nba .hero__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem var(--gap);
    }

    .hero.hero--nba .hero__media {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .hero.hero--nba .hero__media img {
        width: 100%;
        height: auto;
        border-radius: var(--radius);
    }

    .hero.hero--nba .hero__content {
        text-align: center;
    }

    .hero.hero--nba .hero__title {
        font-size: 2rem;
    }

    .hero.hero--nba .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero.hero--nba .btn--primary {
        width: auto;
        padding: 0.75rem 1.5rem;
    }
}

/* Override: use background-image only on mobile, hide the inline <img> */
@media (max-width: 768px) {
    .hero.hero--nba {
        /* Фон с изображением геро-секции */
        background: url("../assets/hero-nba.png") center/cover no-repeat !important;
        min-height: 50vh; /* чуть меньше высота на мобильных */
        padding: 2rem var(--gap);
    }

    .hero.hero--nba .hero__media {
        display: none !important; /* скрываем тэг <img> */
    }

    .hero.hero--nba .hero__content {
        position: static;
        margin: 0 auto;
        max-width: 90%;
        text-align: center;
    }

    .hero.hero--nba .hero__title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .hero.hero--nba .hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .hero.hero--nba .btn--primary {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }
}

/* Live Scores section */
.live-scores {
    padding: 4rem var(--gap);
    background: var(--color-light);
    border-radius: var(--radius);
    text-align: center;
}

.live-scores .section-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.live-scores .section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.live-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem;
    max-width: 400px;
}

.live-list li {
    margin: 0.75rem 0;
}

.live-list a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
}

.live-list a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ─────────────  News / Blog cards  ───────────── */
.news-list {
    padding: 4rem var(--gap);
}

.news-list .section-label {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    display: block;
}

.news-list .section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
}

/* Grid tweaks (3-колонки на desktop, 1-2 на mobile/tablet) */
@media (min-width: 1024px) {
    .news-list .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1019px) and (min-width: 640px) {
    .news-list .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .news-list .grid {
        grid-template-columns: 1fr;
    }
}

/* Карточка статьи */
.post-card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.post-card__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.post-card__date {
    font-size: 0.75rem;
    color: var(--color-gray);
    padding: 1rem 1.25rem 0;
    display: block;
}

.post-card__title {
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.3;
    padding: 0.25rem 1.25rem 0.5rem;
}

.post-card__title a {
    color: var(--color-dark);
    text-decoration: none;
}

.post-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-gray);
    padding: 0 1.25rem 1.25rem;
    flex: 1;
}

.post-card .btn--small {
    margin: 0 1.25rem 1.25rem;
    align-self: flex-start;
}

/* Кнопка-«Read More» */
.btn--small {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

/* ─────────────  CONTACT PAGE  ───────────── */

/* Hero */
.hero--contact {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: var(--radius);
}

.hero--contact .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
    filter: brightness(.55);
}

.hero--contact .hero__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: var(--gap);
    color: var(--color-white);
}

.hero--contact .hero__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.hero--contact .hero__subtitle {
    font-size: 1.25rem;
}

/* Wrapper grid (info + form) */
.contact-wrapper {
    margin: 4rem auto;
}

@media (min-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1023px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Contact Info */
.contact-info {
    padding: 2rem;
}

.contact-info p {
    margin: .5rem 0 1rem;
    font-size: .95rem;
}

.contact-info a {
    color: var(--color-primary);
    text-decoration: none;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-block;
    margin-right: .75rem;
    transition: transform var(--transition);
}

.social-links img {
    width: 28px;
    height: 28px;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Form */
.contact-form {
    background: var(--color-light);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .35rem;
    color: var(--color-dark);
}

.input--text,
.input--textarea {
    width: 100%;
    padding: .7rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: .95rem;
}

.input--text:focus,
.input--textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, .2);
}

.btn--primary {
    margin-top: .5rem;
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .hero--contact .hero__title {
        font-size: 2.25rem;
    }

    .contact-info {
        padding: 1.25rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

.alert--success {
    background: #d1fae5;
    color: #065f46;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* ─────────────  ABOUT PAGE  ───────────── */

/* Hero */
.hero--about {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: var(--radius);
}

.hero--about .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
    filter: brightness(.6);
}

.hero--about .hero__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin-left: var(--gap);
    color: var(--color-white);
}

.hero--about .hero__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Mission */
.mission {
    padding: 3rem 0;
    text-align: center;
}

.mission p {
    max-width: 800px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
}

/* Values grid */
.values .value-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.values .value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.values .value-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.values .value-card p {
    font-size: 0.95rem;
    color: var(--color-gray);
}

/* Timeline */
.timeline {
    padding: 3rem 0;
    text-align: center;
}

.timeline-list {
    list-style: none;
    padding: 0;
    max-width: 720px;
    margin: 2rem auto 0;
}

.timeline-list li {
    position: relative;
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: left;
}

.timeline-list li:last-child {
    margin-bottom: 0;
}

.timeline-list strong {
    color: var(--color-dark);
}

/* Testimonials */
.testimonials {
    padding: 3rem 0;
    text-align: center;
}

.testimonial {
    background: var(--color-light);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    margin: 1rem auto;
    max-width: 700px;
    font-style: italic;
    position: relative;
}

.testimonial footer {
    margin-top: 1rem;
    font-weight: 700;
    font-style: normal;
    color: var(--color-primary);
}

/* ─────────────  BLOG POST PAGE (компактный и читабельный)  ───────────── */

/* 1. HERO-баннер */
.hero--post {
    position: relative;
    width: 100%;
    height: 48vh; /* кино-формат, ≈ половина экрана */
    overflow: hidden;
}

.hero--post img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 150%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 15s linear;
}

.hero--post:hover img { /* лёгкий параллакс-зум при наведении */
    transform: scale(1.12);
}

/* затемняющий градиент по краям, чтобы картинка «обрамлялась» */
.hero--post::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, .45) 0%,
            rgba(0, 0, 0, .10) 30%,
            rgba(0, 0, 0, .10) 70%,
            rgba(0, 0, 0, .35) 100%);
    pointer-events: none;
}

/* 2. КОНТЕЙНЕР КОНТЕНТА */
.post-content {
    max-width: 760px;
    margin: 3rem auto 5rem;
    padding: 0 var(--gap);
    line-height: 1.68;
    font-size: 1.05rem;
    color: var(--color-dark);
}

@media (max-width: 640px) {
    .post-content {
        margin: 2rem auto 4rem;
        font-size: 1rem;
    }
}

/* 3. ШАПКА СТАТЬИ */
.post-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.post-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0.25rem 0;
}

.post-date {
    font-size: .9rem;
    color: var(--color-gray);
}

/* 4. ПОДЗАГОЛОВКИ H2 ВНУТРИ СТАТЬИ */
.post-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2.25rem 0 1rem;
    color: var(--color-primary);
}

/* 5. АБЗАЦЫ, СПИСКИ */
.post-content p {
    margin: 0 0 1.25rem;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.25rem 1.5rem;
}

/* 6. ССЫЛКИ */
.post-content a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color .2s;
}

.post-content a:hover {
    text-decoration: none;
    color: var(--color-dark);
}

/* ─────  hero--post: компактная высота  ───── */
.hero--post {
    position: relative;
    width: 100%;
    height: 35vh;
    overflow: hidden;
}

@media (max-width: 640px) {
    .hero--post {
        height: 50vh;
    }
}


.hero--post:hover img {
    transform: scale(1.10);
}

.hero--post::before { /* мягкий градиент для контраста */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .15) 50%, rgba(0, 0, 0, .38) 100%);
    pointer-events: none;
}
/* ─────────────  LEAGUE PAGES  ───────────── */

/* 1. HERO (compact) */
.hero--league {
    position: relative;
    width: 100%;
    height: 25vh;
    overflow: hidden;
    border-radius: var(--radius);
}
.hero--league .hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.55);
}
.hero--league .hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    z-index: 1;
}
.hero--league .hero__logo {
    width: 80px;
    height: auto;
}
@media (max-width: 640px) {
    .hero--league { height: 35vh; }
    .hero--league .hero__logo { width: 64px; }
}

/* 2. SCHEDULE + RESULTS TABLES/CARDS */
.games-table,
.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.games-table th,
.games-table td,
.standings-table th,
.standings-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #ececec;
    text-align: left;
}
.games-table thead th,
.standings-table thead th {
    font-weight: 700;
    color: var(--color-dark);
}
.result-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    margin-bottom: 1rem;
    text-align: center;
}
.result-card__teams {
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.result-card__score {
    font-size: 1.45rem;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}
.result-card__date {
    font-size: 0.8rem;
    color: var(--color-gray);
}

/* 3. LIVE / MINI NEWS LIST */
.mini-news .live-list {
    list-style: none;
    margin: 1.25rem auto 0;
    padding: 0;
    max-width: 640px;
}
.mini-news .live-list li {
    margin: 0.6rem 0;
}
.mini-news .live-list a {
    display: inline-block;
    background: var(--color-light);
    padding: 0.65rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-dark);
    transition: background var(--transition);
}
.mini-news .live-list a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* 4. EXTERNAL LINKS */
.external-links {
    text-align: center;
    margin: 3rem 0 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 500px) {
    .external-links {
        flex-direction: row;
        justify-content: center;
    }
}
.external-links .btn {
    width: 200px;
}
/* --------  FULL-WIDTH HERO  (для главной и любых подоб­ных) -------- */
.hero--full{
    position:relative;
    width:100%;
    height:55vh;              /* можно 60-70vh, если нужен выше */
    display:flex;
    align-items:center;
    justify-content:flex-start;  /* текст слева */
    color:#fff;
    border-radius:var(--radius);
    background-size:cover;
    background-position:center;
    overflow:hidden;
}
.hero--full::before{           /* затемнение, чтоб текст читался */
    content:'';
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
    pointer-events:none;
}
.hero--full .hero__content{
    position:relative;
    z-index:1;
    max-width:600px;
    margin-left:var(--gap);
}
@media(max-width:640px){
    .hero--full{height:65vh;}
    .hero--full .hero__content{margin-left:1rem;}
}
/* универсальный полноширинный баннер */
.hero--full{
    position:relative;
    width:100%;
    height:55vh;
    display:flex;
    align-items:center;
    color:#fff;
    border-radius:var(--radius);
    background-size:cover;
    background-position:center;
    overflow:hidden;
}
.hero--full::before{
    content:'';
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);  /* единое затемнение */
    pointer-events:none;
}
.hero--full .hero__content{
    position:relative;
    z-index:1;
    max-width:600px;
    margin-left:var(--gap);
}
@media(max-width:640px){
    .hero--full{height:65vh;}
    .hero--full .hero__content{margin-left:1rem;}
}
/* ─────────  Privacy Page Specific  ───────── */
.hero--privacy { background-image: url('../assets/hero-about.png'); }

.legal-content {
    max-width: 900px;
}

.legal-footer {
    font-size: .9rem;
    color: var(--color-gray);
}
/* Hero background for Terms page */
body.legal .hero--terms {
    background-image: url('../assets/hero-about.png');
}
/* ─────────────  LEGAL PAGES (privacy & terms)  ───────────── */

/* Фон-баннеры heroes */
body.legal .hero--privacy { background-image: url('../assets/hero-about.png'); }
body.legal .hero--terms   { background-image: url('../assets/hero-about.png'); }

/* Контейнер текста */
.legal-content{
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem var(--gap);
    line-height: 1.75;
    font-size: 1.05rem;
}

/* Заголовки второго уровня */
.legal-content h2{
    font-size: 1.45rem;
    font-weight: 800;
    margin: 2.25rem 0 1rem;
    color: var(--color-primary);
}

/* Таблица данных (наследует базовый стиль games-table) */
.legal-content .games-table{
    margin: 1rem 0 2rem;
}

/* Списки внутри документа */
.legal-content ul{
    margin: 0 0 1.25rem 1.5rem;
    padding: 0;
    list-style: disc;
}
.legal-content ul li{
    margin: 0.4rem 0;
}

/* Подвал внизу страницы */
.legal-footer{
    font-size: .9rem;
    color: var(--color-gray);
    text-align: center;
    margin: 3rem 0 0;
}

/* Адаптив: чуть меньше отступы и размер шрифта на телефонах */
@media (max-width: 640px){
    .legal-content{
        padding: 2rem var(--gap);
        font-size: 1rem;
    }
    .legal-content h2{
        font-size: 1.3rem;
    }
}
