/* ХК ЦСКА Младост – styles modelled on the original WordPress (Oxigeno) look */
:root {
  --red: #dd3333;
  --red-dark: #921818;
  --red-deep: #661111;
  --dark: #191919;
  --text: #181818;
  --muted: #6b6b6b;
  --bg: #eaeaea;
  --light: #f4f4f4;
  --white: #fff;
  --line: rgba(0, 0, 0, .1);
  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Montserrat', Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .15);
  --header-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 14px/1.7 var(--body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
p a, .post-body a, .tt-note a { color: var(--red); font-weight: 600; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex: none; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1230px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 900px; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.header-bar { position: relative; display: flex; align-items: center; justify-content: center; height: var(--header-h); background: var(--red); padding: 0 24px; box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-left { flex: 1; display: flex; justify-content: flex-end; }
.nav-right { flex: 1; display: flex; justify-content: flex-start; }
.nav > ul > li { position: relative; }
.nav > ul > li > a { display: block; padding: 0 26px; line-height: var(--header-h); color: #fff; font: 700 13px/var(--header-h) var(--body); text-transform: uppercase; letter-spacing: .02em; }
.nav > ul > li > a:hover, .nav > ul > li.active > a { color: var(--dark); }
.nav .sub-toggle { display: none; }
.nav .sub { position: absolute; top: 100%; left: 10px; min-width: 230px; flex-direction: column; background: #fff; border-top: 3px solid var(--red-dark); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: block; padding: 11px 20px; font: 600 12px/1.4 var(--body); color: var(--text); border-bottom: 1px solid var(--line); }
.nav .sub a:hover, .nav .sub a[aria-current] { color: var(--red); background: var(--light); }
.logo { flex: none; margin: 0 20px; align-self: flex-start; }
.logo img { width: 96px; height: 96px; margin-top: 6px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); transition: transform .3s; }
.logo:hover img { transform: scale(1.04); }
.header-social { position: absolute; right: 24px; top: 0; height: var(--header-h); display: flex; align-items: center; gap: 14px; }
.header-social a, .mobile-social a { color: #fff; font-size: 17px; }
.header-social a:hover { color: var(--dark); }
/* Language switch (БГ / EN): in the social icons on desktop, top right on phones */
.lang-switch, .header-social .lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 26px; padding: 0 8px; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 4px; color: #fff; font: 600 12px/1 var(--head); letter-spacing: .06em; transition: .2s; }
.lang-switch:hover, .header-social .lang-switch:hover { background: #fff; color: var(--red); }
.ls-mobile { display: none; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.bg-only { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 3px; background: var(--light); color: var(--muted); font: 500 10px/1.6 var(--body); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.bg-only-note { margin: 0 0 20px; padding: 10px 14px; border-left: 3px solid var(--red); background: var(--light); font-size: 14px; }
.burger { display: none; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Buttons & headlines ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.buttons.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 36px; border-radius: var(--radius); background: var(--red); color: #fff; font: 400 13px/1.2 var(--head); letter-spacing: .04em; text-transform: uppercase; border: 0; cursor: pointer; box-shadow: 0 0 0 2px var(--red) inset; transition: .25s; }
.btn:hover { background: transparent; color: var(--red); }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.dark .btn-outline { color: #fff; box-shadow: 0 0 0 2px #fff inset; }

.headline { margin-bottom: 36px; }
.headline .sup { font: 300 20px/1.2 var(--head); margin-bottom: 6px; }
.headline h2 { font: 400 clamp(36px, 5vw, 62px)/1 var(--head); margin: 0; }
.headline h2 strong { color: var(--red); font-weight: 700; }
.headline .sub { font: 500 15px/1.6 var(--head); margin: 18px 0 0; max-width: 640px; }
.headline.center { text-align: center; }
.headline.center .sub { margin-left: auto; margin-right: auto; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; background-color: #fff; background-size: cover; background-position: center; }
.section.grey { background-color: var(--light); }
.section.dark { position: relative; background-color: var(--dark); color: #fff; isolation: isolate; }
.section.dark::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .55), rgba(10, 10, 10, .85)); z-index: -1; }
.section.dark .headline h2 strong { color: #fff; }
.empty { font: 400 18px/1.5 var(--head); opacity: .85; text-align: center; padding: 20px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 60px; }

/* ---------- Hero & results ---------- */
.hero { position: relative; min-height: min(78vh, 760px); margin-top: calc(-1 * var(--header-h)); display: flex; align-items: center; justify-content: center; text-align: center; background: var(--dark) center / cover no-repeat; color: #fff; padding: 140px 16px 220px; }
.hero h1 { font: 800 clamp(40px, 6.5vw, 82px)/1 var(--head); text-shadow: 0 4px 30px rgba(0, 0, 0, .6); margin: 0; }
.results-wrap { position: relative; margin-top: -180px; z-index: 2; padding-bottom: 20px; }
.results-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 70px 26px; position: relative; }
.all-link { position: absolute; right: 24px; bottom: 18px; font: 400 13px var(--head); color: var(--red); display: inline-flex; align-items: center; gap: 4px; }
.result-card { text-align: center; }
.rc-sup { font: 400 13px/1.4 var(--head); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 20px; }
.rc-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.rc-team { display: flex; align-items: center; gap: 24px; }
.rc-home { justify-content: flex-start; padding-right: 20px; border-right: 1px solid var(--line); }
.rc-away { justify-content: flex-end; padding-left: 20px; }
.rc-crest { width: clamp(70px, 14vw, 190px); height: clamp(70px, 14vw, 190px); object-fit: contain; }
.rc-data { flex: 1; }
.rc-score { font: 700 clamp(44px, 7vw, 90px)/1 var(--head); }
.rc-name { font: 500 16px/1.3 var(--head); margin-top: 8px; }

/* ---------- Slider ---------- */
.slider { position: relative; }
.sl-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.sl-track::-webkit-scrollbar { display: none; }
.sl-item { flex: 0 0 100%; scroll-snap-align: start; }
.sl-prev, .sl-next { position: absolute; top: 50%; transform: translateY(-80%); width: 42px; height: 62px; border: 0; border-radius: 4px; background: var(--dark); color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: .75; transition: .2s; z-index: 2; }
.sl-prev:hover, .sl-next:hover { opacity: 1; background: var(--red); }
.sl-prev { left: -58px; }
.sl-next { right: -58px; }
.sl-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.sl-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: #ccc; cursor: pointer; }
.sl-dots button[aria-current="true"] { background: var(--red); transform: scale(1.3); }

/* ---------- Timetables ---------- */
.trainings-home { padding-top: 70px; }
.trainings-home .two-col { grid-template-columns: 5fr 7fr; align-items: start; }
.tt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.tt-grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.timetable { background: #fff; border-radius: 4px; box-shadow: 0 2px 14px rgba(0, 0, 0, .1); overflow: hidden; }
.tt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px; background: var(--red); color: #fff; font-family: var(--head); }
.tt-title { font-size: 14px; font-weight: 500; text-transform: uppercase; }
.tt-loc { font-size: 11px; opacity: .85; text-align: right; }
.timetable ul { list-style: none; margin: 0; padding: 0; }
.timetable li { display: flex; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.timetable li:last-child { border-bottom: 0; }
.timetable li span:first-child { font-weight: 500; }
.timetable li span:last-child { font-weight: 700; }
.timetable li.today { background: #fdf0f0; }
.timetable li.today span:first-child::before { content: '●'; color: var(--red); margin-right: 6px; }
.tt-note { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 10px 0 30px; }

/* ---------- Matches ---------- */
.matches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.match-card { display: flex; gap: 20px; align-items: center; padding: 22px 24px; border-radius: var(--radius); background: #fff; border-left: 5px solid var(--red); color: var(--text); box-shadow: 0 6px 24px rgba(0, 0, 0, .12); transition: transform .2s, box-shadow .2s; }
.match-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.match-card img { width: 96px; height: 96px; object-fit: contain; flex: none; }
.mc-venue { font: 400 13px/1.4 var(--head); color: var(--muted); }
.mc-title { font: 600 22px/1.15 var(--head); color: var(--red); margin: 4px 0 6px; }
.mc-date { font: 500 14px/1.4 var(--head); text-transform: uppercase; color: var(--dark); }
.mc-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.upcoming-home .buttons { margin-top: 40px; }

/* ---------- About, services, players ---------- */
.about-card { display: grid; grid-template-columns: 3fr 2fr; gap: 50px; align-items: center; }
.about-card img { max-width: 340px; margin: 0 auto; }
.passion { background-color: #fff; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service { display: block; text-align: center; padding: 10px; }
.svc-icon { display: inline-flex; width: 84px; height: 84px; border-radius: 50%; align-items: center; justify-content: center; font-size: 36px; color: var(--red); box-shadow: 0 0 0 2px var(--red) inset; margin-bottom: 18px; transition: .25s; }
a.service:hover .svc-icon { background: var(--red); color: #fff; }
.service h3 { font: 500 20px/1.2 var(--head); margin-bottom: 10px; }
.service p { margin: 0; font-size: 13px; }
.red-band { background: linear-gradient(135deg, var(--red-dark), var(--red-deep)); color: #fff; padding: 70px 0; }
.red-band .svc-icon { color: #fff; box-shadow: 0 0 0 2px #fff inset; }
.red-band a.service:hover { color: #fff; }
.red-band a.service:hover .svc-icon { background: #fff; color: var(--red-dark); }
.players { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.player { text-align: center; }
.player img { width: 100%; max-width: 160px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 14px; }
.player small { display: block; font: 300 13px var(--head); }
.player b { font: 600 22px var(--head); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, .1); transition: transform .25s; }
.news-card:hover { transform: translateY(-4px); }
.nc-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.nc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .nc-media img { transform: scale(1.05); }
.nc-date { position: absolute; left: 14px; bottom: 0; background: #fff; padding: 8px 10px 6px; text-align: center; font: 400 11px/1 var(--head); color: var(--text); border-radius: 4px 4px 0 0; }
.nc-date b { display: block; font-size: 24px; font-weight: 700; margin-bottom: 3px; }
.nc-body { padding: 16px 18px 22px; }
.cats { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.cats i { color: var(--red); font-style: normal; margin: 0 3px; }
.news-card h3 { font: 500 17px/1.25 var(--head); margin: 0; }
.news-home .buttons { margin-top: 40px; }

.post-item { display: grid; grid-template-columns: 2fr 3fr; gap: 30px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, .08); margin-bottom: 36px; }
.pi-media img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.pi-body { padding: 28px 28px 30px 0; }
.pi-body h2 { font: 500 26px/1.15 var(--head); }
.pi-date { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pi-body .btn { margin-top: 6px; }
.pagination { display: flex; justify-content: center; gap: 8px; }
.pagination a, .pagination span { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px var(--line) inset; font: 500 15px var(--head); }
.pagination span { background: var(--red); color: #fff; }

.post { background: #fff; }
.post-image { width: 100%; border-radius: var(--radius); margin-bottom: 30px; cursor: zoom-in; }
.post-body { font-size: 15px; line-height: 1.8; }
.post-body img { border-radius: var(--radius); margin: 20px 0; }
.post-body a { word-break: break-word; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 30px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 30px 0; }
.gallery a, .gallery figure { display: block; margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; cursor: zoom-in; transition: opacity .2s; }
.gallery img:hover { opacity: .85; }
.gallery figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.gallery.small { margin-top: 40px; }
.share { display: flex; align-items: center; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); font: 400 14px var(--head); }
.share a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; align-items: center; justify-content: center; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.post-nav a { display: block; padding: 18px 22px; background: var(--light); border-radius: var(--radius); font: 500 16px/1.3 var(--head); }
.post-nav small { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--red); margin-bottom: 6px; }
.post-nav .next { text-align: right; }
.post-nav .next small { justify-content: flex-end; }

/* ---------- Page header ---------- */
.page-header { position: relative; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 110px) 0 100px; background: var(--dark) center / cover no-repeat; color: #fff; text-align: center; isolation: isolate; }
.page-header::before { content: ''; position: absolute; inset: 0; background: rgba(10, 10, 10, .6); z-index: -1; }
.page-header .crumbs { font: 400 12px var(--head); letter-spacing: .08em; margin-bottom: 10px; }
.page-header .crumbs span { color: var(--red); margin: 0 4px; }
.page-header h1 { font: 700 clamp(36px, 6vw, 70px)/1.05 var(--head); color: var(--red); margin: 0 auto 14px; max-width: 1000px; }
.page-header p { font: 500 16px/1.5 var(--head); max-width: 760px; margin: 0 auto; }

/* ---------- Results archive ---------- */
.results-archive .month { font: 500 22px var(--head); margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--red); }
.table-wrap { overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; font-family: var(--head); }
.results-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.results-table tr:hover { background: var(--light); }
.rt-date { width: 150px; font-size: 14px; white-space: nowrap; }
.rt-date small { display: block; font: 400 11px var(--body); color: var(--muted); white-space: normal; }
.rt-team { width: 38%; font-size: 15px; }
.rt-team span { vertical-align: middle; }
.rt-team img { width: 38px; height: 38px; object-fit: contain; display: inline-block; vertical-align: middle; margin: 0 10px; }
.rt-home { text-align: right; }
.rt-score { text-align: center; font-size: 20px; font-weight: 700; white-space: nowrap; }
.rt-tag { display: table; margin: 4px 0 2px; padding: 1px 7px; border-radius: 3px; background: var(--light); font: 500 11px/1.5 var(--head); text-transform: uppercase; letter-spacing: .03em; color: var(--dark); }
.team-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.team-filter button { padding: 8px 16px; border: 0; border-radius: 30px; background: var(--light); color: var(--dark); font: 400 13px/1.2 var(--head); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 0 1px #ddd inset; transition: .2s; }
.team-filter button:hover { color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.team-filter button[aria-pressed="true"] { background: var(--red); color: #fff; box-shadow: none; }
.win .rt-score { color: #1d8a3a; }
.loss .rt-score { color: var(--red); }

/* ---------- Features, people, logos ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.feature h3 { font: 500 20px var(--head); }
.feature p { margin: 0; font-size: 13px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; }
.person { position: relative; text-align: center; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 20px rgba(0, 0, 0, .08); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; margin-bottom: 16px; }
.person.soon img { object-fit: contain; }
.person h3 { font: 600 22px/1.1 var(--head); margin: 0; }
.person h3 small { display: block; font: 300 13px var(--head); margin-bottom: 4px; }
.person p { font-size: 13px; margin: 10px 0 0; color: var(--muted); }
.person .num { position: absolute; top: 14px; right: 18px; font: 700 32px var(--head); color: var(--red); }
.team-photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 60px; }
.logos img { max-height: 110px; max-width: 220px; object-fit: contain; filter: grayscale(.2); transition: .2s; }
.logos a:hover img { filter: none; transform: scale(1.05); }
.history-era.reverse > img { order: -1; }

/* ---------- Contact ---------- */
.contact-cols { align-items: start; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font: 500 13px var(--head); }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 15px; font: 400 14px var(--body); border: 1px solid #d5d5d5; border-radius: 4px; background: var(--light); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 4px var(--red); background: #fff; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .btn { justify-self: start; }
.contact-banner { border-radius: var(--radius); box-shadow: var(--shadow); }
.form-status { padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; font-weight: 600; }
.form-status.ok { background: #e6f5ea; color: #1d6b31; }
.form-status.err { background: #fbe9e9; color: #a32020; }
.contact-boxes { grid-template-columns: repeat(3, 1fr); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.contact-list .ico { color: var(--red); font-size: 20px; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--red-dark); color: rgba(255, 255, 255, .85); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 50px; padding-top: 70px; padding-bottom: 50px; }
.site-footer h4 { font: 500 18px var(--head); color: #fff; margin-bottom: 22px; }
.footer-logo { width: 110px; margin-bottom: 16px; }
.site-footer p { font-size: 13px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset; color: #fff; }
.footer-social a:hover { background: #fff; color: var(--red-dark); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-links a::before { content: '›'; margin-right: 8px; color: #fff; }
.site-footer a:hover { color: #fff; }
.footer-news { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.footer-news a { display: flex; gap: 14px; align-items: center; color: #fff; font: 400 15px/1.25 var(--head); }
.footer-news img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; flex: none; }
.footer-news small { display: block; font: 400 11px var(--body); opacity: .75; margin-bottom: 2px; }
.footer-bottom { background: rgba(0, 0, 0, .2); padding: 16px 0; font-size: 12px; text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; padding: 50px 70px; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; padding: 10px; }
.lb-close { top: 10px; right: 16px; font-size: 44px !important; line-height: 1; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .sl-prev { left: -12px; }
  .sl-next { right: -12px; }
}
@media (max-width: 1100px) {
  :root { --header-h: 70px; }
  .nav-left, .nav-right, .header-social { display: none; }
  .burger { display: block; }
  .ls-mobile { display: inline-flex; }
  .header-bar { justify-content: center; }
  .logo img { width: 78px; height: 78px; margin-top: 4px; }
  .mobile-nav { display: block; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--dark); overflow-y: auto; transform: translateX(-100%); transition: transform .3s; padding: 30px 16px 40px; }
  .mobile-nav.open { transform: none; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav li { border-bottom: 1px solid rgba(255, 255, 255, .1); position: relative; }
  .mobile-nav a { display: block; padding: 14px 50px 14px 8px; color: #fff; font: 600 15px var(--body); }
  .mobile-nav li.active > a { color: var(--red); }
  .mobile-nav .sub-toggle { position: absolute; right: 0; top: 4px; width: 44px; height: 44px; background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; }
  .mobile-nav .sub { display: none; padding-left: 16px; }
  .mobile-nav li.open > .sub { display: block; }
  .mobile-nav li.open > .sub-toggle { transform: rotate(180deg); }
  .mobile-nav .sub a { font-weight: 400; font-size: 14px; }
  .mobile-social { display: flex; gap: 22px; padding: 24px 8px; }
  .mobile-social a { font-size: 22px; }
  body.menu-open { overflow: hidden; }
  .services, .features { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .players { grid-template-columns: repeat(3, 1fr); }
  .trainings-home .two-col, .two-col, .about-card { grid-template-columns: 1fr; gap: 40px; }
  .history-era.reverse > img { order: 0; }
}
@media (max-width: 700px) {
  body { font-size: 14px; }
  .section { padding: 60px 0; }
  .card { padding: 30px 22px; }
  .hero { min-height: 520px; padding-bottom: 170px; }
  .results-wrap { margin-top: -130px; }
  .results-box { padding: 24px 16px 44px; }
  .rc-team { flex-direction: column; gap: 10px; text-align: center; }
  .rc-away { flex-direction: column-reverse; }
  .rc-home { padding-right: 10px; }
  .rc-away { padding-left: 10px; }
  .sl-prev, .sl-next { top: auto; bottom: -6px; transform: none; width: 36px; height: 36px; font-size: 18px; }
  .sl-prev { left: 0; }
  .sl-next { right: 0; }
  .sl-dots { padding: 0 44px; }
  .all-link { position: static; display: flex; justify-content: center; margin-top: 14px; }
  .tt-grid, .services, .features, .contact-boxes, .news-grid, .footer-grid, .post-nav { grid-template-columns: 1fr; }
  .players { grid-template-columns: 1fr 1fr; }
  .matches-grid { grid-template-columns: 1fr; }
  .match-card { flex-direction: column; text-align: center; }
  .post-item { grid-template-columns: 1fr; gap: 0; }
  .pi-body { padding: 22px; }
  .page-header { padding: calc(var(--header-h) + 60px) 0 60px; }
  .rt-team img { width: 28px; height: 28px; margin: 0 6px; }
  .rt-team { font-size: 13px; }
  .rt-date { width: auto; }
  .lightbox { padding: 50px 10px; }
}
.passion .services { max-width: 880px; margin: 0 auto; }
@media (min-width: 1101px) { .passion { background-size: auto 100%; background-repeat: no-repeat; } }
/* History page: thumbnails aligned with the text column, one even row */
.history-gallery { grid-template-columns: repeat(var(--n, 4), 1fr); margin: 50px 0 0; }
@media (max-width: 700px) { .history-gallery { grid-template-columns: repeat(2, 1fr); } }
/* Програма: previous seasons collapsed under the current one */
.season-archive { margin-top: 40px; border: 1px solid #e3e3e3; border-radius: var(--radius); background: #fafafa; }
.season-archive summary { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; cursor: pointer; list-style: none; }
.season-archive summary::-webkit-details-marker { display: none; }
.season-archive summary:hover .sa-title { color: var(--red); }
.sa-title { font: 600 24px/1.2 var(--head); text-transform: uppercase; transition: color .2s; }
.sa-record { font-size: 13px; color: var(--muted); }
.season-archive summary svg { margin-left: auto; width: 20px; height: 20px; transition: transform .2s; }
.season-archive[open] summary svg { transform: rotate(180deg); }
.season-archive[open] { background: #fff; }
.season-archive[open] > :not(summary) { margin-left: 22px; margin-right: 22px; }
.season-archive[open] > :last-child { margin-bottom: 22px; }
@media (max-width: 700px) {
  .season-archive summary { padding: 14px 12px; gap: 6px 12px; }
  .season-archive[open] > :not(summary) { margin-left: 8px; margin-right: 8px; }
  .sa-record { order: 3; flex-basis: 100%; }
}
