/* ============================================================
   UKS BEREJ BOXING LUBLIN — demo one-page
   Editorial boxing / premium sport / gala mistrzowska
   ============================================================ */

:root {
  --bg: #090B0F;
  --bg-2: #12151B;
  --ink: #F5F5F2;
  --muted: #B5BBC4;
  --red: #E82932;
  --red-dark: #C21F27;
  --line: rgba(245, 245, 242, 0.12);
  --line-soft: rgba(245, 245, 242, 0.07);
  --light: #F5F5F2;
  --light-ink: #0B0D12;
  --light-muted: #4A5160;
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

address { font-style: normal; }

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

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

section { scroll-margin-top: calc(var(--header-h) + 8px); }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  background: var(--red);
  color: var(--ink);
  padding: 12px 20px;
  font-weight: 700;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- Typografia ---------- */
.section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
  flex: none;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 5.6vw, 4.9rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.red-dot { color: var(--red); }
.text-red { color: var(--red); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink);
  font-weight: 500;
  max-width: 56ch;
}

.lead.dark { color: var(--light-ink); }

.body-text {
  color: var(--muted);
  line-height: 1.75;
  max-width: 58ch;
}

.body-text.dark { color: var(--light-muted); }
.body-text strong, .lead strong { color: inherit; font-weight: 800; }
.lead.dark strong { color: var(--light-ink); }

.figure-caption {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
  padding-left: 2px;
}
.figure-caption.dark { color: var(--light-muted); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.22s var(--ease-out), color 0.22s var(--ease-out),
              border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn-red {
  background: var(--red);
  color: var(--ink);
  border-color: var(--red);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(245, 245, 242, 0.35);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(245, 245, 242, 0.06); }

.btn-lg { min-height: 60px; padding: 0 40px; font-size: 0.88rem; }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 0.76rem; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
              backdrop-filter 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(9, 11, 15, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  max-width: 1400px;
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; flex-direction: column; line-height: 1; z-index: 130; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}
.brand-accent { color: var(--red); }
.brand-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.5em;
  color: var(--muted);
  margin-top: 4px;
}

.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav-list { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 2px;
  position: relative;
  transition: color 0.2s var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta { min-height: 46px; padding: 0 22px; font-size: 0.76rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  z-index: 130;
  padding: 0 12px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.28s var(--ease-out), opacity 0.2s var(--ease-out);
}
body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: max(92svh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(9, 11, 15, 0.94) 0%,
      rgba(9, 11, 15, 0.78) 30%,
      rgba(9, 11, 15, 0.35) 58%,
      rgba(9, 11, 15, 0.08) 100%),
    linear-gradient(0deg,
      rgba(9, 11, 15, 0.92) 0%,
      rgba(9, 11, 15, 0.25) 26%,
      rgba(9, 11, 15, 0) 45%);
}

.hero-content {
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: 72px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.34em;
  color: var(--red);
  margin-bottom: clamp(14px, 2.4vh, 24px);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.1rem, 8vw, 7.4rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.002em;
}
.hero-title > span { display: block; }

.hero-lead {
  margin-top: clamp(18px, 2.6vh, 26px);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.7;
  color: rgba(245, 245, 242, 0.88);
  max-width: 34rem;
  font-weight: 500;
}

.hero-actions {
  margin-top: clamp(22px, 3.2vh, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-tag {
  margin-top: clamp(26px, 4vh, 40px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid var(--red);
}

.scroll-hint {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.scroll-hint-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-hint-line {
  width: 1px;
  height: 56px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--red);
  animation: scrollHint 2.2s var(--ease-out) infinite;
}
@keyframes scrollHint {
  0% { top: -50%; }
  60%, 100% { top: 110%; }
}

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--line-soft);
  background: var(--bg);
  overflow: hidden;
  padding: 18px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 46s linear infinite;
}
.ticker-group {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 242, 0.6);
  white-space: nowrap;
  padding-right: 0.5em;
}
.ticker .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--red);
  margin-inline: 0.9em;
  transform: rotate(45deg);
  flex: none;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sekcje ogólne ---------- */
.section { padding-block: clamp(80px, 11vw, 140px); }

.section-head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(48px, 7vw, 84px);
}

/* ---------- O KLUBIE ---------- */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about-text .section-title { margin-bottom: clamp(26px, 3vw, 40px); }
.about-text .lead { margin-bottom: 20px; }

