/* style.css — светлая тема матч-центра КХЛ */
:root {
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --ink: #0f172a;
    --ink-soft: #475569;
    --ink-mute: #94a3b8;
    --line: #e6ebf2;
    --surface: #f6f9fc;
    --white: #ffffff;
    --green: #16a34a;
    --green-bg: #e8f8ee;
    --red: #dc2626;
    --red-bg: #fdecec;
    --amber: #d97706;
    --amber-bg: #fdf3e4;
    --radius: 16px;
    --radius-sm: 11px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .07);
    --shadow: 0 10px 30px -12px rgba(37, 99, 235, .25);
    --shadow-lg: 0 22px 50px -20px rgba(37, 99, 235, .35);
    --container: 1200px;
    --font: 'Manrope', system-ui, -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--surface);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-mute); }
.soft { color: var(--ink-soft); }

/* ===== Header ===== */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav__link {
    color: var(--ink-soft); font-weight: 600; font-size: 15px;
    padding: 10px 15px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--blue-700); background: var(--blue-50); }
.nav__link.is-active { color: var(--blue-700); background: var(--blue-50); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-sm); border: 2px solid transparent;
    font-weight: 700; font-size: 15px; transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--blue-700); }
.btn--ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-700); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }

/* ===== Page hero ===== */
.page-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
    color: #fff; padding: 44px 0;
}
.page-hero__inner { position: relative; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.breadcrumbs a { color: rgba(255,255,255,.9); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: rgba(255,255,255,.5); }
.page-hero__title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; }
.page-hero__text { color: rgba(255,255,255,.85); margin-top: 8px; max-width: 660px; }

/* ===== Sections ===== */
.section { padding: 44px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.6px; }
.section__subtitle { color: var(--ink-soft); margin-top: 6px; }
.section__more { color: var(--blue-600); font-weight: 700; white-space: nowrap; }
.section__more:hover { color: var(--blue-700); }

/* ===== Badge / chips ===== */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge--live { background: var(--red-bg); color: var(--red); }
.badge--soon { background: var(--blue-50); color: var(--blue-700); }
.badge--done { background: var(--surface); color: var(--ink-mute); }

/* ===== Date filter ===== */
.datebar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; }
.datebar__btn {
    flex-shrink: 0; padding: 9px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
    font-weight: 700; font-size: 13.5px; transition: all .2s;
}
.datebar__btn:hover { border-color: var(--blue-500); color: var(--blue-700); }
.datebar__btn.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

/* ===== Past matches block ===== */
.past-block { margin-top: 28px; padding-top: 24px; border-top: 2px dashed var(--line); }
.past-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.past-block__title { font-size: 18px; font-weight: 800; }
.past-block .match { opacity: .92; }
.past-block .match:hover { opacity: 1; }

/* ===== Match list ===== */
.matches { display: flex; flex-direction: column; gap: 12px; }
.match {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center; gap: 20px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 16px 20px; box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.match:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.match__meta { display: flex; flex-direction: column; gap: 6px; }
.match__time { font-weight: 800; font-size: 15px; }
.match__league { font-size: 12px; color: var(--ink-mute); }
.match__teams { display: flex; flex-direction: column; gap: 10px; }
.team-line { display: flex; align-items: center; gap: 12px; }
.team-line__logo { width: 30px; height: 30px; border-radius: 8px; background: var(--surface); object-fit: contain; }
.team-line__name { font-weight: 700; font-size: 16px; }
.team-line__score { margin-left: auto; font-weight: 800; font-size: 20px; min-width: 26px; text-align: center; }
.team-line--win .team-line__name { color: var(--ink); }
.team-line--lose .team-line__name { color: var(--ink-mute); }
.match__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.odds-row { display: flex; gap: 6px; }
.odds-cell {
    min-width: 56px; text-align: center; padding: 8px 6px; border-radius: 9px;
    background: var(--blue-50); color: var(--blue-700); font-weight: 800; font-size: 14px;
    transition: background .2s, transform .2s;
}
.odds-cell:hover { background: var(--blue-100); transform: translateY(-1px); }
.odds-cell small { display: block; font-size: 10px; font-weight: 600; color: var(--ink-mute); letter-spacing: .3px; }
.odds-cell--empty { background: var(--surface); color: var(--ink-mute); }

/* ===== Stats bars ===== */
.stats { display: flex; flex-direction: column; gap: 14px; }
.stat-row { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 14px; }
.stat-row__val { font-weight: 800; font-size: 15px; text-align: center; }
.stat-row__mid { display: flex; flex-direction: column; gap: 6px; }
.stat-row__name { text-align: center; font-size: 12.5px; color: var(--ink-mute); font-weight: 600; }
.stat-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface); }
.stat-bar__home { background: var(--blue-600); transition: width .4s; }
.stat-bar__away { background: var(--amber); transition: width .4s; }

