/* =========================================================
   KYOKUSHIN KARATE CLUB — Design System
   Paleta: czerń / biel / czerwień / złoto (belki na czarnym pasie)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- TOKENS ---------- */
:root {
  /* Czerń */
  --black:        #0a0a0c;
  --black-2:      #111115;
  --black-3:      #1a1a20;
  --black-4:      #24242c;

  /* Biel / szarości */
  --white:        #ffffff;
  --paper:        #f6f6f8;
  --paper-2:      #ededf1;
  --line:         #e2e2e8;
  --line-dark:    rgba(255,255,255,.12);

  /* Czerwień Kyokushin */
  --red:          #d81f26;
  --red-600:      #b7171d;
  --red-700:      #8e1115;
  --red-soft:     rgba(216,31,38,.12);

  /* Złoto belek na czarnym pasie */
  --gold:         #c9a227;
  --gold-light:   #f0d87a;
  --gold-deep:    #8a6c1b;
  --gold-soft:    rgba(201,162,39,.14);
  --gold-grad:    linear-gradient(135deg,#8a6c1b 0%,#e8cd6d 28%,#c9a227 48%,#f7e9a8 68%,#a8841f 100%);

  /* Tekst */
  --ink:          #14141a;
  --ink-2:        #4a4a57;
  --ink-3:        #74748a;
  --on-dark:      #f2f2f5;
  --on-dark-2:    #a9a9b8;

  /* Kształt / cień */
  --r-sm: 6px;
  --r:    12px;
  --r-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(10,10,12,.07);
  --shadow:    0 10px 30px rgba(10,10,12,.12);
  --shadow-lg: 0 24px 60px rgba(10,10,12,.22);

  /* Typografia */
  --font-display: 'Barlow Condensed', 'Oswald', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1240px;
  --header-h: 136px;
  --gutter: 20px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

::selection { background: var(--red); color: #fff; }

/* ---------- UTYLITY ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.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;
}
.skip-link {
  position: absolute; left: 50%; translate: -50% -140%; z-index: 999;
  background: var(--gold); color: #000; padding: 12px 22px; font-weight: 700;
  border-radius: 0 0 var(--r) var(--r); transition: translate .2s;
}
.skip-link:focus { translate: -50% 0; }

/* ---------- SEKCJE ---------- */
.section { padding: clamp(56px, 7vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 68px) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--black); color: var(--on-dark); }
.section--dark h1,.section--dark h2,.section--dark h3 { color: #fff; }
.section--dark p { color: var(--on-dark-2); }

.section-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--red); }
.section--dark .eyebrow { color: var(--gold); }
.section--dark .eyebrow::before { background: var(--gold); }

.section-title {
  font-size: clamp(32px, 4.6vw, 54px);
  text-transform: uppercase;
  letter-spacing: .005em;
}
.section-title em { font-style: normal; color: var(--red); }
.section--dark .section-title em { color: var(--gold); }
.section-lead { font-size: 17px; color: var(--ink-2); margin-top: 16px; }
.section--dark .section-lead { color: var(--on-dark-2); }

/* Pasek belek (motyw czarnego pasa) */
.belt-rule { display: flex; gap: 6px; align-items: center; margin-top: 18px; }
.belt-rule span { height: 5px; width: 34px; background: var(--gold-grad); border-radius: 2px; }
.belt-rule span:nth-child(2) { width: 22px; opacity: .75; }
.belt-rule span:nth-child(3) { width: 12px; opacity: .5; }
.center .belt-rule { justify-content: center; }

/* ---------- PRZYCISKI ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--r-sm);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap; border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(216,31,38,.3); }
.btn--primary:hover { background: var(--red-600); box-shadow: 0 12px 28px rgba(216,31,38,.4); }
.btn--gold { background: var(--gold-grad); color: #1a1405; box-shadow: 0 8px 22px rgba(201,162,39,.3); }
.btn--gold:hover { filter: brightness(1.07); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--dark .btn--ghost, .btn--ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.section--dark .btn--ghost:hover, .btn--ghost-light:hover { background: #fff; color: var(--black); border-color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--red);
}
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(5px); }
.section--dark .link-arrow { color: var(--gold); }

/* ---------- TOPBAR ---------- */
.topbar {
  background: var(--black-2); color: var(--on-dark-2);
  font-size: 13.5px; border-bottom: 1px solid var(--line-dark);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; }
.topbar__list { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .15s; }
.topbar a:hover { color: var(--gold); }
.topbar svg { width: 15px; height: 15px; flex: none; color: var(--red); }
.topbar__socials { display: flex; gap: 10px; }
.topbar__socials a {
  width: 28px; height: 28px; border-radius: 50%; justify-content: center;
  border: 1px solid var(--line-dark);
}
.topbar__socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.topbar__socials svg { width: 14px; height: 14px; color: currentColor; }

/* ---------- HEADER ---------- */
/* Kontener, do ktorego layout.js wstrzykuje pasek, nie moze tworzyc wlasnego
   bloku — inaczej "position: sticky" dziala tylko w jego granicach i naglowek
   odjezdza po kilkudziesieciu pikselach przewijania. */
#site-header { display: contents; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,12,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow .25s, background .25s;
}
.header.is-stuck { box-shadow: 0 10px 34px rgba(0,0,0,.45); background: rgba(10,10,12,.98); }
.header__in {
  display: flex; align-items: center; gap: 20px; min-height: var(--header-h);
  transition: min-height .25s ease;
}
/* po przewinieciu naglowek sie splaszcza, zeby nie zjadac ekranu */
.header.is-stuck .header__in { min-height: calc(var(--header-h) - 32px); }