.about-facts {
  margin-top: clamp(34px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.fact {
  padding: 20px 18px 4px 0;
  border-right: 1px solid var(--line-soft);
}
.fact:last-child { border-right: 0; }
.fact-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: 0.06em;
  color: var(--ink);
}
.fact-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

.about-figure { position: relative; }
.frame-vertical {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.frame-vertical::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 41, 50, 0.55);
  transform: translate(14px, 14px);
  pointer-events: none;
  transition: transform 0.4s var(--ease-out);
}
.about-figure:hover .frame-vertical::after { transform: translate(8px, 8px); }
.frame-vertical img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transition: transform 0.8s var(--ease-out);
}
.about-figure:hover .frame-vertical img { transform: scale(1.03); }

/* ---------- TRENINGI ---------- */
.training { background: var(--bg-2); }

.training-list { border-top: 1px solid var(--line); }

.training-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 3.6vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s var(--ease-out);
}
.training-item:hover { background: rgba(232, 41, 50, 0.04); }

.training-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 245, 242, 0.35);
  transition: color 0.3s var(--ease-out), -webkit-text-stroke-color 0.3s var(--ease-out);
}
.training-item:hover .training-num {
  color: var(--red);
  -webkit-text-stroke-color: var(--red);
}

.training-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.training-photos {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: clamp(14px, 2vw, 24px);
  align-items: end;
}
.tp { position: relative; overflow: hidden; border: 1px solid var(--line-soft); }
.tp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.4s var(--ease-out);
}
.tp:hover img { transform: scale(1.04); }
.tp-a { aspect-ratio: 4 / 3; }
.tp-b { aspect-ratio: 1 / 1; }
.tp-c { aspect-ratio: 4 / 3.4; }
.tp figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 26px 16px 12px;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(0deg, rgba(9, 11, 15, 0.85), transparent);
}

.training-cta {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.training-cta .body-text { max-width: 46ch; }

/* ---------- SUKCESY (jasna sekcja) ---------- */
.success {
  background: var(--light);
  color: var(--light-ink);
}
.success .section-label { color: var(--red); }

.success-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.success-figure figure {
  overflow: hidden;
  border: 1px solid rgba(11, 13, 18, 0.15);
}
.success-figure img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: 50% 18%;
  transition: transform 0.8s var(--ease-out);
}
.success-figure:hover img { transform: scale(1.03); }

.success-text .section-title { margin-bottom: clamp(24px, 3vw, 36px); }
.success-text .lead { margin-bottom: 20px; }

.success-quote {
  margin-top: clamp(30px, 4vw, 44px);
  padding-left: 22px;
  border-left: 3px solid var(--red);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--light-ink);
}

/* ---------- GALERIA ---------- */
.gallery { background: var(--bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.8vw, 22px);
}

.g-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  grid-column: span 4;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.g-wide { grid-column: span 8; aspect-ratio: 16 / 8.2; }
.g-tall { grid-column: span 4; aspect-ratio: 4 / 4.6; }

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), opacity 0.4s var(--ease-out);
}
.g-item:hover img,
.g-item:focus-visible img { transform: scale(1.05); }
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 11, 15, 0.55), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.g-item:hover::after,
.g-item:focus-visible::after { opacity: 1; }

.g-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  color: var(--ink);
  padding: 5px 10px;
  background: rgba(9, 11, 15, 0.72);
  border-left: 2px solid var(--red);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.g-item:hover .g-tag,
.g-item:focus-visible .g-tag { opacity: 1; transform: translateY(0); }

/* ---------- FINAŁ / CTA ---------- */
.final {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.final-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}
.final-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(9, 11, 15, 0.95) 0%,
      rgba(9, 11, 15, 0.82) 45%,
      rgba(9, 11, 15, 0.55) 100%),
    linear-gradient(0deg,
      rgba(9, 11, 15, 0.9) 0%,
      rgba(9, 11, 15, 0.15) 40%);
}
.final-content {
  padding-block: clamp(90px, 12vw, 150px);
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  justify-items: start;
}
.final-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.9rem, 7.4vw, 6.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
}
.final-phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: 0.1em;
  color: var(--ink);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease-out);
}
.final-phone:hover { color: var(--red); }

