/* football-clubs.ru — без CSS-фреймворков и внешних шрифтов */
:root {
    color-scheme: light dark;
    --bg: #f5f7f8;
    --surface: #ffffff;
    --surface-soft: #f0f3f4;
    --text: #17201d;
    --muted: #64706b;
    --line: #dfe5e2;
    --accent: #19714f;
    --accent-strong: #11583e;
    --accent-soft: #e3f3ec;
    --danger: #b54840;
    --live: #c73b35;
    --finished-bg: #dbeeff;
    --finished-text: #176b9e;
    --scheduled-bg: #e7eaec;
    --scheduled-text: #59636a;
    --shadow: 0 12px 36px rgba(22, 46, 36, .08);
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 9px;
    --shell: 1480px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #101613;
        --surface: #17201c;
        --surface-soft: #1d2924;
        --text: #edf5f1;
        --muted: #9aaba3;
        --line: #2b3933;
        --accent: #55bf8e;
        --accent-strong: #78d5a8;
        --accent-soft: #19362a;
        --finished-bg: #16384d;
        --finished-text: #83cdf7;
        --scheduled-bg: #30383c;
        --scheduled-text: #c5cdd1;
        --shadow: 0 14px 40px rgba(0, 0, 0, .26);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 300px;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 35rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
    text-underline-offset: .2em;
}

a:hover {
    color: var(--accent);
}

button,
input,
select {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

.shell {
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 750;
    text-decoration: none;
    letter-spacing: -.02em;
}

.brand__mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: var(--accent);
    font-size: 13px;
    letter-spacing: .04em;
}

.brand__mark svg {
    width: 28px;
    height: 28px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand__mark .brand__ball {
    fill: currentColor;
    stroke: none;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.language-switch a {
    text-decoration: none;
    padding: 5px 2px;
}

.language-switch a.is-active {
    color: var(--accent);
}

.hero {
    padding: clamp(34px, 5vw, 68px) 0 24px;
}

.eyebrow {
    margin: 0 0 9px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 1180px;
    margin: 0;
    font-size: clamp(32px, 4.2vw, 64px);
    line-height: 1;
    letter-spacing: -.048em;
}


.layout {
    padding-bottom: 42px;
}

.notice,
.empty-state {
    padding: 17px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--muted);
}

.notice {
    margin-bottom: 18px;
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    background: var(--accent-soft);
    color: var(--text);
}

.date-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.date-nav__link {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease, background-color .16s ease;
}

.date-nav__link:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    transform: translateY(-1px);
}

.date-nav__link--active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.date-nav__link span {
    font-weight: 720;
}

.date-nav__link small {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.filters {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.filters__heading,
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
}

.filters__heading {
    margin-bottom: 16px;
}

.filters h2,
.section-heading h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -.025em;
}

.filters__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.field {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.field > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.field select,
.field input {
    min-width: 0;
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    color: var(--text);
    background: var(--surface-soft);
}

.field select:focus,
.field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}





.native-country-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

.country-picker {
    position: relative;
}

.country-picker > summary {
    list-style: none;
}

.country-picker > summary::-webkit-details-marker {
    display: none;
}

.country-picker__summary {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: 0;
    color: var(--text);
    background: var(--surface-soft);
    cursor: pointer;
    user-select: none;
}

.country-picker[open] .country-picker__summary {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.country-picker__current,
.country-picker__option {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-picker__current img,
.country-picker__option img {
    width: 24px;
    height: 16px;
    flex: 0 0 24px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 85%, transparent);
}

.country-picker__chevron {
    color: var(--muted);
    font-size: 17px;
    transition: transform .16s ease;
}

.country-picker[open] .country-picker__chevron {
    transform: rotate(180deg);
}

.country-picker__menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: min(420px, 55vh);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.country-picker__option {
    width: 100%;
    min-height: 40px;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    background: transparent;
    text-align: left;
}

.country-picker__option:hover,
.country-picker__option:focus-visible {
    background: var(--surface-soft);
    outline: 0;
}

.country-picker__option.is-selected {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.button {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
}

.button--ghost {
    border-color: var(--line);
    color: var(--muted);
    background: transparent;
}

.button--ghost:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.section-heading {
    margin: 32px 0 14px;
}

.section-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.section-heading > time {
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.match-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 7px 24px rgba(22, 46, 36, .04);
}

.match-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-soft) 66%, var(--surface));
}

.competition {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.competition a {
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}


.competition__country,
.competition__league {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.competition__body {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
}

.governing-body-logo {
    width: 35px;
    height: 20px;
    flex: 0 0 35px;
    border-radius: 5px;
    object-fit: contain;
}

.country-flag {
    width: 24px;
    height: 16px;
    flex: 0 0 24px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 85%, transparent);
}

.league-logo {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}

.status {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.status--live {
    color: #fff;
    background: var(--live);
}

.status--finished {
    color: var(--finished-text);
    background: var(--finished-bg);
}

.status--scheduled {
    color: var(--scheduled-text);
    background: var(--scheduled-bg);
}

.match-card__body {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 126px;
}

.match-card__time {
    display: grid;
    place-items: center;
    border-right: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.match-card__time time {
    display: grid;
    gap: 2px;
    text-align: center;
}

.match-card__time strong {
    color: var(--text);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.teams {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 18px;
}

.team {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 14px;
    align-items: center;
}



.team__identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.team-logo {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}

.team__name {
    overflow: hidden;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team__score {
    font-size: 23px;
    line-height: 1;
    text-align: right;
    font-variant-numeric: tabular-nums;
}


.site-footer {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 38px;
    padding: 24px 0 10px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.site-footer p {
    margin: 0;
}

.is-hidden {
    display: none !important;
}

/* Ноутбуки / узкие десктопы */
@media (max-width: 1050px) {
    :root {
        --shell: 940px;
    }

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

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

/* Планшеты */
@media (max-width: 720px) {
    .shell {
        width: min(calc(100% - 28px), var(--shell));
    }

    .site-header__inner {
        min-height: 62px;
    }

    .brand__text {
        font-size: 15px;
    }

    .hero {
        padding-top: 34px;
    }

    .date-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters {
        padding: 16px;
        border-radius: 18px;
    }

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

/* Смартфоны */
@media (max-width: 480px) {
    .shell {
        width: min(calc(100% - 20px), var(--shell));
    }

    .brand__mark {
        width: 34px;
        height: 34px;
    }

    .hero h1 {
        font-size: clamp(28px, 9.5vw, 42px);
    }

    .date-nav {
        gap: 7px;
    }

    .date-nav__link {
        min-height: 64px;
        padding: 11px 12px;
        border-radius: 12px;
        font-size: 13px;
    }

    .filters__heading,
    .section-heading {
        align-items: flex-start;
    }

    .section-heading {
        flex-direction: column;
        gap: 6px;
    }

    .section-heading > time {
        text-align: left;
    }

    .match-card {
        border-radius: 16px;
    }

    .match-card__meta {
        align-items: flex-start;
    }

    .competition {
        flex-wrap: wrap;
        white-space: normal;
    }

    .match-card__body {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .teams {
        padding: 15px 13px;
    }

    .team {
        grid-template-columns: minmax(0, 1fr) 34px;
        gap: 8px;
    }

    .team__score {
        font-size: 21px;
    }

    .site-footer {
        flex-direction: column;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
