/* 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. Отступы секций
   ---------------------------------------------- */
/* Универсальные отступы для всех секций */


/* Секция 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;
    }
}
/****************************************************
 *  CourtToYard – mobile-casino landing (blog_mobile)
 *  =================================================
 *  – Mobile-first (≤ 480 px).  Looks tidy on 320 px.
 *  – Можно вставить в конец common styles.css
 *  – Все классы из разметки сохранены.
 ****************************************************/

/* ---------- 1. Global helpers for this page ---------- */

:root{
    /* оттенки проекта CourtToYard */
    --cty-bg:      #F3F2EA;   /* общий бежевый фон сайта */
    --cty-white: #979797;
    --cty-text:    #111111;
    --cty-primary: #E53151;   /* акцент (кнопки/бэйджи) */
    --cty-grey:    #6E6E6E;
    --cty-radius:  .8rem;
}

body.page--blog-mobile{
    background:var(--cty-bg);
    color:var(--cty-text);
    line-height:1.45;
    font-size:15px;
}

/* сброс внутренних контейнеров */
.page--blog-mobile .container{
    width:100%;
    padding-left:1rem;
    padding-right:1rem;
    margin-inline:auto;
}

/* ---------- 2. HERO ---------- */

.page--blog-mobile .hero{
    position:relative;
    width:100%;
    aspect-ratio: 3 / 4;      /* 3:4, чтобы картинка не была слишком низкой */
    background:url('../assets/hero-sports.png') center/cover no-repeat;
    border-radius:var(--cty-radius);
    overflow:hidden;
    margin:0 auto 2rem;
}

.page--blog-mobile .hero::after{         /* затемнение */
    content:"";
    position:absolute; inset:0;
    background:rgba(0,0,0,.55);
}

.page--blog-mobile .hero__inner{
    position:relative;
    z-index:1;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:1.5rem;
}

.page--blog-mobile .hero__title{
    font-size:1.45rem;
    font-weight:700;
    color:var(--cty-white);
    line-height:1.2;
}

.page--blog-mobile .hero__accent{
    color:var(--cty-primary);
}

/* ---------- 3. CASINO LIST (wrapper) ---------- */

.convey-list{
    margin-bottom:1.75rem;
}

/* ---------- 4. CASINO CARD ---------- */

.convey-card{
    background:var(--cty-white);
    border-radius:var(--cty-radius);
    box-shadow:0 2px 6px rgba(0,0,0,.08);
    padding:1.25rem 1rem 1.5rem;
    margin-bottom:1.5rem;
}

/* header = логотип + pros list */
.convey-card__header{
    display:flex;
    gap:1rem;
    margin-bottom:1rem;
    align-items:flex-start;
}

.convey-card__logo img{
    width:96px;               /* фикс – не расползается */
    height:auto;
    object-fit:contain;
}

/* pros bullets */
.convey-card__pros{
    margin:0;
    padding-left:1.1rem;      /* bullet indent */
    font-size:.92rem;
    line-height:1.35;
}

/* бонус-бейджи */
.convey-card__bonus{
    display:flex;
    flex-wrap:wrap;
    gap:.5rem;
    margin:0 0 1rem;
}
.convey-card__bonus-value{
    background:var(--cty-primary);
    color:#fff;
    padding:.35rem .55rem;
    border-radius:.4rem;
    font-size:.78rem;
    font-weight:600;
    white-space:nowrap;
}

/* CTA кнопка */
.convey-card__button{
    display:block;
    width:100%;
    background:var(--cty-primary);
    color:#fff;
    text-align:center;
    padding:.65rem .5rem;
    border-radius:.45rem;
    font-weight:700;
    text-decoration:none;
    margin-bottom:1.2rem;
}
.convey-card__button:hover{opacity:.88;}

/* платёжные иконки */
.convey-card__payments{
    display:flex;
    flex-wrap:wrap;
    gap:.45rem;
}
.convey-card__payments img{
    width:40px;
    height:auto;
    object-fit:contain;
    flex:0 0 40px;
    filter:grayscale(15%);
}

/* ---------- 5. CONTENT BLOCKS ---------- */

