/* =========================================================
   Szkoła Pitagoras – style strony (Bootstrap 5 + własne)
   ========================================================= */

:root {
  /* Paleta szkoły */
  --pit-navy: #00387C;
  --pit-navy-dark: #002656;
  --pit-gold: #BB9F56;
  --pit-gold-light: #D9C48C;
  --pit-gold-hover: #CDB475;
  --pit-gold-text: #7A6026;
  --pit-ink: #1D2433;
  --pit-muted: #3A4356;
  --pit-line: #E4E8EF;
  --pit-cream: #F7F5F0;
  --pit-cream-line: #E6E2D8;

  --font-serif: 'Marcellus', Georgia, serif;
  --font-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Szerokość kontenera (karta i sterowanie hero też się do niej wyrównują) */
  --container-max: 1440px;
  --container-narrow-max: 1376px;

  /* Wysokość nagłówka – hero = cały ekran minus nagłówek */
  --header-h: 104px;

  /* Nadpisanie zmiennych Bootstrapa */
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--pit-ink);
  --bs-body-bg: #fff;
  --bs-link-color: var(--pit-navy);
  --bs-link-color-rgb: 0, 56, 124;
  --bs-link-hover-color: var(--pit-gold-text);
  --bs-link-hover-color-rgb: 122, 96, 38;
  --bs-focus-ring-color: rgba(187, 159, 86, .45);
}
@media (max-width: 767.98px) {
  :root { --header-h: 80px; }
}

body {
  font-family: var(--font-sans);
  color: var(--pit-ink);
  background: #fff;
}

/* Szersze kontenery (wartości w :root) */
@media (min-width: 1200px) {
  .container { max-width: var(--container-max); }
  .container-narrow { max-width: var(--container-narrow-max); }
}
@media (min-width: 768px) {
  .container { padding-left: 32px; padding-right: 32px; }
}
/* Telefon: kontener ma 12px paddingu, a .g-5 daje wierszowi -24px marginesu
   z każdej strony → wiersz wystawał poza ekran i stronę dało się przesuwać
   palcem w bok. Kolumny są tu i tak jedna pod drugą, więc mniejszy odstęp
   poziomy niczego nie zmienia wizualnie (odstęp pionowy zostaje 3rem). */
@media (max-width: 767.98px) {
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
}
/* Zabezpieczenie: nic nie może poszerzyć strony w poziomie.
   „clip” zamiast „hidden” – nie psuje przyklejonego (sticky) nagłówka. */
html, body { overflow-x: clip; }

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

/* =========================================================
   NAGŁÓWEK
   ========================================================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--pit-line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 30, 70, .08); }

.site-header .navbar {
  --bs-navbar-padding-y: 0;
  --bs-navbar-color: var(--pit-navy);
  --bs-navbar-hover-color: var(--pit-gold-text);
  --bs-navbar-active-color: var(--pit-navy);
  --bs-navbar-nav-link-padding-x: 0;
}
/* Wysokość nagłówka trzyma rząd z logo (nie cały navbar) –
   dzięki temu po rozwinięciu menu mobilnego logo nie podskakuje */
.site-header .navbar-brand {
  min-height: var(--header-h);
  display: flex; align-items: center;
  margin-right: 0;
}
.site-logo { height: 70px; width: auto; display: block; transition: height .25s ease; }

.navbar-toggler {
  width: 48px; height: 48px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--pit-line); border-radius: 8px;
  color: var(--pit-navy);
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, border-color .2s ease;
}
/* bez obwódki po kliknięciu/dotknięciu – tylko przy nawigacji klawiaturą */
.navbar-toggler:focus { box-shadow: none; outline: none; }
.navbar-toggler:focus-visible { box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }
.navbar-toggler[aria-expanded="true"] { background: #F2F5FA; border-color: #D5DBE5; }

/* Hamburger → X */
.toggler-bars { position: relative; width: 22px; height: 16px; display: block; }
.toggler-bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  border-radius: 2px; background: currentColor;
  transition: transform .3s cubic-bezier(.65, .05, .36, 1), opacity .2s ease, top .3s cubic-bezier(.65, .05, .36, 1);
}
.toggler-bars span:nth-child(1) { top: 0; }
.toggler-bars span:nth-child(2) { top: 7px; }
.toggler-bars span:nth-child(3) { top: 14px; }
.navbar-toggler[aria-expanded="true"] .toggler-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bars span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.navbar-toggler[aria-expanded="true"] .toggler-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.site-header .nav-link {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: .01em;
  padding-top: 12px; padding-bottom: 12px;
}
.site-header .nav-link.active { color: var(--pit-navy); }

/* Strzałka dropdownu – własna zamiast domyślnej Bootstrapa */
.site-header .dropdown-toggle { display: flex; align-items: center; gap: 6px; }
.site-header .dropdown-toggle::after { display: none; }
.site-header .dropdown-toggle .chevron { transition: transform .2s ease; }
.site-header .dropdown-toggle.show .chevron { transform: rotate(180deg); }

.site-header .dropdown-menu {
  --bs-dropdown-min-width: 330px;
  --bs-dropdown-padding-x: 10px;
  --bs-dropdown-padding-y: 10px;
  --bs-dropdown-border-color: var(--pit-line);
  --bs-dropdown-border-radius: 8px;
  --bs-dropdown-link-color: var(--pit-ink);
  --bs-dropdown-link-hover-color: var(--pit-navy);
  --bs-dropdown-link-hover-bg: #F2F5FA;
  --bs-dropdown-link-active-color: var(--pit-navy);
  --bs-dropdown-link-active-bg: #E8EEF7;
  --bs-dropdown-item-padding-x: 16px;
  --bs-dropdown-item-padding-y: 12px;
  --bs-dropdown-item-border-radius: 6px;
  --bs-dropdown-spacer: 0;
}
.site-header .dropdown-item {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  white-space: normal;
}

/* Przełącznik języka – GTranslate [gtranslate] obok menu */
.nav-lang-switch { display: flex; align-items: center; }
.nav-lang-switch .gtranslate_wrapper { display: flex; align-items: center; }

/* --- Desktop (≥ 992px) --- */
@media (min-width: 992px) {
  .site-header .navbar-nav { gap: 34px; }

  .site-header .dropdown-menu {
    left: -20px;
    margin-top: 10px;
    border-top: 3px solid var(--pit-gold);
    box-shadow: 0 20px 44px rgba(0, 30, 70, .14);
  }
  /* „mostek”, żeby menu nie znikało przy przejeździe myszą przez odstęp */
  .site-header .dropdown-menu::before {
    content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
  }

  .nav-lang-switch {
    margin-left: 34px; padding-left: 22px;
    border-left: 1px solid var(--pit-line);
    min-height: 32px;
  }
}

/* --- Mobile menu (< 992px) --- */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    border-top: 1px solid var(--pit-line);
    padding: 10px 0 22px;
  }
  .site-header .nav-link { font-size: 20px; padding: 13px 0; }
  .site-header .dropdown-menu {
    border: 0;
    border-left: 2px solid var(--pit-gold);
    border-radius: 0;
    padding: 0 0 0 16px;
    margin: 0 0 6px;
    --bs-dropdown-item-padding-x: 0;
    --bs-dropdown-item-padding-y: 10px;
    --bs-dropdown-link-hover-bg: transparent;
    --bs-dropdown-link-active-bg: transparent;
  }
  .site-header .dropdown-item { font-size: 17px; color: var(--pit-muted); }

  .nav-lang-switch {
    margin-top: 10px; padding-top: 18px;
    border-top: 1px solid var(--pit-line);
  }

  /* pozycje menu wjeżdżają kolejno po rozwinięciu */
  .js .navbar-collapse.collapsing .nav-item,
  .js .navbar-collapse.show .nav-item { animation: navItemIn .45s cubic-bezier(.22, .61, .36, 1) backwards; }
  .navbar-collapse .nav-item:nth-child(2) { animation-delay: .05s; }
  .navbar-collapse .nav-item:nth-child(3) { animation-delay: .1s; }
  .navbar-collapse .nav-item:nth-child(4) { animation-delay: .15s; }
  .navbar-collapse .nav-item:nth-child(5) { animation-delay: .2s; }
}