/* ===== Cards / predictions ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.pcard__top { padding: 18px 20px; background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; }
.pcard__teams { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.pcard__date { font-size: 12.5px; opacity: .85; margin-top: 4px; }
.pcard__body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.pcard__excerpt { color: var(--ink-soft); font-size: 14px; flex: 1; margin-bottom: 14px; }
.pcard__pick {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--surface); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px;
}
.pcard__pick-label { font-size: 12px; color: var(--ink-mute); font-weight: 600; }
.pcard__pick-val { font-weight: 800; font-size: 14.5px; }
.pcard__pick-odds { font-weight: 800; color: var(--blue-700); }

/* ===== Prediction article ===== */
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 40px; max-width: 860px; margin: 0 auto; }
.article h1 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 14px; }
.article h2 { font-size: clamp(20px, 2.6vw, 27px); font-weight: 800; margin: 32px 0 14px; letter-spacing: -.5px; }
.article h3 { font-size: 19px; font-weight: 700; margin: 22px 0 10px; }
.article p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 18px 22px; color: var(--ink-soft); font-size: 16.5px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--ink); }
.article__lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); border-left: 4px solid var(--blue-500); padding-left: 18px; margin-bottom: 24px; }
.note { background: var(--blue-50); border-left: 4px solid var(--blue-500); border-radius: var(--radius-sm); padding: 16px 20px; margin: 22px 0; }
.note p { margin: 0; color: var(--ink); }
.pick-big {
    background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff;
    border-radius: var(--radius-sm); padding: 22px 26px; margin: 24px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.pick-big__label { font-size: 13px; opacity: .85; }
.pick-big__val { font-size: 22px; font-weight: 800; }
.pick-big__odds { font-size: 28px; font-weight: 800; }

/* ===== Match detail page ===== */
.mt-head { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; margin-bottom: 22px; }
.mt-score__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.mt-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.mt-team__logo { width: 64px; height: 64px; object-fit: contain; }
.mt-team__name { font-weight: 800; font-size: 18px; }
.mt-score__val { font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -2px; display: flex; align-items: center; gap: 8px; }
.mt-score__val span { color: var(--ink-mute); font-weight: 600; }
.mt-score__meta { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 20px; }
.mt-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; margin-bottom: 22px; }
.mt-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 22px; }
.mt-box__title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--blue-700); margin-bottom: 16px; }
.mt-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-top: 22px; }
.events { display: flex; flex-direction: column; gap: 8px; }
.ev-row { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 9px; background: var(--surface); font-size: 14.5px; }
.ev-row--away { flex-direction: row-reverse; text-align: right; }
.ev-time { font-weight: 800; color: var(--blue-700); min-width: 44px; }
.ev-body { font-weight: 600; }

@media (max-width: 720px) {
    .mt-grid { grid-template-columns: 1fr; }
    .mt-score__row { grid-template-columns: 1fr; }
    .mt-team { flex-direction: row; justify-content: center; }
}