.content-block{
    padding:2rem 0;
}
.content-block h2{
    font-size:1.3rem;
    margin-bottom:.8rem;
}
.content-block h3{
    font-size:1.05rem;
    margin:.9rem 0 .5rem;
}
.content-block ul{
    margin:.6rem 0 1.2rem 1.1rem;
}

.faq{
    padding:2rem 0;
}
.faq h2{
    font-size:1.3rem;
    margin-bottom:1rem;
}
.faq details{
    margin-bottom:.75rem;
    background:#fff;
    border-radius:.5rem;
    padding:.75rem 1rem;
    box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.faq summary{
    font-weight:600;
    cursor:pointer;
}
.faq p{
    margin-top:.6rem;
    font-size:.92rem;
    color:var(--cty-grey);
}

/* ---------- 6. MEDIA QUERIES ---------- */

/* 480–767 px: чуть крупнее шрифты + логотип */
@media (min-width:480px){
    .page--blog-mobile .hero{
        aspect-ratio:21/9;    /* шире */
    }
    .page--blog-mobile .hero__title{font-size:2rem;}
    .convey-card__logo img{width:110px;}
}

/* ≥768 px: две колонки карточек */
@media (min-width:768px){
    .convey-list .container{
        grid-template-columns:repeat(2,1fr);
        gap:1.5rem;
    }
    .convey-card{margin-bottom:0;}
}
/* ===== Schedule Table ===== */
.games-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

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

/* --- Mobile breakpoint: <= 480 px --- */
@media (max-width: 480px) {

    /* скрываем заголовок и делаем таблицу «ломкой» */
    .games-table thead {
        display: none;
    }

    .games-table,
    .games-table tbody,
    .games-table tr,
    .games-table td {
        display: block;
        width: 100%;
    }

    .games-table tr {
        margin-bottom: 1rem;           /* расстояние между «карточками» */
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 6px;
        padding: 0.5rem 0;
    }

    .games-table td {
        position: relative;
        padding: 0.4rem 0.8rem 0.4rem 50%;
        border: none;                  /* убираем горизонтальные линии внутри карточки */
    }

    /* подпись колонки выводим слева, значение – справа */
    .games-table td::before {
        content: attr(data-label);
        position: absolute;
        top: 0;
        left: 0.8rem;
        width: 45%;
        font-weight: 600;
        color: #555;
        white-space: nowrap;
    }
}
/* =============================
   HERO — full-width background
   ============================= */

/* Базовая раскладка (≥768 px) */
.hero--full {
    /* 1) фон берём из CSS → достаточно задать только URL в html через style="" */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;      /* вертикальное выравнивание текста */
    justify-content: center;  /* центрируем по горизонтали; можно заменить на flex-start */
    min-height: 60vh;         /* высота баннера на десктопе */
    border-radius: 8px;       /* скругляем углы как у остальных блоков */
    overflow: hidden;
    margin-bottom: 3rem;
}

/* тёмная подложка поверх картинки, чтобы текст читался */
.hero--full::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: saturate(130%) brightness(70%);
    z-index: 0;
}

/* текстовый контейнер внутри баннера */
.hero--full .hero__content {
    position: relative;
    z-index: 1;              /* поверх затемнения */
    max-width: 720px;
    padding: 3rem 4rem;
    text-align: center;      /* на больших экранах заголовок по центру */
    color: #FFFFFF;
}

.hero--full .hero__title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero--full .hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    color: #f1f1f1;
}

/* Кнопка */
.hero--full .btn--primary {
    font-size: 1rem;
    padding: 0.85rem 1.8rem;
}

/* -----------------------
   Мобильный breakpoint
   ----------------------- */
@media (max-width: 767px) {

    .hero--full {
        min-height: 48vh;           /* немного ниже, чтобы не занимал весь экран */
        border-radius: 0;           /* на мобильных во всю ширину, без скругления */
        margin-left: -1rem;         /* выравниваем с краями контейнера (если .container имеет паддинг) */
        margin-right: -1rem;
    }

    .hero--full .hero__content {
        padding: 2rem 1.25rem;
        text-align: left;           /* текст смещаем влево, чтобы читалось легче */
    }

    .hero--full .hero__title {
        font-size: 1.75rem;         /* ~28 px */
    }

    .hero--full .hero__subtitle {
        font-size: 0.95rem;
    }

    .hero--full .btn--primary {
        width: 100%;               /* кнопка на всю ширину пальца */
        text-align: center;
    }
}

