/* =========================================================
   Edu3Dkacja Lubartów — arkusz wspólny dla wszystkich podstron
   ========================================================= */

:root {
  /* --- kolory z logo --- */
  --blue:    #29ABE2;   /* e, a, j */
  --red:     #E4262C;   /* d, c */
  --orange:  #F5851F;   /* u */
  --navy:    #1B3A8C;   /* k */
  --yellow:  #F7C51E;   /* a (ostatnie) */
  --graphite:#333333;   /* łuk drukarki + "3D" */

  /* --- paleta marki --- */
  --ink:        #1B2A4A;
  --ink-soft:   #55637d;
  --accent:     #FF6B35;
  --accent-dark:#e2551f;

  --white: #ffffff;
  --cream: #FFF9F2;
  --line:  #EAEFF6;

  --header-h: 75px;

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-header: 0 6px 28px rgba(27, 42, 74, .12);
  --shadow-menu:   0 16px 40px rgba(27, 42, 74, .18);
  --shadow-card:   0 8px 24px rgba(27, 42, 74, .08);
  --shadow-card-h: 0 18px 40px rgba(27, 42, 74, .16);

  --ease: cubic-bezier(.4, 0, .2, 1);

  /* nadpisywane przez klasy theme-* na <body> */
  --page-a: var(--navy);
  --page-b: var(--blue);
}

/* akcenty poszczególnych podstron */
.theme-blue   { --page-a: #12327f; --page-b: #29ABE2; --page-accent: var(--blue); }
.theme-orange { --page-a: #b8430a; --page-b: #F5851F; --page-accent: var(--orange); }
.theme-red    { --page-a: #a3121a; --page-b: #E4262C; --page-accent: var(--red); }
.theme-yellow { --page-a: #d18a00; --page-b: #F7C51E; --page-accent: var(--yellow); }
.theme-navy   { --page-a: #14205e; --page-b: #3757c9; --page-accent: var(--navy); }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: "Baloo 2", "Poppins", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}

img, svg { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* =========================================================
   Header — sticky, lekko przezroczysty panel
   ========================================================= */

/* biały pasek o stałej wysokości — nad banerem i po przewinięciu wygląda tak samo,
   przewijanie dokłada wyłącznie miękki cień, żeby odkleił się od treści */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.site-header.is-scrolled,
.site-header.is-menu-open { box-shadow: var(--shadow-header); }

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: none;
  text-decoration: none;
}

.logo__img {
  display: block;
  height: 48px;
  width: auto;
  /* jasna poświata zamiast białego kafla — odcina ciemne elementy logo od tła */
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .95)) drop-shadow(0 2px 5px rgba(255, 255, 255, .65));
}

.logo__city {
  display: flex;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-right: -.16em;       /* kompensacja odstępu po ostatniej literze */
  transform: translateX(-.6em); /* wyrównanie do łuku drukarki, a nie do krawędzi obrazka */
  /* ta sama poświata co pod logo — inaczej kolorowe litery giną na tle */
  text-shadow: 0 0 6px rgba(255, 255, 255, .95), 0 2px 5px rgba(255, 255, 255, .65);
}
.logo__city i { font-style: normal; }

.l-blue   { color: var(--blue); }
.l-red    { color: var(--red); }
.l-orange { color: var(--orange); }
.l-navy   { color: var(--navy); }
.l-yellow { color: var(--yellow); }
.l-graphite { color: var(--graphite); }

/* ---------- Nawigacja ---------- */

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item { position: relative; }
.nav__item--cta { margin-left: 28px; }

/* na szerokich ekranach menu wychodzi poza kontener treści — siedzi bliżej
   prawej krawędzi okna, ale nigdy nie wyjdzie poza nią (cap 120px) */
@media (min-width: 961px) {
  .nav {
    margin-right: calc(-1 * min(120px, max(0px, (100vw - var(--container)) / 2)));
  }
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 0;
  background: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: .97rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: color .3s var(--ease), background-color .2s var(--ease);
}

.nav__link:hover { color: var(--accent); }

/* aktywna podstrona */
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

/* ---------- Hamburger ---------- */

.burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: color .3s var(--ease);
}

.burger__box {
  position: relative;
  display: block;
  width: 26px;
  height: 16px;
  margin-inline: auto;
}
.burger__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: currentColor;
  border-radius: 3px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger__line:nth-child(1) { top: 0; }
.burger__line:nth-child(2) { top: 6.5px; }
.burger__line:nth-child(3) { top: 13px; }

.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(27, 42, 74, .5);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.nav-backdrop.is-visible { opacity: 1; }

/* =========================================================
   Baner główny (strona startowa)
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;              /* treść trzyma się góry, nie środka */
  min-height: clamp(560px, 82vh, 760px);
  padding: calc(var(--header-h) + 76px) 0 120px;
  background: linear-gradient(135deg, #13235c 0%, #1B3A8C 52%, #2a6fc4 100%);
  color: var(--white);
  text-align: center;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-inline: auto;
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 800;
}
.hero__title em {
  font-style: normal;
  color: var(--yellow);
}

.hero__lead {
  max-width: 62ch;
  margin: 0 auto;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, .88);
}

/* kolorowe plamy w tle banera */
.hero__blobs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: .5;
}
.blob--yellow { width: 300px; height: 300px; top: -70px;  right: 6%;   background: radial-gradient(circle, rgba(247,197,30,.85) 0%, rgba(247,197,30,0) 70%); }
.blob--orange { width: 380px; height: 380px; bottom: -140px; right: 22%; background: radial-gradient(circle, rgba(245,133,31,.75) 0%, rgba(245,133,31,0) 70%); }
.blob--red    { width: 240px; height: 240px; top: 34%;    right: -60px; background: radial-gradient(circle, rgba(228,38,44,.6) 0%, rgba(228,38,44,0) 70%); }
.blob--blue   { width: 420px; height: 420px; bottom: -180px; left: -120px; background: radial-gradient(circle, rgba(41,171,226,.7) 0%, rgba(41,171,226,0) 70%); }

