/* Милан България 2.0 — цветовете са извадени от собственото лого на клуба:
   червено, черно и златото на лавровия венец. */

:root {
    --ink:        #100F10;
    --ink-2:      #1B1819;
    --text:       #161414;
    --text-soft:  #514A4D;
    --muted:      #7A7175;
    --paper:      #FFFFFF;
    --surface:    #F7F5F3;
    --rule:       #E2DCD6;
    --red:        #BE2028;
    --red-hot:    #E0202B;
    --gold:       #C39A4E;
    --ok:         #1F6F45;

    --display: "Oswald", "Arial Narrow", Arial, sans-serif;
    --body:    "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

    --wrap: 1180px;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hot); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

h1, h2, h3 {
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: 1.05;
    margin: 0;
    text-wrap: balance;
}

/* ------------------------------------------------------------- глава */

.site-head { background: var(--ink); }
.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-family: var(--display); font-weight: 600; font-size: 19px;
    letter-spacing: .06em; text-transform: uppercase; color: #FFF; line-height: 1;
}
.brand-sub {
    color: var(--gold); font-size: 11px; letter-spacing: .18em;
    text-transform: uppercase; margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav a {
    font-family: var(--display); font-size: 13.5px; font-weight: 500;
    letter-spacing: .05em; text-transform: uppercase; color: #E8E4E0;
    white-space: nowrap;
}
.nav a:hover { color: #FFF; }

.rossoneri {
    height: 6px;
    background: repeating-linear-gradient(90deg, var(--red) 0 40px, var(--ink) 40px 80px);
}

/* ------------------------------------------------------------ бутони */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--display); font-weight: 600; letter-spacing: .07em;
    text-transform: uppercase; font-size: 14px;
    padding: 12px 22px; border: 1px solid transparent; cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.btn-lg { font-size: 17px; padding: 17px 34px; }
.btn-primary { background: var(--red); color: #FFF; }
.btn-primary:hover { background: var(--red-hot); color: #FFF; }
.btn-dark { background: var(--ink); color: #FFF; }
.btn-dark:hover { background: #000; color: #FFF; }
.btn-ghost { border-color: #4A4245; color: #E8E4E0; }
.btn-ghost:hover { border-color: #FFF; color: #FFF; }
.btn-join { background: var(--red); color: #FFF; padding: 12px 22px; }
.btn-join:hover { background: var(--red-hot); color: #FFF; }

/* Върху светъл фон призрачният бутон трябва да е четим — иначе изглежда
   изключен. Балончето за бисквитки лежи на светло като секциите. */
.section .btn-ghost,
.section.center .btn-ghost,
.consent .btn-ghost,
.returning .btn-ghost { border-color: var(--rule); color: var(--text-soft); }
.section .btn-ghost:hover,
.consent .btn-ghost:hover,
.returning .btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* -------------------------------------------------------------- герой */

.hero {
    background-color: var(--ink);
    background-image:
        linear-gradient(100deg, rgba(16,15,16,.96) 0%, rgba(16,15,16,.86) 42%, rgba(16,15,16,.62) 100%),
        url("../img/hero.jpg");
    background-size: cover;
    background-position: center 38%;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(104deg, rgba(190,32,40,.13) 0 3px, transparent 3px 34px);
}
.hero-inner {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 56px;
    padding-top: 82px; padding-bottom: 74px;
}
.hero-text { max-width: 660px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { color: #FFF; font-size: clamp(38px, 5.4vw, 66px); font-weight: 700; }
.hero h1 .accent { color: var(--red-hot); }
.hero .lede { color: #B9B1B4; font-size: 17px; margin: 0; max-width: 52ch; }
.hero-crest { flex-shrink: 0; }
.hero-note {
    color: #D9CFCC; font-size: 15px; margin: 0;
    border-left: 3px solid var(--gold); padding-left: 14px;
}

.eyebrow {
    display: flex; align-items: center; gap: 12px; margin: 0;
    color: var(--gold); font-size: 12px; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow .rule { width: 34px; height: 2px; background: var(--gold); display: block; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-actions.center { justify-content: center; }

/* -------------------------------------------------------------- числа */

.stats { padding: 44px 0 8px; }
.stat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.stat { background: var(--paper); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.stat .n { font-family: var(--display); font-size: 38px; font-weight: 600; line-height: 1; }
.stat .n.accent { color: var(--red); }
.stat .n.gold { color: var(--gold); }
.stat .l { font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------------ раздели */

.section { padding: 62px 0; }
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 32px;
}
.section-head h2 { font-size: 38px; font-weight: 600; }
.section-title {
    font-size: 22px; font-weight: 600; letter-spacing: .06em;
    border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 24px;
}
.eyebrow-sm {
    margin: 0 0 4px; color: var(--red); font-size: 12px; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow-sm.gold { color: var(--gold); }
.eyebrow-sm.ok { color: var(--ok); }
.more { font-family: var(--display); font-size: 14px; letter-spacing: .08em;
        text-transform: uppercase; color: var(--text); font-weight: 500; }
.lede { font-size: 17.5px; color: var(--text-soft); }
.empty { color: var(--muted); }

/* ------------------------------------------------------------- карти */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.card { display: flex; flex-direction: column; }
/* Корицата вече е същинско изображение, не фон в CSS — така браузърът
   може да избере WebP и да отложи зареждането ѝ. */
.card-media {
    display: block; aspect-ratio: 3 / 2; overflow: hidden;
    background: linear-gradient(140deg, #22191B 0%, var(--ink) 60%);
    position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media picture { display: block; height: 100%; }
/* Шарката е ЗАМЕСТИТЕЛ за липсваща снимка, не украса върху снимките.
   :empty я показва само когато в картата няма изображение. */
.card-media:empty::after {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, rgba(190,32,40,.12) 0 16px, transparent 16px 32px);
}
.card-body {
    background: var(--surface); border-left: 3px solid var(--red);
    padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1;
}
.card-body time { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.card-body h3 { font-size: 21px; font-weight: 600; line-height: 1.2; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--red); }
.card-body p { margin: 0; color: var(--text-soft); font-size: 14.5px; }

/* --------------------------------------------------------- заглавие */

.page-head { background: var(--surface); border-bottom: 1px solid var(--rule); }
.page-head-inner { padding-top: 42px; padding-bottom: 42px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }

/* ------------------------------------------------- категории на вноса */

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tier {
    border: 1px solid var(--rule); padding: 22px;
    display: flex; flex-direction: column; gap: 5px;
}
.tier-auto { border-color: var(--gold); background: #FDFBF6; }
.tier-amount { font-family: var(--display); font-size: 34px; font-weight: 600; color: var(--red); line-height: 1; }
.tier-label { font-family: var(--display); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.tier-note { font-size: 13px; color: var(--muted); }

.notice {
    margin-top: 26px; border-left: 3px solid var(--gold); background: var(--surface);
    padding: 15px 18px; color: var(--text-soft); font-size: 14.5px;
}

.clock-badge {
    width: 68px; height: 68px; margin: 0 auto 20px;
    border: 2px solid var(--gold); border-radius: 50%; color: var(--gold);
    display: flex; align-items: center; justify-content: center;
}

/* ------------------------------------------------------------ призив */

.cta { background: var(--red); }
.cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 44px; padding-top: 52px; padding-bottom: 52px; flex-wrap: wrap;
}
.cta h2 { color: #FFF; font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; }
.cta p { color: #F6D8DA; margin: 10px 0 0; max-width: 56ch; }

/* -------------------------------------------------------- съобщения */

.flash {
    margin: 18px 0 0; padding: 13px 18px; font-size: 15px;
    border-left: 3px solid var(--red); background: var(--surface);
}
.flash-success { border-left-color: var(--ok); }

/* ------------------------------------------------------------ подвал */

.site-foot { background: var(--ink); margin-top: 0; }
.foot-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px;
}
/* Кредитът на изпълнителите е дискретен ред, не реклама:
   логата не надвишават 15 px височина. */
.credit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.credit span { color: #B8AFB3; font-size: 15px; }
.credit .and { color: #8C8286; }
.credit-logo { display: block; height: 30px; width: auto; opacity: .85; }
.credit-logo-wide { height: 24px; }   /* по-широкото лого се уравновесява оптически */
.credit a:hover .credit-logo { opacity: 1; }
.copy { color: #9A9095; font-size: 14px; margin: 0; }
.copy a { color: #9A9095; }
.copy a:hover { color: #E8E4E0; }

/* ------------------------------------------------------------- телефон */

@media (max-width: 860px) {
    .hero-inner { flex-direction: column; align-items: flex-start; gap: 34px; padding-top: 54px; padding-bottom: 54px; }
    .hero-crest { width: 180px; height: 180px; align-self: center; }
    .head-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .nav { gap: 16px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

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

/* ------------------------------------------------------- форма за членство */

.join-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.head-note { margin: 0; color: var(--text-soft); font-size: 14.5px; max-width: 40ch; }

.join-form { max-width: 860px; display: flex; flex-direction: column; gap: 34px; }

.fs { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.fs legend {
    font-family: var(--display); font-size: 20px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    border-bottom: 2px solid var(--ink); padding-bottom: 10px; width: 100%;
    display: flex; align-items: center; gap: 12px;
}
.fs .step {
    background: var(--red); color: #FFF; width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
    font-family: var(--body); font-size: 15.5px; color: var(--text);
    border: 1px solid #CFC7C2; background: #FFF; padding: 12px 13px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(190,32,40,.12); }
.field .hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field-error { margin: 0; font-size: 13px; color: var(--red); font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); background: #FDF6F6; }

/* Изборът трябва да личи, че е избор — затова има видимо кръгче,
   а не само рамка, която се сменя. */
.choose-hint { margin: 0 0 4px; font-size: 14px; color: var(--text-soft); font-weight: 600; }
.tier-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tier-option { display: block; cursor: pointer; }
.tier-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.tier-option-body {
    display: flex; align-items: center; gap: 14px;
    border: 2px solid var(--rule); padding: 17px 19px; background: #FFF;
    transition: border-color .15s ease, background-color .15s ease;
}
.tier-option:hover .tier-option-body { border-color: #C6BBB7; }
.tier-mark {
    width: 22px; height: 22px; border: 2px solid #CFC7C2; border-radius: 50%;
    flex-shrink: 0; position: relative; background: #FFF;
    transition: border-color .15s ease;
}
.tier-mark::after {
    content: ""; position: absolute; inset: 4px; border-radius: 50%;
    background: var(--red); transform: scale(0); transition: transform .12s ease;
}
.tier-text { display: flex; flex-direction: column; gap: 2px; }
.tier-option input:checked + .tier-option-body { border-color: var(--red); background: #FDF6F6; }
.tier-option input:checked + .tier-option-body .tier-mark { border-color: var(--red); }
.tier-option input:checked + .tier-option-body .tier-mark::after { transform: scale(1); }
.tier-option input:focus-visible + .tier-option-body { outline: 2px solid var(--red); outline-offset: 2px; }

.notice-sm { margin-top: 4px; font-size: 13.5px; }

.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--text-soft); line-height: 1.5; }
.check input { margin-top: 4px; flex-shrink: 0; }
.check.has-error { color: var(--red); }

.form-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; border-top: 1px solid var(--rule); padding-top: 24px; }
.form-actions .hint { margin: 0; font-size: 13px; color: var(--muted); }

/* Скритото поле-капан не бива да се вижда, нито да се чете от екранни четци */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash-error { border-left-color: var(--red); background: #FDF6F6; }

/* --------------------------------------------------------- благодарности */

.pay-box { border: 1px solid var(--rule); padding: 26px 28px; margin: 26px 0; }
.pay-grid { display: grid; grid-template-columns: max-content 1fr; gap: 12px 26px; margin: 0; }
.pay-grid dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--display); }
.pay-grid dd { margin: 0; font-size: 15.5px; }
.pay-grid code { font-family: var(--display); font-size: 17px; letter-spacing: .06em; background: var(--surface); padding: 3px 9px; }
.pay-amount { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--red); }
.reference { color: var(--text) !important; border: 1px dashed var(--gold); }
.alt-pay { border-left: 3px solid var(--rule); padding-left: 18px; margin: 26px 0; }
.alt-pay h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.alt-pay p { margin: 0; color: var(--text-soft); font-size: 15px; }

@media (max-width: 560px) {
    .pay-grid { grid-template-columns: 1fr; gap: 4px 0; }
    .pay-grid dd { margin-bottom: 12px; }
}

/* ---------------------------------------------- списъци и вътрешни страници */

.crumbs { margin: 0 0 10px; font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.crumbs a { font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; color: var(--gold); }
.crumbs .dot { color: var(--rule); }

.article-head { background: var(--ink); position: relative; overflow: hidden; }
.article-head::before {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(104deg, rgba(190,32,40,.14) 0 3px, transparent 3px 34px);
}
.article-head-inner { position: relative; padding-top: 48px; padding-bottom: 42px; max-width: 900px; }
.article-head h1 { color: #FFF; font-size: clamp(28px, 4.2vw, 50px); font-weight: 700; }
.article-head .crumbs { color: #9A9195; }
.lede-dark { color: #B9B1B4; font-size: 18px; margin: 14px 0 0; max-width: 62ch; }

/* Водещата снимка стои в колоната на текста и пази пропорциите на
   обикновена снимка, вместо да се разтяга от край до край на екрана. */
.article-figure { margin: 0 0 30px; }
.article-figure img { display: block; width: 100%; height: auto; }
.article-figure picture { display: block; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 54px; align-items: start; }
.article-body { max-width: 72ch; font-size: 17px; line-height: 1.75; color: #2B2528; }
.article-body p { margin: 0 0 20px; }
.article-body img { height: auto; margin: 20px 0; }
.article-body h2, .article-body h3 { margin: 32px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--red); }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article-body td, .article-body th { border: 1px solid var(--rule); padding: 8px 10px; }
.prose { max-width: 78ch; }

.article-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.side-title {
    font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .11em;
    text-transform: uppercase; border-bottom: 2px solid var(--ink); padding-bottom: 9px; margin: 0;
}
.side-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft, #F0EBE7); }
.side-name { font-family: var(--display); font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.25; }
.side-item:hover .side-name { color: var(--red); }
.side-date { font-size: 12px; color: var(--muted); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 26px 0; }
.photo-grid-lg { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.photo-grid img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-grid picture { display: block; }
.photo-grid a { display: block; overflow: hidden; background: var(--surface); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.video h3 { font-size: 17px; font-weight: 600; margin-top: 12px; }
.video-thumb {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 9; background-size: cover; background-position: center;
    background-color: var(--ink); position: relative;
}
.video-thumb .play {
    width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #FFF;
    display: flex; align-items: center; justify-content: center; padding-left: 3px;
    transition: transform .15s ease;
}
.video-thumb:hover .play { transform: scale(1.08); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 26px; }
.contact-card { border: 1px solid var(--rule); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.contact-name { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.contact-phone { font-size: 16px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ членове */

.head-stats { display: flex; gap: 30px; }
.head-stat { font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; }
.head-stat b { font-family: var(--display); font-size: 32px; font-weight: 600; color: var(--red); line-height: 1; }

.members-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 46px; align-items: start; }
.city-list { display: flex; flex-direction: column; margin-top: 14px; }
.city {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; font-size: 14.5px; color: var(--text-soft);
    border-bottom: 1px solid #EDE8E4;
}
.city b { font-family: var(--display); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.city:hover { background: var(--surface); color: var(--text); }
.city.is-current { background: var(--ink); color: #FFF; border-bottom-color: var(--ink); }
.city.is-current b { color: var(--gold); }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.member {
    border: 1px solid var(--rule); padding: 18px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.member-hidden { background: #FAF8F6; }
.member-mark {
    width: 46px; height: 46px; background: var(--ink); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display); font-size: 18px; font-weight: 600;
}
.member-hidden .member-mark { background: #EFEBE8; color: #A79E9B; }
.member-name { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.member-hidden .member-name { color: var(--muted); font-weight: 400; text-transform: none; font-family: var(--body); font-size: 13.5px; }
.member-card { font-family: var(--display); font-size: 12.5px; color: var(--muted); letter-spacing: .08em; }
.member-city { font-size: 12.5px; color: #9A9195; }

/* ---------------------------------------------------------- страници */

.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.pager-item {
    font-family: var(--display); font-size: 14px; min-width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--rule); color: var(--text-soft); padding: 0 10px;
}
.pager-item:hover { border-color: var(--text); color: var(--text); }
.pager-item.is-current { background: var(--ink); border-color: var(--ink); color: #FFF; }
.pager-gap { color: var(--muted); }

@media (max-width: 900px) {
    .article-layout, .members-layout { grid-template-columns: 1fr; gap: 34px; }
    .article-side { position: static; }
    .article-hero { height: 220px; }
    .head-stats { gap: 20px; }
}

.season-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 26px; }
.season-label { font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.season {
    display: inline-flex; align-items: baseline; gap: 7px;
    border: 1px solid var(--rule); padding: 7px 13px;
    font-family: var(--display); font-size: 13.5px; letter-spacing: .04em; color: var(--text-soft);
}
.season b { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.season:hover { border-color: var(--text); color: var(--text); }
.season.is-current { background: var(--red); border-color: var(--red); color: #FFF; }
.season.is-current b { color: #F6D8DA; }

/* ------------------------------------------- заключен избор на категория */

.tier-option.is-locked { cursor: not-allowed; }
.tier-option.is-locked .tier-option-body { opacity: .45; background: var(--surface); border-color: var(--rule); }
.tier-option.is-locked:hover .tier-option-body { border-color: var(--rule); }

/* ----------------------------------------- разглеждане на снимка в едър план */

body.lb-locked { overflow: hidden; }

.lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(10, 9, 10, .94);
    display: none; align-items: center; justify-content: center;
    padding: 56px 64px;
}
.lightbox.is-open { display: flex; }

.lb-stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 112px); display: block; object-fit: contain; }

.lightbox button {
    position: absolute; background: none; border: 0; color: #E8E4E0;
    cursor: pointer; font-family: var(--display); line-height: 1;
    transition: color .15s ease;
}
.lightbox button:hover { color: #FFF; }

.lb-close { top: 14px; right: 20px; font-size: 34px; }
.lb-prev, .lb-next {
    top: 50%; transform: translateY(-50%); font-size: 54px;
    width: 56px; height: 90px;
}
.lb-prev { left: 6px; }
.lb-next { right: 6px; }

.lb-counter {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    color: #9A9195; font-size: 13px; font-family: var(--display); letter-spacing: .1em;
}

@media (max-width: 640px) {
    .lightbox { padding: 52px 10px; }
    .lb-prev, .lb-next { font-size: 40px; width: 42px; }
    .lb-stage img { max-height: calc(100vh - 104px); }
}

/* ---------------------------------------------------------- профил на член */

.auth-form { display: grid; gap: 18px; max-width: 420px; margin: 26px 0 30px; }
.auth-form .hero-actions { margin: 6px 0 0; }

.table-scroll { overflow-x: auto; margin: 18px 0 26px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th {
    text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--rule);
    font-family: var(--display); font-weight: 600; font-size: 12.5px;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
    white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table code { font-size: 13px; letter-spacing: .06em; }

.pill {
    display: inline-block; padding: 3px 11px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.pill-ok    { background: #E8F3ED; color: var(--ok); }
.pill-warn  { background: #FBF1DE; color: #8A6320; }
.pill-muted { background: var(--surface); color: var(--muted); }

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

/* ------------------------------------------------------ мачове */

.next-match {
    background: var(--ink);
    color: #FFF;
    padding: 30px 32px;
    border-left: 4px solid var(--red);
    display: grid;
    gap: 6px;
}
.next-match .eyebrow-sm { color: var(--gold); margin: 0 0 6px; }

.nm-teams {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
    font-family: var(--display); font-size: clamp(24px, 4.6vw, 40px);
    font-weight: 600; text-transform: uppercase; letter-spacing: .01em;
    line-height: 1.15;
}
.nm-team { color: #CFC7C4; }
.nm-team.is-milan { color: #FFF; }
.nm-vs { color: var(--red-hot); font-size: .8em; }

.nm-when { margin: 8px 0 0; font-size: 18px; font-weight: 600; }
.nm-comp { margin: 0; font-size: 13.5px; color: #A79E9B; letter-spacing: .04em; text-transform: uppercase; }

.match-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }

.match {
    background: var(--paper);
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 16px; align-items: center;
    padding: 13px 16px;
}
.match.is-live { background: #FFF7F7; }

.match-when { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.match.is-live .match-when { color: var(--red); font-weight: 600; }

.live-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--red-hot); margin-right: 7px; vertical-align: middle;
    animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.match-teams {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
    font-family: var(--display); font-size: 16px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .02em;
}
.team { color: var(--text-soft); }
.team.is-milan { color: var(--text); font-weight: 700; }
.match-vs { color: var(--muted); }
.match-score {
    font-weight: 700; color: var(--text);
    font-variant-numeric: tabular-nums; white-space: nowrap;
}

.match-meta { display: flex; align-items: center; gap: 12px; justify-self: end; }
.match-comp { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.match-tag {
    font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.match-tag.win  { background: #E8F3ED; color: var(--ok); }
.match-tag.loss { background: #FBECEC; color: var(--red); }
.match-tag.draw { background: var(--surface); color: var(--muted); }
.match-tag.off  { background: #FBF1DE; color: #8A6320; }

@media (max-width: 760px) {
    .match { grid-template-columns: 1fr; gap: 7px; padding: 15px 14px; }
    .match-meta { justify-self: start; }
    .next-match { padding: 24px 20px; }
}

/* Откъде идват данните — залепено под последната таблица, а не отделен блок */
.match-source {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

/* Лентата със сезоните от архива */
.season-nav {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 0 0 26px; padding: 0 0 16px;
    border-bottom: 1px solid var(--rule);
}
.season-nav a {
    font-family: var(--display); font-size: 13px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--text-soft); background: var(--surface);
    padding: 7px 14px; border: 1px solid var(--rule);
    font-variant-numeric: tabular-nums;
}
.season-nav a:hover { border-color: var(--red); color: var(--red); }
.season-nav a.is-current { background: var(--ink); border-color: var(--ink); color: #FFF; }

/* Равносметката за сезона */
.season-tally {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1px; background: var(--rule); border: 1px solid var(--rule);
    margin: 0 0 22px;
}
.tally { background: var(--paper); padding: 16px 14px; text-align: center; }
.tally .n {
    display: block; font-family: var(--display); font-size: 30px; font-weight: 700;
    line-height: 1.1; font-variant-numeric: tabular-nums;
}
.tally .n.ok  { color: var(--ok); }
.tally .n.bad { color: var(--red); }
.tally .l {
    display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted);
    letter-spacing: .06em; text-transform: uppercase;
}

/* Пунктирът в подвала повтаря този под хедъра, но лежи между червената
   секция с призива и черния подвал — затова няма нужда от отстъп. */
.site-foot .rossoneri { margin: 0; }

/* Поканата за вход над формата за членство */
.returning {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 14px; margin: 0 0 26px; padding: 16px 20px;
    background: var(--surface); border-left: 3px solid var(--gold);
}
.returning b { display: block; font-size: 15.5px; }
.returning span { font-size: 14px; color: var(--text-soft); }
.returning .btn { white-space: nowrap; }

/* -------------------------------------------- съгласие за бисквитки */

.consent {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 60;
    width: min(340px, calc(100vw - 40px));
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--red);
    box-shadow: 0 14px 40px rgba(16, 15, 16, .18);
    padding: 18px 20px 16px;

    /* Появява се плавно отдолу, но само ако човекът не е поискал покой */
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
}
.consent.is-open { opacity: 1; transform: none; }

.consent-title {
    margin: 0 0 6px;
    font-family: var(--display); font-size: 15px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
}
.consent-text { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--text-soft); }

.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions .btn { padding: 9px 16px; font-size: 13px; }

.consent-more {
    display: inline-block; margin-top: 12px;
    font-size: 12.5px; color: var(--muted); text-decoration: underline;
}
.consent-more:hover { color: var(--red); }

.reopen-consent { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
    .consent { transition: none; transform: none; }
}

@media (max-width: 460px) {
    .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px; }
    .consent-actions .btn { flex: 1 1 auto; }
}

/* Хедърът между таблет и малък лаптоп.
   С добавянето на „Мачове“ менюто стана десет пункта и при около 1000 px
   логото се пренасяше на два реда, а бутонът падаше отдолу. Тук всичко се
   стяга, вместо да се минава преждевременно към мобилната подредба. */
@media (min-width: 861px) and (max-width: 1120px) {
    .head-inner { gap: 16px; }
    .brand { gap: 10px; }
    .brand img { width: 44px; height: 44px; }
    .brand-name { font-size: 16px; letter-spacing: .04em; white-space: nowrap; }
    .brand-sub { font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
    .nav { gap: 13px; }
    .nav a { font-size: 12.5px; letter-spacing: .03em; }
    .btn-join { padding: 10px 16px; }
}

/* Дълъг адрес на Фейсбук излизаше извън рамката на картичката */
.contact-phone { overflow-wrap: anywhere; }

/* ------------------------------------------------ подвал на колони */

.foot-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) auto;
    gap: 38px;
    padding-top: 44px;
    padding-bottom: 36px;
    border-bottom: 1px solid #241F21;
}

.foot-col h2 {
    margin: 0 0 14px;
    font-family: var(--display); font-size: 13px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { color: #C7BDC1; font-size: 14px; }
.foot-col a:hover { color: #FFF; }

.foot-about p {
    margin: 12px 0 16px;
    color: #9A9095; font-size: 14px; line-height: 1.65;
    max-width: 42ch;
}
.foot-crest { display: block; width: 64px; height: 64px; }

.foot-social { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-social a {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid #332C2F; padding: 8px 14px;
    font-size: 13px; color: #C7BDC1;
}
.foot-social a:hover { border-color: var(--red); color: #FFF; background: rgba(190,32,40,.12); }

.foot-contacts .foot-who {
    display: block; font-size: 12px; color: #7A7175;
    letter-spacing: .04em; margin-bottom: 1px;
}
.foot-contacts a { font-variant-numeric: tabular-nums; }
.foot-more { color: var(--gold) !important; font-size: 13.5px; }
.foot-more:hover { color: var(--red-hot) !important; }

.foot-badge img { display: block; height: 140px; width: auto; }
.foot-badge a:hover img { opacity: .9; }

@media (max-width: 1000px) {
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
    .foot-badge { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .foot-cols { grid-template-columns: 1fr; gap: 28px; padding-top: 34px; }
    .foot-about p { max-width: none; }
}

/* ------------------------------- поле с подсказки за населено място */

.place-field { position: relative; }

.place-list {
    position: absolute; z-index: 20; left: 0; right: 0; top: 100%;
    margin: 2px 0 0; padding: 0; list-style: none;
    max-height: 280px; overflow-y: auto;
    background: #FFF; border: 1px solid #CFC7C2;
    box-shadow: 0 10px 28px rgba(16, 15, 16, .14);
}
.place-list li {
    padding: 9px 13px; font-size: 15px; cursor: pointer;
    border-bottom: 1px solid var(--rule-soft, #F0E9E6);
}
.place-list li:last-child { border-bottom: 0; }
.place-list li:hover,
.place-list li.is-active { background: var(--surface); color: var(--red); }