/* -----------------------
   Очень узкие экраны (≤360)
   ----------------------- */
@media (max-width: 360px) {
    .hero--full .hero__title  { font-size: 1.5rem; }
    .hero--full .hero__subtitle { font-size: 0.85rem; }
}

/* =============================
   HERO — контактная версия
   ============================= */

.hero--contact {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
}

/* картинка на фоне */
.hero--contact .hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* затемнение такое же, как у full-баннеров */
.hero--contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: saturate(130%) brightness(70%);
    z-index: 0;
}

/* текст */
.hero--contact .hero__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
}

.hero--contact .hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero--contact .hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

/* Мобильная корректировка */
@media (max-width: 767px) {
    .hero--contact {
        min-height: 48vh;
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
    }
    .hero--contact .hero__content {
        text-align: left;
        padding: 2rem 1.25rem;
    }
    .hero--contact .hero__title   { font-size: 1.75rem; }
    .hero--contact .hero__subtitle{ font-size: 0.95rem; }
}
/* HERO — about-versio */
.hero--about{
    position:relative;
    min-height:60vh;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    overflow:hidden;
    margin-bottom:3rem;
}

.hero--about .hero__media img{
    position:absolute;
    inset:0;
    width:100%;height:100%;
    object-fit:cover;
    object-position:center;
    z-index:0;
}

.hero--about::before{
    content:"";
    position:absolute;inset:0;
    background:rgba(0,0,0,.45);
    backdrop-filter:saturate(130%) brightness(70%);
    z-index:0;
}

.hero--about .hero__content{
    position:relative;
    z-index:1;
    max-width:700px;
    padding:3rem 2rem;
    text-align:center;
    color:#fff;
}

.hero--about .hero__title{
    font-size:clamp(2rem,5vw,3.2rem);
    font-weight:800;
    margin-bottom:1rem;
}
.hero--about .hero__subtitle{
    font-size:clamp(1rem,2vw,1.25rem);
}

/* Mobile tweaks (≤767 px) */
@media(max-width:767px){
    .hero--about{
        min-height:48vh;
        border-radius:0;
        margin-left:-1rem;margin-right:-1rem;
    }
    .hero--about .hero__content{padding:2rem 1.25rem;text-align:left;}
    .hero--about .hero__title{font-size:1.75rem;}
    .hero--about .hero__subtitle{font-size:.95rem;}
}
/* ============================
   VALUES (Arvot) – korttirivi
   ============================ */

.values{
    display:grid;                 /* перестраховка – вдруг утилита .grid не применится */
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:2rem;
    margin-block:3rem;            /* одинаковый отступ сверху/снизу */
}

.value-card{
    background:#fff;
    border:1px solid #e9e9e9;
    border-radius:8px;
    padding:1.75rem 1.5rem;
    text-align:center;
    box-shadow:0 2px 6px rgb(0 0 0 / 5%);
    transition:transform .2s ease,box-shadow .2s ease;
}

.value-card:hover{
    transform:translateY(-4px);
    box-shadow:0 6px 12px rgb(0 0 0 / 8%);
}

.value-card h3{
    font-size:1.25rem;
    font-weight:700;
    margin-bottom:.65rem;
    color:#1a1a1a;
}

.value-card p{
    font-size:.965rem;
    line-height:1.5;
    color:#555;
}

/* ---------- небольшие экраны ---------- */
@media(max-width:480px){
    .values{
        gap:1.25rem;
    }
    .value-card{
        padding:1.25rem 1rem;
        text-align:left;          /* читается легче на узких экранах */
    }
    .value-card h3{
        font-size:1.1rem;
        margin-bottom:.5rem;
    }
    .value-card p{
        font-size:.9rem;
    }
}
/* ==========================================================
   CourtToYard – Betting page
   ========================================================== */