/* ===== Table ===== */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: auto; box-shadow: var(--shadow-sm); }
table.standings { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.standings th, .standings td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.standings th { background: var(--blue-50); color: var(--blue-700); font-weight: 700; font-size: 13px; position: sticky; top: 0; }
.standings td.team { text-align: left; }
.standings .team__cell { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.standings .team__logo { width: 26px; height: 26px; object-fit: contain; }
.standings tr:hover td { background: var(--blue-50); }
.form-strip { display: inline-flex; gap: 3px; }
.form-dot { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; }
.form-dot--w { background: var(--green); }
.form-dot--l { background: var(--red); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: rgba(255,255,255,.65); margin-top: 40px; padding: 48px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer .logo { color: #fff; }
.footer__about { margin-top: 14px; font-size: 14px; max-width: 340px; }
.footer__col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
.footer__col a { display: block; font-size: 14px; margin-bottom: 8px; transition: color .2s; }
.footer__col a:hover { color: var(--blue-500); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: 13px; text-align: center; }
.age-warn { display: inline-block; border: 2px solid rgba(255,255,255,.4); border-radius: 6px; padding: 1px 7px; font-weight: 800; margin-right: 8px; }

/* ===== FAQ (SEO) ===== */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 18px; }
.faq__item summary { font-weight: 700; font-size: 15.5px; padding: 14px 0; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 0; top: 13px; font-size: 20px; font-weight: 800; color: var(--blue-600); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding-bottom: 14px; margin: 0; color: var(--ink-soft); }
.article a { color: var(--blue-600); font-weight: 600; border-bottom: 1px solid var(--blue-100); }
.article a:hover { color: var(--blue-700); border-bottom-color: var(--blue-500); }

/* ===== Standings tabs ===== */
.table-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.table-tabs__btn {
    padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: #fff; color: var(--ink-soft); font-weight: 700; font-size: 14px; transition: all .2s;
}
.table-tabs__btn:hover { border-color: var(--blue-500); color: var(--blue-700); }
.table-tabs__btn.is-active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.standings-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: auto; }
.standings-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.standings-table th, .standings-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.standings-table th { background: var(--blue-50); color: var(--blue-700); font-weight: 700; font-size: 12.5px; position: sticky; top: 0; text-transform: uppercase; letter-spacing: .4px; }
.standings-table td.team { text-align: left; }
.standings-table .team__cell { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.standings-table .team__logo { width: 26px; height: 26px; object-fit: contain; }
.standings-table tr:hover td { background: var(--blue-50); }
.standings-table .rank { font-weight: 800; color: var(--blue-700); }
.standings-table .pts { font-weight: 800; }

/* ===== Max-width fix for `.maxw` ===== */
.wrap { max-width: 860px; }

/* ===== Article layout + sidebar (гайды, стратегии) ===== */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
}
.article-layout .article { max-width: none; margin: 0; }

.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.widget {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm); padding: 20px;
}
.widget__title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--blue-700); margin-bottom: 14px; }
.widget__list { display: flex; flex-direction: column; gap: 4px; }
.widget__list a {
    display: block; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 600;
    color: var(--ink-soft); transition: background .2s, color .2s;
}
.widget__list a:hover { background: var(--blue-50); color: var(--blue-700); }
.widget__cta { background: linear-gradient(135deg, #1e3a8a, #2563eb); border: 0; color: #fff; }
.widget__cta .widget__title { color: rgba(255,255,255,.85); }
.widget__cta p { color: rgba(255,255,255,.9); font-size: 14px; margin-bottom: 14px; }
.widget__cta .btn--primary { background: #fff; color: var(--blue-700); box-shadow: none; width: 100%; }
.widget__cta .btn--primary:hover { background: var(--blue-50); }

/* ===== Article TOC ===== */
.article__toc {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 18px 22px; margin: 24px 0;
}
.article__toc h2 { font-size: 15px !important; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 10px !important; color: var(--ink-soft); }
.article__toc ol { margin: 0 0 0 20px; }
.article__toc li { margin-bottom: 6px; }
.article__toc a { border-bottom: 0 !important; }

/* ===== Article figure / placeholder image ===== */
.article__figure { margin: 0 0 24px; }
.article__img {
    display: grid; place-items: center; text-align: center; min-height: 220px;
    background: linear-gradient(135deg, var(--blue-50), var(--surface));
    border: 2px dashed var(--blue-100); border-radius: var(--radius);
    color: var(--ink-mute); font-size: 14px; font-weight: 600; padding: 24px;
}
.article__caption { font-size: 13px; color: var(--ink-mute); text-align: center; margin-top: 10px; }

/* ===== States ===== */
.loading { text-align: center; padding: 40px; color: var(--ink-mute); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--blue-100); border-top-color: var(--blue-600); border-radius: 50%; margin: 0 auto 12px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 5px; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; gap: 24px; }
    .sidebar { position: static; }
    .match { grid-template-columns: 90px 1fr; }
    .match__right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .article { padding: 28px; }
}
@media (max-width: 720px) {
    .nav {
        position: fixed; top: 72px; right: 0; width: 100%; background: #fff;
        flex-direction: column; gap: 0; padding: 12px 20px 20px;
        transform: translateY(-140%); transition: transform .3s;
        box-shadow: 0 20px 40px -20px rgba(15,23,42,.35); border-bottom: 1px solid var(--line);
    }
    .nav.is-open { transform: translateY(0); }
    .nav__link { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .burger { display: flex; }
    .grid { grid-template-columns: 1fr; }
    .match { grid-template-columns: 1fr; gap: 12px; }
    .match__meta { flex-direction: row; align-items: center; gap: 12px; }
    .footer__inner { grid-template-columns: 1fr; }
    .article { padding: 22px; }
}