@media (max-width: 767.98px) {
  .site-logo { height: 53px; }
}

/* =========================================================
   HERO / SLIDER
   ========================================================= */
.hero {
  position: relative;
  /* cały ekran minus przyklejony nagłówek; svh – bez skakania na telefonach */
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 560px;
  background: var(--pit-navy);
  overflow: hidden;
}

.hero-media,
.hero-media .carousel-inner,
.hero-media .carousel-item { height: 100%; }

.hero-media { position: absolute; inset: 0; }
.hero-media .carousel-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-media .carousel-item img.pos-top { object-position: center 30%; }
.carousel-fade .carousel-item { transition-duration: .9s; }

/* Karta z treścią */
.hero-card {
  position: absolute;
  z-index: 3;
  left: max(32px, calc((100% - var(--container-max)) / 2 + 32px));
  bottom: 64px;
  max-width: 630px;
  margin-right: 32px;
  background: rgba(0, 56, 124, .82);   /* lekko przezroczysta */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  padding: 44px 48px 48px;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 20, 50, .35);
  display: flex; flex-direction: column; gap: 22px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  color: var(--pit-gold-light);
  font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.hero-card h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.1;
  color: #fff;
}
.hero-event {
  display: flex; gap: 16px; align-items: flex-start;
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding-top: 22px;
}
.hero-event-icon {
  flex: none; width: 48px; height: 48px; border-radius: 6px;
  background: rgba(217, 196, 140, .16); color: var(--pit-gold-light);
  display: flex; align-items: center; justify-content: center;
}
.hero-event p { margin: 0; font-size: 17px; line-height: 1.55; color: #E3EAF5; }
.hero-event strong { display: block; color: var(--pit-gold-light); font-size: 18px; font-weight: 700; }

.btn-gold {
  --bs-btn-bg: var(--pit-gold);
  --bs-btn-color: var(--pit-navy-dark);
  --bs-btn-border-color: var(--pit-gold);
  --bs-btn-hover-bg: var(--pit-gold-hover);
  --bs-btn-hover-color: var(--pit-navy-dark);
  --bs-btn-hover-border-color: var(--pit-gold-hover);
  --bs-btn-active-bg: var(--pit-gold-hover);
  --bs-btn-active-color: var(--pit-navy-dark);
  --bs-btn-active-border-color: var(--pit-gold-hover);
  --bs-btn-focus-shadow-rgb: 187, 159, 86;
  --bs-btn-border-radius: 4px;
  --bs-btn-padding-x: 28px;
  --bs-btn-padding-y: 15px;
  --bs-btn-font-size: 17px;
  --bs-btn-font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
}

/* Sterowanie sliderem */
.hero-ctrl {
  position: absolute;
  z-index: 4;
  right: max(32px, calc((100% - var(--container-max)) / 2 + 32px));
  bottom: 64px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0, 26, 62, .6);
  padding: 6px;
  border-radius: 999px;
}
.hero-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--pit-navy);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.hero-arrow:hover { background: var(--pit-gold-light); color: var(--pit-navy-dark); }

.hero-ctrl .carousel-indicators {
  position: static;
  margin: 0;
  padding: 0 6px;
  display: flex; align-items: center;
}
.hero-ctrl .carousel-indicators [data-bs-target] {
  box-sizing: border-box;
  width: 20px;            /* 10px kropka + 2×5px pola klikalnego */
  height: 44px;
  margin: 0;
  padding: 0 5px;
  border: 0;
  opacity: 1;
  text-indent: 0;
  background: transparent;
  background-clip: content-box;
  position: relative;
  transition: width .3s ease;
}
.hero-ctrl .carousel-indicators [data-bs-target]::before {
  content: "";
  position: absolute; left: 5px; right: 5px; top: 17px;
  height: 10px; border-radius: 5px;
  background: rgba(255, 255, 255, .75);
  transition: background .3s ease;
}
.hero-ctrl .carousel-indicators .active { width: 38px; }
.hero-ctrl .carousel-indicators .active::before { background: var(--pit-gold); }

/* Tablet: sterowanie w prawym górnym rogu, żeby nie nachodziło na kartę */
@media (max-width: 1099.98px) {
  .hero-ctrl { bottom: auto; top: 32px; }
}

/* Telefon: zdjęcie nad kartą */
@media (max-width: 767.98px) {
  .hero {
    height: auto;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: flex; flex-direction: column;
  }
  .hero-media { position: relative; inset: auto; flex: 1 1 auto; height: auto; min-height: 300px; }
  .hero-media .carousel-inner { position: absolute; inset: 0; }
  .hero-card {
    position: relative; left: auto; bottom: auto;
    max-width: none; margin: 0;
    padding: 30px 22px 34px;
    border-radius: 0; box-shadow: none;
  }
  .hero-card h1 { font-size: 36px; }
  .hero-ctrl { top: auto; bottom: 16px; right: 16px; }
}

/* =========================================================
   NASZE ATUTY
   ========================================================= */
.section-atuty {
  background: var(--pit-cream);
  padding: 110px 0 120px;
}
.section-formula {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--pit-gold-text);
  letter-spacing: .04em;
}
.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 50px;
  line-height: 1.1;
  color: var(--pit-navy);
}

.feature-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--pit-cream-line);
  border-radius: 8px;
  padding: 34px 30px 30px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 56, 124, .12);
}
.feature-head { display: flex; justify-content: space-between; align-items: flex-start; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 8px;
  background: var(--pit-navy); color: var(--pit-gold-light);
  display: flex; align-items: center; justify-content: center;
}
.feature-num { font-family: var(--font-serif); font-size: 18px; color: var(--pit-gold-text); }
.feature-card h3 {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  color: var(--pit-navy);
}
.feature-card p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--pit-muted); }
.feature-link {
  margin-top: auto; padding-top: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15.5px;
  text-decoration: none;
  align-self: flex-start;
}
.feature-link svg { transition: transform .2s ease; }
.feature-link:hover svg { transform: translateX(3px); }

@media (max-width: 767.98px) {
  .section-atuty { padding: 72px 0 80px; }
  .section-title { font-size: 38px; }
}

/* =========================================================
   STOPKA
   ========================================================= */
.site-footer {
  background: var(--pit-navy-dark);
  color: #C9D4E6;
  padding-top: 76px;
}
.footer-top { padding-bottom: 56px; }

.footer-address { margin: 0; font-size: 16px; line-height: 1.6; }
.footer-address strong { display: block; color: #fff; font-weight: 700; margin-bottom: 6px; }
.footer-icon-row { display: flex; gap: 10px; align-items: flex-start; }
.footer-icon-row svg { flex: none; margin-top: 3px; }

.footer-heading {
  margin: 0 0 18px;
  font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--pit-gold-light);
}
.footer-contact { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.footer-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-size: 17px; font-weight: 600;
  overflow-wrap: anywhere;
}
.footer-link svg { flex: none; }
.footer-link:hover { color: var(--pit-gold-light); }