.cty-betting-page{
    --accent:           #2ecc71;
    --accent-dark:      #27ae60;
    --txt:              #1a1a1a;
    --card-bg:          #fff;
    --radius:           12px;
    --shadow:           0 4px 12px rgba(0,0,0,.05);
    font-family: var(--font-family, "Inter", sans-serif);
}

/* ---------- Hero --------------------------------------------------------- */
.cty-betting-page .hero{
    padding:4rem 0;
    text-align:center;
    color:#fff;
    background:linear-gradient(135deg,var(--accent) 0%,#6ad39f 100%);
}
.cty-betting-page .hero__title{
    margin:0;
    line-height:1.2;
    font-weight:700;
    font-size:clamp(1.75rem,4vw,3rem);
}
.cty-betting-page .hero__accent{
    background:rgba(0,0,0,.15);
    border-radius:.25em;
    padding:0 .25em;
}

/* ---------- Lists & cards ------------------------------------------------- */
.cty-betting-page .convey-list{padding:2rem 0;}

.cty-betting-page .convey-card{
    display:flex;
    flex-direction:column;
    gap:1.25rem;
    padding:1.5rem;
    background:var(--card-bg);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}
.cty-betting-page .convey-card + .convey-card{margin-top:2rem;}

.cty-betting-page .convey-card__header{
    display:flex;
    gap:1.5rem;
    align-items:flex-start;
}

.cty-betting-page .convey-card__logo img{
    width:100px;
    height:auto;
    object-fit:contain;
}

.cty-betting-page .convey-card__pros{
    margin:0;
    padding-left:1.25rem;
    list-style:square;
    color:var(--txt);
    font-size:.95rem;
}

/* Бейджи-бонусы */
.cty-betting-page .convey-card__bonus{
    display:flex;
    flex-wrap:wrap;
    gap:.5rem;
}
.cty-betting-page .convey-card__bonus-value{
    padding:.35rem .75rem;
    background:var(--accent);
    color:#fff;
    border-radius:20px;
    font-size:.875rem;
    font-weight:600;
    white-space:nowrap;
}

/* Кнопка регистрации */
.cty-betting-page .convey-card__button{
    align-self:flex-start;
    padding:.75rem 1.5rem;
    border-radius:30px;
    background:var(--accent);
    color:#fff;
    font-weight:600;
    text-decoration:none;
    transition:background .2s;
}
.cty-betting-page .convey-card__button:hover,
.cty-betting-page .convey-card__button:focus-visible{
    background:var(--accent-dark);
}

/* Платёжные иконки */
.cty-betting-page .convey-card__payments{
    display:flex;
    flex-wrap:wrap;
    gap:.5rem;
    align-items:center;
}
.cty-betting-page .convey-card__payments img{
    height:26px;
    width:auto;
    object-fit:contain;
}

/* ---------- Content blocks ----------------------------------------------- */
.cty-betting-page .content-block,
.cty-betting-page .faq{padding:3rem 0;}

.cty-betting-page .content-block h2,
.cty-betting-page .faq h2{
    font-size:1.75rem;
    margin-bottom:1rem;
}
.cty-betting-page .content-block h3{font-size:1.25rem;margin-top:1.5rem;}
.cty-betting-page .content-block ul{list-style:disc;margin:1rem 0 1rem 1.25rem;}

/* ---------- FAQ (details/summary) ---------------------------------------- */
.cty-betting-page .faq details{
    margin-bottom:.75rem;
    padding:1rem 1.5rem;
    border:1px solid #e0e0e0;
    border-radius:8px;
}
.cty-betting-page .faq summary{
    cursor:pointer;
    font-weight:600;
    list-style:none; /* убираем стандартный треугольник FF */
}
.cty-betting-page .faq summary::-webkit-details-marker{display:none;}
.cty-betting-page .faq summary::after{
    content:'+';
    float:right;
    transition:transform .2s;
}
.cty-betting-page .faq details[open] summary::after{content:'−';}

/* ---------- Адаптив ------------------------------------------------------ */
@media (min-width:768px){
    .cty-betting-page .convey-card{flex-direction:row;align-items:center;}
    .cty-betting-page .convey-card__header{flex:1 1 40%;}
    .cty-betting-page .convey-card__bonus{flex:1 1 30%;}
    .cty-betting-page .convey-card__button{margin-left:auto;}
    .cty-betting-page .convey-card__payments{flex:1 1 100%;margin-top:1rem;}
}
/* -------------------------------------------------------------
   ДОБАВЬТЕ этот блок ниже ранее выданных стилей betting-page
   ------------------------------------------------------------- */

/* ---------- Header: список преимуществ с галочками ---------- */
.cty-betting-page .convey-card__pros{
    margin:0;                       /* убираем лишние отступы      */
    padding:0;
    list-style:none;                /* отключаем стандартный маркер*/
}
.cty-betting-page .convey-card__pros li{
    position:relative;
    padding-left:1.5rem;            /* место под иконку            */
    line-height:1.4;
    font-size:.92rem;
}
.cty-betting-page .convey-card__pros li::before{
    content:'✔';                    /* можно заменить SVG фоном    */
    position:absolute;
    left:0;
    top:0;
    font-weight:700;
    /* цвет не принципиален — замените при необходимости */
}

/* ---------- Бонус-бейджи (чуть компактнее) ------------------ */
.cty-betting-page .convey-card__bonus-value{
    font-size:.8rem;
    letter-spacing:-.2px;
    border-radius:6px;
    /* при желании подберите border/color */
}

/* ---------- Центрируем кнопку -------------------------------- */
.cty-betting-page .convey-card__button{
    display:block;                  /* займёт всю ширину           */
    max-width:250px;                /* фикс. ширина самой кнопки   */
    margin:1.25rem auto 0;          /* …но выровнена по центру     */
}

/* ---------- Payments: разделительная «полоска» --------------- */
.cty-betting-page .convey-card__payments{
    margin-top:1.25rem;
    padding-top:1rem;
    border-top:1px solid rgba(255,255,255,.15); /* светлая линия    */
    display:flex;
    flex-wrap:wrap;
    gap:.75rem;
    justify-content:center;         /* центрируем иконки           */
}
.cty-betting-page .convey-card__payments img{
    height:24px;
    width:auto;
}

/* ---------- Адаптив (чтобы логотип + список = одна строка) --- */
@media (min-width:768px){
    .cty-betting-page .convey-card__header{
        flex-direction:row;
        align-items:flex-start;
    }
    .cty-betting-page .convey-card__logo{
        flex:0 0 130px;               /* фикс. ширина под лого       */
    }
}

body.page--blog-mobile .convey-card {
    width: 100%;
    max-width: 90%;
    margin: 0 auto 32px;
    padding: 20px 16px;
    background: #1a1a1f;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.page--blog-mobile .convey-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

body.page--blog-mobile .convey-card__header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

body.page--blog-mobile .convey-card__logo {
    flex: 0 1 auto;
    max-width: 140px;
}

body.page--blog-mobile .convey-card__logo img {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(1) contrast(1.1);
    transition: filter 0.2s ease;
}

body.page--blog-mobile .convey-card__logo img:hover {
    filter: brightness(1.2) contrast(1.15);
}

body.page--blog-mobile .convey-card__pros {
    flex: 1 1 auto;
    list-style: none;
    padding: 0;
    margin: 0;
}
body.page--blog-mobile .convey-card__pros li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #d0d0d0;
    line-height: 1.3;
}
body.page--blog-mobile .convey-card__pros li:last-child {
    margin-bottom: 0;
}
body.page--blog-mobile .convey-card__pros li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.1rem;
}

