:root {
  --red: #e30613;
  --red-dark: #b8000b;
  --red-soft: #fff0f1;
  --pink: #ffdadd;
  --text: #242424;
  --muted: #666666;
  --line: #eeeeee;
  --white: #ffffff;
  --bg: #fffafa;
  --shadow: 0 22px 70px rgba(40, 0, 0, 0.12);
  --radius: 28px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 92px 0; position: relative; }
.section-tight { padding: 56px 0; }
.eyebrow { color: var(--red); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .78rem; margin-bottom: 12px; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 20px; letter-spacing: -0.04em; }
h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2rem, 4.5vw, 4.4rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 2rem); }
.lead { font-size: clamp(1.1rem, 2vw, 1.45rem); color: #3b3b3b; max-width: 820px; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 12px; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 999; }
.skip-link:focus { left: 12px; }

.header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; }
.logo img { width: 54px; height: 54px; object-fit: contain; }
.logo span { font-size: 1.02rem; max-width: 170px; }
.nav-links { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: .9rem; }
.nav-links a { color: #343434; }
.nav-links a:hover { color: var(--red); }
.nav-toggle { display: none; border: 0; background: var(--red-soft); color: var(--red); padding: 10px 14px; border-radius: 999px; font-weight: 900; }

/* Rozwijane menu Multisport Dzieci w górnej nawigacji */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-parent::after {
  content: "⌄";
  font-size: .9rem;
  line-height: 1;
  transform: translateY(-1px);
  color: var(--red);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 290px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .18s ease;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #343434;
  font-size: .9rem;
  line-height: 1.25;
  white-space: nowrap;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--red-soft);
  color: var(--red);
}