.footer-social {
  margin-bottom: 22px;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.footer-social:hover { background: var(--pit-gold); border-color: var(--pit-gold); color: var(--pit-navy-dark); }

.footer-text { margin: 0; font-size: 16px; line-height: 1.7; }

/* --- Partnerzy --- */
.partners {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 48px 0 56px;
}
.partners-title {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
}

.partner {
  height: 100%;
  margin: 0;
  padding: 8px 8px 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
  transition: transform .25s ease;
}
.partner:hover { transform: translateY(-3px); }
.partner-logo {
  width: 100%;
  height: 96px;
  display: flex; align-items: center; justify-content: center;
}
.partner-logo img,
.partner-logo .logo-crop {
  max-width: 100%;
  max-height: 84px;
  width: auto; height: auto;
  display: block;
}
.partner-logo .logo-crop { height: 84px; }
/* Logo przygotowane pod jasne tło – dostaje białą „plakietkę” */
.partner-logo .logo-plate {
  background: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  max-height: 80px;
}
.partner figcaption {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #DCE4F1;
}

@media (max-width: 575.98px) {
  .partners-title { font-size: 24px; }
  .partner-logo { height: 80px; }
  .partner-logo img, .partner-logo .logo-crop { max-height: 68px; }
  .partner-logo .logo-crop { height: 68px; }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 24px 0 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 10px 32px;
  font-size: 14px;
  color: #A9B8D0;
}

/* =========================================================
   ANIMACJE
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
}

/* --- Wejście na stronę (od razu po załadowaniu) --- */
.js .site-header { animation: headerIn .7s var(--ease-soft) backwards; }

@media (min-width: 992px) {
  .js .site-header .navbar-brand,
  .js .site-header .navbar-nav > .nav-item { animation: fadeDown .7s var(--ease-soft) backwards; }
  .js .site-header .navbar-brand { animation-delay: .1s; }
  .js .site-header .navbar-nav > .nav-item:nth-child(1) { animation-delay: .2s; }
  .js .site-header .navbar-nav > .nav-item:nth-child(2) { animation-delay: .27s; }
  .js .site-header .navbar-nav > .nav-item:nth-child(3) { animation-delay: .34s; }
  .js .site-header .navbar-nav > .nav-item:nth-child(4) { animation-delay: .41s; }
  .js .site-header .navbar-nav > .nav-item:nth-child(5) { animation-delay: .48s; }
}

/* zdjęcie w sliderze powoli się oddala (efekt Ken Burns) */
.js .hero-media .carousel-item.active img,
.js .hero-media .carousel-item-next img,
.js .hero-media .carousel-item-prev img { animation: kenBurns 9s ease-out both; }

/* karta hero wjeżdża, a jej zawartość pojawia się kolejno */
.js .hero-card { animation: heroCardIn 1.1s var(--ease-soft) .35s backwards; }
.js .hero-card > * { animation: fadeUp .9s var(--ease-soft) backwards; }
.js .hero-card > :nth-child(1) { animation-delay: .7s; }
.js .hero-card > :nth-child(2) { animation-delay: .82s; }
.js .hero-card > :nth-child(3) { animation-delay: .96s; }
.js .hero-card > :nth-child(4) { animation-delay: 1.1s; }
.js .hero-ctrl { animation: fadeIn .9s var(--ease-out) 1.3s backwards; }

/* złoty przycisk – delikatny połysk przy najechaniu */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--ease-out);
  pointer-events: none;
}
.btn-gold:hover::after { left: 120%; }
.btn-gold svg { transition: transform .25s var(--ease-out); }
.btn-gold:hover svg { transform: translateX(4px); }

/* --- Pokazywanie przy przewijaniu (klasa .reveal + main.js) --- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity .8s var(--ease-out) var(--reveal-delay, 0ms),
    transform 1s var(--ease-soft) var(--reveal-delay, 0ms);
}
.js .reveal-spin { transform: scale(.6) rotate(-25deg); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ikona w karcie „wyskakuje” chwilę po pojawieniu się karty */
.js .reveal .feature-icon { transform: scale(.4); opacity: 0; }
.js .reveal.is-visible .feature-icon {
  animation: iconPop .7s var(--ease-soft) calc(var(--reveal-delay, 0ms) + 250ms) both;
}