body.page--blog-mobile .convey-card__bonus {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    text-align: center;
}
body.page--blog-mobile .convey-card__bonus-label {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
    margin-right: 4px;
    white-space: nowrap;
}
body.page--blog-mobile .convey-card__bonus-value {
    display: inline-block;
    background-color: #27272b;
    color: #6ecdfc;
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
body.page--blog-mobile .convey-card__bonus-value:hover {
    background-color: #3a3a40;
}

body.page--blog-mobile .convey-card__button {
    display: block;
    width: calc(100% - 40px);
    max-width: 320px;
    margin: 0 auto 24px;
    padding: 14px 0;
    text-align: center;
    background-color: #7b1fa2;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
body.page--blog-mobile .convey-card__button:focus,
body.page--blog-mobile .convey-card__button:hover {
    background-color: #9c27b0;
    transform: translateY(-1px);
}

body.page--blog-mobile .convey-card__payments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #333;
    margin-top: 8px;
}
body.page--blog-mobile .convey-card__payments img {
    max-width: 44px;
    max-height: 28px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
body.page--blog-mobile .convey-card__payments img:hover {
    opacity: 1;
    transform: scale(1.08);
}

@media (min-width: 576px) {
    body.page--blog-mobile .convey-card {
        max-width: 800px;
    }
}

@media (max-width: 400px) {
    body.page--blog-mobile .convey-card {
        padding: 16px 12px;
    }
    body.page--blog-mobile .convey-card__bonus-value {
        font-size: 0.88rem;
        padding: 4px 8px;
    }
    body.page--blog-mobile .convey-card__button {
        width: 100%;
        max-width: none;
        padding: 12px 0;
        font-size: 0.95rem;
    }

    body.page--blog-mobile .convey-card__logo {
        max-width: 100px;
    }
}

body.page--blog-mobile .content-block {
    width: 100%;
    max-width: 90%;
    margin: 0 auto 32px;
    background-color: #1a1a1f;
    border-left: 4px solid #6ecdfc;
    border-radius: 8px;
    padding: 24px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.page--blog-mobile .content-block h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
}

body.page--blog-mobile .content-block h3 {
    font-size: 1.2rem;
    color: #6ecdfc;
    margin-top: 20px;
    margin-bottom: 12px;
    line-height: 1.3;
}

body.page--blog-mobile .content-block p {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 16px;
    line-height: 1.6;
}

body.page--blog-mobile .content-block ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}
body.page--blog-mobile .content-block ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #d0d0d0;
    line-height: 1.4;
}
body.page--blog-mobile .content-block ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: #6ecdfc;
    font-weight: bold;
    font-size: 1.1rem;
}