.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 900; transition: .2s ease; cursor: pointer; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 14px 34px rgba(227,6,19,.25); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--red-soft); color: var(--red); }
.btn-secondary:hover { background: #ffe3e5; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--red); }
.btn-dark { background: var(--text); color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero { overflow: hidden; min-height: calc(100vh - 78px); display: grid; align-items: center; background: radial-gradient(circle at 80% 10%, #ffe5e7 0, transparent 32%), linear-gradient(180deg,#fff,#fff8f8); }
.hero::after { content: ""; position: absolute; inset: auto -10% -22% -10%; height: 48%; background: radial-gradient(80% 120% at 50% 0%, rgba(227,6,19,.18), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
 .hero-card { position: relative; padding: 34px; border-radius: 42px; background: transparent; box-shadow: none; border: 0; overflow: visible; }
.hero-card::before { content:""; display:none; }
.hero-card img { position: relative; margin: 0 auto; width: min(460px, 92%); }
.hero-badges { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 22px; position: relative; }
.badge { background: #fff; border:1px solid var(--line); border-radius: 20px; padding: 16px; font-weight: 800; color: #343434; }
.badge strong { color: var(--red); display:block; font-size: 1.4rem; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 16px 50px rgba(0,0,0,.05); }
.card-red { background: linear-gradient(135deg, var(--red), var(--red-dark)); color:#fff; border:0; }
.card-soft { background: var(--red-soft); border: 1px solid #ffd1d5; }
.card h3 { margin-bottom: 10px; }
.icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--red-soft); color: var(--red); font-size: 1.4rem; margin-bottom: 16px; font-weight: 900; }
.card-red .icon { background: rgba(255,255,255,.18); color:#fff; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.panel { background: #fff; border-radius: 44px; padding: 42px; box-shadow: var(--shadow); border: 1px solid rgba(227,6,19,.10); }
.red-band { background: linear-gradient(135deg, var(--red), #ff3340); color:#fff; overflow:hidden; }
.red-band .muted, .red-band .lead { color: rgba(255,255,255,.88); }
.red-band .card { color: var(--text); }

.wave { position: relative; overflow:hidden; }
.wave::before { content:""; position:absolute; inset:-20% -20% auto auto; width: 460px; height: 460px; border-radius:50%; border: 60px solid rgba(227,6,19,.08); pointer-events:none; }

.list { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.list li { padding-left: 30px; position: relative; }
.list li::before { content: "✓"; position: absolute; left:0; top:0; color:var(--red); font-weight: 900; }

.info-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.info-item { padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.info-item b { color: var(--red); display:block; }

.faq { display: grid; gap: 14px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; }
summary { font-weight: 900; cursor: pointer; }
details p { margin: 12px 0 0; color: var(--muted); }

.footer { background: #1f1f1f; color:#fff; padding: 64px 0 28px; }
.footer a { color: rgba(255,255,255,.82); }
.footer a:hover { color:#fff; }
.footer-grid { display:grid; grid-template-columns: 1.2fr .8fr .8fr 1fr; gap: 32px; }
.footer .logo img { width: 68px; height:68px; background: #fff; border-radius: 18px; padding: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; color: rgba(255,255,255,.62); font-size: .9rem; }

.page-hero { padding: 90px 0 70px; background: linear-gradient(180deg, #fff, #fff6f7); overflow:hidden; }
.page-hero .container { position:relative; }
.page-hero .container::after { content:""; position:absolute; right:0; top:-50px; width:260px; height:260px; background: url('assets/logo-square.png') center/contain no-repeat; opacity:.07; }
.breadcrumb { color: var(--red); font-weight: 800; margin-bottom: 18px; }
.kicker { font-size: 1.08rem; font-weight: 900; color: var(--red); }

.cta-strip { background: linear-gradient(135deg, var(--red), var(--red-dark)); color:#fff; border-radius: 42px; padding: 44px; display:grid; grid-template-columns: 1fr auto; gap: 24px; align-items:center; box-shadow: var(--shadow); }
.cta-strip p { color: rgba(255,255,255,.9); }

.discipline-card { min-height: 260px; display:flex; flex-direction:column; justify-content:space-between; }
.phase { position: relative; }
.phase::after { content: ""; position:absolute; top: 47px; left: calc(100% - 8px); width: 44px; height: 2px; background: #ffd0d4; }
.phase:last-child::after { display:none; }
.phase-number { width:52px; height:52px; border-radius:50%; background:var(--red); color:#fff; display:grid; place-items:center; font-weight:900; margin-bottom:16px; }

@media (max-width: 980px) {
  .nav-links { display:none; position:absolute; left:20px; right:20px; top:86px; background:#fff; border:1px solid var(--line); border-radius:24px; padding:18px; box-shadow: var(--shadow); flex-direction:column; align-items:stretch; }
  .nav-links.is-open { display:flex; }
  .nav-toggle { display:inline-flex; }
  .hero-grid, .split, .grid-3, .grid-4, .footer-grid, .cta-strip { grid-template-columns: 1fr; }
  .phase::after { display:none; }
  h1 { font-size: clamp(2.6rem, 13vw, 4.2rem); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 66px 0; }
  .grid-2, .info-list { grid-template-columns: 1fr; }
  .hero-card, .panel, .cta-strip { padding: 24px; border-radius: 28px; }
  .hero-badges { grid-template-columns: 1fr; }
  .logo span { max-width: 135px; font-size: .9rem; }
  .nav { min-height: 70px; }
}


.btn-primary, .btn-primary:visited, .btn-primary:hover, .btn-primary:focus { color: #fff !important; }
.btn-secondary, .btn-secondary:visited, .btn-secondary:hover, .btn-secondary:focus { color: var(--red) !important; }
.btn-secondary { background: #fff; border: 2px solid rgba(227,6,19,.16); box-shadow: 0 14px 34px rgba(227,6,19,.08); }
.btn-secondary:hover { background: var(--red-soft); border-color: rgba(227,6,19,.3); }
.hero-logo-only { display:grid; place-items:center; min-height: 440px; }
.hero-logo-only img { width: min(460px, 92%); margin: 0 auto; filter: drop-shadow(0 20px 54px rgba(227,6,19,.10)); }
.person-card { overflow:hidden; padding:0; }
.person-card img { width:100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 18%; }
.person-card .person-body { padding: 28px; }
.person-role { color: var(--red); font-weight: 900; margin: 0 0 12px; }
.person-meta-title { margin: 18px 0 8px; font-weight: 900; color: var(--text); }
.social-link { font-weight: 800; color: var(--red); }

.value-card .kicker { margin-bottom: 10px; }
.method-note { background: #fff; border: 1px solid #ffd1d5; border-radius: 24px; padding: 24px; }
.method-note strong { color: var(--red); }

.discipline-card .btn { align-self: flex-start; margin-top: 18px; }
.skills-hero-meta { display:flex; gap:12px; flex-wrap:wrap; margin-top:22px; }
.skills-pill { border:1px solid #ffd1d5; background:#fff; color:var(--red); border-radius:999px; padding:10px 14px; font-weight:900; font-size:.92rem; }
.skill-card { min-height: 180px; }
.skill-card p { color: var(--muted); }

.discipline-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}
.discipline-card .btn {
  align-self: flex-start;
  margin-top: 10px;
}
.discipline-note {
  margin-top: 26px;
  max-width: 920px;
  padding: 22px 26px;
  border: 1px solid #ffd1d5;
  background: #fff6f7;
  border-radius: 24px;
}
.discipline-note strong {
  color: var(--red);
}
.skills-hero-meta {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}
.skills-pill {
  border:1px solid #ffd1d5;
  background:#fff;
  color:var(--red);
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
  font-size:.92rem;
}
.skill-card {
  min-height: 170px;
}
.skill-card p {
  color: var(--muted);
}

.skill-card h3 { margin-bottom: 0; }

.external-links {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:24px;
}
.btn-outline-red {
  background:#fff;
  border:2px solid rgba(227,6,19,.22);
  color:var(--red) !important;
  box-shadow:0 14px 34px rgba(227,6,19,.08);
}
.btn-outline-red:hover {
  background:var(--red-soft);
  border-color:rgba(227,6,19,.38);
}
.source-card {
  border:1px solid #ffd1d5;
  background:#fff;
}

.grid-4 .card h3 { margin-bottom: 10px; }

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: #fff;
  border: 1px solid rgba(227,6,19,.16);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(20,20,20,.18);
  padding: 20px;
  display: none;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: .95rem; color: var(--muted); }
.cookie-actions { display:flex; gap:10px; flex-wrap:wrap; flex-shrink: 0; }
.privacy-content h2 { margin-top: 44px; }
.privacy-content h3 { margin-top: 28px; }
.privacy-content ul { padding-left: 22px; line-height: 1.8; color: var(--muted); }
.privacy-content p { color: var(--muted); }
@media (max-width: 780px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { width: 100%; justify-content: center; }
}

.red-band @media (max-width: 640px) {
  }

.imopeksis-mark {
  width: 88px;
  height: 88px;
  object-fit: contain;
  opacity: .92;
  margin-bottom: 16px;
}
.imopeksis-mark.inline {
  width: 68px;
  height: 68px;
  margin: 0 0 12px 0;
}
.imopeksis-mark.subtle {
  opacity: .55;
}
.source-card .imopeksis-mark {
  width: 64px;
  height: 64px;
}





/* Czytelność tekstu: bez pełnego justowania w krótkich blokach */
p,
.lead,
.card p,
.panel p,
.info-item,
.red-band p,
.split > div > p,
.cta-strip p,
.hero p,
.footer p,
details p {
  text-align: left;
  word-spacing: normal;
}

/* Justowanie zostaje tylko tam, gdzie ma sens: dłuższe treści formalne */
.privacy-content p,
.privacy-content li {
  text-align: justify;
  text-justify: inter-word;
}

/* Przycisk/odnośnik do dokumentów */
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

/* Kotwice sekcji, żeby linki ze stopki nie chowały się pod nagłówkiem */
section[id] {
  scroll-margin-top: 110px;
}

@media (max-width: 980px) {
  .nav-dropdown {
    display: block;
    width: 100%;
  }
  .nav-parent {
    width: 100%;
    padding: 10px 0;
  }
  .dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 4px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(227,6,19,.12);
    background: #fff6f7;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .dropdown-menu::before {
    display: none;
  }
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    transform: none;
  }
  .dropdown-menu a {
    white-space: normal;
    padding: 11px 12px;
  }
}

@media (max-width: 1120px) {
  .nav-links { gap: 10px; font-size: .86rem; }
  .nav-links .btn { padding: 12px 16px; }
}

/* Poprawa funkcjonalności menu mobilnego */
@media (max-width: 980px) {
  .nav-links {
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links .btn {
    width: 100%;
    margin-top: 8px;
  }
}

/* Na telefonach przycisk zapisu jest pierwszy w rozwijanym menu */
@media (max-width: 980px) {
  .nav-links > .btn-primary {
    order: -10;
    width: 100%;
    margin: 0 0 10px 0;
  }

  .nav-links > .nav-dropdown {
    order: 0;
  }
}