/* --- Klatki animacji --- */
@keyframes headerIn   { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes fadeDown   { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp     { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes navItemIn  { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes kenBurns   { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes heroCardIn {
  from { opacity: 0; transform: translateY(48px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes iconPop {
  0%   { opacity: 0; transform: scale(.4) rotate(-12deg); }
  60%  { opacity: 1; transform: scale(1.12) rotate(4deg); }
  100% { opacity: 1; transform: none; }
}

/* =========================================================
   Ograniczony ruch – bez animacji, treść od razu widoczna
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .reveal .feature-icon { opacity: 1; transform: none; }
}

/* =========================================================
   PODSTRONY – elementy wspólne
   ========================================================= */

/* Aktywna pozycja menu – złota kreska pod linkiem (desktop) */
@media (min-width: 992px) {
  .site-header .navbar-nav > .nav-item > .nav-link { position: relative; }
  .site-header .navbar-nav > .nav-item > .nav-link.active::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
    height: 2px; border-radius: 2px; background: var(--pit-gold);
  }
  .site-header .dropdown-toggle.active::before { right: 22px !important; }
}
.site-header .dropdown-item.active { font-weight: 400; }
.site-header .dropdown-divider { margin: 6px 6px; border-color: var(--pit-line); }
@media (max-width: 991.98px) {
  .site-header .dropdown-item.active { color: var(--pit-navy); }
  .site-header .dropdown-divider { display: none; }
}

/* --- Nagłówek podstrony --- */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--pit-navy);
  color: #fff;
  overflow: hidden;
  padding: 64px 0 80px;
}
/* delikatna „kratka z zeszytu do matematyki” */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 10%, #000 75%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 780px; }
.page-hero h1 {
  margin: 16px 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.06;
  color: #fff;
}
.page-hero-lead {
  margin: 20px 0 0;
  font-size: 19px; line-height: 1.6;
  color: #D7E0EE;
  max-width: 660px;
}
.page-hero .hero-eyebrow { margin-top: 26px; }
.page-hero-decor {
  position: absolute; z-index: 1;
  right: max(32px, calc((100% - var(--container-max)) / 2 + 32px));
  bottom: -34px;
  width: 250px; height: auto;
}
@media (max-width: 1199.98px) { .page-hero-decor { width: 190px; opacity: .55; } }
@media (max-width: 767.98px) {
  .page-hero { padding: 40px 0 52px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero-lead { font-size: 17.5px; }
  .page-hero-decor { display: none; }
}

/* wariant ze zdjęciem w tle */
.page-hero--photo { padding: 96px 0 104px; }
.page-hero--photo::before { display: none; }
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(0, 38, 86, .96) 0%, rgba(0, 56, 124, .88) 40%,
    rgba(0, 56, 124, .45) 72%, rgba(0, 56, 124, .18) 100%);
}
@media (max-width: 767.98px) {
  .page-hero--photo { padding: 56px 0 64px; }
  .page-hero-media::after { background: rgba(0, 38, 86, .8); }
}

/* okruszki */
.breadcrumbs {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-size: 14.5px; color: #B9C7DD;
}
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { color: var(--pit-gold-light); }
.breadcrumbs li + li::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; margin-right: 10px;
  background: var(--pit-gold); transform: rotate(45deg);
  position: relative; top: -2px;
}

/* skróty do sekcji w nagłówku */
.jump-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.jump-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 600;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.jump-links a:hover { background: var(--pit-gold); border-color: var(--pit-gold); color: var(--pit-navy-dark); }

/* --- Sekcje --- */
.section { padding: 104px 0; }
.section-cream { background: var(--pit-cream); }
.section-tight-top { padding-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin-bottom: 48px; }
.section-head.text-center { margin-left: auto; margin-right: auto; align-items: center; }
.section-title-sm { font-size: 42px; }
.section-lead { margin: 6px 0 0; font-size: 18px; line-height: 1.65; color: var(--pit-muted); }
.sub-title {
  margin: 0 0 18px;
  font-family: var(--font-serif); font-weight: 400;
  font-size: 28px; line-height: 1.2; color: var(--pit-navy);
}
@media (max-width: 767.98px) {
  .section { padding: 68px 0; }
  .section-title-sm { font-size: 34px; }
  .section-head { margin-bottom: 34px; }
}

.prose { font-size: 17.5px; line-height: 1.75; color: var(--pit-muted); }
.prose p { margin: 0 0 1.05em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--pit-ink); }
.prose a { font-weight: 600; text-underline-offset: 3px; }
.lead-strong { font-size: 20px; line-height: 1.6; color: var(--pit-ink); }

/* przyciski dodatkowe */
.btn-navy, .btn-ghost, .btn-outline-navy {
  --bs-btn-border-radius: 4px;
  --bs-btn-padding-x: 24px;
  --bs-btn-padding-y: 14px;
  --bs-btn-font-size: 16.5px;
  --bs-btn-font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-navy {
  --bs-btn-bg: var(--pit-navy); --bs-btn-color: #fff; --bs-btn-border-color: var(--pit-navy);
  --bs-btn-hover-bg: var(--pit-navy-dark); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--pit-navy-dark);
  --bs-btn-active-bg: var(--pit-navy-dark); --bs-btn-active-color: #fff; --bs-btn-active-border-color: var(--pit-navy-dark);
}
.btn-outline-navy {
  --bs-btn-color: var(--pit-navy); --bs-btn-border-color: #C7D1E0;
  --bs-btn-hover-bg: var(--pit-navy); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--pit-navy);
  --bs-btn-active-bg: var(--pit-navy); --bs-btn-active-color: #fff; --bs-btn-active-border-color: var(--pit-navy);
  background: #fff;
}
.btn-ghost {
  --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .45);
  --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--pit-navy); --bs-btn-hover-border-color: #fff;
  --bs-btn-active-bg: #fff; --bs-btn-active-color: var(--pit-navy); --bs-btn-active-border-color: #fff;
}
.btn-navy svg, .btn-ghost svg, .btn-outline-navy svg { flex: none; transition: transform .25s ease; }
.btn-navy:hover svg.i-arrow, .btn-ghost:hover svg.i-arrow, .btn-outline-navy:hover svg.i-arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ikona w kwadracie (jak w kartach atutów) */
.icon-box {
  flex: none; width: 56px; height: 56px; border-radius: 8px;
  background: var(--pit-navy); color: var(--pit-gold-light);
  display: flex; align-items: center; justify-content: center;
}
.icon-box-sm { width: 46px; height: 46px; border-radius: 6px; }
.icon-box-gold { background: #F1EAD6; color: var(--pit-gold-text); }

/* zdjęcie w ramce z „kwadratami Pitagorasa” */
.photo-deco { position: relative; isolation: isolate; margin: 0 22px 22px 0; }
.photo-deco::before, .photo-deco::after { content: ""; position: absolute; z-index: -1; border-radius: 6px; }
.photo-deco::before { width: 58%; aspect-ratio: 1; right: -22px; bottom: -22px; background: var(--pit-gold-light); }
.photo-deco::after { width: 30%; aspect-ratio: 1; left: -16px; top: -16px; background: var(--pit-navy); }
.photo-frame {
  position: relative; overflow: hidden;
  border-radius: 8px; background: #fff;
  border: 1px solid var(--pit-cream-line);
  box-shadow: 0 24px 50px rgba(0, 30, 70, .12);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame figcaption, .photo-caption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255, 255, 255, .94); color: var(--pit-navy);
  font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 4px;
}
.illustration { border-radius: 8px; background: #fff; border: 1px solid var(--pit-cream-line); overflow: hidden; }
.illustration img { width: 100%; height: auto; display: block; }

/* karta informacyjna */
.info-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--pit-cream-line);
  border-radius: 8px;
  padding: 32px 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.info-card h3 {
  margin: 4px 0 0;
  font-family: var(--font-serif); font-weight: 400;
  font-size: 25px; line-height: 1.2; color: var(--pit-navy);
}
.info-card p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--pit-muted); }
.info-card-head { display: flex; align-items: center; gap: 16px; }
.info-card-head h3 { margin: 0; }
.section-cream .info-card { border-color: var(--pit-cream-line); }

/* cytat */
.quote-block {
  position: relative; margin: 0;
  padding: 96px 44px 40px;
  background: var(--pit-navy); color: #fff;
  border-radius: 8px; overflow: hidden; isolation: isolate;
}
.quote-block::before {
  content: ""; position: absolute; top: 34px; left: 44px;
  width: 46px; height: 35px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 36'%3E%3Cpath fill='%23BB9F56' d='M0 36V22C0 9 7 2 19 0l2 5C14 7 11 12 11 18h8v18H0zm27 0V22C27 9 34 2 46 0l2 5c-7 2-10 7-10 13h8v18H27z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.quote-block::after {
  content: ""; position: absolute; z-index: -1;
  right: -40px; bottom: -40px; width: 160px; height: 160px;
  background: rgba(217, 196, 140, .12); transform: rotate(28deg); border-radius: 10px;
}
.quote-block p { margin: 0; font-family: var(--font-serif); font-size: 29px; line-height: 1.35; }
.quote-block footer {
  margin-top: 20px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pit-gold-light);
}
@media (max-width: 767.98px) {
  .quote-block { padding: 84px 26px 30px; }
  .quote-block::before { left: 26px; top: 28px; }
  .quote-block p { font-size: 23px; }
}

/* epigraf (cytat grecki) */
.epigraph { margin: 26px 0 0; padding-left: 20px; border-left: 2px solid var(--pit-gold); }
.epigraph p { margin: 0; font-family: var(--font-serif); font-size: 20px; line-height: 1.5; color: #fff; }
.epigraph .epigraph-pl { margin-top: 6px; font-family: var(--font-sans); font-size: 16px; font-style: italic; color: #D7E0EE; }

/* pasek z wezwaniem do działania */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--pit-navy); color: #fff;
  padding: 72px 0;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px 48px; }
.cta-band h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 40px; line-height: 1.15; color: #fff; }
.cta-band p { margin: 10px 0 0; font-size: 17.5px; line-height: 1.6; color: #D7E0EE; max-width: 620px; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-contact {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px 16px 16px; border-radius: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.cta-contact:hover { background: rgba(255, 255, 255, .14); border-color: var(--pit-gold); color: #fff; }
.cta-contact .icon-box { width: 46px; height: 46px; background: var(--pit-gold); color: var(--pit-navy-dark); }
.cta-contact small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pit-gold-light); }
.cta-contact strong { display: block; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
  .cta-band { padding: 56px 0; }
  .cta-band h2 { font-size: 32px; }
  .cta-contact { width: 100%; }
}