/* Znak marki — logo klubu (warianty jasne na ciemnym tle) */
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand:hover .brand__logo, .brand:hover .brand__figure { opacity: .85; }

/* sylwetka z logo — znak w naglowku */
.brand__figure {
  height: 54px; width: auto; display: block; flex: none;
  transition: opacity .18s ease, height .25s ease;
}
.header.is-stuck .brand__figure { height: 44px; }

/* pelne logo — naglowek i stopka.
   Wysokosc 116 px daje napisowi "IchiBan" ok. 13 px, czyli granice czytelnosci;
   ponizej ~100 px napis staje sie juz tylko ozdoba. */
.brand__logo {
  height: 104px; width: auto; display: block;
  transition: opacity .18s ease, height .25s ease;
}
.brand--header .brand__logo { height: 116px; }
.header.is-stuck .brand__logo { height: 92px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display); font-size: 27px; font-weight: 700;
  color: #fff; text-transform: uppercase; letter-spacing: .03em;
}
.brand__name span { color: var(--red); }
.brand__sub {
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; white-space: nowrap;
}

/* Nawigacja desktop */
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark);
  padding: 12px 14px; border-radius: var(--r-sm); transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--gold); background: rgba(255,255,255,.05); }
.nav__link .caret { width: 10px; height: 10px; opacity: .6; transition: transform .2s; }
.nav__item:hover .caret { transform: rotate(180deg); }
.nav__link.is-active { color: var(--gold); }
.nav__link.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--red);
}
.nav__link--doc { color: var(--gold); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 254px;
  background: var(--black-2); border: 1px solid var(--line-dark);
  border-radius: var(--r); padding: 8px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 15px; color: var(--on-dark-2); transition: background .15s, color .15s;
}
.dropdown a strong { display: block; color: #fff; font-weight: 600; font-size: 15px; }
.dropdown a small { font-size: 12.5px; color: var(--ink-3); }
.dropdown a:hover { background: rgba(216,31,38,.16); color: #fff; }
.dropdown a:hover strong { color: var(--gold); }

.header__cta { flex: none; }
.burger {
  display: none; width: 46px; height: 46px; border-radius: var(--r-sm);
  border: 1px solid var(--line-dark); place-items: center; color: #fff;
}
.burger span { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: background .2s; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: #fff; transition: transform .25s, top .25s;
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Menu mobilne */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: var(--black);
  padding: calc(var(--header-h) + 20px) 0 40px; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display); font-size: 23px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: #fff; width: 100%;
}
.mobile-nav__link.is-active { color: var(--gold); }
.mobile-nav__link .caret { width: 14px; height: 14px; transition: transform .25s; color: var(--red); }
.mobile-nav__link[aria-expanded="true"] .caret { transform: rotate(180deg); }
.mobile-nav__sub { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mobile-nav__sub a {
  display: block; padding: 12px 0 12px 18px; border-left: 2px solid var(--red);
  margin: 10px 0 10px 4px; color: var(--on-dark-2); font-size: 16px;
}
.mobile-nav__sub a:hover { color: var(--gold); }
.mobile-nav__footer { margin-top: 30px; display: grid; gap: 12px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; background: var(--black); color: #fff; overflow: hidden;
  padding: clamp(64px, 9vw, 124px) 0 clamp(56px, 7vw, 96px);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 540px at 78% 18%, rgba(216,31,38,.26), transparent 62%),
    radial-gradient(700px 500px at 12% 88%, rgba(201,162,39,.14), transparent 60%);
}
.hero::after {
  content: '極真'; position: absolute; right: -2vw; top: 50%; translate: 0 -50%;
  font-family: var(--font-display); font-size: clamp(220px, 34vw, 480px);
  line-height: .8; color: rgba(255,255,255,.028); letter-spacing: -.04em;
  pointer-events: none; user-select: none;
}
.hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px,5vw,72px); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px;
  border: 1px solid rgba(201,162,39,.4); border-radius: 100px; background: rgba(201,162,39,.08);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold);
  margin-bottom: 24px;
}
.hero__badge b { background: var(--gold-grad); color: #1a1405; padding: 3px 10px; border-radius: 100px; font-size: 12px; }
.hero__title {
  font-size: clamp(44px, 7vw, 86px); text-transform: uppercase; line-height: .96; margin-bottom: 22px;
}
.hero__title span { display: block; color: var(--red); }
.hero__title i { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(16px,1.6vw,19px); color: var(--on-dark-2); max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 28px; }
.hero__meta div { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--on-dark-2); }
.hero__meta svg { width: 20px; height: 20px; color: var(--gold); flex: none; }