/* drobne kształty "konfetti" */
.confetti {
  position: absolute;
  z-index: 1;
  opacity: .85;
  animation: float 7s ease-in-out infinite;
}
.confetti--1 { top: 22%; right: 12%; width: 20px; height: 20px; background: var(--yellow); border-radius: 6px; transform: rotate(18deg); }
.confetti--2 { top: 62%; right: 30%; width: 16px; height: 16px; background: var(--red); border-radius: 50%; animation-delay: -2s; }
.confetti--3 { top: 38%; right: 6%;  width: 22px; height: 22px; background: var(--blue); border-radius: 7px; transform: rotate(-14deg); animation-delay: -4s; }
.confetti--4 { bottom: 16%; left: 8%; width: 14px; height: 14px; background: var(--orange); border-radius: 50%; animation-delay: -1s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -16px; }
}

/* fala oddzielająca baner od treści */
.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  height: 64px;
  display: block;
}
/* =========================================================
   Baner podstrony
   ========================================================= */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 84px;
  background: linear-gradient(135deg, var(--page-a) 0%, var(--page-b) 100%);
  color: var(--white);
}
.page-hero__inner { position: relative; z-index: 2; max-width: 760px; }

.breadcrumbs {
  margin: 0 0 14px;
  font-size: .84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
}
.breadcrumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span { margin-inline: 8px; }

.page-hero__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
}
.page-hero__lead {
  max-width: 60ch;
  margin: 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .9);
}
.page-hero .blob { opacity: .38; }

/* =========================================================
   Sekcje i typografia treści
   ========================================================= */

.section { padding: 88px 0; }
.section--cream { background: var(--cream); }
.section--slim { padding: 52px 0; }   /* niskie pasmo, np. blok „Nie wiesz, co wybrać?" */

.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__kicker {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.section__title {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.section__lead {
  margin: 0;
  font-size: 1.06rem;
  color: var(--ink-soft);
}

/* tekst „O nas" + miejsce na zdjęcie obok — węższa, zwarta kolumna tekstu */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 52px;
  align-items: stretch;
}
/* pusta ramka dociąga się do wysokości kolumny z tekstem */
.about .shot { aspect-ratio: auto; min-height: 340px; }
/* zdjęcie dostaje własny, pionowy kadr — bez tego wysoki plik rozciągałby
   całą sekcję i obok bloczków zostawałoby pół ekranu pustego tła */
.about .shot:has(img) { aspect-ratio: 4 / 5; min-height: 0; }
.about:has(.shot img) { align-items: center; }
.about .prose { max-width: 56ch; }
.about .prose h2 { margin: 26px 0 10px; font-size: 1.4rem; }
.about .prose > :first-child { margin-top: 0; }
.about .prose p { margin-bottom: 14px; }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 18px; color: var(--ink-soft); }
.prose h2 { margin: 40px 0 14px; font-size: 1.6rem; }
.prose h3 { margin: 32px 0 10px; font-size: 1.25rem; }
.prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--page-accent, var(--accent));
  transform: rotate(20deg);
}

.placeholder-note {
  margin-top: 40px;
  padding: 16px 20px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--cream);
  font-size: .93rem;
  color: var(--ink-soft);
}

/* miejsce w tekście do uzupełnienia przez redakcję */
.todo {
  padding: 1px .35em;
  border-radius: 5px;
  background: color-mix(in srgb, var(--yellow) 34%, white);
  color: var(--ink);
  font-weight: 600;
}

.prose__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- Ramka na zdjęcie (do podmiany na <img>) ---------- */

.shot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  margin: 0;
  padding: 20px;
  overflow: hidden;
  background: var(--cream);
  border: 2px dashed color-mix(in srgb, var(--blue) 35%, white);
  border-radius: 22px;
  color: var(--ink-soft);
  text-align: center;
}
.shot--portrait { aspect-ratio: 4 / 5; }
.shot--wide     { aspect-ratio: 4 / 3; }

.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* po wstawieniu zdjęcia ramka znika i zostaje samo zdjęcie */
.shot:has(img) { display: block; padding: 0; border: 0; box-shadow: var(--shadow-card); }

/* grafika z przezroczystym tłem — pokazujemy ją w całości, bez cienia pod
   prostokątem, którego w takim pliku nie widać */
.shot--plain:has(img) { background: none; box-shadow: none; }
.shot--plain img { object-fit: contain; }