/* segmentowe zakładki / filtry */
.seg-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
  padding: 6px; margin: 0; list-style: none;
  background: #fff; border: 1px solid var(--pit-cream-line); border-radius: 999px;
}
.seg-tabs .nav-link, .seg-tabs button {
  border: 0; border-radius: 999px;
  padding: 11px 22px;
  font-size: 16px; font-weight: 600;
  color: var(--pit-muted); background: transparent;
  transition: background .2s ease, color .2s ease;
}
.seg-tabs .nav-link:hover:not(.active), .seg-tabs button:hover:not(.active) { color: var(--pit-navy); background: #F2F5FA; }
.seg-tabs .nav-link.active, .seg-tabs button.active { background: var(--pit-navy); color: #fff; }
@media (max-width: 767.98px) {
  .seg-tabs { display: flex; flex-wrap: nowrap; border-radius: 12px; }
  .seg-tabs > * { flex: 1 1 0; min-width: 0; }
  .seg-tabs .nav-link, .seg-tabs button {
    width: 100%; height: 100%; border-radius: 8px; padding: 10px 8px;
    font-size: 14px; line-height: 1.25; white-space: normal;
  }
}

/* lista z „ptaszkami” */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.check-list li { position: relative; padding-left: 36px; font-size: 16.5px; line-height: 1.6; color: var(--pit-ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--pit-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9C48C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check-list a { font-weight: 600; text-underline-offset: 3px; }

/* wyróżniona uwaga */
.callout {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 26px; border-radius: 8px;
  background: #fff; border: 1px solid var(--pit-cream-line); border-left: 4px solid var(--pit-gold);
}
.callout p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--pit-ink); }
.callout strong { display: block; margin-bottom: 2px; color: var(--pit-navy); }

/* =========================================================
   REKRUTACJA
   ========================================================= */
.event-panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; gap: 26px; align-items: flex-start;
  margin-top: 30px; padding: 32px;
  background: var(--pit-navy); color: #fff; border-radius: 8px;
}
.event-panel::after {
  content: ""; position: absolute; z-index: -1; right: -50px; top: -50px;
  width: 170px; height: 170px; border-radius: 12px;
  background: rgba(217, 196, 140, .1); transform: rotate(24deg);
}
.date-tile {
  flex: none; width: 104px; padding: 12px 8px 14px;
  background: var(--pit-gold); color: var(--pit-navy-dark);
  border-radius: 6px; text-align: center;
}
.date-tile .d { display: block; font-family: var(--font-serif); font-size: 50px; line-height: 1; }
.date-tile .m { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.date-tile .y { display: block; font-size: 14px; font-weight: 600; opacity: .8; }
.event-panel h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 25px; line-height: 1.25; color: #fff; }
.event-time { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--pit-gold-light); font-weight: 700; }
.event-panel p { margin: 10px 0 0; color: #D7E0EE; font-size: 16.5px; line-height: 1.6; }
@media (max-width: 575.98px) { .event-panel { flex-direction: column; padding: 26px 22px; } }

/* etapy */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step {
  position: relative; height: 100%;
  background: #fff; border: 1px solid var(--pit-cream-line); border-radius: 8px;
  padding: 30px 28px 28px;
}
.step-num {
  position: relative; z-index: 1;
  width: 54px; height: 54px; margin-bottom: 20px; border-radius: 50%;
  background: var(--pit-navy); color: var(--pit-gold-light);
  font-family: var(--font-serif); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 56px; left: 92px; right: -25px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--pit-gold) 0 8px, transparent 8px 15px);
}
.step h3 { margin: 0 0 8px; font-family: var(--font-serif); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--pit-navy); }
.step p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--pit-muted); }
.step-result { background: #FBF8F0; border-style: dashed; border-color: var(--pit-gold-light); }
.step-result .step-num { background: var(--pit-gold); color: var(--pit-navy-dark); }
@media (max-width: 991.98px) {
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}

/* wolne miejsca */
.seat-list { display: grid; gap: 14px; }
.seat-tile {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1px solid var(--pit-cream-line); border-radius: 8px;
  padding: 18px 22px;
}
.seat-class { flex: none; min-width: 82px; padding-right: 20px; border-right: 1px solid var(--pit-cream-line); text-align: center; }
.seat-class small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pit-gold-text); }
.seat-class span { display: block; font-family: var(--font-serif); font-size: 44px; line-height: 1; color: var(--pit-navy); }
.seat-info strong { display: block; font-size: 18px; color: var(--pit-ink); }
.seat-info span { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--pit-muted); }
.seat-info span::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: #2E9E6A; box-shadow: 0 0 0 4px rgba(46, 158, 106, .15);
}

/* opłaty */
.price-card {
  position: relative; isolation: isolate; overflow: hidden; height: 100%;
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--pit-cream-line); border-radius: 8px;
  padding: 32px 30px 30px;
}
.price-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pit-gold-text); }
.price-value { font-family: var(--font-serif); font-size: 50px; line-height: 1.05; color: var(--pit-navy); }
.price-value small { margin-left: 4px; font-family: var(--font-sans); font-size: 17px; color: var(--pit-muted); }
.price-note { margin: 4px 0 0; font-size: 16px; line-height: 1.6; color: var(--pit-muted); }
.price-note strong { color: var(--pit-ink); }
.price-card--featured { background: var(--pit-navy); border-color: var(--pit-navy); }
.price-card--featured .price-label { color: var(--pit-gold-light); }
.price-card--featured .price-value { color: #fff; }
.price-card--featured .price-value small, .price-card--featured .price-note { color: #C9D4E6; }
.price-card--featured .price-note strong { color: #fff; }
.price-card--featured::after {
  content: ""; position: absolute; z-index: -1; right: -40px; bottom: -40px;
  width: 140px; height: 140px; border-radius: 10px;
  background: rgba(217, 196, 140, .12); transform: rotate(24deg);
}

.discount { display: flex; flex-direction: column; gap: 20px; }
.discount-row { display: grid; grid-template-columns: 230px minmax(0, 1fr) 70px; align-items: center; gap: 20px; }
.discount-label { font-weight: 600; color: var(--pit-ink); font-size: 16.5px; }
.discount-track { height: 14px; border-radius: 99px; background: #E9E4D8; overflow: hidden; }
.discount-fill {
  height: 100%; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, var(--pit-navy), #2A62AA);
  transform-origin: left center;
}
.discount-row:nth-child(2) .discount-fill { background: linear-gradient(90deg, #8A7234, var(--pit-gold)); }
.discount-row:nth-child(3) .discount-fill { background: linear-gradient(90deg, #A89056, var(--pit-gold-light)); }
.discount-value { text-align: right; font-family: var(--font-serif); font-size: 26px; color: var(--pit-navy); }
.js .reveal .discount-fill { transform: scaleX(0); transition: transform 1.3s var(--ease-soft) .25s; }
.js .reveal.is-visible .discount-fill { transform: none; }
@media (max-width: 575.98px) {
  .discount-row { grid-template-columns: minmax(0, 1fr) 60px; gap: 8px 14px; }
  .discount-label { grid-column: 1 / -1; }
}

/* =========================================================
   NASZE ATUTY
   ========================================================= */
.adv-card {
  position: relative; height: 100%;
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--pit-cream-line); border-radius: 8px;
  padding: 28px 26px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.adv-card::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  border-radius: 8px 8px 0 0; background: var(--pit-gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.adv-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 56, 124, .1); }
.adv-card:hover::before { transform: none; }
.adv-num { font-family: var(--font-serif); font-size: 34px; line-height: 1; color: var(--pit-gold); }
.adv-card h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.45; color: var(--pit-ink); }
.adv-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--pit-muted); }
.adv-card .feature-link { margin-top: auto; }

.feature-row + .feature-row { margin-top: 96px; }
.feature-row .sub-title { font-size: 36px; }
.feature-row .kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pit-gold-text);
}
.feature-row .kicker::before { content: ""; width: 26px; height: 2px; background: var(--pit-gold); }
@media (max-width: 767.98px) {
  .feature-row + .feature-row { margin-top: 64px; }
  .feature-row .sub-title { font-size: 30px; }
}

.link-card {
  display: flex; align-items: center; gap: 18px; height: 100%;
  padding: 22px 24px; border-radius: 8px;
  background: #fff; border: 1px solid var(--pit-cream-line);
  color: var(--pit-ink); text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.link-card:hover { border-color: var(--pit-gold); box-shadow: 0 14px 30px rgba(0, 56, 124, .08); transform: translateY(-2px); color: var(--pit-ink); }
.link-card strong { display: block; font-size: 17.5px; color: var(--pit-navy); }
.link-card span { font-size: 15px; color: var(--pit-muted); }
.link-card .i-external { margin-left: auto; flex: none; color: var(--pit-gold-text); }

/* =========================================================
   NASZ ZESPÓŁ
   ========================================================= */
.team-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px;
  margin-bottom: 36px;
}
.team-search { position: relative; flex: 1 1 360px; max-width: 520px; }
.team-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--pit-gold-text); pointer-events: none; }
.team-search input {
  width: 100%; height: 56px; padding: 0 20px 0 52px;
  border: 1px solid var(--pit-cream-line); border-radius: 999px;
  background: #fff; font-size: 16.5px; color: var(--pit-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.team-search input:focus { outline: none; border-color: var(--pit-gold); box-shadow: 0 0 0 4px rgba(187, 159, 86, .18); }
.team-empty { display: none; padding: 40px 0; text-align: center; color: var(--pit-muted); font-size: 17px; }
.team-empty.is-shown { display: block; }

.team-card {
  width: 100%; height: 100%; padding: 0; text-align: left;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--pit-cream-line); border-radius: 8px;
  overflow: hidden; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0, 56, 124, .14); }
