/* ==========================================================================
   Dosufitu Szkolenia – styles
   Etap 1: header (jeden rząd) + hero + okno szybkiej wiadomości
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0c0c0d;            /* tło strony */
  --coal: #151517;           /* powierzchnie */
  --bone: #f1efea;           /* tekst główny */
  --ash: #a7a59f;            /* tekst drugorzędny */
  --line: rgba(241, 239, 234, 0.14);
  --line-strong: rgba(241, 239, 234, 0.34);
  --brass: #c8a45c;          /* jedyny akcent: CTA, drobne detale */
  --brass-hover: #d8b877;

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --header-h: 72px;
  --max: 1360px;
  --gutter: clamp(20px, 5vw, 40px);

  color-scheme: dark;
}

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--bone);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Ikony ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 56px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--brass);
  color: var(--ink);
}
.btn--primary:hover { background: var(--brass-hover); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--bone);
}
.btn--ghost:hover { border-color: var(--bone); }

.btn__arrow { transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ==========================================================================
   Header – jeden rząd
   ========================================================================== */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--max);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  align-items: baseline;
  color: var(--bone);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

/* nawigacja */
.nav__list {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list a {
  white-space: nowrap;
  padding-block: 8px;
  color: var(--ash);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav__list a:hover { color: var(--bone); }

/* komputer: po najechaniu tekst jaśnieje, a pod nim wyjeżdża cienka złota linia */
@media (min-width: 1080px) {
  .nav__list a { position: relative; transition: color 0.2s ease, text-shadow 0.25s ease; }
  .nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .nav__list a:hover,
  .nav__list a:focus-visible {
    color: var(--bone);
    text-shadow: 0 0 14px rgba(200, 164, 92, 0.3);
  }
  .nav__list a:hover::after,
  .nav__list a:focus-visible::after { transform: scaleX(1); }
}

/* kontakt po prawej */
.hdr-contact {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.hdr-phone,
.hdr-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 8px;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.hdr-phone { color: var(--bone); font-weight: 600; }
.hdr-mail { color: var(--ash); margin-right: 8px; }
.hdr-mail:hover { color: var(--bone); }
.hdr-phone .icon,
.hdr-mail .icon { color: var(--brass); }

.hdr-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--bone);
  transition: color 0.2s ease;
}
.hdr-icon:hover { color: var(--brass); }

.menu-btn { display: none; }
.nav__contact { display: none; }

/* ---------- Header: desktop ---------- */
/* logo po lewej, zaraz za nim menu, kontakt po prawej */
@media (min-width: 1080px) {
  .header-inner { gap: 24px; }
  .nav { margin-left: 16px; }
  .hdr-contact { margin-left: auto; }
}

/* węższy laptop: e-mail jako sama ikonka, ciaśniejsze menu, żeby wszystko mieściło się w jednym rzędzie */
@media (min-width: 1080px) and (max-width: 1439.98px) {
  .hdr-mail span { display: none; }
  .hdr-mail { margin-right: 0; padding-inline: 10px; }
}
@media (min-width: 1080px) and (max-width: 1279.98px) {
  .header-inner { gap: 16px; }
  .nav { margin-left: 8px; }
  .nav__list { gap: 14px; }
  .nav__list a { font-size: 0.875rem; }
}

/* ---------- Header: telefon / tablet ---------- */
@media (max-width: 1079.98px) {
  .brand { font-size: 1.25rem; }

  .hdr-contact { gap: 0; }
  .hdr-mail,
  .hdr-icon { display: none; }
  .hdr-phone { padding-inline: 4px 0; gap: 6px; font-size: 0.875rem; }

  /* bez JS: nawigacja w zwykłym układzie pod nagłówkiem */
  html:not(.js) .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 12px;
  }
  html:not(.js) .nav { flex-basis: 100%; order: 3; }
  html:not(.js) .nav__list { flex-wrap: wrap; gap: 4px 24px; }

  .js .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--bone);
    cursor: pointer;
  }
  .menu-btn__icon {
    position: relative;
    width: 24px;
    height: 12px;
  }
  .menu-btn__icon::before,
  .menu-btn__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
  }
  .menu-btn__icon::before { top: 0; }
  .menu-btn__icon::after { bottom: 0; }
  .menu-open .menu-btn__icon::before { top: 5px; transform: rotate(45deg); }
  .menu-open .menu-btn__icon::after { bottom: 5px; transform: rotate(-45deg); }

  .js .nav { display: none; }

  .js.menu-open { overflow: hidden; }
  .js.menu-open .nav {
    position: fixed;
    /* --menu-top ustawia JS (dolna krawędź nagłówka); wartość awaryjna poniżej */
    inset: var(--menu-top, calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1px)) 0 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    margin: 0;
    padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    background: var(--ink);
  }
  .js.menu-open .nav__list { flex-direction: column; gap: 0; }
  .js.menu-open .nav__list li { border-bottom: 1px solid var(--line); }
  .js.menu-open .nav__list a {
    display: block;
    padding-block: 16px;
    color: var(--bone);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }
  .js.menu-open .nav__contact { display: block; }
}

/* menu mobilne: blok kontaktowy */
.nav__contact-title {
  margin: 0 0 4px;
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav__contact ul { margin: 0; padding: 0; list-style: none; }
.nav__contact li { border-bottom: 1px solid var(--line); }
.nav__contact a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  color: var(--bone);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}
.nav__contact a span {
  color: var(--ash);
  font-size: 1rem;
  font-weight: 400;
}
.nav__contact a .icon { color: var(--brass); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(40px, 8vw, 64px) clamp(56px, 9vw, 96px);
}

.hero__inner {
  display: grid;
  gap: 44px;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 11vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero__title span { display: block; }

.hero__meta {
  margin: 28px 0 0;
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.375rem);
  font-weight: 500;
  line-height: 1.5;
}
.sep { color: var(--brass); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Zdjęcie wtopione w tło hero: ciemna nakładka + krawędzie znikają w czerni strony.
   Telefon: zdjęcie na całą szerokość pod tekstem, wygaszone od góry, z boków i od dołu. */
.hero { position: relative; }
.hero__content { position: relative; z-index: 1; }
.hero__media {
  position: relative;
  z-index: 0;
  margin: -28px calc(var(--gutter) * -1) calc(clamp(56px, 9vw, 96px) * -1);
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 34%, #000 62%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 22%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 34%, #000 62%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 22%, #000 100%);
  mask-composite: intersect;
}
.hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 80% 60%; /* twarz i dłonie zawsze w kadrze */
  filter: brightness(0.62) saturate(0.85) contrast(1.05);
}
/* dodatkowe przyciemnienie od strony tekstu */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(12, 12, 13, 0.55), rgba(12, 12, 13, 0.1) 60%, rgba(12, 12, 13, 0.25));
}