.shot__icon { color: var(--blue); }
.shot__icon svg { display: block; width: 38px; height: 38px; }
.shot__note {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* wariant na ciemnym paśmie */
.shot--dark {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .75);
}
.shot--dark .shot__icon { color: rgba(255, 255, 255, .7); }

/* ---------- Centrum Technologiczne (o nas) — pasmo poziome ---------- */

.centrum .band__lead { max-width: 70ch; margin-inline: auto; }
.centrum .band__lead + .band__lead { margin-top: 16px; }

/* kafle wyposażenia — jeden poziomy rząd na szerokość pasma
   (układ i odstępy: sekcja „Siatki kafli") */
.gear {
  --gap: 16px;
  --cols: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gear__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 14px 22px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.gear__item:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .13); }

.gear__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  color: var(--c);
}
.gear__icon svg { width: 26px; height: 26px; }

.gear__name {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

/* zdjęcie pracowni obok tekstu zaproszenia */
.centrum__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 46px;
  align-items: center;
  margin-top: 40px;
}

.centrum__note p {
  margin: 0 0 14px;
  font-size: .97rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .8);
}
.centrum__note p:last-child { margin-bottom: 0; }

/* adres zwykłym tekstem, wyśrodkowany pod treścią pasma */
.centrum__address {
  margin: 30px 0 0;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

/* ---------- Ścieżka zapisów w krokach ---------- */

.steps {
  --gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step { position: relative; display: flex; }

/* przerywana linia łącząca numery sąsiednich kroków — tylko gdy kroki
   stoją obok siebie w jednym rzędzie */
@media (min-width: 961px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 63px;
    left: calc(50% + 36px);
    width: calc(100% - 38px);
    border-top: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  }
}

.step__link {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 34px 26px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.step__link:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--c) 45%, white);
  box-shadow: var(--shadow-card-h);
}

.step__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 15%, white);
  color: var(--c);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.step__link:hover .step__num { background: var(--c); color: var(--white); }

.step__title {
  margin-bottom: 8px;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
}
.step__text {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.step__cue {
  margin-top: auto;          /* wyrównuje odnośniki na dole wszystkich kart */
  padding: 18px 0 3px;
  border-bottom: 2px solid color-mix(in srgb, var(--c) 45%, transparent);
  color: var(--c);
  font-weight: 700;
  font-size: .95rem;
  transition: border-color .2s var(--ease);
}
.step__link:hover .step__cue { border-bottom-color: var(--c); }

/* ---------- Nagroda ---------- */

.award {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.award__text > :first-child { margin-top: 0; }

/* ---------- Odznaki nagród (para: rok bieżący + poprzedni) ---------- */

.badges {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
}

.badge {
  position: relative;
  z-index: 1;
  display: block;
  width: 132px;
  filter: drop-shadow(0 10px 24px rgba(27, 42, 74, .3));
  transition: transform .25s var(--ease);
}
.badge img { display: block; width: 100%; height: auto; }
a.badge:hover { transform: translateY(-4px); }

/* nagroda z poprzedniego roku — mniejsza, wsuwa się częściowo za tegoroczną */
.badge--past {
  z-index: 0;
  width: 104px;
  margin-right: -30px;
}

/* wariant przy opisie nagrody na podstronie „O nas" — większy i bez odstępu u góry */
.badges--lg { margin-top: 0; }
.badges--lg .badge { width: 168px; filter: drop-shadow(0 14px 30px rgba(27, 42, 74, .2)); }
.badges--lg .badge--past { width: 132px; margin-right: -38px; }

.award .badges { justify-self: center; }
.award__text .section__title,
.award__text .band__title { margin-bottom: 14px; }

/* ---------- Dane kontaktowe + mapa ---------- */

.reach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}

.reach__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reach__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--c);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.reach__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c) 15%, white);
  color: var(--c);
}
.reach__icon svg { width: 25px; height: 25px; }