.team-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #E9EDF3; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; transition: transform .6s var(--ease-soft); }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--pit-gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.team-card:hover .team-photo::after { transform: none; }
.team-initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--pit-navy); color: var(--pit-gold-light);
  font-family: var(--font-serif); font-size: 64px;
}
.team-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 22px; flex: 1 1 auto; }
.team-name { font-family: var(--font-serif); font-size: 22px; line-height: 1.2; color: var(--pit-navy); }
.team-role { font-size: 15px; line-height: 1.5; color: var(--pit-muted); }
.team-more {
  margin-top: auto; padding-top: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 700; color: var(--pit-navy);
}
.team-more svg { transition: transform .2s ease; }
.team-card:hover .team-more svg { transform: translateX(3px); }
.team-bio-src { display: none; }
@media (max-width: 575.98px) {
  .team-body { padding: 14px 14px 16px; gap: 4px; }
  .team-name { font-size: 18px; }
  .team-role { font-size: 13.5px; line-height: 1.45; }
  .team-more { font-size: 13px; }
  .team-initials { font-size: 44px; }
  .team-search { flex-basis: 100%; }
}

.team-modal .modal-content { border: 0; border-radius: 10px; overflow: hidden; }
.team-modal .modal-dialog { max-width: 980px; }
.team-modal-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.team-modal-photo { position: relative; background: var(--pit-navy); min-height: 100%; }
.team-modal-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.team-modal-photo .team-initials { font-size: 96px; }
.team-modal-body { padding: 44px 44px 40px; max-height: min(80vh, 720px); overflow-y: auto; }
.team-modal-body h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 36px; line-height: 1.15; color: var(--pit-navy); }
.team-modal-role {
  margin: 10px 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--pit-line);
  font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pit-gold-text);
}
.team-modal-bio { font-size: 16.5px; line-height: 1.75; color: var(--pit-muted); }
.team-modal-bio p { margin: 0 0 1em; }
.modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; color: var(--pit-navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 30, 70, .15);
  transition: background .2s ease;
}
.modal-x:hover { background: var(--pit-gold-light); }
@media (max-width: 767.98px) {
  .team-modal-grid { grid-template-columns: 1fr; }
  .team-modal-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .team-modal-body { padding: 28px 22px 26px; max-height: none; }
  .team-modal-body h2 { font-size: 30px; }
}

/* =========================================================
   ORGANIZACJA DNIA
   ========================================================= */
