/* AFK Libčice – vzhled podle původního webu (bílá, Fjalla One + Cantarell, červená ze znaku) */
@font-face { font-family: 'Fjalla One'; font-weight: 400; font-display: swap; src: url(/fonts/fjalla-one-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fjalla One'; font-weight: 400; font-display: swap; src: url(/fonts/fjalla-one-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cantarell'; font-weight: 400; font-display: swap; src: url(/fonts/cantarell-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cantarell'; font-weight: 400; font-display: swap; src: url(/fonts/cantarell-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cantarell'; font-weight: 700; font-display: swap; src: url(/fonts/cantarell-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cantarell'; font-weight: 700; font-display: swap; src: url(/fonts/cantarell-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --red: #e31e24; --red-d: #b8161b; --red-l: #fdecec;
  --ink: #111; --text: rgba(0, 0, 0, .68); --muted: #8a8a8a;
  --line: #e8e8e8; --tint: #f6f6f6; --black: #000;
  --head: 'Fjalla One', 'Arial Narrow', Arial, sans-serif;
  --body: 'Cantarell', Helvetica, Arial, sans-serif;
  --wrap: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.75 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; color: var(--ink); line-height: 1.1; margin: 0; }
h2 { font-size: clamp(36px, 4.6vw, 50px); text-transform: uppercase; margin-bottom: 32px; }
h2.center { text-align: center; }
h3 { font-size: 22px; }
.accent { color: var(--red); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { --wrap: 820px; }
.eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #2c3e6b; margin-bottom: 10px; }
.note { font-size: 14px; color: var(--muted); margin: 14px 2px 0; }

/* hlavička */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 21px; color: var(--ink); text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: auto; }
.menu { display: flex; gap: 26px; }
.menu a { font-family: var(--head); font-size: 15.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.menu a:hover { color: var(--red); text-decoration: none; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* úvod */
.hero__in { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; padding: 64px 0 56px; }
.hero h1 { font-size: clamp(52px, 6.5vw, 72px); text-transform: uppercase; line-height: 1.12; }
.hero h1 span { display: block; color: var(--red); }
.lead { font-size: 17px; max-width: 520px; margin: 22px 0 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn { display: inline-block; font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: 16px; padding: 12px 22px; border-radius: 4px; background: var(--red); color: #fff; border: 2px solid var(--red); }
.btn:hover { background: var(--red-d); border-color: var(--red-d); text-decoration: none; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero__logo { justify-self: center; padding: 22px 26px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .12); }
.hero__logo img { width: 240px; }

/* sekce */
.sec { padding: 72px 0; }
.sec--tint { background: var(--tint); }

/* události */
.events { display: grid; gap: 28px; }
.event { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 36px; align-items: center; }
.event__img img { width: 100%; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.event h3 { font-size: 30px; margin-bottom: 10px; }
.event .eyebrow { color: var(--red); font-weight: 700; }

/* záložky */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { font-family: var(--head); font-size: 16px; text-transform: uppercase; letter-spacing: .03em; padding: 9px 16px; border: 1px solid #d6d6d6; background: #fff; color: var(--ink); border-radius: 4px; cursor: pointer; }
.tab:hover { border-color: var(--ink); }
.tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* tabulky (rozpis i výsledky) */
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; color: var(--ink); }
caption { caption-side: top; text-align: left; font-family: var(--head); text-transform: uppercase; letter-spacing: .03em; font-size: 17px; color: #fff; background: var(--ink); padding: 12px 18px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
.r-date { font-family: var(--head); font-size: 18px; white-space: nowrap; width: 70px; }
.r-day, .r-time { color: #555; white-space: nowrap; width: 54px; }
.r-match b { color: var(--red); font-weight: 700; }
.r-match small { display: block; color: var(--muted); font-size: 13px; }
.r-where { text-align: right; width: 90px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 99px; }
.pill--home { background: var(--red-l); color: var(--red-d); }
.pill--away { background: #eef0f4; color: #4a5266; }
tr.past td { color: #b4b4b4; }
tr.past .r-match b { color: #c99; }
tr.past .pill { opacity: .5; }
tr.is-next td { background: #fff8e6; }
.tabulka td, .tabulka th { text-align: center; }
.tabulka .t-team { text-align: left; }
.tabulka td:first-child { color: var(--muted); width: 44px; }
.tabulka .t-pts { font-weight: 700; }
.tabulka tr.me td { background: var(--red-l); color: var(--red-d); font-weight: 700; }

/* nejbližší zápasy */
.next { margin-bottom: 26px; }
.next h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; }
.next__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.next__item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 6px; padding: 12px 16px; line-height: 1.45; }
.next__item .t { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.next__item .d { font-family: var(--head); font-size: 18px; color: var(--ink); margin: 2px 0; }
.next__item .m { color: var(--ink); font-size: 15px; }

/* o nás */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about p { margin: 0 0 18px; }
.nsa { display: flex; gap: 18px; align-items: flex-start; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.nsa img { width: 96px; flex: none; }
.nsa p { font-size: 14.5px; margin: 0; }
.nsa strong { color: var(--ink); }
.about__img img { width: 100%; box-shadow: 0 14px 40px rgba(0, 0, 0, .14); }

/* kontakty */
.team { margin-bottom: 40px; }
.team h3 { font-size: 21px; text-transform: uppercase; letter-spacing: .02em; padding-bottom: 8px; margin-bottom: 16px; border-bottom: 2px solid var(--red); display: inline-block; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.person { border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; line-height: 1.55; }
.person .role { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 700; }
.person .name { font-weight: 700; color: var(--ink); font-size: 17px; margin: 2px 0 4px; }
.person .contact { font-size: 14.5px; word-break: break-word; }

/* galerie */
.gallery { background: var(--black); padding: 64px 0; }
.gallery h2 { color: #fff; text-align: center; text-transform: none; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__grid a { aspect-ratio: 4 / 3; overflow: hidden; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery__grid a:hover img { transform: scale(1.04); }

/* archiv */
.archive { display: grid; gap: 12px; }
.arc { border: 1px solid var(--line); border-radius: 6px; padding: 16px 20px; }
.arc__t { font-weight: 700; color: var(--ink); }
.arc p { margin: 4px 0 0; font-size: 15px; }
.arc--file { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.arc--file:hover { border-color: var(--red); text-decoration: none; }
.arc__tag { font-family: var(--head); font-size: 13px; color: var(--red); background: var(--red-l); padding: 4px 8px; border-radius: 4px; }
.arc--file .arc__t { flex: 1; }
.arc__go { color: var(--red); font-size: 14px; white-space: nowrap; }

/* patička */
.foot { background: #111; color: #aaa; font-size: 14.5px; line-height: 1.7; }
.foot__in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px 0 32px; }
.foot__in > div { display: flex; gap: 16px; align-items: flex-start; }
.foot img { width: 44px; }
.foot strong { color: #fff; }
.foot a { color: #fff; }
.foot p { margin: 0; }
.foot__bottom { border-top: 1px solid #2a2a2a; padding: 16px 0 22px; font-size: 13px; color: #777; }

/* zvětšení fotky */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lb[hidden] { display: none; }
.lb img { max-height: 92vh; max-width: 100%; width: auto; }
.lb__close { position: absolute; top: 12px; right: 18px; font-size: 40px; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; }

@media (max-width: 960px) {
  .menu { position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; padding: 6px 20px 14px; }
  .menu.open { display: flex; }
  .menu a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  .hero__in { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .hero__logo { order: -1; padding: 14px 16px; }
  .hero__logo img { width: 150px; }
  .event, .about { grid-template-columns: 1fr; gap: 24px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .foot__in { grid-template-columns: 1fr; gap: 18px; }
  .sec { padding: 52px 0; }
}
@media (max-width: 560px) {
  table { font-size: 14.5px; }
  .rozpis .r-day, .rozpis th:nth-child(2) { display: none; }
  td, th { padding: 10px 8px; }
  th:first-child, td:first-child { padding-left: 12px; }
  th:last-child, td:last-child { padding-right: 12px; }
  .r-where { width: auto; }
  .tabulka th:nth-child(4), .tabulka td:nth-child(4), .tabulka th:nth-child(5), .tabulka td:nth-child(5), .tabulka th:nth-child(6), .tabulka td:nth-child(6) { display: none; }
}
