/* =========================================================
   Футбольная база — «Газон и табло»
   Стадионный стиль: зелёный газон, разметка поля,
   плоские карточки с жёсткими тенями, дисплейный Oswald.
   ========================================================= */

:root {
    --bg: #0b0f0d;
    --bg-soft: #0e1411;
    --surface: #121815;
    --surface-2: #18201b;
    --line: rgba(214, 240, 224, 0.1);
    --line-strong: rgba(214, 240, 224, 0.24);
    --text: #eef3ee;
    --muted: #9aa89f;
    --muted-2: #6d7d72;
    --accent: #3ecf72;
    --accent-dim: #27a857;
    --accent-ink: #07130c;
    --accent-soft: rgba(62, 207, 114, 0.12);
    --pitch-line: rgba(62, 207, 114, 0.16);
    --hover-wash: rgba(222, 255, 235, 0.05);
    --header-bg: rgba(9, 13, 11, 0.88);
    --badge-bg: rgba(7, 12, 9, 0.8);
    --hard-shadow: 7px 7px 0 rgba(62, 207, 114, 0.16);
    --radius: 8px;
    --radius-sm: 4px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

img {
    max-width: 100%;
    display: block;
}

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

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.12;
    font-family: "Oswald", "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

p {
    margin: 0 0 1em;
}

.container {
    width: min(1240px, 100% - 40px);
    margin-inline: auto;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------------------------- header ---------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--accent);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 64px;
    flex-wrap: wrap;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 18px;
    text-transform: uppercase;
    white-space: nowrap;
}

.logo__mark {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
    font-size: 17px;
    font-weight: 700;
}