.schedule-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 14.5px; color: var(--pit-muted); }
.schedule-legend li { display: inline-flex; align-items: center; gap: 8px; }
.schedule-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.k-lesson { background: var(--pit-navy); }
.k-break { background: var(--pit-gold); }
.k-care { background: #C9D4E6; }
.k-after { background: #6E8FBF; }

.schedule { list-style: none; margin: 0; padding: 0; position: relative; }
.schedule::before { content: ""; position: absolute; left: 127px; top: 14px; bottom: 14px; width: 2px; background: var(--pit-cream-line); }
.schedule li { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 34px; align-items: center; padding: 5px 0; }
.schedule time { text-align: right; white-space: nowrap; font-weight: 700; font-size: 15.5px; color: var(--pit-navy); font-variant-numeric: tabular-nums; }
.schedule li::after {
  content: ""; position: absolute; left: 122px; top: 50%; margin-top: -6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--pit-gold);
}
.schedule .ev {
  padding: 11px 16px; border-radius: 6px;
  background: #fff; border: 1px solid var(--pit-cream-line); border-left: 4px solid #C9D4E6;
  font-size: 16px; color: var(--pit-ink);
}
.schedule .is-lesson .ev { border-left-color: var(--pit-navy); font-weight: 600; }
.schedule .is-break .ev { border-left-color: var(--pit-gold); background: #FBF8F0; }
.schedule .is-after .ev { border-left-color: #6E8FBF; }
@media (max-width: 575.98px) {
  .schedule::before { left: 99px; }
  .schedule li { grid-template-columns: 86px minmax(0, 1fr); gap: 26px; }
  .schedule li::after { left: 94px; }
  .schedule time { font-size: 13.5px; }
  .schedule .ev { font-size: 15px; padding: 9px 12px; }
}

.class-tile {
  height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 22px 22px 20px; border-radius: 8px;
  background: #fff; border: 1px solid var(--pit-cream-line);
  color: var(--pit-ink); text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.class-tile:hover { transform: translateY(-3px); border-color: var(--pit-gold); box-shadow: 0 16px 34px rgba(0, 56, 124, .1); color: var(--pit-ink); }
.class-tile .roman { font-family: var(--font-serif); font-size: 44px; line-height: 1; color: var(--pit-navy); }
.class-tile .lbl { font-size: 14.5px; color: var(--pit-muted); }
.class-tile .dl { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--pit-navy); }

.doc-card {
  height: 100%;
  display: flex; align-items: center; gap: 18px;
  padding: 18px 20px; border-radius: 8px;
  background: #fff; border: 1px solid var(--pit-cream-line);
}
.doc-ico {
  flex: none; width: 46px; height: 56px; padding-bottom: 9px;
  display: flex; align-items: flex-end; justify-content: center;
  background: var(--pit-navy); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  border-radius: 4px;
  clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%);
}
.doc-body { flex: 1 1 auto; min-width: 0; }
.doc-title { display: block; font-weight: 700; font-size: 16.5px; line-height: 1.4; color: var(--pit-ink); }
.doc-meta { display: block; font-size: 14px; color: var(--pit-muted); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.doc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 4px;
  border: 1px solid #C7D1E0; background: #fff;
  font-size: 13.5px; font-weight: 700; color: var(--pit-navy); text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.doc-btn:hover { background: var(--pit-navy); border-color: var(--pit-navy); color: #fff; }
a.doc-card { color: inherit; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
a.doc-card:hover { border-color: var(--pit-gold); box-shadow: 0 14px 30px rgba(0, 56, 124, .08); }
@media (max-width: 575.98px) {
  .doc-card { flex-wrap: wrap; }
  .doc-actions { width: 100%; padding-left: 64px; }
}

/* wyniki egzaminu */
.exam-card { height: 100%; background: #fff; border: 1px solid var(--pit-cream-line); border-radius: 8px; padding: 28px 28px 26px; }
.exam-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--pit-line); }
.exam-card h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 25px; color: var(--pit-navy); }
.exam-score { text-align: right; line-height: 1; }
.exam-score strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 44px; color: var(--pit-gold-text); }
.exam-score span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pit-muted); }
.exam-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.exam-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; font-size: 14.5px; }
.exam-bar .lbl { color: var(--pit-muted); }
.exam-bar .val { font-weight: 700; color: var(--pit-ink); font-variant-numeric: tabular-nums; }
.exam-bar .track { grid-column: 1 / -1; height: 9px; border-radius: 99px; background: #EEF1F6; overflow: hidden; }
.exam-bar .fill { height: 100%; width: var(--v); border-radius: inherit; background: #A9BAD3; transform-origin: left center; }
.exam-bar.is-ours .lbl, .exam-bar.is-ours .val { color: var(--pit-navy); font-weight: 700; }
.exam-bar.is-ours .fill { background: linear-gradient(90deg, #A3863F, var(--pit-gold)); }
.js .reveal .exam-bar .fill { transform: scaleX(0); transition: transform 1.2s var(--ease-soft) .3s; }
.js .reveal.is-visible .exam-bar .fill { transform: none; }


/* =========================================================
   MUNDURKI
   ========================================================= */
.uniform-pane { padding-top: 8px; }
.uniform-photo { max-width: 400px; }
.uniform-photo .photo-frame { aspect-ratio: 2 / 3; }
.uniform-card {
  height: 100%; background: #fff; border: 1px solid var(--pit-cream-line); border-radius: 8px;
  padding: 34px 32px 32px;
}
.uniform-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.uniform-card-head h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 28px; color: var(--pit-navy); }
.uniform-card-head p { margin: 2px 0 0; font-size: 14.5px; color: var(--pit-muted); }
.tab-content > .tab-pane.fade { transition: opacity .35s ease; }

/* =========================================================
   WARUNKI LOKALOWE
   ========================================================= */
.video-frame {
  position: relative; border-radius: 10px; overflow: hidden;
  background: var(--pit-navy-dark);
  box-shadow: 0 28px 60px rgba(0, 30, 70, .2);
}
.space-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.space-list a {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 14px 16px; border-radius: 8px;
  background: #fff; border: 1px solid var(--pit-cream-line);
  color: var(--pit-ink); text-decoration: none; font-weight: 600; font-size: 15.5px;
  transition: border-color .2s ease, transform .2s ease;
}
.space-list a:hover { border-color: var(--pit-gold); transform: translateY(-2px); color: var(--pit-navy); }
.space-list .icon-box { width: 40px; height: 40px; border-radius: 6px; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 118px; gap: 16px; }
.bento-item {
  position: relative; display: block; overflow: hidden;
  border-radius: 8px; background: #DDE3EC;
  grid-column: span var(--c, 4); grid-row: span var(--r, 3);
}
.bento-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-soft); }
.bento-item:hover img { transform: scale(1.06); }
.bento-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 26, 62, .45));
  opacity: 0; transition: opacity .3s ease;
}
.bento-item:hover::after, .bento-item:focus-visible::after { opacity: 1; }
.bento-zoom {
  position: absolute; z-index: 2; right: 14px; bottom: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--pit-navy);
  display: flex; align-items: center; justify-content: center;
  transform: scale(.7); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.bento-item:hover .bento-zoom, .bento-item:focus-visible .bento-zoom { transform: none; opacity: 1; }
@media (max-width: 991.98px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 12px; }
  .bento-item { grid-column: span 1; grid-row: span 1; }
  .bento-item:first-child { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 575.98px) {
  .bento { grid-auto-rows: 130px; }
}

/* lightbox */
.lightbox .modal-dialog { max-width: min(1200px, 94vw); }
.lightbox .modal-content { background: transparent; border: 0; }
.lightbox-figure { position: relative; margin: 0; }
.lightbox-figure img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 6px; display: block; }
.lightbox-figure figcaption { margin-top: 12px; text-align: center; color: #fff; font-weight: 600; font-size: 16px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: #fff; color: var(--pit-navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.lightbox-nav:hover { background: var(--pit-gold-light); }
.lightbox-nav.prev { left: -26px; }
.lightbox-nav.next { right: -26px; }
.lightbox .modal-x { top: -22px; right: -22px; }
.modal-backdrop.show { opacity: .86; }
@media (max-width: 767.98px) {
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox .modal-x { top: 8px; right: 8px; }
}

/* =========================================================
   ZAJĘCIA POPOŁUDNIOWE
   ========================================================= */
.zone-card {
  position: relative; isolation: isolate; overflow: hidden; height: 100%;
  border-radius: 10px; padding: 40px 38px 36px;
}
.zone-card h3 { margin: 18px 0 12px; font-family: var(--font-serif); font-weight: 400; font-size: 32px; line-height: 1.15; }
.zone-card p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.7; }
.zone-card p:last-child { margin-bottom: 0; }
.zone-play { background: #FBF6E8; border: 1px solid #EDE3C6; color: var(--pit-ink); }
.zone-play h3 { color: var(--pit-navy); }
.zone-play p { color: var(--pit-muted); }
.zone-play .icon-box { background: var(--pit-gold); color: var(--pit-navy-dark); }
.zone-calm { background: var(--pit-navy); color: #fff; }
.zone-calm h3 { color: #fff; }
.zone-calm p { color: #D7E0EE; }
.zone-calm .icon-box { background: rgba(217, 196, 140, .16); color: var(--pit-gold-light); }
.zone-card::after {
  content: ""; position: absolute; z-index: -1; right: -46px; top: -46px;
  width: 160px; height: 160px; border-radius: 12px; transform: rotate(24deg);
}
.zone-play::after { background: rgba(187, 159, 86, .14); }
.zone-calm::after { background: rgba(255, 255, 255, .06); }

.choice-bubbles { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 28px 0; }
.choice-bubble {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 17px; font-weight: 600;
}
.choice-bubble.is-play { background: #FBF6E8; color: var(--pit-gold-text); border: 1px solid #EDE3C6; }
.choice-bubble.is-calm { background: #E8EEF7; color: var(--pit-navy); border: 1px solid #D5DEEC; }

.activities-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px;
  margin-bottom: 34px;
}

.activity-card {
  height: 100%;
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--pit-cream-line); border-radius: 8px;
  padding: 26px 26px 22px;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.activity-card:hover { box-shadow: 0 18px 40px rgba(0, 56, 124, .1); }
.activity-thumb {
  position: relative; flex: none; display: block;
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--pit-cream-line), 0 8px 18px rgba(0, 30, 70, .12);
}
.activity-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-soft); }
.activity-thumb:hover img { transform: scale(1.12); }
.activity-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.activity-level {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: #F1EAD6; color: var(--pit-gold-text);
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.activity-card .icon-box { width: 44px; height: 44px; border-radius: 6px; }
.activity-card h3 { margin: 2px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 25px; line-height: 1.2; color: var(--pit-navy); }
.activity-text { position: relative; overflow: hidden; font-size: 15.5px; line-height: 1.65; color: var(--pit-muted); transition: max-height .5s var(--ease-soft); }
.activity-text p { margin: 0 0 .8em; }
.activity-text p:last-child { margin-bottom: 0; }
.activity-text.is-clamped { max-height: 8.25em; }
.activity-text.is-clamped::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  transition: opacity .3s ease;
}
.activity-card.is-open .activity-text::after { opacity: 0; }
.activity-more {
  align-self: flex-start; padding: 0; border: 0; background: none;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 700; color: var(--pit-navy);
}
.activity-more[hidden] { display: none; }
.activity-more svg { transition: transform .25s ease; }
.activity-card.is-open .activity-more svg { transform: rotate(180deg); }
.activity-lead {
  margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--pit-line);
  font-size: 15px; line-height: 1.5; color: var(--pit-ink);
}
.activity-lead span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pit-gold-text); margin-bottom: 2px; }
.activity-lead a { font-weight: 600; text-decoration: none; }
.activity-lead a:hover { text-decoration: underline; }
.activity-col[hidden] { display: none !important; }

