/* Fonty lokalnie (OFL 1.1, zob. static/fonts/LICENSE.txt) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/outfit-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/outfit-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* CheerTV – własny arkusz */
:root {
  --bg: #0a0118;
  --bg-2: #0f0722;
  --line: rgba(255,255,255,.12);
  --text: #f6f7f9;
  --muted: #c9c5d6;
  --accent: #49deff;
  --accent-ink: #04121a;
  --purple: #3b367d;
  --blue: #3e5d9e;
  --wrap: 1180px;
  --head: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --grad: linear-gradient(90deg, #3b367d 0%, #3e5d9e 45%, #49deff 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; }
body.lb-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1260px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.center { text-align: center; margin-top: 2.6rem; }
.center-text { text-align: center; }
.accent { color: var(--accent); }
.icon { display: inline-block; flex: none; vertical-align: -.15em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5em 1em; z-index: 100; }
.skip:focus { left: 10px; }

/* Pigułka i przyciski */
.pill { display: inline-block; border: 1px solid var(--accent); border-radius: 999px; padding: .35em 1.4em; font-family: var(--head);
  font-size: .88rem; font-weight: 500; color: #fff; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 1.1rem; line-height: 1.5; }
.btn-grad { display: inline-block; background: var(--grad); color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .22em;
  font-size: .8rem; font-weight: 600; padding: 1.05em 2.1em; border-radius: 999px; transition: filter .2s, transform .2s; }
.btn-grad:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-grad-sm { padding: .85em 1.8em; font-size: .74rem; }
.btn-pill { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; text-transform: uppercase;
  font-size: .78rem; font-weight: 600; letter-spacing: .03em; padding: .75em 1.6em; border-radius: 999px; transition: filter .2s; }
.btn-pill:hover { filter: brightness(1.1); }

/* Nagłówek */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(10,1,24,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 106px; gap: 20px; max-width: 1300px; }
.brand img { height: 57px; width: auto; }
.brand-text { font-family: var(--head); font-weight: 800; font-size: 1.6rem; color: #fff; }
.brand-text b { color: var(--accent); }
.brand { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { font-family: var(--head); color: #fff; text-decoration: none; padding: .5em .9em; font-weight: 500; font-size: 1.02rem; transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav-toggle, .nav-burger { display: none; }

/* Poświata (jak w oryginale) */
.glow { position: relative; }
.glow::before { content: ""; position: absolute; left: 50%; top: 60px; width: 620px; height: 420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(73,140,255,.22), rgba(73,222,255,.08) 55%, transparent); pointer-events: none; }
.glow > * { position: relative; }

/* Baner */
.hero { position: relative; text-align: center; background: linear-gradient(180deg, rgba(10,1,24,.35) 0%, rgba(10,1,24,.55) 55%, var(--bg) 100%), var(--hero-img, none) center top/cover, var(--bg); }
.hero-inner { padding: 70px 24px 150px; max-width: 900px; }
.hero .pill { text-transform: none; font-size: .9rem; padding: .3em 1.5em; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 600; line-height: 1.1; margin-bottom: .55em; }
.hero h1 .accent { display: block; }
.hero-text { font-size: .93rem; color: #e9e6f2; max-width: 860px; margin: 0 auto 2.3rem; }

/* Sekcje */
.section { padding: 80px 0; }
.section-tight { padding: 40px 0 30px; }
.section-top0 { padding-top: 0; }
.page-head + .section { padding-top: 10px; }
.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-head h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-text { color: #e9e6f2; font-size: 1rem; line-height: 1.8; }
.page-head { position: relative; text-align: center; padding: 72px 0 60px; border-bottom: 1px solid var(--line); margin-bottom: 60px; }
.page-head::before { content: ""; position: absolute; left: 50%; top: 10px; width: 260px; height: 200px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(73,222,255,.2), transparent); pointer-events: none; }
.page-head > * { position: relative; }
.page-head h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); margin-bottom: .35em; }
.page-head .lead { color: var(--muted); font-size: .95rem; max-width: 820px; margin: 0 auto; }
.prose { color: #e9e6f2; }
.prose p:last-child { margin-bottom: 0; }
.small-prose { font-size: .92rem; }

/* Aktualności – strona główna (2 kolumny, miniatura + data + tytuł) */
.news-mini { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 50px 60px; margin-top: 3.5rem; }
.nm-item { display: grid; grid-template-columns: 200px 1fr; gap: 56px; align-items: start; }
.nm-img { display: block; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #1a1230; }
.nm-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nm-img:hover img { transform: scale(1.05); }
.nm-date { font-size: .72rem; color: #d0ccdc; margin: .3em 0 .9em; }
.nm-item h3 { font-size: 1.2rem; font-weight: 500; line-height: 1.45; }
.nm-item h3 a, .news-row h2 a { color: #fff; text-decoration: none; }
.nm-item h3 a:hover, .news-row h2 a:hover { color: var(--accent); }

/* Partnerzy – karuzela */
.carousel-track { list-style: none; margin: 0; padding: 4px 2px 6px; display: flex; gap: 33px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.partner { flex: 0 0 calc((100% - 6 * 33px) / 7); scroll-snap-align: start; background: #fff; border-radius: 8px; height: 82px; display: grid; place-items: center; padding: 6px 10px; }
.partner img { max-height: 70px; width: auto; object-fit: contain; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.25); cursor: pointer; }
.carousel-dots button.on { background: rgba(255,255,255,.75); }

/* O nas */
.about { padding-top: 40px; }
.about .section-head { margin-bottom: 1.5rem; }
.org-logo { display: block; max-width: 640px; margin: 0 auto 3rem; padding: 50px 0 20px; }
.about .prose { font-size: 1rem; line-height: 1.75; }

/* Aktualności – lista */
.news-wrap { max-width: 1160px; }
.news-row { display: grid; grid-template-columns: 450px 1fr; gap: 95px; align-items: start; margin-bottom: 52px; }
.nr-img { display: block; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #1a1230; }
.nr-img img { width: 100%; height: 100%; object-fit: cover; }
.news-row .nm-date { font-size: .78rem; margin-top: -.2em; }
.news-row h2 { font-size: 1.85rem; font-weight: 500; line-height: 1.3; margin-bottom: .7em; }
.nr-excerpt { font-size: .82rem; color: #d6d2e0; line-height: 1.85; }
.nr-more { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nr-more:hover { color: var(--accent); }

/* Foto-wideo */
.g-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 20px; }
.g-card { text-align: center; }
.g-img { display: block; aspect-ratio: 3/2; overflow: hidden; margin-bottom: 1.4rem; background: #1a1230; }
.g-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.g-img:hover img { transform: scale(1.04); }
.g-card h3 { font-size: 1.02rem; font-weight: 500; line-height: 1.5; min-height: 3em; margin: 0 auto 1.2rem; max-width: 300px; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.video-card { margin: 0; }
.video, .video-frame { position: relative; display: block; aspect-ratio: 16/9; width: 100%; overflow: hidden; background: #000; border: 0; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video:hover img { transform: scale(1.03); }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 66px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; background: #ff0033; color: #fff; padding-left: 3px; box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.video-card figcaption { margin-top: 1em; font-family: var(--head); font-weight: 500; font-size: .95rem; line-height: 1.6; text-align: center; }
.video-note { color: #8f8aa3; font-size: .78rem; text-align: center; margin-top: 2rem; }
.int-group + .int-group { margin-top: 90px; }
.int-group .section-head { margin-bottom: 4.5rem; }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.reel { display: flex; flex-direction: column; background: #fff; color: #262626; text-decoration: none; border-radius: 4px; overflow: hidden; border: 1px solid #dbdbdb; }
.reel-top { display: flex; align-items: center; gap: .5em; padding: 10px 12px; font-size: .82rem; font-weight: 600; }
.reel-media { position: relative; aspect-ratio: 4/5; background: var(--reel-img, linear-gradient(150deg, #3b367d, #3e5d9e 55%, #49deff)) center/cover; }
.reel-media .video-play { background: rgba(255,255,255,.85); color: #222; border-radius: 50%; width: 64px; height: 64px; }
.reel-bottom { padding: 12px; color: #3897f0; font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: .4em; }

/* Livestream */
.ls-intro { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center; max-width: 1180px; }
.ls-logo { background: #fff; border-radius: 10px; display: grid; place-items: center; height: 125px; margin-left: 40px; }
.ls-logo img { max-height: 90px; width: auto; }
.ls-intro .prose { font-size: .95rem; line-height: 1.75; }
.ls-btn { margin: 1.6rem 0 0; }
.timeline { list-style: none; margin: 4.5rem auto 0; padding: 0; position: relative; max-width: 1240px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.18); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; min-height: 197px; }
.tl-card { position: relative; background: var(--blue); border-radius: 6px; padding: 40px 50px; display: flex; gap: 26px; align-items: center; min-height: 166px; }
.tl-card h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .5em; }
.tl-card h3 a { color: #fff; text-decoration: none; }
.tl-card p { margin: 0; font-size: .9rem; color: #e6ebf7; }
.tl-icon { flex: none; width: 52px; height: 52px; border-radius: 8px; background: var(--bg); color: #fff; display: grid; place-items: center; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; justify-self: center; grid-column: 2; grid-row: 1; }
.tl-meta { display: flex; flex-direction: column; font-size: .95rem; }
.tl-meta strong { font-family: var(--head); font-weight: 600; font-size: 1.05rem; }
.tl-left .tl-card { grid-column: 1; grid-row: 1; flex-direction: row; }
.tl-left .tl-card::after { content: ""; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); border: 18px solid transparent; border-right: 0; border-left-color: var(--blue); }
.tl-left .tl-card .tl-icon { order: 2; margin-left: auto; }
.tl-left .tl-meta { grid-column: 3; grid-row: 1; padding-left: 10px; }
.tl-right .tl-card { grid-column: 3; grid-row: 1; }
.tl-right .tl-card::before { content: ""; position: absolute; left: -17px; top: 50%; transform: translateY(-50%); border: 18px solid transparent; border-left: 0; border-right-color: var(--blue); }
.tl-right .tl-meta { grid-column: 1; grid-row: 1; text-align: right; padding-right: 10px; }

/* Galeria wydarzenia – wyjustowana */
.event-head { padding: 70px 0 40px; }
.event-head .section-head { margin-bottom: 1.3rem; }
.event-head .prose { color: #dcd8e6; }
.jgallery { display: flex; flex-wrap: wrap; gap: 10px; }
.jg-item { --r: 1.5; flex: calc(var(--r) * 100) 1 calc(var(--r) * 210px); aspect-ratio: var(--r); overflow: hidden; background: #1a1230; display: block; }
.jg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.jg-item:hover img { transform: scale(1.04); }
.jg-fill { flex: 100000 1 0; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,0,12,.95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(73,222,255,.25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Kontakt */
.contact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 20px; }
.ci { display: flex; gap: 18px; align-items: flex-start; }
.ci-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.ci p { margin: 0; font-size: .95rem; }
.ci .ci-label { font-family: var(--head); font-weight: 600; text-transform: uppercase; font-size: .82rem; margin: .2em 0 .5em; }
.ci a { color: #fff; text-decoration: none; }
.ci a:hover { color: var(--accent); }

/* Media społecznościowe */
.social { display: flex; gap: 6px; }
.social a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: filter .2s; }
.social a:hover { filter: brightness(1.2); }
.social-color .s-fb { background: #3b5998; }
.social-color .s-ig { background: #262626; }
.social-color .s-yt { background: #cd201f; }
.social-light { justify-content: center; margin-top: .6rem; gap: 8px; }
.social-light a { width: 36px; height: 36px; background: #fff; color: var(--accent); }

/* Stopka */
.site-footer { border-top: 1px solid var(--line); margin: 60px auto 0; max-width: 1240px; padding: 70px 0 40px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-row-2 { margin-top: 28px; }
.footer-logo img { height: 57px; width: auto; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 50px; }
.footer-menu a { color: #fff; text-decoration: none; font-size: 1rem; }
.footer-menu a:hover, .footer-menu a.active { color: #8f8aa3; }
.footer-contact { margin: 0 300px 0 0; display: flex; gap: 20px; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }

/* Tablet / telefon */
@media (max-width: 1080px) {
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .nav-burger span { width: 26px; height: 2px; background: #fff; border-radius: 2px; }
  .header-inner { min-height: 80px; }
  .brand img { height: 46px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 80px; background: var(--bg); flex-direction: column; align-items: stretch;
    padding: 10px 24px 22px; border-bottom: 1px solid var(--line); }
  .nav a { padding: .7em .2em; font-size: 1.08rem; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .news-mini { gap: 36px 30px; }
  .nm-item { grid-template-columns: 150px 1fr; gap: 24px; }
  .news-row { grid-template-columns: 1fr 1.2fr; gap: 40px; }
  .partner { flex-basis: calc((100% - 3 * 20px) / 4); }
  .carousel-track { gap: 20px; }
  .footer-contact { margin-right: 0; }
  .site-footer { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 760px) {
  .hero-inner { padding: 50px 20px 100px; }
  .section { padding: 56px 0; }
  .news-mini { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; margin-top: 2rem; }
  .nm-item { grid-template-columns: 120px 1fr; gap: 18px; }
  .nm-item h3 { font-size: 1.02rem; }
  .news-row { grid-template-columns: 1fr; gap: 18px; margin-bottom: 44px; }
  .news-row h2 { font-size: 1.35rem; }
  .g-cards, .videos, .reels { grid-template-columns: 1fr; gap: 40px; }
  .partner { flex-basis: calc((100% - 20px) / 2); }
  .ls-intro { grid-template-columns: 1fr; gap: 26px; }
  .ls-logo { margin: 0 auto; width: 220px; }
  .timeline::before { left: 5px; }
  .tl-item { grid-template-columns: 30px 1fr; grid-template-rows: auto auto; min-height: 0; margin-bottom: 26px; row-gap: 12px; }
  .tl-dot { grid-column: 1; grid-row: 1; justify-self: start; }
  .tl-left .tl-meta, .tl-right .tl-meta { grid-column: 2; grid-row: 1; text-align: left; padding: 0; }
  .tl-left .tl-card, .tl-right .tl-card { grid-column: 2; grid-row: 2; padding: 24px; min-height: 0; }
  .tl-left .tl-card::after, .tl-right .tl-card::before { display: none; }
  .tl-left .tl-card .tl-icon { order: 0; margin: 0; }
  .contact-row { grid-template-columns: 1fr; padding: 24px 4px; }
  .jg-item { flex-basis: calc(var(--r) * 80px); }
  .jgallery { gap: 6px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-menu { gap: 6px 24px; }
  .footer-contact { flex-direction: column; gap: 4px; }
  .btn-grad { letter-spacing: .14em; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
