/* ===================================================================
   Public site — Russian, polished, responsive
   =================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f4f7fc;
    --bg-gradient: radial-gradient(circle at top left, rgba(49, 94, 251, 0.1), transparent 32%), radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 24%), linear-gradient(180deg, #f8fbff 0%, #f4f7fc 100%);
    --surface: rgba(255, 255, 255, 0.9);
    --surface-solid: #ffffff;
    --surface-muted: #eef4ff;
    --text: #13233a;
    --text-muted: #5f6f85;
    --accent: #315efb;
    --accent-hover: #2248de;
    --accent-soft: rgba(49, 94, 251, 0.1);
    --live: #d63c3c;
    --live-soft: rgba(214, 60, 60, 0.08);
    --success: #18794e;
    --success-soft: rgba(24, 121, 78, 0.09);
    --warning: #b86b00;
    --warning-soft: rgba(184, 107, 0, 0.1);
    --border: rgba(19, 35, 58, 0.1);
    --shadow-lg: 0 28px 60px rgba(49, 94, 251, 0.12);
    --shadow-md: 0 18px 34px rgba(19, 35, 58, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1180px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font);
    background: var(--bg-gradient);
    color: var(--text);
    line-height: 1.55;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 18px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(248, 251, 255, 0.88);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 14px 0;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    padding: 8px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(49, 94, 251, 0.12), rgba(16, 185, 129, 0.1));
    box-shadow: inset 0 0 0 1px rgba(49, 94, 251, 0.08);
}

.logo-text {
    color: var(--text);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.1;
}

.site-main {
    flex: 1;
    padding: 32px 0 48px;
}

.section-kicker,
.day-kicker {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 8px 0 22px;
}

.home-intro h1 {
    margin-top: 6px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.08;
}

.section-note {
    max-width: 420px;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: right;
}

.day-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.day-card {
    display: block;
    min-height: 340px;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-md);
    color: var(--text);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.day-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(49, 94, 251, 0.18);
}

.day-card--today {
    background: linear-gradient(180deg, rgba(49, 94, 251, 0.08) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.day-card__top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.day-card__title {
    font-size: 1.65rem;
    line-height: 1.08;
}

.day-card__badge {
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.day-card__date {
    display: block;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.day-card__preview {
    margin-top: 18px;
    list-style: none;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.day-card__preview li {
    padding: 8px 0;
    border-top: 1px solid rgba(19, 35, 58, 0.07);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-card__preview .more {
    color: var(--accent);
    font-weight: 700;
}

.day-card__empty {
    margin-top: 18px;
    color: var(--text-muted);
}

.day-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--accent);
    font-weight: 800;
}

.day-card__cta::after {
    content: "→";
}

.day-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-lg);
}

.day-header h1 {
    margin-top: 10px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
}

.match-count {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-solid);
    color: var(--text);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.back-link:hover {
    color: var(--accent);
    border-color: rgba(49, 94, 251, 0.24);
}

.matches-grid {
    display: grid;
    gap: 18px;
}

.match-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(19, 35, 58, 0.08);
    box-shadow: var(--shadow-md);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(49, 94, 251, 0.18);
}

.match-card--running {
    border-color: rgba(214, 60, 60, 0.28);
    box-shadow: 0 18px 34px rgba(214, 60, 60, 0.12);
}

.match-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(49, 94, 251, 0.06) 0%, rgba(255, 255, 255, 0.7) 100%);
    color: var(--text-muted);
    font-size: 0.84rem;
    border-bottom: 1px solid rgba(19, 35, 58, 0.06);
}

.match-card__league-logo {
    border-radius: 6px;
    flex-shrink: 0;
}

.match-card__league {
    color: var(--text);
    font-weight: 700;
}

.match-card__separator {
    opacity: 0.5;
}

.match-card__body {
    display: grid;
    grid-template-columns: 1fr minmax(110px, auto) 1fr;
    align-items: center;
    gap: 20px;
    padding: 22px 18px;
}

.match-card__team {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.match-card__team--right {
    justify-content: flex-end;
    text-align: right;
}

.match-card__team--single {
    grid-column: 1 / -1;
    justify-content: center;
    text-align: center;
}

.team-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(19, 35, 58, 0.08);
    flex-shrink: 0;
}

.team-logo--placeholder {
    display: inline-block;
    background: linear-gradient(135deg, rgba(49, 94, 251, 0.08), rgba(95, 111, 133, 0.12));
}

.team-name {
    min-width: 0;
    font-size: 1rem;
    font-weight: 800;
    word-break: break-word;
}

.team-name--winner {
    color: var(--success);
}

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

.score-text {
    display: block;
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.score-vs {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.match-format {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
}

.match-card__tbd {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

.match-card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 18px 18px;
}

.match-card__game,
.match-card__time,
.match-card__status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--surface-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.match-card__game {
    color: var(--accent);
}

.match-card__time {
    color: var(--text-muted);
}

.match-card__status {
    color: var(--text);
}

.match-card__status--running {
    background: var(--live-soft);
    color: var(--live);
}

.match-card__status--finished {
    background: var(--success-soft);
    color: var(--success);
}

.match-card__status--canceled,
.match-card__status--postponed {
    background: var(--warning-soft);
    color: var(--warning);
}

.match-card__stream {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d63c3c 0%, #ff5a5a 100%);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(214, 60, 60, 0.2);
}

.empty-state {
    padding: 54px 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(19, 35, 58, 0.08);
    text-align: center;
    color: var(--text-muted);
    box-shadow: var(--shadow-md);
}

.site-footer {
    margin-top: auto;
    padding: 24px 0 28px;
    border-top: 1px solid rgba(19, 35, 58, 0.08);
}

.footer-inner {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-inner a {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .hero--home {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .site-main {
        padding-top: 20px;
    }

    .day-header,
    .day-card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .home-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-note {
        max-width: none;
        text-align: left;
    }

    .day-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-link {
        width: 100%;
    }

    .match-card__body {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .match-card__team,
    .match-card__team--right {
        justify-content: center;
        text-align: center;
    }

    .match-card__footer {
        padding-bottom: 16px;
    }

    .match-card__stream {
        margin-left: 0;
        width: 100%;
    }
}