/* ---------- STOPKA ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(56px, 8vw, 96px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(44px, 6vw, 72px);
}

.footer-brand .brand { margin-bottom: 20px; }
.footer-brand .body-text { margin-bottom: 14px; }
.footer-brand .body-text strong { color: var(--ink); }

.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}

.footer-address { display: grid; gap: 12px; }
.footer-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 1.02rem;
  transition: color 0.2s var(--ease-out);
  width: fit-content;
}
.footer-link:hover { color: var(--ink); }
.footer-phone {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.footer-phone:hover { color: var(--red); }

.footer-where .body-text { margin-bottom: 14px; }
.footer-note { color: rgba(181, 187, 196, 0.65); font-size: 0.85rem; }
.footer-note-strong { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.footer-where .btn { margin-top: 10px; }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 6, 9, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s var(--ease-out);
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lb-figure {
  max-width: min(1100px, 88vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lb-figure img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
}
.lb-figure figcaption {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(245, 245, 242, 0.06);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  z-index: 2;
}
.lb-btn:hover { background: var(--red); border-color: var(--red); }

.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Animacje wejścia ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }
.js .hero-title .d1 { --reveal-delay: 0.05s; }
.js .hero-title .d2 { --reveal-delay: 0.15s; }
.js .hero-title .d3 { --reveal-delay: 0.25s; }
.js .d4 { --reveal-delay: 0.38s; }
.js .d5 { --reveal-delay: 0.48s; }
.js .d6 { --reveal-delay: 0.58s; }

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-figure { max-width: 520px; }
  .success-grid { grid-template-columns: 1fr; gap: 52px; }
  .success-figure { max-width: 640px; }
  .success-figure img { aspect-ratio: 4 / 3.4; }
  .training-photos { grid-template-columns: 1fr 1fr; }
  .tp-c { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .g-item { grid-column: span 6; }
  .g-wide { grid-column: span 12; }
  .g-tall { grid-column: span 6; aspect-ratio: 4 / 3; }
}

@media (max-width: 820px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 100px clamp(24px, 8vw, 56px) 48px;
    background: rgba(9, 11, 15, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.34s var(--ease-out), visibility 0s 0.34s;
  }
  body.nav-open .main-nav {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.34s var(--ease-out);
  }
  body.nav-open { overflow: hidden; }

  .nav-list { flex-direction: column; gap: 8px; }
  .nav-link {
    font-size: clamp(2rem, 8vw, 2.9rem);
    color: var(--ink);
    padding: 4px 0;
  }
  .nav-cta { margin-top: 8px; min-height: 54px; padding: 0 30px; font-size: 0.82rem; }

  .hero { min-height: 100svh; }
  .hero-img { object-position: 58% 24%; }
  .hero-overlay {
    background:
      linear-gradient(90deg,
        rgba(9, 11, 15, 0.95) 0%,
        rgba(9, 11, 15, 0.85) 45%,
        rgba(9, 11, 15, 0.55) 100%),
      linear-gradient(0deg,
        rgba(9, 11, 15, 0.96) 0%,
        rgba(9, 11, 15, 0.35) 30%,
        rgba(9, 11, 15, 0.1) 55%);
  }
  .hero-content { padding-bottom: 120px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; min-width: 0; }

  .scroll-hint { display: none; }

  .training-item { grid-template-columns: 1fr; gap: 8px; }
  .training-num { font-size: 2.2rem; }

  .training-cta { flex-direction: column; align-items: flex-start; }
  .training-cta .btn { width: 100%; justify-content: center; }

  .final-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .final-actions .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-btn { width: 46px; height: 46px; }
  .lb-close { top: 14px; right: 14px; }
}

@media (max-width: 560px) {
  .about-facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line-soft); padding-bottom: 16px; }
  .fact:last-child { border-bottom: 0; }

  .training-photos { grid-template-columns: 1fr; }
  .tp-c { grid-column: auto; aspect-ratio: 4 / 3; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-item, .g-wide, .g-tall { grid-column: span 2; aspect-ratio: 4 / 3; }
  .g-item:nth-child(3), .g-item:nth-child(7) { grid-column: span 1; aspect-ratio: 1 / 1; }
  .g-item:nth-child(4), .g-item:nth-child(8) { grid-column: span 1; aspect-ratio: 1 / 1; }

  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .scroll-hint-line::after { animation: none; }
}