/* =========================================================
   KONTAKT
   ========================================================= */
.contact-card {
  height: 100%;
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--pit-cream-line); border-radius: 8px;
  padding: 30px 28px 28px;
}
.contact-card h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pit-gold-text); }
.contact-card p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--pit-ink); }
.contact-big { display: block; font-size: 19px; font-weight: 700; color: var(--pit-navy); text-decoration: none; overflow-wrap: anywhere; }
a.contact-big:hover { color: var(--pit-gold-text); }
.contact-card small { display: block; color: var(--pit-muted); font-size: 14px; }
.contact-card .btn-row { margin-top: auto; padding-top: 6px; }
.account-no { font-family: var(--font-serif); font-size: 21px; letter-spacing: .02em; color: var(--pit-navy); font-variant-numeric: tabular-nums; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 4px;
  border: 1px solid #C7D1E0; background: #fff;
  font-size: 14px; font-weight: 700; color: var(--pit-navy);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.copy-btn:hover { background: var(--pit-navy); color: #fff; border-color: var(--pit-navy); }
.copy-btn.is-done { background: #2E9E6A; border-color: #2E9E6A; color: #fff; }

.map-frame { position: relative; height: 100%; min-height: 460px; border-radius: 10px; overflow: hidden; background: #E4E8EF; border: 1px solid var(--pit-cream-line); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.route-panel { height: 100%; background: var(--pit-navy); color: #fff; border-radius: 10px; padding: 36px 34px; display: flex; flex-direction: column; gap: 18px; }
.route-panel h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 30px; color: #fff; }
.route-panel p { margin: 0; color: #D7E0EE; font-size: 16.5px; line-height: 1.7; }
.route-stat { display: flex; gap: 14px; align-items: center; }
.route-stat strong { font-family: var(--font-serif); font-weight: 400; font-size: 44px; line-height: 1; color: var(--pit-gold-light); }
.route-stat span { font-size: 15px; color: #C9D4E6; line-height: 1.4; }
.town-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.town-chips li { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 14px; color: #fff; }
@media (max-width: 767.98px) { .map-frame { min-height: 340px; } .route-panel { padding: 28px 24px; } }

/* =========================================================
   Animacje wejścia nagłówka podstrony
   ========================================================= */
.js .page-hero-inner > * { animation: fadeUp .9s var(--ease-soft) backwards; }
.js .page-hero-inner > :nth-child(1) { animation-delay: .25s; }
.js .page-hero-inner > :nth-child(2) { animation-delay: .35s; }
.js .page-hero-inner > :nth-child(3) { animation-delay: .45s; }
.js .page-hero-inner > :nth-child(4) { animation-delay: .55s; }
.js .page-hero-inner > :nth-child(5) { animation-delay: .65s; }
.js .page-hero-decor { animation: decorIn 1.2s var(--ease-soft) .4s backwards; }
.js .page-hero-media img { animation: kenBurns 9s ease-out both; }
@keyframes decorIn { from { opacity: 0; transform: translateY(30px) rotate(-14deg) scale(.85); } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal .discount-fill, .js .reveal .exam-bar .fill { transform: none; }
}


/* =========================================================
   WORDPRESS – dodatki motywu
   ========================================================= */

/* pasek administracyjny nad przyklejonym nagłówkiem */
.admin-bar .site-header.sticky-top { top: 32px; }

/* bez ramki fokusu na pozycjach menu (np. „Nasze atuty” po rozwinięciu podmenu najechaniem) */
.site-header .nav-link:focus,
.site-header .nav-link:focus-visible { outline: none; box-shadow: none; }
@media (max-width: 782px) { .admin-bar .site-header.sticky-top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header.sticky-top { top: 0; } }

/* ikony w stopce */
.site-footer .footer-gold { color: var(--pit-gold-light); flex: none; }
.footer-icon-row .footer-gold { margin-top: 3px; }
.partner-logo a { display: flex; align-items: center; justify-content: center; height: 100%; }

/* listy z edytora wyświetlane jako „ptaszki” (Mundurki) */
.rich-checks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.rich-checks li { position: relative; padding-left: 36px; font-size: 16.5px; line-height: 1.6; color: var(--pit-ink); }
.rich-checks li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--pit-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9C48C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.rich-checks a { font-weight: 600; text-underline-offset: 3px; }
.rich-checks p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.6; color: var(--pit-ink); }
.rich-checks p:last-child { margin-bottom: 0; }
.rich-checks ul + p, .rich-checks p + ul { margin-top: 14px; }

/* treści z edytora w kartach */
.info-card-text p { margin: 0 0 .9em; font-size: 16.5px; line-height: 1.65; color: var(--pit-muted); }
.info-card-text p:last-child { margin-bottom: 0; }
@media (min-width: 992px) {
  .info-card-wide .info-card-text { columns: 2; column-gap: 32px; }
  .info-card-wide .info-card-text p { break-inside: avoid; }
}
.price-note p { margin: 0; }
.price-note p + p { margin-top: 6px; }
.zone-card ul, .activity-text ul, .prose ul, .team-modal-bio ul { padding-left: 1.2em; margin: 0 0 .9em; }
.activity-text a, .zone-card a { font-weight: 600; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-serif); font-weight: 400; color: var(--pit-navy); margin: 1.4em 0 .5em; }
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 25px; }
.entry-content img { max-width: 100%; height: auto; border-radius: 6px; }
.entry-content .alignleft { float: left; margin: 0 24px 16px 0; }
.entry-content .alignright { float: right; margin: 0 0 16px 24px; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* karta-zachęta na końcu listy atutów */
.adv-card--cta { background: var(--pit-navy); border-color: var(--pit-navy); }
.adv-card--cta .adv-num { color: var(--pit-gold-light); }
.adv-card--cta h3 { color: #fff; font-family: var(--font-serif); font-weight: 400; font-size: 26px; }
.adv-card--cta p { color: #D7E0EE; }

/* kafelki z ilustracjami (Nasze atuty) */
.link-card--tile { flex-direction: column; align-items: stretch; padding: 0; gap: 0; overflow: hidden; }
.link-card--tile img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.link-card-body { display: flex; align-items: center; gap: 16px; padding: 16px 24px 24px; }
.link-card-body > span { flex: 1 1 auto; }
.link-card-body strong { display: block; }
.link-card-body svg { flex: none; }

/* osadzony film z oEmbed */
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* paginacja wpisów */
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links .page-numbers { padding: 8px 14px; border: 1px solid var(--pit-cream-line); border-radius: 4px; text-decoration: none; }
.nav-links .page-numbers.current { background: var(--pit-navy); color: #fff; border-color: var(--pit-navy); }