.logo__text span {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nav a {
    padding: 7px 12px 6px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.nav a:hover {
    color: var(--text);
    background: var(--hover-wash);
    border-color: var(--line);
}

.nav a.is-active {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: var(--accent);
}

/* ---------------------------- blocks ---------------------------- */

.section {
    padding: 56px 0;
}

.section--tight {
    padding: 32px 0;
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section__title {
    font-size: clamp(21px, 2.4vw, 27px);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section__title::before {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--accent);
    display: block;
    flex: none;
}

.section__link {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 2px solid var(--line-strong);
    padding-bottom: 2px;
    transition: color 0.15s, border-color 0.15s;
}

.section__link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.eyebrow {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ---------------------------- hero ---------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    padding: 76px 0 60px;
    background: var(--bg-soft);
}

/* Разметка поля: центральный круг, точка и линия середины */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, var(--pitch-line) 1.5px, transparent 1.5px),
        radial-gradient(circle 150px at 50% 42%, transparent 147px, var(--pitch-line) 149px, transparent 152px),
        radial-gradient(circle 6px at 50% 42%, var(--pitch-line) 5px, transparent 6px);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero h1 {
    font-size: clamp(34px, 5.2vw, 60px);
    margin-bottom: 18px;
    font-weight: 600;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero p {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--muted);
    max-width: 620px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin-top: 38px;
    max-width: 720px;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 14px 16px 12px;
}

.stat b {
    display: block;
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text);
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.stat span {
    display: block;
    margin-top: 4px;
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---------------------------- cards ---------------------------- */

.grid {
    display: grid;
    gap: 20px;
}

/* Грид-элементы не должны раздуваться от длинных строк внутри */
.grid > * {
    min-width: 0;
}

.grid--players {
    grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
}

.grid--articles {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid--tiles {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.player-card {
    position: relative;
    display: block;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.player-card:hover {
    transform: translate(-2px, -2px);
    border-color: var(--accent);
    box-shadow: var(--hard-shadow);
}

.player-card__photo {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--surface-2);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.player-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.player-card:hover .player-card__photo img {
    transform: scale(1.04);
}

.player-card__body {
    padding: 13px 16px 15px;
}

.player-card__name {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.player-card__meta {
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.dot-sep::after {
    content: "·";
    color: var(--muted-2);
}

.player-card__club {
    margin-top: 9px;
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--badge-bg);
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 9px 3px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.badge--accent {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

/* ---------------------------- article card ---------------------------- */

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.article-card:hover {
    transform: translate(-2px, -2px);
    border-color: var(--accent);
    box-shadow: var(--hard-shadow);
}

.article-card__bar {
    height: 4px;
    background: var(--accent);
}

.article-card__body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.article-card__rubric {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.article-card__title {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.article-card__excerpt {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    flex: 1;
}

.article-card__meta {
    font-size: 12px;
    color: var(--muted-2);
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ---------------------------- letters ---------------------------- */

.letters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.letter {
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface);
    transition: all 0.15s ease;
}

.letter:hover {
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-color: var(--accent);
}

.letter.is-active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

.letter.is-empty {
    opacity: 0.28;
    pointer-events: none;
}

/* ---------------------------- filters ---------------------------- */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 26px;
}

.filters select,
.filters input {
    appearance: none;
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font: inherit;
    font-size: 13.5px;
    min-width: 0;
    flex: 1 1 150px;
    max-width: 100%;
}

.filters select:focus,
.filters input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px 9px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn:hover {
    opacity: 0.88;
}

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

.btn--ghost:hover {
    color: var(--text);
    border-color: var(--muted);
    opacity: 1;
}

/* ---------------------------- page head ---------------------------- */

.page-head {
    padding: 44px 0 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 34px;
}

.page-head h1 {
    font-size: clamp(28px, 3.8vw, 44px);
    margin-bottom: 12px;
}

.page-head p {
    color: var(--muted);
    max-width: 640px;
    margin: 0;
}

.page-head__meta {
    margin-top: 16px;
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------------------------- player page ---------------------------- */

.player-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
    padding: 40px 0 44px;
}

.player-hero__photo {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    position: sticky;
    top: 90px;
}

.player-hero__photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.player-hero h1 {
    font-size: clamp(30px, 4.2vw, 50px);
    margin-bottom: 6px;
}

.player-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 24px;
}

.fact {
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 9px 14px 8px;
}

.fact span {
    display: block;
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 2px;
}

.fact b {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.prose {
    max-width: 780px;
    color: var(--text);
}

.prose p {
    font-size: 16.5px;
    line-height: 1.75;
    margin-bottom: 1.15em;
}

.prose h2 {
    font-size: clamp(20px, 2.2vw, 26px);
    margin: 38px 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--accent);
}

.player-bio {
    font-size: 17px;
    color: var(--text);
    max-width: 780px;
    margin-bottom: 28px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-block;
    padding: 5px 12px 4px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.15s, color 0.15s;
}

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

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.panel + .panel {
    margin-top: 20px;
}

.panel__title {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel__title::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--accent);
    flex: none;
}

.panel__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ---------------------------- timeline ---------------------------- */

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline li {
    display: grid;
    grid-template-columns: 118px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px dashed var(--line);
}

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

.timeline__years {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--accent);
    font-size: 14.5px;
    letter-spacing: 0.02em;
}

.timeline__club {
    font-weight: 700;
    font-size: 15.5px;
}

.timeline__club small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    font-size: 12.5px;
}

.timeline__now {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: var(--radius-sm);
    padding: 3px 9px 2px;
}

.timeline--articles li {
    grid-template-columns: 160px 1fr;
    align-items: start;
}

/* Строка сборной в таймлайне карьеры */
.timeline__nt {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    margin-left: -12px;
}

.timeline__years--nt {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.timeline--articles .timeline__rubric {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-top: 3px;
}

.timeline--articles .timeline__club a {
    color: var(--text);
}

.timeline--articles .timeline__club a:hover {
    color: var(--accent);
}

/* ---------------------------- tiles ---------------------------- */

.tile {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.tile:hover {
    transform: translate(-2px, -2px);
    border-color: var(--accent);
    box-shadow: var(--hard-shadow);
}

.tile__count {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.tile__name {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-top: 6px;
}

.tile__sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

/* ---------------------------- pagination ---------------------------- */

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface);
    font-variant-numeric: tabular-nums;
}

.pagination a:hover {
    color: var(--accent-ink);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.pagination .is-current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.pagination .is-dots {
    border: 0;
    background: transparent;
}

.pagination .is-disabled {
    opacity: 0.35;
}

/* ---------------------------- empty ---------------------------- */

.empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

/* ---------------------------- footer ---------------------------- */

.site-footer {
    margin-top: 60px;
    border-top: 2px solid var(--accent);
    background: var(--bg-soft);
    padding: 44px 0 36px;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.site-footer p {
    color: var(--muted);
    font-size: 13.5px;
    margin: 8px 0 0;
    max-width: 460px;
}

.footer-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--muted);
}

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

/* ---------------------------- misc ---------------------------- */

.hero-article {
    padding: 48px 0 36px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
    margin-bottom: 40px;
}

.hero-article h1 {
    font-size: clamp(28px, 4.4vw, 48px);
    max-width: 900px;
    margin-bottom: 18px;
}

.hero-article__lead {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--muted);
    max-width: 760px;
}

.hero-article__meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
    align-items: center;
}

.rubric-badge {
    display: inline-block;
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 11px 3px;
    border-radius: var(--radius-sm);
    border: 1px solid currentColor;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.aside {
    position: sticky;
    top: 90px;
}

.aside .panel + .panel {
    margin-top: 16px;
}

.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.link-list li {
    border-bottom: 1px solid var(--line);
}

.link-list li:last-child {
    border-bottom: 0;
}

.link-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    font-size: 14px;
    color: var(--muted);
}

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

.link-list b {
    color: var(--text);
    font-weight: 600;
}

.pager-pair {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pager-pair a {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--muted);
    max-width: 48%;
    transition: border-color 0.15s, color 0.15s;
}

.pager-pair a:hover {
    border-color: var(--accent);
    color: var(--text);
}

.pager-pair span {
    display: block;
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 4px;
}

/* ---------------------------- breadcrumbs ---------------------------- */

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 20px 0 4px;
    font-size: 12.5px;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.crumbs a {
    color: var(--muted);
}

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

.crumbs span[aria-current="page"] {
    color: var(--text);
}

.crumbs__sep {
    color: var(--accent);
    opacity: 0.7;
}

/* ---------------------------- club page ---------------------------- */

.club-hero {
    padding: 18px 0 34px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 30px;
}

.club-hero h1 {
    font-size: clamp(30px, 3.8vw, 44px);
    letter-spacing: 0.01em;
    margin-top: 8px;
}

.club-hero__intro {
    margin-top: 14px;
    max-width: 780px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.62;
}

.club-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.club-facts .fact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 18px;
    min-width: 118px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
}

.club-facts .fact span {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-2);
}

.club-facts .fact b {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.grid--clubs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
    gap: 14px;
}

.club-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.club-tile:hover {
    transform: translate(-2px, -2px);
    border-color: var(--accent);
    box-shadow: var(--hard-shadow);
}

.club-tile__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-2);
}

.club-tile__year {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.club-tile__name {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.club-tile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 12.5px;
    color: var(--muted);
}

.player-card__spell {
    margin-top: 8px;
    font-size: 12.5px;
    text-align: center;
    color: var(--muted);
}

/* ---------------------------- career extras ---------------------------- */

.timeline__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.timeline__stats .timeline__now {
    color: var(--accent);
    font-weight: 600;
    background: transparent;
    padding: 0;
}

.mates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mates li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}

.mates li a {
    font-weight: 600;
}

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

.mates li span {
    font-size: 12.5px;
    color: var(--muted);
}

/* ---------------------------- theme toggle ---------------------------- */

/* ---------------------------- header search ---------------------------- */

.header-search {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-left: auto;
    min-width: 150px;
}

.header-search input {
    appearance: none;
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 6px 10px;
    font: inherit;
    font-size: 13px;
    width: 150px;
    transition: width 0.2s ease, border-color 0.15s;
}

.header-search input:focus {
    outline: none;
    border-color: var(--accent);
    width: 210px;
}

.header-search button {
    display: grid;
    place-items: center;
    width: 32px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
}

.header-search button svg {
    width: 14px;
    height: 14px;
}

/* ---------------------------- search page ---------------------------- */

.search-form {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    max-width: 640px;
}

.search-form input {
    flex: 1;
    appearance: none;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font: inherit;
    font-size: 15px;
}

.search-form input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

/* ---------------------------- deep biography ---------------------------- */

.player-bio-full {
    margin: -8px 0 28px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
}

/* ---------------------------- career ribbon ---------------------------- */

.career-ribbon {
    margin-bottom: 18px;
}

.career-ribbon svg {
    display: block;
    width: 100%;
    height: 54px;
}

.career-ribbon__base {
    fill: var(--line);
}

.career-ribbon__segment {
    fill: var(--accent-dim);
    opacity: 0.82;
}

.career-ribbon__segment:nth-child(even) {
    fill: var(--accent);
    opacity: 0.9;
}

.career-ribbon__segment.is-current {
    fill: var(--accent);
}

.career-ribbon__segment:hover {
    opacity: 1;
}

.career-ribbon__scale {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}

.career-ribbon__age {
    font-size: 10.5px;
    color: var(--muted-2);
}

/* ---------------------------- goals chart ---------------------------- */

.goal-bars {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--line);
}