.reach__body { display: block; min-width: 0; }
.reach__label {
  display: block;
  margin-bottom: 2px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.reach__value {
  display: block;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.reach__value:hover { color: var(--c); }

.reach__map {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
  background: #e8eef5;
  box-shadow: 0 22px 50px rgba(27, 42, 74, .22);
}
.reach__map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Pasmo zapisów z social mediami (kontakt) ---------- */

.signup__action { margin: 0; text-align: center; }

.signup__label {
  margin: 40px 0 16px;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  color: rgba(255, 255, 255, .92);
}

.socials--big { justify-content: center; margin: 0; }
.socials--big .social {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .18);
  color: var(--white);
}
.socials--big .social svg { width: 26px; height: 26px; }

/* ---------- Formularz kontaktowy ---------- */

.form-wrap { max-width: 760px; }

.form {
  padding: 34px 32px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px 22px;
}

.form__field { margin: 0 0 18px; }
.form__grid .form__field { margin: 0; }

.form__label {
  display: block;
  margin-bottom: 7px;
  font-size: .92rem;
  font-weight: 600;
}
.form__optional { font-weight: 400; color: var(--ink-soft); }

.form__input {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.form__input:hover { border-color: #d9e2ee; }
.form__input:focus {
  background: var(--white);
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, .18);
}
.form__input::placeholder { color: #93a0b5; }

.form__textarea { resize: vertical; min-height: 150px; line-height: 1.6; }

select.form__input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2355637d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 24px;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.form__consent input {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.form__consent label { cursor: pointer; }

.form__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.form__actions .btn { border: 0; cursor: pointer; }
.form__note { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Karty oferty (oferta.html) ---------- */

/* karty oferty zostają na gridzie — dzielą wiersze subgrida (niżej),
   czego flexbox nie potrafi */
.offers {
  --gap: 26px;
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer {
  display: flex;
  flex-direction: column;
  padding: 34px 30px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--c);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-h); }

.offer__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 17px;
  background: color-mix(in srgb, var(--c) 15%, white);
  color: var(--c);
}
.offer__icon svg { width: 28px; height: 28px; }

.offer__title { margin: 0 0 10px; font-size: 1.45rem; }
.offer__text { margin: 0 0 18px; font-size: .96rem; line-height: 1.65; color: var(--ink-soft); }

.offer__list { margin: 0 0 26px; padding: 0; list-style: none; }
.offer__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: .93rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.offer__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
  transform: rotate(20deg);
}

.offer__actions {
  display: grid;
  justify-items: center;
  align-content: start;   /* przycisk trzyma się góry, choćby pod nim było mniej treści */
  gap: 12px;
  margin-top: auto;
}

/* dwie karty w rzędzie na tablecie, samotna ostatnia na środku */
@media (min-width: 700px) {
  .offers { --cols: 2; }

  .offers > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - var(--gap) / 2);
    justify-self: center;
  }
}

/* Karty obok siebie dzielą wiersze siatki nadrzędnej, więc opis, lista kropek
   i przyciski zaczynają się w każdej karcie na tej samej wysokości. */
@media (min-width: 961px) {
  .offers { --cols: 3; }
  /* dwie karty zamiast trzech — np. odbiorcy warsztatów */
  .offers--duo { --cols: 2; }

  /* trzy kolumny mieszczą komplet kart, więc wyśrodkowanie sieroty odpada */
  .offers > :last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
  }

  @supports (grid-template-rows: subgrid) {
    .offers { row-gap: 0; }
    .offer {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 5;
    }
    /* wiersz z akcjami ma w subgridzie wspólną wysokość — bez tego „margin-top: auto"
       dosuwałby krótszy blok do dołu i przyciski sąsiednich kart rozjeżdżałyby się */
    .offer__actions { margin-top: 0; }
  }
}

/* ikony społecznościowe pod przyciskiem w karcie oferty */
.offer__actions .socials { margin: 0; }
.offer__actions .socials--light .social { width: 44px; height: 44px; }

/* ---------- Przełącznik zapisów: zajęcia stałe / warsztaty ---------- */

/* dwie karty-zakładki nad formularzem, zaznaczona bieżąca
   (wzorem karty „Tutaj jesteś" w lokalizacjach na stronie głównej);
   przełącza je skrypt w page-zapisy.php na podstawie hasha w adresie */
.signup-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 44px;
}

.signup-switch__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.signup-switch__item:not(.is-active):hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c) 45%, white);
  box-shadow: var(--shadow-card-h);
}

/* wybrana zakładka — obwódka w kolorze karty; inset zamiast grubszej ramki,
   żeby obie karty miały identyczny wymiar */
.signup-switch__item.is-active {
  background: color-mix(in srgb, var(--c) 7%, white);
  border-color: var(--c);
  box-shadow: inset 0 0 0 1px var(--c);
  cursor: default;
}

.signup-switch__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c) 15%, white);
  color: var(--c);
}
.signup-switch__icon svg { width: 25px; height: 25px; }

.signup-switch__body { display: block; min-width: 0; }

.signup-switch__title {
  display: block;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.25;
}
.signup-switch__text {
  display: block;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.signup-switch__cue {
  display: block;
  margin-top: 6px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--c);
}
.signup-switch__item:not(.is-active) .signup-switch__cue::after {
  content: " →";
  transition: margin-left .2s var(--ease);
}
.signup-switch__item:not(.is-active):hover .signup-switch__cue::after { margin-left: 4px; }

/* tekst podpowiedzi zależy od stanu karty */
.signup-switch__item.is-active .signup-switch__cue-off,
.signup-switch__item:not(.is-active) .signup-switch__cue-on { display: none; }

