/* ---------- czcionki (własny serwer) ---------- */
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/fraunces-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/fraunces-latin-wght-normal.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: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-wght-normal.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; }

:root {
  --bg: #f4f1ea;          /* ciepły, „papierowy” */
  --card: #ffffff;
  --text: #13221c;
  --muted: #5b6a63;
  --line: #e2ddd1;
  --deep: #0b2a24;        /* głęboka woda */
  --deep-2: #0f3b33;
  --brand: #1e6b54;
  --brand-dark: #144a3a;
  --brand-soft: #e2f0e9;
  --accent: #d9a441;      /* złoto */
  --accent-soft: #f6e7c4;
  --water: #1c5e82;
  --gold: #d4a72c;
  --silver: #9aa5ad;
  --bronze: #b4743f;
  --danger: #b3261e;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 33, 28, .04), 0 8px 30px rgba(16, 33, 28, .07);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
a { color: var(--water); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-family: var(--serif); font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 .9em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: .9rem; }
.back { text-decoration: none; font-weight: 600; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--brand); margin: 0 0 10px; }

/* ---------- nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 42, 36, .92); backdrop-filter: blur(10px); color: #fff; transition: background .3s; }
.site-header.over-hero { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; }
.site-header.over-hero.scrolled { background: rgba(11, 42, 36, .92); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { border-radius: 12px; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.45rem; letter-spacing: .01em; line-height: 1.1; }
.brand small { display: block; font-size: .78rem; opacity: .8; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a { color: rgba(255, 255, 255, .9); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: .98rem; font-weight: 500; transition: background .2s, color .2s; }
.main-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.main-nav a[aria-current] { background: var(--accent); color: var(--deep); font-weight: 650; }
@media (max-width: 760px) {
  /* telefon: całe menu widoczne w dwóch rzędach, bez przewijania w bok */
  .main-nav { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .main-nav a { white-space: nowrap; text-align: center; padding: 7px 4px; font-size: .92rem; background: rgba(255, 255, 255, .07); }
}

/* ---------- hero (strona główna) ---------- */
.hero { position: relative; min-height: 100svh; min-height: max(620px, 100svh); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--deep); isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 9s ease-out; }
.hero-slides img.on { opacity: 1; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 22, 19, .55) 0%, rgba(6, 22, 19, .15) 35%, rgba(6, 22, 19, .55) 70%, rgba(6, 22, 19, .92) 100%); }
.hero-inner { padding-bottom: clamp(90px, 14vh, 150px); padding-top: 140px; width: 100%; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(3.4rem, 11vw, 8rem); line-height: .95; margin-bottom: .25em; font-weight: 700; letter-spacing: -.03em; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.hero-lead { font-size: clamp(1.1rem, 2.2vw, 1.45rem); max-width: 36em; opacity: .95; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; z-index: 0; color: var(--bg); }
.scroll-hint { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px; z-index: 1; }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scroll-hint 1.8s infinite; }
@keyframes scroll-hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 760px) { .scroll-hint { display: none; } }