.goal-bars__title {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 10px;
}

.goal-bars__row {
    display: grid;
    grid-template-columns: minmax(80px, 160px) 1fr 36px;
    gap: 10px;
    align-items: center;
    padding: 3px 0;
}

.goal-bars__club {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goal-bars__track {
    display: block;
    height: 10px;
    background: var(--surface-2);
    border-radius: 2px;
    overflow: hidden;
}

.goal-bars__track i {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.goal-bars__value {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---------------------------- compare ---------------------------- */

.compare-choose {
    margin-bottom: 10px;
}

.compare-form {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: end;
}

.compare-form label {
    display: block;
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 6px;
}

.compare-form input {
    width: 100%;
    appearance: none;
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
}

.compare-form input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.compare-form__vs {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    padding-bottom: 12px;
}

.compare-form__picked,
.compare-form__miss {
    margin-top: 6px;
    font-size: 12.5px;
}

.compare-form__picked a {
    color: var(--accent);
    font-weight: 600;
}

.compare-form__miss {
    color: #e05656;
}

.compare-form .btn {
    grid-column: 3;
    justify-self: end;
}

.compare-head__vs {
    color: var(--accent);
}

.compare-heroes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.compare-hero {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: border-color 0.15s ease;
}

.compare-hero:hover {
    border-color: var(--accent);
}

.compare-hero__photo {
    grid-row: 1 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.compare-hero__photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.compare-hero__name {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.compare-hero__meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.compare-hero__badge {
    position: absolute;
    top: 10px;
    left: auto;
    right: 10px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.compare-table th {
    font-family: "Oswald", "Inter", Arial, sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
    text-align: center;
    padding: 10px 12px;
    border-bottom: 1px dashed var(--line);
    width: 30%;
}

.compare-table td {
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px dashed var(--line);
    font-variant-numeric: tabular-nums;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
    border-bottom: 0;
}

/* ---------------------------- responsive additions ---------------------------- */

@media (max-width: 980px) {
    .header-search input {
        width: 110px;
    }

    .header-search input:focus {
        width: 130px;
    }

    .compare-form {
        grid-template-columns: 1fr;
    }

    .compare-form__vs {
        display: none;
    }

    .compare-form .btn {
        grid-column: 1;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .header-search {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .header-search input,
    .header-search input:focus {
        width: 100%;
        flex: 1;
    }

    .header-search button {
        width: 38px;
    }

    .search-form {
        flex-direction: column;
    }

    .compare-heroes {
        grid-template-columns: 1fr;
    }

    .compare-hero {
        grid-template-columns: 84px 1fr;
    }

    .career-ribbon__age {
        display: none;
    }
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

.theme-toggle .icon-moon {
    display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

html[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

/* ---------------------------- light theme: бумажный альманах ---------------------------- */

html[data-theme="light"] {
    --bg: #f4f2ea;
    --bg-soft: #edebe0;
    --surface: #fbfaf5;
    --surface-2: #efede1;
    --line: rgba(26, 38, 31, 0.14);
    --line-strong: rgba(26, 38, 31, 0.32);
    --text: #1a261f;
    --muted: #55645a;
    --muted-2: #7d8b81;
    --accent: #15754a;
    --accent-dim: #0e5d3a;
    --accent-ink: #f7fbf8;
    --accent-soft: rgba(21, 117, 74, 0.1);
    --pitch-line: rgba(21, 117, 74, 0.18);
    --hover-wash: rgba(26, 38, 31, 0.05);
    --header-bg: rgba(244, 242, 234, 0.9);
    --badge-bg: rgba(251, 250, 245, 0.92);
    --hard-shadow: 7px 7px 0 rgba(21, 117, 74, 0.14);
}

html[data-theme="light"] body {
    background: var(--bg);
    color: var(--text);
}

html[data-theme="light"] .badge {
    color: var(--text);
}

/* ---------------------------- responsive ---------------------------- */

@media (max-width: 980px) {
    .player-hero {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .player-hero__photo {
        position: static;
        max-width: 260px;
    }

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

    .aside {
        position: static;
    }
}

@media (max-width: 640px) {
    .site-header__inner {
        gap: 12px;
        padding: 10px 0;
    }

    .nav {
        gap: 2px;
    }

    .nav a {
        padding: 6px 9px 5px;
        font-size: 11.5px;
        letter-spacing: 0.06em;
    }

    .section {
        padding: 36px 0;
    }

    .hero {
        padding: 52px 0 44px;
    }

    .hero::after {
        background-image:
            linear-gradient(90deg, var(--pitch-line) 1.5px, transparent 1.5px),
            radial-gradient(circle 110px at 50% 30%, transparent 107px, var(--pitch-line) 109px, transparent 112px),
            radial-gradient(circle 6px at 50% 30%, var(--pitch-line) 5px, transparent 6px);
    }

    .grid--players {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .timeline li {
        grid-template-columns: 96px 1fr;
    }

    .timeline__stats {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .container {
        width: min(1240px, 100% - 28px);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