@media (max-width: 560px) {
  .signup-switch { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .signup-switch__item { padding: 16px 18px; }
}

/* ---------- Panele zapisów przełączane hashem (#zajecia-stale / #warsztaty) ---------- */

.signup-panel[hidden] { display: none; }
.signup-panel__after { margin-top: 36px; }

/* ---------- Kontener widgetów ActiveNow ---------- */

/* Minimalna wysokość trzyma miejsce na kółko ładowania, żeby treść pod spodem
   nie skakała, gdy skrypt podmieni zawartość kontenera.
   Bez zawężania kolumny — tabela grup (godzina, miejsce, terminy, ceny)
   na wąskiej szerokości się dusi. */
.signup-embed {
  min-height: 320px;
  margin-inline: auto;
}
.signup-embed .activenow-form-container > center { padding: 40px 0; }

/* ---------- Formularz warsztatów (ActiveNow, formularz pojedynczy) ---------- */

/* ActiveNow dokleja swój arkusz na końcu <head>, czyli PO naszym — przy równej
   wadze selektora wygrałby. Stąd prefiks .signup-embed--form (+1 klasa)
   w każdej regule. Nie ustawiamy tu „display" na polach, przycisku ani
   inputach — ActiveNow ukrywa je klasą .soft-d-none i nie wolno jej przebić. */

.signup-embed--form {
  max-width: 760px;
  padding: 34px 32px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.signup-embed--form .activenow-form-container {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}

/* nagłówki grup pól („Dane uczestnika", „Dane rodzica"…) */
.signup-embed--form .activenow-form-container .activenow-form-section-header {
  margin: 26px 0 4px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.signup-embed--form .activenow-form-container .activenow-form-section-header:first-child { margin-top: 0; }

/* pola tekstowe i listy — jak .form__input na Kontakcie */
.signup-embed--form .activenow-form-container .activenow-form-field input:not([type="checkbox"]):not([type="radio"]),
.signup-embed--form .activenow-form-container .activenow-form-field select {
  margin: 7px 0;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.signup-embed--form .activenow-form-container .activenow-form-field input:not([type="checkbox"]):not([type="radio"]):hover,
.signup-embed--form .activenow-form-container .activenow-form-field select:hover { border-color: #d9e2ee; }

.signup-embed--form .activenow-form-container .activenow-form-field input:not([type="checkbox"]):not([type="radio"]):focus,
.signup-embed--form .activenow-form-container .activenow-form-field select:focus {
  background-color: var(--white);
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, .18);
}

.signup-embed--form .activenow-form-container .activenow-form-field input::placeholder { color: #93a0b5; }

/* ActiveNow zdejmuje natywną strzałkę listy i nie daje własnej — dokładamy naszą */
.signup-embed--form .activenow-form-container .activenow-form-field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2355637d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  cursor: pointer;
}

/* lista wydarzeń — główny wybór formularza */
.signup-embed--form .activenow-form-container .activenow-main-selector { font-weight: 600; }

/* błąd walidacji: czerwona ramka zamiast pomarańczowej */
.signup-embed--form .activenow-form-container .activenow-form-field .activenow-error-active,
.signup-embed--form .activenow-form-container .activenow-form-field .border-danger {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(228, 38, 44, .14);
}
/* ikonka błędu stoi obok pola — nie może się ściskać */
.signup-embed--form .activenow-error { flex: none; margin-right: 4px; }

/* zgody i inne checkboxy — jak .form__consent */
.signup-embed--form .activenow-form-container .activenow-checkbox-field { margin: 6px 0; }
.signup-embed--form .activenow-form-container .activenow-form-field input[type="checkbox"] {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 3px 10px 0 0;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.signup-embed--form .activenow-form-container .activenow-form-field label {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.signup-embed--form .activenow-form-container .activenow-form-field a:link,
.signup-embed--form .activenow-form-container .activenow-form-field a:visited {
  color: var(--accent);
  font-weight: 600;
}

/* przełączniki tak/nie (np. „zapisuje rodzic") w kolorze marki */
.signup-embed--form .activenow-form-container .activenow-form-field.activenow-radio-input-component {
  --activenow-radio-accent-color: var(--accent);
}

/* szczegóły wybranego wydarzenia — bloczek jak .note */
.signup-embed--form .activenow-form-class-description {
  margin: 12px 0 18px;
  padding: 6px 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 5px solid var(--page-accent, var(--accent));
  border-radius: var(--radius-sm);
  color: var(--ink);
}
/* zanim rodzic wybierze wydarzenie, kontener bywa pusty — bez tego
   wisiałaby pusta kremowa ramka */
.signup-embed--form .activenow-form-class-description:empty,
.signup-embed--form .activenow-form-class-description:not(:has(*)) { display: none; }

.signup-embed--form .activenow-form-class-description .activenow-class-row {
  padding: 11px 0;
  border-bottom-color: var(--line);
}
.signup-embed--form .activenow-form-class-description .activenow-class-row:last-child { border-bottom: 0; }

.signup-embed--form .activenow-form-class-description .activenow-class-row .activenow-class-label {
  padding-left: 0;
  padding-top: 5px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.signup-embed--form .activenow-form-class-description .activenow-class-row .activenow-class-value { margin: 0; padding-right: 0; }
/* poniżej 768px ActiveNow stawia etykietę nad wartością — wyrównujemy do lewej */
@media (max-width: 767px) {
  .signup-embed--form .activenow-form-class-description .activenow-class-row .activenow-class-value { padding-left: 0; }
}

/* cena wyróżniona jak wartości w kafelkach .fact */
.signup-embed--form .activenow-form-class-description .activenow-class-info-price .activenow-class-value,
.signup-embed--form .activenow-form-class-description .activenow-class-info-total_price .activenow-class-value {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

/* przycisk wysyłki — jak .btn (bez strzałki: to może być <input>) */
.signup-embed--form #active-now-submit {
  margin-top: 20px;
  padding: 16px 40px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 10px 26px rgba(255, 107, 53, .34);
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.signup-embed--form #active-now-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 107, 53, .44);
}
/* ich animacja przy focusie miga białym tłem — wyłączamy, zostaje nasz focus */
.signup-embed--form #active-now-submit:focus { animation: none; }
.signup-embed--form #active-now-submit:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.signup-embed--form #active-now-submit:disabled { opacity: .6; cursor: wait; transform: none; }

/* kod rabatowy — przycisk jak .btn--ghost, mniejszy */
.signup-embed--form #validate-discount-code {
  padding: 11px 20px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-weight: 700;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.signup-embed--form #validate-discount-code:hover { background: var(--accent); color: var(--white); }
.signup-embed--form #validate-discount-code.disabled { opacity: .45; cursor: not-allowed; }
.signup-embed--form #validate-discount-code.disabled:hover { background: transparent; color: var(--accent); }

.signup-embed--form .discount-code-error,
.signup-embed--form .red-text { color: var(--red); font-size: .88rem; }

/* komunikat po wysłaniu — poniżej przyklejonego nagłówka */
.signup-embed--form .activenow-form-container .activenow_confirmation_message {
  top: calc(var(--header-h) + 16px);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  box-shadow: var(--shadow-card-h);
}

@media (max-width: 560px) {
  .signup-embed--form { padding: 24px 18px 22px; }
  .signup-embed--form #active-now-submit { width: 100%; }
}

/* ---------- Wąski blok pomocniczy („Nie wiesz, co wybrać?") ---------- */

.helper {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}
.helper__title { margin: 0 0 12px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.helper__text { margin: 0; color: var(--ink-soft); }
.helper__action { margin: 24px 0 0; }
.helper__more { margin: 16px 0 0; font-size: .95rem; color: var(--ink-soft); }
.helper__more a { color: var(--accent); font-weight: 600; }

/* ---------- Konkrety oferty: lokalizacja, koszt, czas ---------- */

.facts {
  --gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--c);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.fact__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c) 15%, white);
  color: var(--c);
}
.fact__icon svg { width: 26px; height: 26px; }

.fact__label {
  margin-bottom: 6px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.fact__value {
  margin-bottom: 10px;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
}
.fact__note {
  font-size: .93rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* dwie stawki jedna pod drugą, rozdzielone włoskową linią */
.prices { display: grid; gap: 12px; }
.price + .price { padding-top: 12px; border-top: 1px solid var(--line); }

.price__amount {
  display: block;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.price__per {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.price__where {
  display: block;
  margin-top: 2px;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Bloczki z informacjami (zamiast wypunktowania) ---------- */

.notes {
  display: grid;
  gap: 16px;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.note {
  padding: 22px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--c);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.note__title { margin: 0 0 6px; font-size: 1.16rem; }
.note__text { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--ink-soft); }
.offer .btn {
  justify-content: center;
  width: 100%;
  padding: 15px 26px;
  font-size: 1.06rem;
  background: var(--c);
  box-shadow: none;
}
.offer .btn:hover {
  background: color-mix(in srgb, var(--c) 84%, black);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 40%, transparent);
}
.offer__link {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.offer__link:hover { color: var(--c); border-bottom-color: var(--c); }

/* =========================================================
   Pasma na całą szerokość (strona główna)
   ========================================================= */

.band {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
  background: var(--white);
}
.band--tight { padding: 54px 0; }
.band > .container { position: relative; z-index: 2; }

.band--cream  { background: var(--cream); }
.band--dark   { background: linear-gradient(135deg, #13235c 0%, #1B3A8C 58%, #2a6fc4 100%); color: var(--white); }
.band--black  { background: #0e1628; color: var(--white); }
.band--sky    { background: linear-gradient(180deg, #F4FAFE 0%, #E4F1FB 100%); }
.band--blue   { background: linear-gradient(135deg, #29ABE2 0%, #1B3A8C 100%); color: var(--white); }
.band--accent { background: linear-gradient(120deg, #FF6B35 0%, #F7C51E 100%); color: var(--white); }

.band__blobs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.band__blobs .blob { opacity: .32; }

.band__head { max-width: 780px; margin-bottom: 36px; }
.band__head--center { margin-inline: auto; text-align: center; }
.band__head--flush { margin-bottom: 0; }

.band__kicker {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.band--dark .band__kicker,
.band--black .band__kicker,
.band--blue .band__kicker { color: var(--yellow); }
.band--accent .band__kicker { color: rgba(255, 255, 255, .85); }

.band__title {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
}
.band__lead {
  margin: 0;
  font-size: 1.06rem;
  color: var(--ink-soft);
}
.band--dark .band__lead,
.band--black .band__lead,
.band--blue .band__lead,
.band--accent .band__lead { color: rgba(255, 255, 255, .84); }

/* zdanie domykające pod kaflami pasma */
.band__lead--after {
  max-width: 62ch;
  margin: 30px auto 0;
  text-align: center;
}

.band__action { margin: 36px 0 0; text-align: center; }

/* ---------- Kafle sprzętu ---------- */

.tiles {
  --gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile {
  padding: 30px 22px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.tile:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .13); }

.tile__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .14);
  color: var(--c);
}
.tile__icon svg { width: 29px; height: 29px; }
.tile__title { margin: 0 0 6px; font-size: 1.14rem; }
.tile__text { margin: 0; font-size: .92rem; line-height: 1.6; color: rgba(255, 255, 255, .76); }

/* ---------- Panele oferty (od krawędzi do krawędzi) ---------- */

.panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 70px 44px 62px;
  background: var(--c);
  color: var(--white);
  text-decoration: none;
  overflow: hidden;
  transition: background-color .25s var(--ease);
}
.panel--light { color: var(--ink); }

/* jasny okrąg reagujący na najechanie */
.panel::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  transition: transform .4s var(--ease);
}
.panel:hover::before { transform: scale(1.35); }
.panel--light::before { background: rgba(27, 42, 74, .1); }

.panel > * { position: relative; z-index: 1; }

.panel__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  border-radius: 19px;
  background: rgba(255, 255, 255, .22);
}
.panel--light .panel__icon { background: rgba(27, 42, 74, .13); }
.panel__icon svg { width: 31px; height: 31px; }

.panel__title { margin: 0 0 12px; font-size: 1.72rem; }
.panel__text { margin: 0 0 28px; line-height: 1.65; opacity: .92; }
.panel__more { margin-top: auto; font-weight: 700; }
.panel__more::after { content: " →"; transition: margin-left .2s var(--ease); }
.panel:hover .panel__more::after { margin-left: 6px; }

/* ---------- Film ---------- */

.video {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #1B3A8C 0%, #29ABE2 100%);
  box-shadow: 0 24px 54px rgba(27, 42, 74, .26);
}
.video__el {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* ---------- Filary ---------- */

.pillars {
  --gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pillar {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-h); }

.pillar__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 17px;
  background: color-mix(in srgb, var(--c) 15%, white);
  color: var(--c);
}
.pillar__icon svg { width: 28px; height: 28px; }
.pillar__title { margin: 0 0 8px; font-size: 1.18rem; }
.pillar__text { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Lokalizacje ---------- */

.places {
  --gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.places li { display: flex; }

.place {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--c);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.place:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-h); }

.place__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c) 15%, white);
  color: var(--c);
}
.place__icon svg { width: 27px; height: 27px; }
.place__title { margin: 0 0 8px; font-size: 1.3rem; }
.place__text { margin: 0 0 22px; font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }

.place__more { margin-top: auto; font-weight: 700; color: var(--c); }
.place__more::after { content: " →"; transition: margin-left .2s var(--ease); }
a.place:hover .place__more::after { margin-left: 6px; }

/* karta miasta, na którego stronie już jesteśmy */
.place--current { background: color-mix(in srgb, var(--c) 6%, white); }
.place__badge {
  margin-top: auto;
  align-self: flex-start;
  padding: 6px 15px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, white);
  color: var(--c);
  font-size: .82rem;
  font-weight: 600;
}

/* =========================================================
   Siatki kafli — niepełny ostatni rząd zostaje wyśrodkowany
   =========================================================

   Kafle układa flexbox, a nie grid: szerokość jednego kafla liczymy
   z liczby kolumn (--cols) i odstępu (--gap), więc pełne rzędy wyglądają
   dokładnie jak w siatce. Różnica dotyczy ostatniego rzędu — grid dosuwał
   pojedynczy kafel do lewej krawędzi, a tutaj „justify-content: center"
   stawia go na środku względem rzędu powyżej.

   Liczbę kolumn ustawiamy progami niżej — zawsze tyle, ile mieści się
   bez ściskania treści. */

.tiles,
.pillars,
.places,
.facts,
.gear,
.steps,
.notes--grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap, 24px);
}

/* .02px w odejmowaniu to zapas na zaokrąglenia — bez niego skrajny kafel
   potrafi zjechać do kolejnego rzędu przy nietypowych szerokościach okna */
.tiles > *,
.pillars > *,
.places > *,
.facts > *,
.gear > *,
.steps > *,
.notes--grid > * {
  flex: 0 1 calc((100% - (var(--cols, 1) - 1) * var(--gap, 24px)) / var(--cols, 1) - .02px);
  min-width: 0;
}

/* bloczki na całą szerokość pasma (urodziny) — poza siatką .about */
.notes--grid { --gap: 16px; align-content: normal; }

@media (min-width: 560px) {
  .tiles,
  .pillars { --cols: 2; }
}

@media (min-width: 600px) {
  .gear { --cols: 3; }
}

@media (min-width: 620px) {
  .places,
  .facts,
  .notes--grid { --cols: 2; }
}

@media (min-width: 640px) {
  .steps { --cols: 2; }
}

@media (min-width: 820px) {
  .tiles { --cols: 3; }
}

@media (min-width: 900px) {
  .places,
  .facts { --cols: 3; }
}

@media (min-width: 961px) {
  .steps { --cols: 3; }
}

@media (min-width: 1120px) {
  .pillars { --cols: 4; }
  .gear    { --cols: 6; }
}

@media (min-width: 1150px) {
  .tiles { --cols: 5; }
}

/* ---------- Zapisy ---------- */

.cta {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.cta__col { text-align: center; }
.cta__title { margin: 30px 0 12px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta__text { margin: 0; font-size: 1.04rem; color: rgba(255, 255, 255, .94); }

.cta__map {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: #e8eef5;
  box-shadow: 0 22px 50px rgba(27, 42, 74, .3);
}
.cta__map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Przycisk ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(255, 107, 53, .34);
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 107, 53, .44);
}
.btn::after {
  content: "→";
  font-size: 1.05em;
  transition: margin-left .2s var(--ease);
}
.btn:hover::after { margin-left: 4px; }

/* ---------- Warianty przycisku ---------- */
/* muszą stać po deklaracji bazowej .btn — inaczej przy równej wadze selektora
   to .btn wygrywa i warianty nic nie zmieniają */

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--accent); color: var(--white); box-shadow: 0 12px 26px rgba(255, 107, 53, .3); }

.btn--dark { background: var(--ink); box-shadow: 0 12px 28px rgba(27, 42, 74, .32); }
.btn--dark:hover { background: #101a33; box-shadow: 0 16px 34px rgba(27, 42, 74, .4); }

.btn--big {
  padding: 22px 46px;
  font-size: 1.4rem;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* przycisk zapisów w pasku nawigacji */
.btn--sm {
  padding: 11px 24px;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(255, 107, 53, .3);
}

/* =========================================================
   Stopka
   ========================================================= */

.footer {
  padding: 46px 0 22px;
  background: var(--ink);
  color: rgba(255, 255, 255, .74);
  font-size: .9rem;
}
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--white); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr 1.35fr;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer__title {
  margin: 0 0 10px;
  font-family: "Baloo 2", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li { margin-bottom: 7px; }

/* W stopce stoi gotowe logo z wpisanym „Lubartów". Czarny łuk drukarki i „3D"
   ginęły na granatowym tle, więc logo kładziemy na jasnej płytce — zamiast
   poświaty spod nagłówka, która obrysowałaby czerń, ale jej nie rozjaśniła. */
.footer .logo {
  margin-bottom: 16px;
  padding: 14px 20px;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.footer .logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}
.footer .logo__img {
  width: 155px;
  height: auto;
  filter: none;
}
.footer p { margin: 0; }

/* dane kontaktowe w pierwszej kolumnie stopki */
.footer__contact {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.footer__contact li { margin-bottom: 6px; }
.footer__contact li::before { content: none; }
.footer__contact a { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.footer__contact a:hover { border-bottom-color: rgba(255, 255, 255, .6); }
.footer__contact .footer__phone {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--white);
  border-bottom: 0;
}

/* ---------- Social media ---------- */

.socials {
  display: flex;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
/* neutralizacja stylu list w .prose, gdy ikony stoją na jasnej podstronie */
.socials li { margin: 0; padding: 0; }
.socials li::before { content: none; }

.social {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .85);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.social svg { width: 22px; height: 22px; }
.social:hover { color: var(--white); transform: translateY(-3px); }

/* wariant na jasnym tle (podstrony) */
.socials--light { margin-top: 6px; }
.socials--light .social {
  width: 46px;
  height: 46px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.socials--light .social:hover { color: var(--white); border-color: transparent; }
.social--fb:hover { background: #1877F2; }
.social--ig:hover { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.social--tt:hover { background: #010101; }

.footer__bottom {
  margin: 0;
  padding-top: 18px;
  font-size: .83rem;
  text-align: center;
  color: rgba(255, 255, 255, .55);
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 960px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 95;
    width: min(350px, 88vw);
    height: 100dvh;
    padding: calc(var(--header-h) + 20px) 20px 40px;
    background: var(--white);
    box-shadow: var(--shadow-menu);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .32s var(--ease), visibility .32s;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }

  .site-header .nav__link {
    justify-content: space-between;
    width: 100%;
    padding: 15px 12px;
    font-size: 1.08rem;
    color: var(--ink);
  }
  .nav__link.is-active::after { left: 12px; right: auto; width: 26px; bottom: 8px; }

  .nav__item--cta { margin: 16px 0 0; }
  .nav__item--cta .btn { width: 100%; justify-content: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 64px 0; }
  .section--slim { padding: 44px 0; }
  .form { padding: 26px 20px 24px; }
  .award { grid-template-columns: 1fr; gap: 28px; }
  .about { grid-template-columns: 1fr; gap: 34px; }
  .reach { grid-template-columns: 1fr; gap: 30px; }
  /* pionowy kadr jest na telefonie za wysoki */
  .shot--portrait,
  .about .shot { aspect-ratio: 4 / 3; min-height: 0; }
  /* ...ale przy zdjęciu zostaje pionowy — z kadru 4/3 zostałby z niego
     wąski pasek środka */
  .shot--portrait:has(img),
  .about .shot:has(img) { aspect-ratio: 4 / 5; }
  .centrum__split { grid-template-columns: 1fr; gap: 30px; }

  .gear { gap: 12px; }
  .gear__item { padding: 20px 12px 18px; }

  .band { padding: 56px 0; }
  .band--tight { padding: 42px 0; }
  .band__head { margin-bottom: 28px; }
  .cta { grid-template-columns: 1fr; gap: 36px; }
  .btn--big { padding: 18px 34px; font-size: 1.18rem; }
  .panels { grid-template-columns: 1fr; }
  .panel { padding: 48px 28px 44px; }
  .panel::before { top: -70px; right: -70px; width: 190px; height: 190px; }
}

@media (min-width: 961px) {
  .nav-backdrop { display: none; }
}

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .logo__img { height: 38px; }
  .logo__city { font-size: .62rem; letter-spacing: .12em; }
}

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