body.page--blog-mobile .faq {
    width: 100%;
    max-width: 90%;
    margin: 0 auto 32px;
}

body.page--blog-mobile .faq h2 {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 16px;
    line-height: 1.3;
    text-align: center;
}

body.page--blog-mobile .faq details {
    background-color: #1a1a1f;
    border: 1px solid #333;
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

body.page--blog-mobile .faq details summary {
    list-style: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6ecdfc;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

body.page--blog-mobile .faq details summary::-webkit-details-marker {
    display: none;
}

body.page--blog-mobile .faq details summary::after {
    content: "\25B6";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1rem;
    color: #e0e0e0;
    transition: transform 0.2s ease;
}

body.page--blog-mobile .faq details[open] summary::after {
    transform: rotate(90deg);
}

body.page--blog-mobile .faq details p {
    font-size: 1rem;
    color: #e0e0e0;
    margin-top: 12px;
    line-height: 1.5;
}

body.page--blog-mobile .faq details p a {
    color: #6ecdfc;
    text-decoration: underline;
}

@media (max-width: 400px) {
    body.page--blog-mobile .content-block {
        padding: 18px 14px;
    }
    body.page--blog-mobile .content-block h2 {
        font-size: 1.6rem;
    }
    body.page--blog-mobile .content-block h3 {
        font-size: 1.1rem;
    }
    body.page--blog-mobile .content-block p,
    body.page--blog-mobile .content-block ul li {
        font-size: 0.95rem;
    }
    body.page--blog-mobile .faq h2 {
        font-size: 1.6rem;
    }
    body.page--blog-mobile .faq details {
        padding: 10px 12px;
    }
    body.page--blog-mobile .faq details summary {
        font-size: 1rem;
    }
    body.page--blog-mobile .faq details p {
        font-size: 0.95rem;
    }
}
/* по умолчанию показываем десктоп-контент  */
.viewport-mobile  { display:none; }
.viewport-desktop { display:block; }

/* 0-500 px: включаем мобильный блок, прячем десктопный */
@media (max-width:500px){
    .viewport-mobile  { display:block; }
    .viewport-desktop { display:none; }
}