/* telefon: dwa przyciski obok siebie */
@media (max-width: 639.98px) {
  .hero__actions { flex-wrap: wrap; width: 100%; }
  .hero__actions .btn {
    flex: 1 1 0;
    min-height: 52px;
    padding: 0 10px;
    font-size: 0.9375rem;
  }
  .hero__actions .btn__arrow { display: none; }
}

/* tablet */
@media (min-width: 640px) {
  .hero__media { margin-top: -56px; }
  .hero__media img { aspect-ratio: 16 / 11; object-position: 78% 62%; }
}

/* komputer */
@media (min-width: 1080px) {
  /* hero wypełnia pierwszy ekran, a treść leży w jego środku */
  .hero {
    display: grid;
    align-items: center;
    min-height: min(calc(100svh - var(--header-h)), 820px);
    padding-block: 48px;
  }

  .hero__inner {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0;
  }
  .hero__content { max-width: 40rem; }

  .hero__title { font-size: clamp(3.5rem, 6vw, 5.75rem); }
  .hero__meta { margin-top: 32px; }
  .hero__actions { margin-top: 44px; }

  /* zdjęcie jako tło po prawej: wychodzi poza kontener, krawędzie znikają w czerni */
  .hero__media {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(66%, 1100px);
    margin: 0;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 42%, #000 100%),
      linear-gradient(to bottom, transparent 0, #000 24%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0, #000 42%, #000 100%),
      linear-gradient(to bottom, transparent 0, #000 24%, #000 86%, transparent 100%);
    mask-composite: intersect;
  }
  .hero__media img { height: 100%; aspect-ratio: auto; object-position: 72% 68%; }
}

/* ==========================================================================
   Kurs podstawowy – początek sekcji
   ========================================================================== */
.course {
  scroll-margin-top: calc(var(--header-h) + 8px);
  padding-block: 0 clamp(96px, 14vw, 200px);
}

.course__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* linia graniczna z krótkim złotym znacznikiem */
.course__rule {
  position: relative;
  height: 1px;
  background: var(--line);
}
.course__rule::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 64px;
  height: 1px;
  margin-left: -32px;
  background: var(--brass);
}

.course__eyebrow {
  margin: clamp(40px, 6vw, 72px) 0 0;
  color: var(--brass);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.course__title {
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-size: clamp(2.5rem, 9vw, 8.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.course__title span { display: block; }
.course__eyebrow,
.course__title { text-align: center; }

@media (max-width: 479.98px) {
  /* wąski telefon: duże litery, ale najdłuższe słowo ("początkujących") musi się zmieścić */
  .course__title { font-size: clamp(2.2rem, 10.5vw, 2.75rem); }
}

/* ==========================================================================
   Trzy pakiety – równorzędne, mobile-first (jedna kolumna)
   Kolejność w każdym: nazwa → zdjęcie → cena → Terminy → korzyści
   ========================================================================== */
.packages {
  margin-top: clamp(64px, 10vw, 136px);
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.pkg {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* wspólna linia górna: cienka linia + krótki złoty znacznik (jak na początku sekcji) */
.pkg::before {
  content: "";
  height: 1px;
  margin-bottom: 28px;
  background:
    linear-gradient(var(--brass), var(--brass)) left top / 64px 1px no-repeat,
    var(--line-strong);
}

/* identyczny nagłówek każdego pakietu (PRO jest częścią tekstu) */
.pkg__head {
  margin: 0;
  color: var(--bone);
  font-size: clamp(1.5rem, 6.4vw, 1.875rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Wizualny obszar pakietu (Koncepcja B – panorama).
   Telefon/tablet: każdy pakiet pokazuje swoją trzecią część jednego zdjęcia; krawędzie wtapiają się w czerń.
   Komputer: jedna panorama pod wszystkimi trzema pakietami (.packages__band). */
.pkg__media {
  --slice: 0%;
  margin-top: 24px;
  height: clamp(170px, 50vw, 240px);
  pointer-events: none;
  background: url("../img/pakiety-panorama.jpg") var(--slice) var(--sy, 42%) / 300% auto no-repeat;
  filter: brightness(0.62) saturate(0.85) contrast(1.05);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-composite: intersect;
}
.pkg:nth-child(2) .pkg__media { --slice: 0%; --sy: 50%; }
.pkg:nth-child(3) .pkg__media { --slice: 50%; --sy: 22%; }
.pkg:nth-child(4) .pkg__media { --slice: 100%; --sy: 60%; }
.packages__band { display: none; }

.pkg__price {
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pkg__amount {
  font-size: clamp(3rem, 15vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}
.pkg__cur {
  color: var(--ash);
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pkg__for {
  color: var(--brass);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ceny w pakietach – ta sama logika co w terminach: cena regularna mała i przekreślona, cena wcześniejsza dominuje */
.pkg__price { gap: 0; }
.pkg__was {
  color: var(--ash);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 4px;
  white-space: nowrap;
}
.pkg__was s { text-decoration-thickness: 1px; }
.pkg__was--ghost { visibility: hidden; }
.pkg__label {
  margin-top: 10px;
  color: var(--ash);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.pkg__star { color: var(--brass); font-size: 0.6em; vertical-align: 0.55em; margin-left: 2px; letter-spacing: 0; }
.pkg__cond {
  margin-top: 12px;
  color: var(--ash);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.pkg__cond-star { color: var(--brass); font-weight: 700; }

/* trzy małe symbole przy PRO: bomba, wybuch/fajerwerk, rakieta – kreska liniowa, złote detale */
.pkg__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.pkg__head-t { min-width: 0; }
.pkg__wow { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--bone); }
.pkg__ic {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
  transition: transform 0.35s ease;
}
.pkg__ic .ic-g { stroke: var(--brass); }
.pkg__ic circle.ic-g { fill: var(--brass); stroke: none; }
@media (hover: hover) and (pointer: fine) {
  .pkg:hover .pkg__ic:nth-child(1) { transform: rotate(-6deg); }
  .pkg:hover .pkg__ic:nth-child(2) { transform: scale(1.08); }
  .pkg:hover .pkg__ic:nth-child(3) { transform: translateY(-2px); }
}

.pkg__cta {
  margin-top: 24px;
  width: 100%;
  min-height: 56px;
}

.pkg__list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.pkg__list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.4;
}
/* tylko nowe korzyści danego pakietu – złoty akcent */
.pkg__list li.is-plus { color: #d9925a; }   /* opcje ponad pakiet 1 (miedź) */
.pkg__list li.is-new { color: var(--brass); }  /* opcje tylko w PRO (złoto) */

/* tablet: zdjęcie po lewej, treść po prawej */
@media (min-width: 640px) and (max-width: 1079.98px) {
  .pkg {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(28px, 5vw, 48px);
    align-items: start;
  }
  .pkg::before { grid-column: 1 / -1; }
  .pkg > * { grid-column: 2; }
  .pkg__media {
    grid-column: 1;
    grid-row: 2 / span 4;
    margin-top: 0;
    height: auto;
    aspect-ratio: 4 / 5;
    width: 100%;
    background-size: auto 100%;
  }
  .pkg:nth-child(2) .pkg__media { background-position-x: 4.5%; }
  .pkg:nth-child(3) .pkg__media { background-position-x: 50%; }
  .pkg:nth-child(4) .pkg__media { background-position-x: 95.5%; }
  .pkg__cta { width: auto; align-self: flex-start; padding-inline: 40px; }
}

/* komputer: trzy kolumny, wspólna siatka wierszy (subgrid):
   1 linia, 2 nazwa, 3 zdjęcie, 4 cena, 5 Terminy, 6 lista korzyści */
@media (min-width: 1080px) {
  .packages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
    align-items: start;
    --pgap: clamp(32px, 3.5vw, 56px);
    column-gap: var(--pgap);
    row-gap: 0;
  }
  .pkg {
    display: grid;
    grid-row: 1 / span 6;
    grid-template-rows: subgrid;
  }
  .pkg::before { grid-row: 1; }
  .pkg__head  { grid-row: 2; }
  .pkg:nth-child(2) { grid-column: 1; }
  .pkg:nth-child(3) { grid-column: 2; }
  .pkg:nth-child(4) { grid-column: 3; }

  /* w tym wierszu leży panorama; sam blok pakietu jest tylko przezroczystym miejscem */
  .pkg__media { grid-row: 3; height: 0; margin-top: 0; background: none; filter: none; -webkit-mask-image: none; mask-image: none; }

  .packages__band {
    display: block;
    position: relative;
    grid-row: 3;
    grid-column: 1 / -1;
    aspect-ratio: 3 / 1;
    margin-top: 20px;
    pointer-events: none;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
    mask-composite: intersect;
  }
  .packages__band img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.62) saturate(0.85) contrast(1.05);
  }
  /* lekkie rozjaśnienie od pakietu 1 do 3 PRO: obraz „otwiera się” w prawo */
  .packages__band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(12, 12, 13, 0.5), rgba(12, 12, 13, 0.12) 65%, rgba(12, 12, 13, 0.05));
  }
  /* cienkie pionowe linie w odstępach między pakietami */
  .packages__band::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
      linear-gradient(var(--line-strong), var(--line-strong)) calc((100% - 2 * var(--pgap)) / 3 + var(--pgap) / 2) 0 / 1px 100% no-repeat,
      linear-gradient(var(--line-strong), var(--line-strong)) calc((100% - 2 * var(--pgap)) * 2 / 3 + var(--pgap) * 1.5) 0 / 1px 100% no-repeat;
  }
  .pkg__price { grid-row: 4; }
  .pkg__cta   { grid-row: 5; }
  .pkg__list  { grid-row: 6; }
  .pkg__amount { font-size: clamp(3rem, 4.6vw, 4.5rem); }
}

/* ==========================================================================
   Harmonogram – pionowa oś czasu dnia szkolenia
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sched {
  scroll-margin-top: calc(var(--header-h) + 8px);
  padding-block: 0 clamp(96px, 14vw, 200px);
}
.sched__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sched .course__eyebrow,
.sched__title,
.sched__lead { text-align: center; }

.sched__title {
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-size: clamp(2.5rem, 11vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Informacje: 1 dzień | 8 godzin | Wrocław */
.sched__facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}
.sched__facts li {
  padding: 4px clamp(16px, 3vw, 32px);
  font-size: clamp(0.9375rem, 2.6vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.sched__facts li + li { border-left: 1px solid var(--line-strong); }

.sched__lead {
  max-width: 34em;
  margin: clamp(20px, 3vw, 32px) auto 0;
  color: var(--ash);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.55;
}

/* ---------- Oś czasu (telefon: jedna kolumna, czas nad tytułem) ---------- */
.timeline {
  --rail: 7px;                    /* pozycja pionowej linii */
  --pad: 36px;                    /* wcięcie treści od linii */
  position: relative;
  margin: clamp(56px, 9vw, 110px) 0 0;
  padding: 0;
  list-style: none;
}
.timeline::before {             /* złota pionowa linia */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--rail);
  width: 1px;
  background: rgba(200, 164, 92, 0.45);
}
.tl__item {
  position: relative;
  padding: 28px 0 30px var(--pad);
}
.tl__item::after {              /* cienki separator między pozycjami */
  content: "";
  position: absolute;
  left: var(--pad);
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  transition: background-color 0.3s ease;
}
.tl__item:last-child::after { display: none; }
.tl__item::before {             /* znacznik na osi */
  content: "";
  position: absolute;
  left: calc(var(--rail) - 5px);
  top: 37px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 5px var(--ink);   /* odcina linię wokół kropki */
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.tl__time {
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  margin: 0;
  color: var(--brass);
  font-size: clamp(1.375rem, 6.4vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tl__dash { color: var(--ash); font-weight: 600; }
.tl__title {
  margin: 10px 0 0;
  font-size: clamp(1.25rem, 5.6vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  transition: transform 0.3s ease;
}

/* najważniejszy blok praktyczny: 12:00–14:00 */
.tl__item.is-key::before {
  width: 15px;
  height: 15px;
  left: calc(var(--rail) - 7px);
  top: 35px;
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px var(--brass);
}
.tl__item.is-key .tl__title { font-weight: 800; }
.tl__item.is-key::after { background: rgba(200, 164, 92, 0.4); }

@media (hover: hover) and (pointer: fine) {
  .tl__item:hover::before { background: var(--brass-hover); transform: scale(1.25); }
  .tl__item:hover .tl__title { transform: translateX(6px); }
  .tl__item:hover::after { background: var(--line-strong); }
}

/* tablet */
@media (min-width: 640px) {
  .timeline { --rail: 9px; --pad: 56px; }
  .tl__item { padding-block: 34px 36px; }
  .tl__item::before { top: 44px; }
  .tl__item.is-key::before { top: 42px; }
  .tl__time { font-size: 2rem; }
  .tl__title { font-size: 1.75rem; }
}

/* komputer: czas po lewej (pod sobą), oś, tytuł po prawej */
@media (min-width: 900px) {
  .timeline {
    --time-w: clamp(180px, 20vw, 260px);
    --rail: calc(var(--time-w) + 28px);
    --pad: 0px;
  }
  .tl__item {
    display: grid;
    grid-template-columns: var(--time-w) minmax(0, 1fr);
    column-gap: 56px;
    align-items: center;
    padding: 40px 0 42px;
  }
  .tl__item::after { left: 0; }
  .tl__item::before { top: 50%; margin-top: -5.5px; }
  .tl__item.is-key::before { top: 50%; margin-top: -7.5px; }
  .tl__time {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    line-height: 1;
  }
  .tl__dash { font-size: 1.25rem; line-height: 1; }
  .tl__title {
    margin: 0;
    font-size: clamp(1.75rem, 2.9vw, 2.625rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
  }
}

/* notatka końcowa */
.sched__note {
  max-width: 44rem;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding-left: 24px;
  border-left: 2px solid var(--brass);
}
.sched__note-title {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.sched__note p {
  margin: 16px 0 0;
  color: var(--ash);
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.6;
}
.sched__note .sched__note-strong {
  margin-top: 20px;
  color: var(--brass);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ==========================================================================
   FAQ – akordeon w stylu redakcyjnym (bez ramek, kart i cieni)
   ========================================================================== */
.faq {
  scroll-margin-top: calc(var(--header-h) + 8px);
  padding-block: 0 clamp(96px, 14vw, 200px);
}
.faq__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.faq__title {
  margin: clamp(40px, 6vw, 72px) auto 0;
  max-width: 16ch;
  font-size: clamp(2.25rem, 9vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-align: center;
  text-wrap: balance;
}
.faq__list {
  list-style: none;
  margin: clamp(48px, 8vw, 104px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.faq__item { border-bottom: 1px solid var(--line); margin: 0; }
.faq__q { margin: 0; font: inherit; }
.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 64px;
  padding: 20px 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--bone);
  font: inherit;
  font-size: clamp(1.1875rem, 4.6vw, 1.4375rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.faq__qtext { flex: 1; min-width: 0; text-wrap: pretty; }
.faq__btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.faq__btn[aria-expanded="true"] { color: var(--brass); }

/* ikona + / − rysowana dwiema kreskami */
.faq__icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform 0.3s ease;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }

/* płynne rozwijanie: animacja wysokości siatki 0fr → 1fr */
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s;
}
.faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.3s ease, visibility 0s;
}
.faq__panel-in { overflow: hidden; min-height: 0; }
.faq__answer { padding: 4px 0 32px; max-width: 46rem; }
.faq__answer p {
  margin: 0;
  color: var(--ash);
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.65;
}
.faq__answer p + p { margin-top: 16px; }
.faq__gold { color: var(--brass); font-weight: 700; }

@media (hover: hover) and (pointer: fine) {
  .faq__btn:hover { color: var(--brass-hover); }
  .faq__item:hover { border-bottom-color: var(--line-strong); }
}

@media (min-width: 640px) {
  .faq__btn { min-height: 72px; padding-block: 26px; }
  .faq__answer { padding-bottom: 40px; }
}
@media (min-width: 900px) {
  .faq__btn {
    gap: 48px;
    min-height: 96px;
    padding-block: 32px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    letter-spacing: -0.025em;
  }
  .faq__icon { width: 28px; height: 28px; }
  .faq__answer { padding-bottom: 48px; }
}

/* ==========================================================================
   Najbliższe terminy – jeden termin = jeden wiersz z wyborem pakietu
   ========================================================================== */
.terms {
  scroll-margin-top: calc(var(--header-h) + 8px);
  padding-block: 0 clamp(96px, 14vw, 200px);
}
.terms__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.terms__title {
  margin: clamp(40px, 6vw, 72px) 0 0;
  text-align: center;
  font-size: clamp(2.25rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.dates {
  margin: clamp(48px, 7vw, 96px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.date {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-block: 40px;
  border-bottom: 1px solid var(--line-strong);
}

/* data: 25 / WRZEŚNIA / 2026 · PIĄTEK / WROCŁAW */
.date__when {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.date__day {
  font-size: clamp(3.25rem, 13vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.date__month {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.date__meta {
  color: var(--ash);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.date__city {
  margin: 20px 0 0;
  color: var(--bone);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.date__city::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  margin-bottom: 14px;
  background: var(--brass);
}

.date__pick {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* jedna opcja: nazwa → cena → etykieta → warunek → KUP TERAZ */
.opt {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}
.opt__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.opt__name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}
.opt__flame { width: 18px; height: 18px; flex: none; fill: var(--brass); }

/* ceny: telefon – w jednej linii (przekreślona + główna) */
.opt__pricebox {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-top: 12px;
}
.opt__was { margin: 0; color: var(--ash); font-size: 1rem; font-weight: 600; white-space: nowrap; }
.opt__was s { text-decoration-thickness: 1px; }
.opt__price {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
}
.opt__l1,
.opt__l2 { margin: 0; font-size: 0.8125rem; line-height: 1.4; }
.opt__l1 {
  margin-top: 8px;
  color: var(--ash);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.opt__l1--plain { letter-spacing: 0; text-transform: none; font-size: 0.875rem; font-weight: 600; }
.opt__l2 { margin-top: 2px; color: var(--ash); }
.opt__l2--gold {
  color: var(--brass);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.opt__buy {
  margin-top: 16px;
  width: 100%;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--brass);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.opt__buy:hover { background: var(--brass-hover); }

/* tablet: data u góry, trzy opcje w kolumnach – wspólne wiersze */
@media (min-width: 640px) {
  .date__pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .opt { padding: 20px 18px; }
  .opt__name { min-height: 2.6em; align-items: flex-start; }
  .opt__pricebox { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 4px; min-height: 4.4rem; justify-content: flex-end; }
  .opt__l2 { min-height: 2.8em; }
  .opt__buy { margin-top: auto; min-height: 46px; }
}

/* komputer: dane po lewej, trzy opcje po prawej – jeden wiersz */
@media (min-width: 1080px) {
  .date {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding-block: 48px;
  }
  .opt { padding: 22px; }
  .opt__name { min-height: 0; align-items: center; }
  .opt__pricebox { margin-top: 8px; }
  .opt__l2 { margin-bottom: 18px; }
  .opt__buy { margin-top: auto; }
}

/* ==========================================================================
   Certyfikacja – duży złoty tytuł, pod nim przyciemniony certyfikat
   ========================================================================== */
.cert {
  scroll-margin-top: calc(var(--header-h) + 8px);
  padding-block: 0 clamp(96px, 14vw, 200px);
}
.cert__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.cert__stage { margin-top: clamp(40px, 6vw, 72px); }

.cert__text { text-align: center; }
.cert__title {
  margin: 0;
  color: var(--brass);
  /* największe słowo ("CERTYFIKACJA") musi mieścić się w wąskim telefonie */
  font-size: clamp(1.875rem, 10.8vw, 7.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}
.cert__lead {
  margin: clamp(20px, 3vw, 32px) auto 0;
  max-width: 26em;
  color: var(--ash);
  font-size: clamp(1.0625rem, 2.4vw, 1.375rem);
  line-height: 1.5;
}
.cert__lead br { display: none; }
@media (min-width: 640px) { .cert__lead br { display: inline; } }

/* certyfikat: ten sam plik, przyciemniony i lekko zaokrąglony, bez ramki i cienia */
.cert__media {
  position: relative;
  margin: clamp(40px, 6vw, 88px) -10px 0;   /* telefon: prawie cała szerokość ekranu */
  border-radius: 8px;
  overflow: hidden;
}
.cert__img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.52) contrast(1.05) saturate(0.85);
}
.cert__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 13, 0.2);
  pointer-events: none;
}
@media (min-width: 640px) {
  .cert__media { margin-inline: 0; border-radius: 12px; }
}

/* ==========================================================================
   Trenerzy – tekst wprowadzający + dwa duże portrety 50 / 50
   ========================================================================== */
.team {
  scroll-margin-top: calc(var(--header-h) + 8px);
  padding-block: 0 clamp(96px, 14vw, 200px);
}
.team__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.team .course__eyebrow,
.team__title { text-align: center; }

.team__title {
  margin: clamp(14px, 2vw, 24px) 0 0;
  font-size: clamp(2.25rem, 8vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.team__intro {
  max-width: 58rem;
  margin: clamp(20px, 3vw, 32px) auto 0;
  text-align: center;
}
.team__intro p {
  margin: 0 0 0.9em;
  color: var(--ash);
  font-size: clamp(1rem, 1.9vw, 1.125rem);
  line-height: 1.55;
}
.team__intro br { display: none; }
@media (min-width: 900px) { .team__intro br { display: inline; } }

.team__intro .team__strong {
  margin: 1.3em 0 0;
  color: var(--bone);
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.team__strong::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 0 auto 14px;
  background: var(--brass);
}

/* dwa portrety: telefon – jeden pod drugim, od 640 px – dwie równe kolumny */
.team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  max-width: 1200px;
  margin: clamp(28px, 4vw, 48px) auto 0;
}
/* komputer: portrety węższe, żeby twarze mieściły się na pierwszym ekranie po kliknięciu „Trenerzy” */
@media (min-width: 900px) { .team__grid { max-width: clamp(560px, calc((100vh - 300px) * 1.35), 880px); } }
@media (min-width: 640px) {
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
}

.trainer { margin: 0; min-width: 0; }
.trainer__photo {
  display: block;
  width: 100%;
  height: auto;              /* zachowuje proporcje 2:3 – bez kadrowania twarzy i logo */
  aspect-ratio: 2 / 3;
  border-radius: 10px;
}
.trainer__cap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 22px;
}
.trainer__name {
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}
.trainer__role {
  color: var(--brass);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ==========================================================================
   Galeria – nagrania (telefony) + fotogaleria (taśma filmowa) + lightbox
   ========================================================================== */
.gal {
  scroll-margin-top: calc(var(--header-h) + 8px);
  padding-block: 0 clamp(96px, 14vw, 200px);
}
.gal__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.gal .course__eyebrow,
.gal__title,
.gal__lead,
.gal__sub { text-align: center; }

.gal__title {
  max-width: 14em;
  margin: clamp(20px, 3vw, 32px) auto 0;
  font-size: clamp(2.25rem, 7.4vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}
.gal__lead {
  margin: clamp(24px, 3.5vw, 40px) auto 0;
  max-width: 34em;
  color: var(--ash);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.55;
}
.gal__sub {
  margin: clamp(72px, 10vw, 140px) 0 0;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.gal__sub::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 0 auto 24px;
  background: var(--brass);
}
.gal__sub--photos { margin-top: clamp(96px, 13vw, 180px); }

/* ---------- Telefony (neutralne, bez marek) ---------- */
.phones {
  display: flex;
  gap: 20px;
  margin: clamp(40px, 6vw, 72px) calc(var(--gutter) * -1) 0;
  padding: 8px var(--gutter) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.phones::-webkit-scrollbar { display: none; }
.phone {
  flex: none;
  width: min(68vw, 270px);
  scroll-snap-align: center;
}
.phone__body {
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 38px;
  background: #16161a;
}
.phone__screen {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: 30px;
  overflow: hidden;
  background: var(--coal);
  color: var(--bone);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.phone__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* różne proporcje nagrań nie psują układu */
  background: var(--coal);
}
.phone__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
  transition: filter 0.25s ease;
}
.phone__screen:hover .phone__poster { filter: brightness(0.9); }
.phone__ph {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  color: var(--ash);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}
.phone__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.25s ease;
}
.phone__icon {
  width: 68px;
  height: 68px;
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.5;
  transition: transform 0.25s ease;
}
.phone__icon path { fill: var(--brass); stroke: none; }
.phone__icon circle { fill: rgba(12, 12, 13, 0.6); }   /* czytelny przycisk na jasnych kadrach */
.phone__screen:hover .phone__icon { transform: scale(1.06); }
.phone.is-playing .phone__play,
.phone.is-playing .phone__ph { opacity: 0; pointer-events: none; }
.phone__screen--yt { cursor: default; background: #000; }
.phone__screen--yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.phones__note {
  margin: 4px 0 0;
  color: var(--ash);
  font-size: 0.8125rem;
  text-align: center;
}

/* tablet / komputer: trzy telefony w jednym, wyśrodkowanym rzędzie */
@media (min-width: 640px) {
  .phones {
    justify-content: center;
    gap: clamp(20px, 4vw, 56px);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .phone { width: clamp(170px, 22vw, 250px); }
  .phone__body { padding: 8px; border-radius: 34px; }
  .phone__screen { border-radius: 27px; }
  .phone__icon { width: 56px; height: 56px; }
}

/* ---------- Taśma filmowa ---------- */
.film {
  margin: clamp(40px, 6vw, 72px) calc(var(--gutter) * -1) 0;
  padding: 28px var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 164, 92, 0.45) transparent;
  -webkit-overflow-scrolling: touch;
}
.film:focus-visible { outline-offset: -4px; }
.film__strip {
  position: relative;
  display: flex;
  gap: 14px;
  width: max-content;
  margin: 0 auto;
  padding: 46px 26px;
  list-style: none;
  background: #131315;
  border: 1px solid var(--line);
  border-radius: 6px;
}
/* perforacja – górny i dolny pas (proste prostokąty z zaokrągleniem, bez efektów) */
.film__strip::before,
.film__strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='22'%3E%3Crect x='10' y='5' width='14' height='12' rx='3' fill='%230c0c0d'/%3E%3C/svg%3E") repeat-x 6px 0;
  pointer-events: none;
}
.film__strip::before { top: 10px; }
.film__strip::after { bottom: 10px; }

.film__item { flex: none; scroll-snap-align: center; }
.frame {
  position: relative;
  display: block;
  width: min(72vw, 320px);
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #0a0a0b;
  outline: 1px solid rgba(241, 239, 234, 0.08);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), outline-color 0.3s ease;
}
.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* dowolne proporcje zdjęć mieszczą się w kadrze */
  opacity: 0.86;
  transition: opacity 0.3s ease;
}
.frame:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

@media (min-width: 640px) { .frame { width: clamp(240px, 24vw, 340px); } }

/* komputer: zdjęcie lekko rośnie i wysuwa się do przodu */
@media (hover: hover) and (pointer: fine) {
  .film__item:hover { position: relative; z-index: 2; }
  .frame:hover {
    transform: scale(1.07);
    outline-color: rgba(200, 164, 92, 0.6);
    z-index: 2;
  }
  .frame:hover img { opacity: 1; }
}

/* strzałki przewijania – tylko tam, gdzie jest mysz */
.film__nav { display: none; }
@media (hover: hover) and (pointer: fine) {
  .film__nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
  }
  .film__btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--bone);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
  }
  .film__btn:hover { border-color: var(--brass); color: var(--brass); }
  .film__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
}

/* ---------- Lightbox ---------- */
.lb-open { overflow: hidden; }
.lb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 6, 7, 0.94);
  color: var(--bone);
}
.lb:not([open]) { display: none; }
.lb[open] { display: grid; place-items: center; animation: lb-in 0.2s ease-out; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb::backdrop { background: transparent; }
.lb__stage {
  margin: 0;
  max-width: 92vw;
  max-height: 84vh;
}
.lb__img {
  display: block;
  max-width: 92vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;        /* zachowuje proporcje */
  border-radius: 4px;
}
.lb__close,
.lb__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(12, 12, 13, 0.7);
  color: var(--bone);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lb__close:hover,
.lb__nav:hover { border-color: var(--brass); color: var(--brass); }
.lb__close svg,
.lb__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lb__close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lb__prev { left: 16px; top: 50%; margin-top: -24px; }
.lb__next { right: 16px; top: 50%; margin-top: -24px; }
.lb__count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(18px, env(safe-area-inset-bottom));
  margin: 0;
  color: var(--ash);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
}
@media (min-width: 900px) {
  .lb__close, .lb__nav { width: 56px; height: 56px; }
  .lb__close { right: 28px; top: 28px; }
  .lb__prev { left: 28px; margin-top: -28px; }
  .lb__next { right: 28px; margin-top: -28px; }
}
@media (max-width: 639.98px) {
  /* telefon: strzałki na dole, zdjęcie zajmuje środek */
  .lb__prev, .lb__next { top: auto; bottom: max(10px, env(safe-area-inset-bottom)); margin-top: 0; }
  .lb__prev { left: 16px; }
  .lb__next { right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .frame, .frame img, .phone__icon, .phone__play { transition: none !important; }
  .frame:hover { transform: none !important; }
  .lb[open] { animation: none !important; }
}

/* ==========================================================================
   Szybka wiadomość (okno)
   ========================================================================== */
.modal-open { overflow: hidden; }

.quick {
  width: min(480px, calc(100% - 2 * var(--gutter)));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  background: var(--coal);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--bone);
}
.quick::backdrop { background: rgba(6, 6, 7, 0.8); }
.quick[open] { animation: quick-in 0.2s ease-out; }
@keyframes quick-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.quick__panel {
  padding: 28px;
  outline: none;
}

.quick__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.quick__title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.quick__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: -8px -10px 0 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ash);
  cursor: pointer;
  transition: color 0.2s ease;
}
.quick__close:hover { color: var(--bone); }

.quick__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
}
.quick__form[hidden] { display: none; }
.quick__intro {
  margin: 0;
  color: var(--ash);
  font-size: 1rem;
  line-height: 1.55;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.9375rem;
  font-weight: 600;
}
.field textarea,
.field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--bone);
  font: inherit;
  font-size: 1rem; /* min. 16px – iOS nie przybliża strony po kliknięciu */
  line-height: 1.5;
  transition: border-color 0.2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field textarea::placeholder,
.field input::placeholder { color: var(--ash); opacity: 0.8; }
.field textarea:hover,
.field input:hover { border-color: var(--bone); }
.field textarea:focus,
.field input:focus {
  border-color: var(--brass);
  outline: 1px solid var(--brass);
  outline-offset: 0;
}
.field.is-invalid textarea,
.field.is-invalid input { border-color: #e0806f; }
.field__error {
  margin: 0;
  color: #f0a394;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* pole-pułapka: poza ekranem, ukryte dla ludzi */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quick__submit { width: 100%; }
.quick__submit[disabled] { opacity: 0.6; cursor: progress; }

.quick__error {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e0806f;
  border-radius: 4px;
  color: #f0a394;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.quick__error a { color: var(--bone); font-weight: 600; }

.quick__note {
  margin: 0;
  color: var(--ash);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.quick__note a { color: var(--bone); }

.quick__done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
}
.quick__done[hidden] { display: none; }
.quick__done-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.quick__done-text {
  margin: 0;
  color: var(--ash);
  font-size: 1rem;
  line-height: 1.55;
}
.quick__preview {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--brass);
  border-radius: 4px;
  color: var(--bone);
  font-size: 0.875rem;
  line-height: 1.5;
}
.quick__preview strong { color: var(--brass); }

.quick__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ash);
  font-size: 0.9375rem;
}
.quick__alt a {
  padding-block: 6px;
  color: var(--bone);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.quick__alt a:hover { color: var(--brass); border-color: var(--brass); }

/* mobile: okno wysuwa się od dołu */
@media (max-width: 639.98px) {
  .quick__alt span { flex-basis: 100%; }
  .quick {
    width: 100%;
    margin: auto 0 0;
    max-height: calc(100dvh - 24px);
    border-inline: 0;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
  }
  .quick__panel {
    padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- Reduced motion ---------- */
/* ==========================================================================
   Kontakt + stopka
   ========================================================================== */
.icon--brand { fill: currentColor; stroke: none; }

.contact {
  scroll-margin-top: calc(var(--header-h) + 8px);
  padding-block: 0 clamp(72px, 10vw, 140px);
}
.contact__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.contact__title {
  margin: clamp(40px, 6vw, 72px) auto 0;
  font-size: clamp(2.25rem, 9vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-align: center;
}
.contact__grid {
  display: grid;
  gap: 56px;
  margin-top: clamp(48px, 8vw, 96px);
}

.contact__org {
  margin: 0;
  color: var(--bone);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* dane kontaktowe – wiersze rozdzielone cienkimi liniami */
.cinfo { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.cinfo__row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.cinfo__row > .icon { margin-top: 3px; color: var(--brass); }
.cinfo__label {
  margin: 0 0 6px;
  color: var(--ash);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cinfo__value {
  display: inline-block;
  margin: 0;
  font-size: clamp(1.25rem, 5.4vw, 1.625rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--bone);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cinfo__link { padding-block: 4px; transition: color 0.25s ease; }

.contact__sub {
  margin: 48px 0 0;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* WhatsApp / Telegram */
.msg { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.msg__link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 10px 24px 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--bone);
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.msg__icon { width: 30px; height: 30px; color: var(--brass); transition: color 0.25s ease; }
.msg__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msg__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.msg__num { color: var(--ash); font-size: 0.9375rem; line-height: 1.2; white-space: nowrap; }

/* social media – stonowane ikony w cienkich okręgach */
.soc { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.soc__link {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ash);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.soc__link .icon { width: 22px; height: 22px; }

.cinfo__link:focus-visible,
.msg__link:focus-visible,
.soc__link:focus-visible,
.map__open:focus-visible,
.foot a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .cinfo__link:hover { color: var(--brass-hover); }
  .msg__link:hover { border-color: var(--brass); }
  .msg__link:hover .msg__icon { color: var(--brass-hover); }
  .soc__link:hover { color: var(--brass-hover); border-color: var(--brass); }
  .map__open:hover { color: var(--brass-hover); }
}

/* mapa – ciemna, z tym samym promieniem co zdjęcia */
.map {
  position: relative;
  height: clamp(340px, 96vw, 480px);
  overflow: hidden;
  border-radius: 12px;
  background: var(--coal);
}
.map::before {
  content: "Dosufitu Szkolenia \A ul. Stefana Jaracza 88, Wrocław";
  white-space: pre;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ash);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: center;
}
.map__frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* ciemna wersja mapy Google: inwersja + obrót barw + przyciemnienie */
  filter: invert(92%) hue-rotate(180deg) grayscale(0.4) brightness(0.88) contrast(0.92);
}
.map__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 8px;
  color: var(--brass);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.map__open .icon { width: 18px; height: 18px; }

@media (min-width: 640px) {
  .msg { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: stretch;
  }
  .contact__map { display: flex; flex-direction: column; min-height: 560px; }
  .map { flex: 1; height: auto; border-radius: 8px; }
  .msg { grid-template-columns: 1fr; }
}
@media (min-width: 1280px) {
  .msg { grid-template-columns: 1fr 1fr; }
}

/* stopka */
.foot { border-top: 1px solid var(--line); }
.foot__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(28px, 4vw, 40px);
}
.foot__cols { display: grid; gap: 32px; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.foot__brand { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.foot__addr { color: var(--ash); font-size: 0.9375rem; font-style: normal; line-height: 1.6; }
.foot__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ash);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.25s ease;
}
.foot__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.foot__copy { margin: 0; color: var(--ash); font-size: 0.8125rem; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.foot__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ash);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .foot a:hover { color: var(--brass-hover); }
}
@media (min-width: 640px) {
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================================
   O nas – redakcyjnie: duże zdania, cienkie linie, dużo ciemnej przestrzeni
   ========================================================================== */
.about {
  --gap: clamp(72px, 10vw, 140px);
  scroll-margin-top: calc(var(--header-h) + 8px);
  padding-block: 0 clamp(96px, 14vw, 200px);
}
.about__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.about__title {
  margin: clamp(40px, 6vw, 72px) auto 0;
  font-size: clamp(2rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
}

/* wstęp */
.about__intro { max-width: 52rem; margin: clamp(48px, 8vw, 96px) auto 0; }
.about__intro p {
  margin: 0;
  color: var(--ash);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.7;
}
.about__intro .about__lead {
  margin-bottom: 24px;
  color: var(--bone);
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

/* cztery obszary działalności */
.doing {
  list-style: none;
  margin: clamp(56px, 8vw, 96px) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.doing__item { padding: 22px 0 26px; border-top: 1px solid var(--line-strong); }
.doing__name {
  margin: 0;
  font-size: clamp(1.5rem, 6.4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}
.doing__text {
  max-width: 30rem;
  margin: 12px 0 0;
  color: var(--ash);
  font-size: 1rem;
  line-height: 1.6;
}

/* marki i projekty */
.brands { margin-top: var(--gap); }
.brands__title {
  margin: 0;
  color: var(--brass);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brands__list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.proj { padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.proj__name {
  margin: 0;
  font-size: clamp(1.625rem, 7.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.proj__name a { color: inherit; text-decoration: none; cursor: default; transition: color 0.25s ease; }
.proj__name a:not([href="#"]) { cursor: pointer; }
.proj__text {
  margin: 12px 0 0;
  color: var(--ash);
  font-size: clamp(1.0625rem, 2vw, 1.125rem);
  line-height: 1.55;
}
.proj__name a:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .proj__name a:not([href="#"]):hover { color: var(--brass-hover); }
}

/* 10+ lat */
.about__row { display: grid; gap: 40px; }
.about__row .about__intro { margin: clamp(40px, 6vw, 64px) 0 0; max-width: 46rem; }
.years {
  margin-top: 0;
  padding-block: 28px 0;
  border-top: 1px solid var(--line-strong);
}
.years__head { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.years__num {
  color: var(--brass);
  font-size: clamp(5rem, 24vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
}
.years__label {
  font-size: clamp(1rem, 4.4vw, 1.375rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
}
.years__text {
  max-width: 26rem;
  margin: 18px 0 0;
  color: var(--ash);
  font-size: 1rem;
  line-height: 1.65;
}

/* podejście */
.approach { margin-top: var(--gap); text-align: center; }
.approach__title {
  margin: 0;
  font-size: clamp(2.5rem, 12vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}
.approach__title span { color: var(--ash); }
.approach__text {
  max-width: 44rem;
  margin: clamp(32px, 5vw, 56px) auto 0;
  color: var(--ash);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.7;
  text-align: left;
}
.approach__gold {
  max-width: 44rem;
  margin: 28px auto 0;
  color: var(--brass);
  font-size: clamp(1.125rem, 2.6vw, 1.4375rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.45;
  text-align: left;
}

@media (min-width: 900px) {
  .doing { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); border-bottom: 0; }
  .doing__item { padding: 26px 0 36px; }
  .doing__name { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
  .about__row { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); column-gap: clamp(40px, 7vw, 112px); align-items: start; }
  .about__row .about__intro { margin-top: clamp(48px, 6vw, 72px); }
  .years { margin-top: clamp(48px, 6vw, 72px); padding: 0 0 0 clamp(28px, 3.5vw, 48px); border-top: 0; border-left: 1px solid var(--line-strong); }

  .brands { display: grid; grid-template-columns: minmax(0, 1fr); }
  .proj {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    column-gap: clamp(32px, 5vw, 80px);
    align-items: center;
    padding: 34px 0 36px;
  }
  .proj__name { font-size: clamp(2rem, 3.6vw, 3.5rem); }
  .proj__text { margin: 0; }

  .years__num { font-size: clamp(6.5rem, 10vw, 9.5rem); }
}
@media (min-width: 1080px) {
  .doing { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   Dokumenty prawne (okna) + zgoda na cookies
   ========================================================================== */
.legal-open { overflow: hidden; }
.legal {
  width: min(880px, calc(100% - 2 * var(--gutter)));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--bone);
}
.legal[open] { display: flex; animation: quick-in 0.2s ease-out; }
.legal::backdrop { background: rgba(6, 6, 7, 0.86); }
.legal__panel { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.legal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 48px) 24px;
  border-bottom: 1px solid var(--line-strong);
}
.legal__eyebrow {
  margin: 0 0 10px;
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.legal__title {
  margin: 0;
  font-size: clamp(1.875rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.legal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  margin: -6px -10px 0 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ash);
  cursor: pointer;
  transition: color 0.2s ease;
}
.legal__close:hover { color: var(--brass); }
.legal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px clamp(20px, 5vw, 48px) 32px;
}
.legal__lead { margin: 24px 0 0; color: var(--ash); font-size: 1.0625rem; line-height: 1.65; }
.legal__sec { padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal__sec:last-child { border-bottom: 0; }
.legal__h {
  display: flex;
  gap: 14px;
  margin: 0 0 12px;
  font-size: clamp(1.125rem, 3.4vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.legal__n { flex: none; color: var(--brass); font-variant-numeric: tabular-nums; }
.legal__sec p, .legal__body > p { margin: 0 0 12px; color: var(--ash); font-size: 1.0625rem; line-height: 1.7; }
.legal__sec p:last-child { margin-bottom: 0; }
.legal__sec a, .legal__todo a { color: var(--bone); text-underline-offset: 3px; }
.legal__ph { font-style: italic; }
.legal__todo { margin: 28px 0 0; padding-left: 24px; border-left: 2px solid var(--brass); }
.legal__todo p { margin: 12px 0 0; color: var(--ash); font-size: 1.0625rem; line-height: 1.65; }
.legal__todo .legal__todo-title {
  margin: 0;
  color: var(--bone);
  font-size: clamp(1.25rem, 4vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.legal__foot { padding: 16px clamp(20px, 5vw, 48px) 20px; border-top: 1px solid var(--line); }
.legal__back { min-height: 52px; }
.legal__cc { min-height: 48px; }
.legal a:focus-visible, .legal button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

@media (max-width: 639.98px) {
  .legal { width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; margin: 0; }
  .legal__foot .btn { width: 100%; }
}

/* baner cookies */
.cc {
  position: fixed;
  z-index: 60;
  left: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: min(500px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 22px 22px 20px;
  background: var(--coal);
  border: 1px solid var(--line-strong);
  border-top-color: rgba(200, 164, 92, 0.6);
  border-radius: 8px;
}
.cc[hidden] { display: none; }
.menu-open .cc { visibility: hidden; } /* nie zasłania otwartego menu mobilnego */
.cc__label {
  margin: 0 0 8px;
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cc__text { margin: 0; color: var(--ash); font-size: 0.9375rem; line-height: 1.55; }
.cc__text a { color: var(--bone); text-underline-offset: 3px; }
.cc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; }
.cc__btn { min-height: 46px; padding: 0 20px; font-size: 0.9375rem; }
.cc__link {
  min-height: 46px;
  padding: 0 6px;
  background: none;
  border: 0;
  color: var(--bone);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(241, 239, 234, 0.4);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.cc__link:hover { color: var(--brass); }
.cc__settings[hidden] { display: none; }
.cc__list { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.cc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cc__opt { display: flex; flex-direction: column; gap: 3px; min-width: 0; cursor: pointer; }
.cc__name { font-size: 1rem; font-weight: 700; }
.cc__desc { color: var(--ash); font-size: 0.875rem; line-height: 1.45; }
.cc__switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  margin: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.cc__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--ash);
  border-radius: 50%;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.cc__switch:checked { border-color: var(--brass); }
.cc__switch:checked::after { background: var(--brass); transform: translateX(20px); }
.cc__switch:disabled { cursor: not-allowed; opacity: 0.6; }
.cc__switch:focus-visible, .cc__link:focus-visible, .cc__btn:focus-visible, .cc__text a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

@media (max-width: 639.98px) {
  .cc { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 18px 18px 16px; }
  .cc__text { font-size: 0.875rem; }
  .cc__actions { margin-top: 14px; }
  .cc__actions .cc__btn { flex: 1 1 calc(50% - 6px); padding: 0 12px; }
  .cc__actions .cc__link { flex: 1 1 100%; text-align: center; min-height: 44px; }
}

/* ==========================================================================
   Pływający kontakt: „Zapytaj o szkolenie” + WhatsApp (prawy dolny róg)
   ========================================================================== */
.fab {
  --fab-gap: 12px;
  position: fixed;
  z-index: 55;                       /* pod banerem cookies (60), nad treścią */
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  transition: bottom 0.25s ease;
}
/* gdy widać baner cookies, JS ustawia --fab-lift = odległość od dołu ekranu do górnej krawędzi banera */
.fab.is-lifted { bottom: calc(var(--fab-lift, 0px) + var(--fab-gap)); }
.menu-open .fab { visibility: hidden; }     /* nie przeszkadza w otwartym menu mobilnym */

.fab__btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--coal);
  color: var(--bone);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease, padding 0.25s ease;
}
.fab__btn:hover { background: #1b1b1e; }
.fab__btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* 1) zapytanie – złoty akcent */
.fab__ask {
  gap: 10px;
  height: 52px;
  padding: 0 18px 0 16px;
  border-color: rgba(200, 164, 92, 0.6);
}
.fab__ask:hover { border-color: var(--brass); padding-right: 22px; }
.fab__ico { width: 20px; height: 20px; color: var(--brass); flex: none; }
.fab__label {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* 2) WhatsApp – trochę mniejszy, ciemny; zielona tylko ikona */
.fab__wa {
  gap: 10px;
  height: 48px;
  padding: 0 16px 0 12px;
}
.fab__wa:hover { border-color: rgba(241, 239, 234, 0.5); padding-right: 20px; }
.fab__wa-ico { width: 26px; height: 26px; flex: none; }
.fab__wa-text { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.fab__wa-title { font-size: 0.8125rem; font-weight: 700; line-height: 1.15; }
.fab__wa-sub { color: var(--ash); font-size: 0.75rem; line-height: 1.15; white-space: nowrap; transition: color 0.25s ease; }
.fab__wa:hover .fab__wa-sub { color: var(--bone); }

/* telefon: dwa małe przyciski – tylko ikony */
@media (max-width: 639.98px) {
  .fab { gap: 8px; }
  .fab__ask, .fab__wa { justify-content: center; padding: 0; }
  .fab__ask { width: 52px; height: 52px; }
  .fab__wa { width: 46px; height: 46px; }
  .fab__ask:hover, .fab__wa:hover { padding: 0; }
  .fab__label, .fab__wa-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .fab__ico { width: 22px; height: 22px; }
  .fab__wa-ico { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Terminy: przypis do 0 zł* (jedno wyjaśnienie zamiast długiego opisu w każdym wierszu) */
.terms__note {
  margin: clamp(28px, 4vw, 40px) 0 0;
  color: var(--ash);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.terms__note span { color: var(--brass); font-weight: 700; }
.opt__price span[aria-hidden] { color: var(--brass); font-size: 0.6em; vertical-align: 0.5em; margin-left: 2px; letter-spacing: 0; }