/* podstrony: pasek tytułowy */
.page-head { background: radial-gradient(1200px 300px at 20% 0%, rgba(217, 164, 65, .18), transparent 60%), linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 60%, #134b5e 100%); color: #fff; padding: 56px 0 72px; position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; }
.page-head p { margin: 8px 0 0; opacity: .85; font-size: 1.1rem; }
.page-head .hero-wave { height: 46px; }
main.wrap { padding-top: 36px; padding-bottom: 64px; }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; padding: 13px 24px; border-radius: 999px; border: 2px solid var(--brand); background: var(--brand); color: #fff; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--accent); border-color: var(--accent); color: var(--deep); box-shadow: 0 10px 30px rgba(217, 164, 65, .35); }
.btn-gold:hover { background: #e7b54f; border-color: #e7b54f; color: var(--deep); }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.btn-secondary { background: #fff; color: var(--brand-dark); }
.btn-secondary:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-small { padding: 6px 12px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: wait; }
.link-arrow { font-weight: 650; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- liczniki ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: -8px 0 56px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); text-align: center; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sekcje strony głównej ---------- */
.section { margin-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 24px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }

/* podium */
.podium-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%); color: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; }
.podium-wrap::before { content: ''; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 164, 65, .35), transparent 70%); }
.podium-wrap h2 { color: #fff; }
.podium-wrap .eyebrow { color: var(--accent); }
.champion-name { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.05; margin: 4px 0 8px; }
.champion-pts { color: var(--accent); font-weight: 650; font-size: 1.1rem; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 10px; min-height: 260px; }
.podium-step { text-align: center; }
.podium-step .who { font-weight: 650; line-height: 1.25; margin-bottom: 8px; font-size: .98rem; }
.podium-step .who small { display: block; opacity: .75; font-weight: 500; }
.podium-step .block { border-radius: 14px 14px 4px 4px; display: flex; align-items: flex-start; justify-content: center; padding-top: 12px; font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--deep); }
.podium-step.p1 .block { height: 170px; background: linear-gradient(180deg, #f3d27a, var(--gold)); }
.podium-step.p2 .block { height: 120px; background: linear-gradient(180deg, #e4e9ec, var(--silver)); }
.podium-step.p3 .block { height: 90px; background: linear-gradient(180deg, #e2b087, var(--bronze)); }
@media (max-width: 860px) { .podium-wrap { grid-template-columns: 1fr; } }

/* karty */
.card { background: var(--card); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.card-head h1, .card-head h2, .card-head h3 { margin: 0; }
.meta { color: var(--muted); margin: 0; font-size: .95rem; }
.badge { display: inline-block; background: var(--accent-soft); color: #7a5a12; border-radius: 999px; padding: 1px 10px; font-size: .8rem; font-weight: 650; margin-left: 6px; vertical-align: middle; }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0 24px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.note { background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; }
.champion { font-size: 1.1rem; }
.empty-schedule { text-align: center; padding: 34px 22px; }
.empty-schedule .icon { font-size: 2.4rem; }

/* tabele wyników */
.results { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.results th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 2px solid var(--line); padding: 6px 8px; }
.results td { border-bottom: 1px solid var(--line); padding: 9px 8px; }
.results tr:last-child td { border-bottom: 0; }
.results tbody tr { transition: background .15s; }
.results tbody tr:hover { background: #faf7f0; }
.results .num { text-align: right; white-space: nowrap; }
.results th.num:first-child, .results td.num:first-child { text-align: center; width: 4.2em; }
.place-dot { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 750; font-size: .9rem; }
.place-1 .place-dot { background: linear-gradient(180deg, #f3d27a, var(--gold)); color: var(--deep); }
.place-2 .place-dot { background: linear-gradient(180deg, #eef1f3, var(--silver)); color: var(--deep); }
.place-3 .place-dot { background: linear-gradient(180deg, #ebc2a0, var(--bronze)); color: #fff; }
.results tr.place-1 td:nth-child(2) { font-weight: 700; }
.table-scroll { overflow-x: auto; margin-bottom: 1em; }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .results td, .results th { padding: 8px 4px; }
  .results th.num:first-child, .results td.num:first-child { width: 2.8em; }
  .schedule th:nth-child(2), .schedule td:nth-child(2) { display: none; }
}

/* sezony na stronie wyników */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -46px 0 30px; position: relative; z-index: 2; }
.tabs a { text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--text); font-weight: 650; }
.tabs a:hover { background: var(--accent); color: var(--deep); }
.season { scroll-margin-top: 90px; margin-bottom: 48px; }
.season-title { font-size: clamp(1.8rem, 4vw, 2.4rem); display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.season-title::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.competition { scroll-margin-top: 90px; }
.with-winner { display: grid; grid-template-columns: 1fr 270px; gap: 22px; align-items: start; }
.winner { margin: 0; position: relative; }
.winner img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; display: block; }
.winner figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(11, 42, 36, .82); color: #fff; border-radius: 10px; padding: 6px 10px; text-align: center; font-weight: 650; backdrop-filter: blur(4px); }
@media (max-width: 680px) { .with-winner { grid-template-columns: 1fr; } .winner { order: -1; max-width: 340px; margin: 0 auto; width: 100%; } }
.winner-photo { max-width: 320px; border-radius: 12px; display: block; margin-top: 12px; }

/* ---------- zdjęcia ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 10px; }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(6) { grid-column: span 2; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } .mosaic a:nth-child(6) { grid-column: auto; } .mosaic a:nth-child(8) { display: none; } }
.photo { display: block; overflow: hidden; border-radius: 12px; background: var(--line); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s; display: block; }
.photo:hover img { transform: scale(1.06); filter: brightness(1.05); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 1em; }
.photos .photo { aspect-ratio: 4 / 3; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 0 22px; }
.post-cover { display: block; margin: -22px -22px 16px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post:hover .post-cover img { transform: scale(1.04); }
.post h3 a { color: var(--text); text-decoration: none; }
.post h3 a:hover { color: var(--brand); }
@media (max-width: 400px) { .posts { grid-template-columns: 1fr; } }
figure { margin: 0 0 1em; }
figcaption { color: var(--muted); font-size: .9rem; }
.prose h2 { margin-top: 1.2em; font-size: 1.5rem; }

/* filmy */
.films { background: linear-gradient(135deg, var(--deep) 0%, #10332d 100%); color: #fff; border-radius: 28px; padding: clamp(22px, 4vw, 40px); }
.films h2 { color: #fff; }
.films .eyebrow { color: var(--accent); }
.film-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.film video { width: 100%; aspect-ratio: 4 / 3; background: #000; border-radius: 14px; display: block; }
.film h3 { margin: 12px 0 2px; color: #fff; }
.film p { opacity: .8; margin: 0; }
.video-wrap video { width: 100%; max-height: 70vh; background: #000; border-radius: 12px; display: block; margin-bottom: 10px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 15, 13, .94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: .95rem; }

/* animacje przy przewijaniu */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.hero-inner > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-inner > :nth-child(2) { animation-delay: .12s; }
.hero-inner > :nth-child(3) { animation-delay: .24s; }
.hero-inner > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-inner > * { animation: none; }
  .hero-slides img { transition: opacity .01s; transform: none !important; }
}

/* stopka */
.site-footer { background: var(--deep); color: rgba(255, 255, 255, .78); padding: 44px 0 36px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer strong { color: #fff; font-family: var(--serif); font-size: 1.3rem; display: block; margin-bottom: 6px; }
.site-footer a { color: rgba(255, 255, 255, .9); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 18px; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- panel (duże litery, proste) ---------- */
body.panel { font-size: 20px; background: #f2f5f3; }
.panel-header { background: var(--deep); color: #fff; }
.panel-main { max-width: 820px; padding-top: 28px; padding-bottom: 60px; }
.panel h1 { font-size: 1.9rem; }
.lead { font-size: 1.2rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { display: flex; gap: 14px; align-items: center; background: var(--card); border: 2px solid #d5dfda; border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); min-height: 96px; }
.tile:hover, .tile:focus-visible { border-color: var(--brand); color: var(--text); }
.tile-icon { font-size: 2.2rem; }
.tile strong { display: block; font-size: 1.15rem; }
.tile small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.panel .card { border: 1px solid #dfe6e2; box-shadow: none; }
.panel .btn { border-radius: 12px; }

.form label { display: block; font-weight: 600; margin-bottom: 16px; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea { display: block; width: 100%; margin-top: 6px; font: inherit; padding: 12px 14px; border: 2px solid #b9c7c0; border-radius: 10px; background: #fff; color: var(--text); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.form legend { font-weight: 600; margin-bottom: 6px; }
.choice label, .check { font-weight: 400; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.choice input, .check input { width: 26px; height: 26px; accent-color: var(--brand); }
.hint { color: var(--muted); font-size: 1rem; }
.weights { display: grid; gap: 8px; margin-bottom: 16px; }
.weight-row { display: grid; grid-template-columns: 1fr 9em 6.5em; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.weight-row:has(.points:not([type=hidden])) { grid-template-columns: 1fr 8em 6.5em 4.5em; }
.form .weight-row label { margin: 0; font-weight: 600; }
.form .weight-row input { margin: 0; text-align: right; }
.form .weight-row.guest input[name=guest_name] { text-align: left; }
.weight-preview { color: var(--brand-dark); font-size: .95rem; }
@media (max-width: 560px) {
  .weight-row, .weight-row:has(.points:not([type=hidden])) { grid-template-columns: 1fr 7em; }
  .weight-row .weight-preview { grid-column: 2; text-align: right; }
  .weight-row .points:not([type=hidden]) { grid-column: 2; }
}
.btn-big { width: 100%; padding: 18px 22px; font-size: 1.2rem; margin-bottom: 16px; }
.link-button { background: none; border: 1px solid rgba(255, 255, 255, .6); color: #fff; font: inherit; font-size: 1rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.actions { display: grid; gap: 4px; }
.danger-zone { margin-top: 40px; padding-top: 20px; border-top: 1px dashed var(--line); }
.flash { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.flash.ok { background: var(--brand-soft); color: var(--brand-dark); }
.flash.error { background: #fde8e6; color: var(--danger); }
.edit-list { list-style: none; margin: 0; padding: 0; }
.edit-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.edit-list li:last-child { border-bottom: 0; }
.edit-list li > span { display: flex; gap: 12px; align-items: center; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.file-button { margin-top: 8px; }
.photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.photo-item { position: relative; display: grid; gap: 6px; }
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--line); }
.photo-item.uploading img { opacity: .5; }
.schedule-row { display: grid; grid-template-columns: 1.3fr .9fr 1.5fr 1.2fr; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 12px; }
.schedule-row label { font-size: .9rem; margin-bottom: 0; }
@media (max-width: 640px) { .schedule-row { grid-template-columns: 1fr 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.album .photos { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
@media (max-width: 560px) { .album .photos { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.panel-actions { display: flex; gap: 8px; align-items: center; }
.panel-actions form { margin: 0; }
a.link-button { text-decoration: none; display: inline-block; }
a.link-button:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* ---------- drukowanie ---------- */
.print-btn { margin-left: 10px; font: inherit; font-size: .85rem; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); border: 0; border-radius: 999px; padding: 4px 12px; cursor: pointer; vertical-align: middle; white-space: nowrap; }
.print-btn:hover { background: var(--accent); color: var(--deep); }
.season-title .print-btn { font-family: var(--sans); order: 2; }
#print-area { display: none; }
@media print {
  /* margines strony 0 = przeglądarka nie dopisuje daty, tytułu, adresu i numerów stron; margines robi odstęp w treści (powtarzany na każdej stronie) */
  @page { size: A4; margin: 0; }
  body.printing #print-area, body:not(.printing) main.wrap { padding: 14mm 14mm 12mm !important; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  html, body { background: #fff !important; color: #000; }
  body { font-size: 10.5pt; line-height: 1.35; }
  body.printing > :not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; }
  body:not(.printing) .site-header, body:not(.printing) .page-head, body:not(.printing) .tabs, body:not(.printing) .site-footer { display: none !important; }
  .print-btn, .hero-wave, .winner-card, .link-arrow { display: none !important; }
  main.wrap { max-width: none; }
  a { color: #000; text-decoration: none; }
  .reveal { opacity: 1 !important; transform: none !important; }

  /* nagłówek wydruku */
  .print-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6mm; padding-bottom: 2.5mm; border-bottom: 1.6pt solid #000; font-size: 9pt; color: #333; }
  .print-head strong { font-family: var(--serif); font-size: 15pt; color: #000; letter-spacing: .01em; }

  /* bez ramek i cieni – jak protokół zawodów */
  .card { background: none; box-shadow: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 7mm; break-inside: avoid; }
  .competition + .competition { border-top: .6pt solid #999; padding-top: 5mm; }
  .card-head { margin-bottom: 2.5mm; }
  .card-head h2, .card-head h3, .card h3 { font-size: 14pt; margin: 0; }
  .card-head .muted { color: #000; font-weight: 400; }
  .meta { color: #000; font-size: 10pt; }
  .badge { background: none; border: .6pt solid #000; color: #000; padding: 0 5px; }
  .season { margin-bottom: 8mm; }
  .season-title { font-size: 18pt; margin: 0 0 4mm; display: block; }
  .season-title::after { display: none; }
  .champion { font-size: 11pt; margin: 0 0 2mm; }
  .note { background: none; padding: 0; font-style: italic; margin-top: 2mm; }
  .muted.small { font-size: 8.5pt; color: #444; }

  /* tabela */
  .results { font-size: 10.5pt; }
  .results th { color: #000; font-size: 8pt; letter-spacing: .06em; border-bottom: 1.2pt solid #000; padding: 1.5mm 2mm; }
  .results td { border-bottom: .4pt solid #bbb; padding: 1.6mm 2mm; }
  .results tr:last-child td { border-bottom: 1.2pt solid #000; }
  .results tbody tr:hover { background: none; }
  .results th.num:first-child, .results td.num:first-child { width: 14mm; }
  .place-dot { background: none !important; width: auto; height: auto; font-size: 10.5pt; color: #000 !important; }
  .results tr.place-1 td { font-weight: 700; }

  /* zwycięzca: małe zdjęcie obok tabeli */
  .with-winner { grid-template-columns: 1fr 34mm; gap: 6mm; }
  .winner { order: 0; max-width: none; margin: 0; }
  .winner img { border-radius: 0; aspect-ratio: 3 / 4; }
  .winner figcaption { position: static; background: none; color: #000; padding: 1mm 0 0; font-size: 8.5pt; text-align: left; backdrop-filter: none; }
}
}

/* karta zwycięzcy, gdy brak zdjęcia */
.winner-card { aspect-ratio: 3 / 4; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 18px; color: #fff;
  background: radial-gradient(circle at 50% 30%, rgba(243, 210, 122, .35), transparent 60%), linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%); }
.winner-card .trophy { font-size: 4rem; line-height: 1; filter: drop-shadow(0 6px 18px rgba(217, 164, 65, .55)); }
.winner-card .winner-label { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; color: var(--accent); }
.winner-card strong { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; }
.winner-card .winner-weight { opacity: .85; font-variant-numeric: tabular-nums; }
@media (max-width: 680px) { .winner-card { aspect-ratio: auto; padding: 22px; } }

/* kontakt – wizytówka */
.contact-card { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; max-width: 820px; }
.contact-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.contact-text h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 14px; }
.contact-text p { font-size: 1.25rem; margin: 0 0 8px; }
.contact-text a { color: var(--brand-dark); font-weight: 650; text-decoration: none; }
.contact-text a:hover { text-decoration: underline; }
@media (max-width: 640px) { .contact-card { grid-template-columns: 1fr; } .contact-photo { max-width: 280px; margin: 0 auto; } }

/* bardzo wąskie telefony: tabela wyników mieści się bez przesuwania w bok */
.with-winner > * { min-width: 0; }
@media (max-width: 400px) {
  .results { font-size: .88rem; }
  .results th { letter-spacing: .02em; font-size: .68rem; }
  .results td, .results th { padding: 7px 3px; }
  .results th.num:first-child, .results td.num:first-child { width: 2.4em; }
  .place-dot { width: 26px; height: 26px; }
  .card { padding: 16px 12px; }
}
.video-tile { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--deep); color: #fff; overflow: hidden; font-weight: 700; }
.video-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video-tile span { position: relative; }

/* Zwycięzca dopasowany do szerokości karty (np. węższa karta „Ostatnie zawody” na stronie głównej) – zdjęcie nie wchodzi na tabelę. */
.competition { container-type: inline-size; }
@container (max-width: 760px) { .with-winner { grid-template-columns: 1fr 160px; gap: 16px; } .winner-card strong { font-size: 1.1rem; } .winner-card .trophy { font-size: 3rem; } }
@container (max-width: 560px) { .with-winner { grid-template-columns: 1fr; } .winner { order: -1; max-width: 300px; width: 100%; margin: 0 auto; } }

/* panel: zawodnicy z portretem */
/* duże zdjęcia – czytelne dla starszej osoby */
.member-row { display: grid; grid-template-columns: 120px 1fr; grid-template-areas: "photo name" "photo btn"; gap: 6px 16px; align-items: center; border-bottom: 1px solid var(--line); padding: 14px 0; }
.member-row .check { grid-area: name; margin: 0; font-size: 1.15rem; font-weight: 600; }
.member-photo { display: contents; }
.member-photo img, .member-photo .no-photo { grid-area: photo; width: 120px; height: 150px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: var(--brand-soft); font-size: 2.6rem; }
.member-photo .photo-btn { grid-area: btn; justify-self: start; padding: 8px 16px; border-radius: 10px; border: 2px solid var(--brand); color: var(--brand-dark); font-weight: 700; text-decoration: none; }
.member-photo:hover .photo-btn { background: var(--brand-soft); }
.member-photo-big { width: 100%; max-width: 320px; border-radius: 14px; }
.member-photo-form .photo-list { grid-template-columns: minmax(0, 320px); }