/* Karta „następne wydarzenie" w hero */
.hero__card {
  background: linear-gradient(170deg, var(--black-3), var(--black-2));
  border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.hero__card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gold-grad); }
.hero__card h3 { font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.countdown { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 18px 0 20px; }
.countdown div {
  background: rgba(255,255,255,.05); border: 1px solid var(--line-dark);
  border-radius: var(--r-sm); padding: 12px 6px; text-align: center;
}
.countdown b { display: block; font-family: var(--font-display); font-size: 30px; color: #fff; line-height: 1; }
.countdown small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hero__card-next {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-dark-2); margin: 20px 0 -6px; font-weight: 700;
}
.hero__event { display: flex; gap: 14px; align-items: flex-start; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.hero__event .date {
  flex: none; width: 58px; text-align: center; background: var(--red); border-radius: var(--r-sm); padding: 8px 4px;
}
.hero__event .date b { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1; color: #fff; }
.hero__event .date small { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.85); }
.hero__event p { font-size: 13.5px; color: var(--on-dark-2); margin: 4px 0 0; }
.hero__event strong { color: #fff; font-size: 16px; font-family: var(--font-display); letter-spacing: .03em; }

/* ---------- STATYSTYKI / OSIĄGNIĘCIA ---------- */
.stats { background: var(--black-2); border-block: 1px solid var(--line-dark); position: relative; }
.stats::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold-grad); opacity: .85; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); }
.stat { background: var(--black-2); padding: 34px 22px; text-align: center; transition: background .25s; }
.stat:hover { background: var(--black-3); }
.stat__icon {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red-soft); color: var(--red);
}
.stat__icon svg { width: 24px; height: 24px; }
.stat__num {
  font-family: var(--font-display); font-size: clamp(42px,5vw,60px); line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__num sup { font-size: .45em; vertical-align: super; }
.stat__label { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); margin-top: 10px; font-weight: 600; }
.stat__note { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* Medale (złoto/srebro/brąz) */
.medals { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.medal {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 22px; text-align: center; position: relative; overflow: hidden;
}
.medal::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; }
.medal--gold::before { background: var(--gold-grad); }
.medal--silver::before { background: linear-gradient(135deg,#8d8d96,#e8e8ee 45%,#b9b9c4 70%,#8d8d96); }
.medal--bronze::before { background: linear-gradient(135deg,#7a4a22,#d79a62 45%,#a8653a 70%,#7a4a22); }
.medal b { display: block; font-family: var(--font-display); font-size: 54px; line-height: 1; color: var(--ink); }
.medal span { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

/* ---------- KARTY ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2,1fr); }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--4 { grid-template-columns: repeat(4,1fr); }
/*
 * Kafelek siatki ma prawo być węższy niż jego treść. Bez tego formularz
 * z polami rozpychał kolumnę ponad szerokość telefonu i cała strona jechała
 * w bok (przeglądarka domyślnie daje kafelkom min-width:auto).
 */
.grid > *, .form-grid > *, .sponsor-main > * { min-width: 0; }

/*
 * Mniej kart niż kolumn — wtedy zamiast ciągnąć je do lewej, stawiamy je
 * pośrodku. Dwa pakiety w cenniku wyglądały jak zapomniane przy krawędzi.
 */
.grid--srodek { grid-template-columns: repeat(auto-fit,minmax(260px,380px)); justify-content: center; }
/* Kafelki o wlasnej wysokosci zamiast rownanych do najwyzszego w rzedzie.
   Przy wpisach krotki tekst obok dlugiego zostawial pol kafelka pustki. */
.grid--start { align-items: start; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 16/10; background: var(--black-3); overflow: hidden; }
.card__media .ph { position: absolute; inset: 0; }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.card__title { font-size: 23px; text-transform: uppercase; }
.card__title a:hover { color: var(--red); }
.card__text { font-size: 15px; color: var(--ink-2); }
.card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Placeholder zdjęcia (design bez fotek) */
.ph {
  background:
    linear-gradient(135deg, rgba(216,31,38,.22), rgba(201,162,39,.16)),
    repeating-linear-gradient(45deg, #15151a 0 12px, #1b1b22 12px 24px);
  display: grid; place-items: center; color: rgba(255,255,255,.4);
  font-family: var(--font-display); font-size: 15px; letter-spacing: .2em; text-transform: uppercase;
}
.ph::after { content: attr(data-label); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.badge--red { background: var(--red-soft); color: var(--red-600); }
.badge--gold { background: var(--gold-soft); color: var(--gold-deep); }
.badge--dark { background: rgba(20,20,26,.08); color: var(--ink); }
.badge--green { background: rgba(22,145,88,.12); color: #0f7045; }
/* Uprawnienie przy stopniu — spokojniejsze niż złoto, ale wyraźnie z nim
   spokrewnione: ten sam kształt, cieplejszy odcień, delikatna obwódka. */
.badge--uprawnienie {
  background: rgba(201,162,39,.12); color: var(--gold-deep);
  box-shadow: inset 0 0 0 1px rgba(201,162,39,.45);
}
.badge--live { background: var(--red); color: #fff; }
.badge--live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* ---------- PAGE HEAD (podstrony) ---------- */
.page-head {
  background: var(--black); color: #fff; padding: clamp(44px,6vw,80px) 0 clamp(40px,5vw,64px);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(800px 420px at 85% 0%, rgba(216,31,38,.26), transparent 60%);
}
.page-head::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold-grad);
}
.page-head__in { position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(36px,5.4vw,64px); text-transform: uppercase; margin-bottom: 14px; }
.page-head p { color: var(--on-dark-2); max-width: 640px; font-size: 17px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { color: var(--on-dark-2); }

/* ---------- ZAKŁADKI / FILTRY ---------- */
.tabs {
  display: inline-flex; gap: 6px; padding: 6px; background: var(--paper-2);
  border-radius: 100px; flex-wrap: wrap;
}
.section--dark .tabs { background: var(--black-3); border: 1px solid var(--line-dark); }
.tab {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px; border-radius: 100px;
  font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2); transition: all .2s;
}
.section--dark .tab { color: var(--on-dark-2); }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--black); color: #fff; box-shadow: var(--shadow-sm); }
.tab.is-active .dot { background: var(--gold); }
.tab .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--white); transition: all .18s;
}
.chip:hover { border-color: var(--ink-3); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- GRAFIK ZAJĘĆ ---------- */
.schedule-switch {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; max-width: 760px; margin-bottom: 34px;
}
.club-card {
  text-align: left; padding: 20px 22px; border-radius: var(--r-lg);
  border: 2px solid var(--line); background: var(--white); transition: all .2s; position: relative;
}
.club-card:hover { border-color: var(--ink-3); }
.club-card.is-active { border-color: var(--red); background: #fff; box-shadow: 0 10px 26px rgba(216,31,38,.16); }
.club-card.is-active::after {
  content: '✓'; position: absolute; top: 14px; right: 16px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; font-size: 13px;
}
.club-card b { display: block; font-family: var(--font-display); font-size: 22px; text-transform: uppercase; margin-bottom: 4px; }
.club-card span { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.club-card svg { width: 15px; height: 15px; color: var(--red); flex: none; }

.schedule { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.schedule__head {
  display: grid; grid-template-columns: 120px repeat(5,1fr);
  background: var(--black); color: #fff;
}
.schedule__head div {
  padding: 16px 12px; font-family: var(--font-display); font-size: 16px; letter-spacing: .1em;
  text-transform: uppercase; text-align: center; border-left: 1px solid var(--line-dark);
}
.schedule__head div:first-child { border-left: 0; text-align: left; color: var(--gold); }
.schedule__row { display: grid; grid-template-columns: 120px repeat(5,1fr); border-top: 1px solid var(--line); }
.schedule__row:first-child { border-top: 0; }
.schedule__time {
  padding: 16px 12px; font-family: var(--font-display); font-size: 18px; font-weight: 600;
  background: var(--paper); color: var(--ink); display: flex; align-items: center;
}
.schedule__cell { padding: 10px; border-left: 1px solid var(--line); min-height: 86px; }
.lesson {
  height: 100%; border-radius: var(--r-sm); padding: 11px 12px; border-left: 3px solid var(--red);
  background: var(--red-soft); transition: transform .18s;
}
.lesson:hover { transform: scale(1.03); }
.lesson b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.lesson small { font-size: 12.5px; color: var(--ink-2); display: block; margin-top: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 8px; vertical-align: -2px; }

/* Grafik mobilny */
.schedule-mobile { display: none; }
.day-block { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; background: #fff; }
.day-block__head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 15px 18px; background: var(--black); color: #fff;
  font-family: var(--font-display); font-size: 19px; text-transform: uppercase; letter-spacing: .08em;
}
.day-block__head .caret { width: 14px; height: 14px; color: var(--gold); transition: transform .25s; }
.day-block.is-open .day-block__head .caret { transform: rotate(180deg); }
.day-block__body { display: none; padding: 14px; display: grid; gap: 10px; }
.day-block:not(.is-open) .day-block__body { display: none; }
.day-block.is-open .day-block__body { display: grid; }
.day-lesson { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--r-sm); background: var(--paper); border-left: 3px solid var(--red); }
.day-lesson time { font-family: var(--font-display); font-size: 17px; font-weight: 700; flex: none; }

/* ---------- WYDARZENIA ---------- */
.event {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: center;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.event:hover { transform: translateX(5px); box-shadow: var(--shadow); border-color: transparent; }
.event__date {
  text-align: center; background: var(--black); color: #fff; border-radius: var(--r);
  padding: 14px 8px; position: relative; overflow: hidden;
}
.event__date::before { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--gold-grad); }
.event__date b { display: block; font-family: var(--font-display); font-size: 36px; line-height: 1; }
.event__date span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.event__date small { display: block; font-size: 11.5px; color: var(--on-dark-2); margin-top: 3px; }
.event__title { font-size: 24px; text-transform: uppercase; margin-bottom: 6px; }
.event__meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--ink-2); }
.event__meta span { display: inline-flex; align-items: center; gap: 7px; }
.event__meta svg { width: 15px; height: 15px; color: var(--red); flex: none; }
.event__tags { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.event__action { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

/* Oś czasu (historia) */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--red), var(--gold)); }
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -31px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--red); box-shadow: 0 0 0 4px rgba(216,31,38,.14);
}
.tl-item--gold::before { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.18); }
.tl-year { font-family: var(--font-display); font-size: 26px; color: var(--red); line-height: 1; margin-bottom: 6px; }
.tl-item--gold .tl-year { color: var(--gold-deep); }
.tl-title { font-size: 20px; text-transform: uppercase; margin-bottom: 6px; }
.tl-text { font-size: 15px; color: var(--ink-2); }

/* ---------- SPONSORZY ---------- */
.sponsor-main {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.sponsor-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; text-align: center; transition: transform .22s, box-shadow .22s;
  display: flex; flex-direction: column; gap: 14px;
}
.sponsor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.sponsor-card--main {
  border: 2px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box, var(--gold-grad) border-box;
  position: relative; padding-top: 38px;
}
.sponsor-card--main .ribbon {
  position: absolute; top: 0; left: 50%; translate: -50% 0;
  background: var(--gold-grad); color: #1a1405; padding: 5px 20px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
/*
 * Ramka ma ustaloną wysokość, bo inaczej „max-height: 100%” na zdjęciu nie ma
 * się do czego odnieść (procent od wysokości „auto” przeglądarka pomija)
 * i wysokie logo rozpychało kafelek na całą swoją wysokość.
 */
.sponsor-logo {
  height: 120px; display: flex; align-items: center; justify-content: center; border-radius: var(--r);
  background: var(--paper); font-family: var(--font-display); font-size: 25px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  padding: 12px; overflow: hidden;
}
.sponsor-card--main .sponsor-logo { height: 160px; font-size: 32px; background: var(--black); color: var(--gold); }
/*
 * Pod zdjęciem nie ma tła: logo sponsora bywa na przezroczystym tle i czarny
 * albo szary prostokąt za nim psuł kartę. Płyta zostaje tam, gdzie w ramce
 * jest sama nazwa — wtedy jest po co ją rysować.
 */
.sponsor-logo--obraz,
.sponsor-card--main .sponsor-logo--obraz { background: transparent; border-color: transparent; }
/*
 * Logo mieści się w ramce w całości, bez względu na proporcje pliku:
 * szerokie kładzie się wzdłuż, wysokie w pionie. Zdjęcie nigdy nie wystaje.
 */
.sponsor-logo__img {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
}
.sponsor-card h3 { font-size: 21px; text-transform: uppercase; }
.sponsor-card p { font-size: 14.5px; color: var(--ink-2); }
/* Bez logo w ramce stoja inicjaly — cala nazwa jest i tak w naglowku karty. */
.sponsor-logo__inicjaly { font-family: var(--font-display); letter-spacing: .1em; color: var(--ink); }
.sponsor-card--main .sponsor-logo__inicjaly { color: var(--gold); }

/* ---------- DOKUMENTY ---------- */
.doc-item {
  display: flex; align-items: center; gap: 18px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.doc-item:hover { border-color: var(--red); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.doc-icon {
  width: 48px; height: 48px; border-radius: var(--r-sm); flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .06em;
  background: var(--red-soft); color: var(--red-600);
}
.doc-icon--doc { background: rgba(32,86,196,.12); color: #1e4fb0; }
.doc-icon--xls { background: rgba(22,145,88,.12); color: #0f7045; }
.doc-item__body { flex: 1; min-width: 0; }
.doc-item__body b { display: block; font-size: 16px; font-weight: 600; }
.doc-item__body small { font-size: 13px; color: var(--ink-3); }
.doc-download {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); transition: all .18s;
}
.doc-item:hover .doc-download { background: var(--red); color: #fff; }

.search-box { position: relative; max-width: 420px; }
.search-box input {
  width: 100%; padding: 14px 16px 14px 46px; border-radius: 100px;
  border: 1px solid var(--line); background: #fff; font-size: 15px;
}
.search-box input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.search-box svg { position: absolute; left: 17px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-3); }

/* ---------- OSOBY / KADRA ---------- */
.person { text-align: center; }
.person__photo {
  aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; position: relative; margin-bottom: 18px;
  border: 1px solid var(--line);
}
.person__photo .ph { position: absolute; inset: 0; }
/* Stopień i wskazane uprawnienia w jednym rzędzie na dole zdjęcia. */
.person__ranks {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px;
}

/*
 * Selektory z „.person__ranks” z rozmysłem: niżej jest reguła „.person span”,
 * która wszystkim spanom w kafelku każe być czerwonymi czternastkami. Bez
 * tego wyprzedzenia napis na złotej plakietce wychodził czerwony zamiast
 * grafitowego — i tak właśnie wyglądał, zanim doszły tu odznaki.
 */
.person__ranks .person__rank {
  background: var(--gold-grad); color: #1a1405; padding: 5px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}

/* Uprawnienie obok stopnia: ciemna plakietka ze złotym napisem — widać ją
   na zdjęciu, a nie konkuruje ze złotem samego stopnia. */
.person__ranks .person__badge {
  background: rgba(20, 20, 26, .86); color: var(--gold); padding: 5px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(2px);
}
.person h3 { font-size: 22px; text-transform: uppercase; }
.person span { font-size: 14px; color: var(--red); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.person p { font-size: 14.5px; color: var(--ink-2); margin-top: 10px; }

.founder {
  display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start;
  padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
}
.founder__photo { aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden; position: relative; }
.founder h3 { font-size: 30px; text-transform: uppercase; }
.founder .role { color: var(--red); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; display: block; margin: 4px 0 16px; }
.founder__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quote {
  border-left: 3px solid var(--gold); padding: 6px 0 6px 20px; margin-top: 20px;
  font-size: 17px; font-style: italic; color: var(--ink);
}

/* ---------- KONTAKT ---------- */
/* auto-fit, bo klub może mieć jedno dojo albo trzy — jedna karta ma wtedy wypełnić wiersz, a nie zostawić dziurę. */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.contact-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.contact-card h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 4px; }
.contact-card .tagline { color: var(--red); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; display: block; }
.contact-list { display: grid; gap: 14px; margin-bottom: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.contact-list svg { width: 19px; height: 19px; color: var(--red); flex: none; margin-top: 3px; }
.contact-list b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
  /* Pole nie wymusza swojej „naturalnej” szerokości (input ma ok. 20 znaków). */
  width: 100%; max-width: 100%; min-width: 0;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft);
}
.field--check { flex-direction: row; align-items: flex-start; gap: 11px; }
.field--check input { width: 20px; height: 20px; flex: none; accent-color: var(--red); margin-top: 2px; }
.field--check label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13.5px; color: var(--ink-2); }
.form-note { font-size: 13px; color: var(--ink-3); }

/* ---------- FAQ / AKORDEON ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.accordion + .accordion { margin-top: 12px; }
.accordion__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px; text-align: left; font-family: var(--font-display); font-size: 20px;
  text-transform: uppercase; letter-spacing: .03em; transition: background .18s;
}
.accordion__head:hover { background: var(--paper); }
.accordion__head .caret { width: 16px; height: 16px; color: var(--red); flex: none; transition: transform .25s; }
.accordion.is-open .accordion__head { background: var(--paper); }
.accordion.is-open .accordion__head .caret { transform: rotate(180deg); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion__body > div { padding: 4px 22px 22px; color: var(--ink-2); font-size: 15px; }

/* ---------- GALERIA ---------- */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.gallery figure { margin: 0; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; position: relative; cursor: pointer; }
.gallery .ph { position: absolute; inset: 0; transition: transform .35s; }
.gallery figure:hover .ph { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; color: #fff; font-size: 13px;
  background: linear-gradient(transparent, rgba(0,0,0,.82)); opacity: 0; transition: opacity .25s;
}
.gallery figure:hover figcaption { opacity: 1; }
.gallery figure:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(5,5,7,.94);
  display: none; place-items: center; padding: 24px;
}
.lightbox.is-open { display: grid; }
.lightbox__box { max-width: 900px; width: 100%; }
.lightbox__img { aspect-ratio: 3/2; border-radius: var(--r); overflow: hidden; position: relative; }
.lightbox__cap { color: #fff; text-align: center; margin-top: 16px; font-size: 15px; }
.lightbox__close {
  position: absolute; top: 22px; right: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; font-size: 22px;
}
.lightbox__close:hover { background: var(--red); }

/* ---------- CTA PASEK ---------- */
.cta {
  background: var(--black); color: #fff; border-radius: var(--r-lg); padding: clamp(32px,4.5vw,58px);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 20%, rgba(216,31,38,.34), transparent 60%); }
.cta > * { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(28px,3.6vw,44px); text-transform: uppercase; }
.cta p { color: var(--on-dark-2); margin-top: 10px; max-width: 560px; }

/* Dojo kun / cytat */
.creed {
  background: var(--black); color: #fff; border-radius: var(--r-lg);
  padding: clamp(30px,4vw,48px); position: relative; overflow: hidden;
}
.creed::after {
  content: '押忍'; position: absolute; right: 24px; bottom: -24px;
  font-family: var(--font-display); font-size: 160px; color: rgba(255,255,255,.04); line-height: 1;
}
.creed ol { counter-reset: c; display: grid; gap: 14px; margin: 0; padding: 0; position: relative; z-index: 2; }
.creed li { counter-increment: c; display: flex; gap: 16px; align-items: flex-start; font-size: 16px; color: var(--on-dark-2); }
.creed li::before {
  content: counter(c); flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold-grad); color: #1a1405; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}

/* ---------- STOPNIE KYU (pasy) ---------- */
.belts { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 12px; }
.belt-item {
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: #fff; text-align: center;
}
.belt-bar { height: 16px; border-radius: 3px; margin-bottom: 10px; position: relative; }
.belt-bar i { position: absolute; right: 10px; top: 0; bottom: 0; width: 5px; background: var(--gold-grad); border-radius: 2px; }
.belt-item b { display: block; font-family: var(--font-display); font-size: 17px; text-transform: uppercase; }
.belt-item small { font-size: 12.5px; color: var(--ink-3); }

/* ---------- STOPKA ---------- */
.footer { background: var(--black); color: var(--on-dark-2); padding-top: 64px; position: relative; }
.footer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gold-grad); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer h4 {
  font-size: 16px; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.footer h4::before { content: ''; width: 14px; height: 2px; background: var(--red); }
.footer a { font-size: 14.5px; transition: color .15s; }
.footer a:hover { color: var(--gold); }
.footer__links { display: grid; gap: 11px; }
.footer__text { font-size: 14.5px; max-width: 320px; margin-top: 18px; }
.footer__contact { display: grid; gap: 13px; font-size: 14.5px; }
.footer__contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; color: var(--red); flex: none; margin-top: 3px; }
.footer__contact b { display: block; color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.footer__bottom {
  border-top: 1px solid var(--line-dark); padding: 22px 0; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3);
}
.footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--black); }

/* ---------- ANIMACJE WEJŚCIA ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .gallery { grid-template-columns: repeat(3,1fr); }
}

/* Pelne logo jest szerokie (ok. 169 px), wiec poziome menu zwijamy do hamburgera
   wczesniej niz reszte layoutu — inaczej przycisk "Zapisz się" wychodzi poza ekran. */
@media (max-width: 1180px) {
  .nav, .header__cta { display: none; }
  .burger { display: grid; margin-left: auto; }
}

@media (max-width: 1024px) {
  :root { --header-h: 118px; }
  .brand { gap: 11px; }
  .brand__figure { height: 46px; }
  .header.is-stuck .brand__figure { height: 40px; }
  .brand__name { font-size: 23px; }
  .brand__sub { font-size: 10.5px; letter-spacing: .2em; }
  .brand__logo { height: 84px; }
  .brand--header .brand__logo { height: 100px; }
  .header.is-stuck .brand--header .brand__logo { height: 84px; }
  .nav, .header__cta { display: none; }
  .burger { display: grid; margin-left: auto; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__card { max-width: 560px; margin-inline: auto; }
  .grid--3, .sponsor-main { grid-template-columns: repeat(2,1fr); }
  .schedule { display: none; }
  .schedule-mobile { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 220px 1fr; gap: 26px; }
}

@media (max-width: 760px) {
  .topbar__list li:nth-child(n+3) { display: none; }
  .stats__grid { grid-template-columns: repeat(2,1fr); }
  .grid--2, .grid--3, .grid--4, .sponsor-main, .form-grid { grid-template-columns: 1fr; }
  .schedule-switch { grid-template-columns: 1fr; }
  .event { grid-template-columns: 84px 1fr; }
  .event__action { grid-column: 1 / -1; flex-direction: row; }
  .event__action .btn { flex: 1; }
  .medals { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; padding: 20px; }
  .founder__photo { max-width: 240px; }
  .gallery { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .gallery figure:nth-child(7n+1) { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta { text-align: center; justify-content: center; }
  .cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
  .section-head { margin-bottom: 30px; }
  .btn { width: 100%; }
  .hero__actions .btn { width: auto; flex: 1; min-width: 180px; }
  .tabs { width: 100%; justify-content: stretch; }
  .tab { flex: 1; justify-content: center; padding: 11px 12px; font-size: 15px; }
}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  /* Pasek kontaktowy na wąskim telefonie: ciaśniej, zamiast wyjeżdżać poza ekran. */
  .topbar__in { gap: 10px; }
  .topbar__list { gap: 12px; min-width: 0; }
  .topbar__socials { gap: 6px; }
  .topbar__socials a { width: 26px; height: 26px; }
  .brand { gap: 9px; }
  .brand__figure { height: 38px; }
  .brand__name { font-size: 20px; }
  .brand__sub { font-size: 9.5px; letter-spacing: .16em; }
  .brand__logo { height: 72px; }
  .countdown { grid-template-columns: repeat(4,1fr); gap: 5px; }
  .countdown b { font-size: 22px; }
}

/* ---------- DRUK ---------- */
@media print {
  .header, .topbar, .footer, .to-top, .mobile-nav, .btn, .cta { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding: 16px 0; }
}

/* Kolorów kafelków nie ma już w tym pliku: tło, pasek i trzy kolory tekstu
   ustawia się przy grupie w „Listach wyboru”, a skrypt wstawia je wprost
   w atrybucie style. Kolor może być dowolny, więc arkusz i tak nie miałby
   go skąd znać. */
