/* ==========================================================================
   NETLEA - netlea.pl
   Autorski arkusz stylow. Bez frameworkow, bez zewnetrznych zaleznosci.
   Kolory marki: cyjan #0cafdc, grafit #18181B, biel #ffffff.
   Tla sa neutralne, lekko chlodne - zadnych cieplych, brazowiacych szarosci.
   ========================================================================== */

/* --- 1. Zmienne ---------------------------------------------------------- */
:root {
  --brand: #0cafdc;
  --brand-strong: #35c4ea;
  --brand-ink: #05222b;          /* tekst na tle akcentu */
  --brand-soft: rgba(12, 175, 220, .12);
  --brand-line: rgba(12, 175, 220, .38);

  --bg: #141417;                 /* podstawowe tlo */
  --bg-deep: #0a0a0c;            /* sekcje naprzemienne */
  --surface: #1c1c20;            /* karty */
  --surface-hi: #24242a;
  --line: rgba(234, 234, 234, .11);
  --line-hi: rgba(234, 234, 234, .20);

  --heading: #ffffff;
  --text: #eaeaea;
  --muted: #a6a6a6;

  --radius: 14px;
  --radius-sm: 8px;
  --shell: 1140px;
  --gap: 28px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);

  color-scheme: dark;
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;      /* wysokosc sticky naglowka */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.015em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0; padding: 0; list-style: none; }

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

/* --- 3. Uklad ------------------------------------------------------------ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--deep { background: var(--bg-deep); }
.section--line { border-top: 1px solid var(--line); }

.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--wide { max-width: 860px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand);
}

.section h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; text-decoration: none; }

/* --- 4. Przyciski -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

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

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-hi);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--heading); }

.btn--block { width: 100%; }

/* --- 5. Naglowek i nawigacja --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 20, 23, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-stuck {
  background: rgba(10, 10, 12, .94);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

/* Znak firmowy - wersja pionowa odwrocona, zgodnie z ksiega znaku.
   Wysokosc 44 px daje ok. 74 px szerokosci, powyzej minimum 60 px. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav a:hover { color: var(--heading); background: rgba(255, 255, 255, .06); text-decoration: none; }
.nav a[aria-current="true"] { color: var(--brand); }

.header-tools { display: flex; align-items: center; gap: 14px; }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.lang a, .lang span {
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--muted);
}
.lang a:hover { color: var(--heading); text-decoration: none; }
.lang [aria-current="page"] { background: var(--brand); color: var(--brand-ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-hi);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle i,
.nav-toggle i::before,
.nav-toggle i::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), background-color .22s var(--ease);
}
.nav-toggle i { margin-inline: auto; position: relative; }
.nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; }
.nav-toggle i::before { top: -6px; }
.nav-toggle i::after { top: 6px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }

/* --- 6. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(80px, 13vw, 150px) 0 clamp(64px, 10vw, 116px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/hero.webp");
  background-size: cover;
  background-position: 62% center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(10, 10, 12, .96) 0%, rgba(12, 12, 15, .90) 44%, rgba(16, 16, 19, .68) 100%),
    linear-gradient(to bottom, rgba(20, 20, 23, .20), var(--bg) 97%);
}

/* Tekst hero ma waska kolumne, ale pasek z kropkami (.hero__meta) korzysta
   z pelnej szerokosci - dzieki temu miesci sie w dwoch rownych wierszach. */
.hero__inner > :not(.hero__meta) { max-width: 730px; }

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 5.4vw, 3.55rem);
  letter-spacing: -.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero__lead {
  max-width: 57ch;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: #d6d6d6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* Siatka z kolumnami dopasowanymi do najdluzszej pozycji - kropki ukladaja sie
   w rowne kolumny w obu wersjach jezykowych, niezaleznie od dlugosci tekstow. */
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 12px 44px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--muted);
}
/* Progi dobrane pomiarem: wersja PL potrzebuje ok. 940 px tresci na trzy kolumny
   (plus marginesy i pasek przewijania, stad prog 1040 px), ok. 680 px na dwie.
   Te same progi dla obu jezykow - uklad pozostaje spojny. */
@media (max-width: 1039px) {
  .hero__meta { grid-template-columns: repeat(2, max-content); }
}
@media (max-width: 780px) {
  .hero__meta { grid-template-columns: 1fr; }
}
.hero__meta li { display: flex; align-items: center; gap: 9px; }
.hero__meta li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* --- 7. Kafelki uslug ---------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--gap);
}

.tile {
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.tile:hover {
  border-color: var(--brand-line);
  background: var(--surface-hi);
  transform: translateY(-3px);
}

.tile__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.tile__icon svg { width: 24px; height: 24px; }

.tile h3 { font-size: 1.12rem; margin-bottom: .5em; }
.tile p { font-size: .96rem; color: var(--muted); margin: 0; }

.note {
  margin-top: 34px;
  padding: 22px 26px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .98rem;
}

/* --- 8. Karty projektow edukacyjnych ------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gap);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--line-hi); transform: translateY(-3px); }

.card--featured {
  border-color: var(--brand-line);
  box-shadow: 0 0 0 1px var(--brand-line);
}
.card--featured:hover { border-color: var(--brand); }

.card__media {
  position: relative;
  aspect-ratio: 1100 / 576;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 28px;
}
.card__body h3 { font-size: 1.22rem; }
.card__body p { font-size: .97rem; color: var(--muted); }

.card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 22px;
}
.card__facts li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--text);
}
.card__facts li.is-price {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
}

.card__cta { margin-top: auto; }

/* Link wyprowadzajacy poza strone. Uzywany w kartach (.card__link) oraz
   samodzielnie, np. pod sekcja "O mnie" i w stopce (.link-out). */
.card__link,
.link-out {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  color: var(--brand-strong);
}
.card__link svg,
.link-out svg { flex: none; width: 15px; height: 15px; transition: transform .18s var(--ease); }
.link-out svg { width: 16px; height: 16px; }
.card__link:hover,
.link-out:hover { text-decoration: none; color: var(--brand); }
.card__link:hover .icon-arrow,
.link-out:hover .icon-arrow { transform: translate(3px, -3px); }

/* --- 9. Certyfikaty ------------------------------------------------------ */
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}

.cert {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.cert:hover { border-color: var(--brand-line); transform: translateY(-3px); }

/* overflow: hidden jest tu konieczne - bez niego pionowy skan rozpycha kafelek
   ponad proporcje 4:3 (minimalny rozmiar treści wygrywa z aspect-ratio). */
.cert__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.cert__thumb img { width: 100%; height: 100%; object-fit: contain; }

.cert__label { padding: 18px 20px 20px; }
.cert__label strong { display: block; color: var(--heading); font-size: 1rem; line-height: 1.35; }
.cert__label span { display: block; margin-top: 6px; font-size: .86rem; color: var(--muted); }

/* Lightbox */
.lightbox {
  width: min(92vw, 1000px);
  max-width: none;
  padding: 0;
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  background: var(--bg-deep);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(10, 10, 10, .86); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #ffffff; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.lightbox__bar p { margin: 0; font-size: .95rem; color: var(--heading); }
.lightbox__close {
  flex: none;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { border-color: var(--brand); color: var(--brand); }

/* --- 10. O mnie ---------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(220px, 290px) 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
/* Zdjecie okragle w ramce w kolorze marki - ramka przylega bezposrednio do zdjecia. */
.about__portrait {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }

.about__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.about__link { margin: 22px 0 0; }

.about__facts strong {
  display: block;
  color: var(--brand);
  font-size: 1.4rem;
  line-height: 1.2;
}
.about__facts span { font-size: .9rem; color: var(--muted); }

/* --- 11. Pasek CTA ------------------------------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 8vw, 92px) 0;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/cta.webp");
  background-size: cover;
  background-position: center;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 12, .93), rgba(10, 10, 12, .96));
}
.cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.cta p { max-width: 60ch; margin-inline: auto; color: #d6d6d6; }
.cta .btn { margin-top: 26px; }

/* --- 12. Kontakt --------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.form { display: grid; gap: 18px; }

/* Odstepy w formularzu robi wylacznie siatka. Marginesy akapitow musza byc
   wyzerowane - inaczej ostatnie pole w wierszu rozciaga sie i pola przestaja
   byc rowne. */
.form p { margin: 0; }

.field {
  display: grid;
  align-content: start;
  gap: 8px;
}
.field label { font-size: .92rem; font-weight: 600; color: var(--heading); }
.field label .req { color: var(--brand); }

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg-deep);
  border: 1px solid var(--line-hi);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus {
  border-color: var(--brand);
  background: #0e0e10;
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { min-height: 156px; resize: vertical; }

.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 18px;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.55;
}
.consent input {
  width: 19px;
  height: 19px;
  margin: 3px 0 0;
  accent-color: var(--brand);
}

/* Pole-pulapka na boty - ukryte przed ludzmi i czytnikami ekranu */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.form__foot small { color: var(--muted); font-size: .84rem; }

.alert {
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: .95rem;
}
.alert--ok { border-color: rgba(12, 175, 220, .5); background: var(--brand-soft); color: var(--text); }
.alert--err { border-color: rgba(226, 92, 92, .55); background: rgba(226, 92, 92, .1); color: #f2c2c2; }
.alert[hidden] { display: none; }

.info-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-card h3 { font-size: 1.05rem; }
.info-card address { font-style: normal; color: var(--muted); line-height: 1.75; }
.info-card dl { margin: 22px 0 0; }
.info-card dt {
  margin-top: 16px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}
.info-card dd { margin: 3px 0 0; }

/* --- 13. Stopka ---------------------------------------------------------- */
.site-footer {
  padding: clamp(48px, 6vw, 72px) 0 36px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  font-size: .93rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.site-footer h4 {
  margin-bottom: 14px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-logo { margin: 0 0 16px; }
.footer-logo img { height: 26px; width: auto; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--brand); }
.site-footer p { color: var(--muted); }

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--muted);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--surface);
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--brand); color: var(--brand); }
.to-top svg { width: 17px; height: 17px; }

/* --- 14. Sekcja prawna --------------------------------------------------- */
.legal { max-width: 800px; }
.legal h3 { font-size: 1.05rem; margin-top: 1.7em; }
.legal p, .legal li { font-size: .95rem; color: var(--muted); }
.legal ul { margin: 0 0 1.1em; padding-left: 1.2em; list-style: disc; }
.legal li { margin-bottom: .4em; }

/* --- 14b. Strona potwierdzenia wysylki (contact.php) --------------------- */
.result { max-width: 640px; }
.result h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.result .alert { margin-bottom: 28px; }

/* --- 15. Animacja pojawiania --------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --- 16. Responsywnosc --------------------------------------------------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 250px; }
  .contact { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 92px; }

  .nav-toggle { display: grid; place-items: center; }

  .nav {
    position: fixed;
    inset: 84px 0 auto;
    z-index: 99;
    display: grid;
    gap: 0;
    padding: 12px 24px 22px;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px rgba(0, 0, 0, .45);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 12px; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav li:last-child a { border-bottom: 0; }

  .field--row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .shell { padding-inline: 20px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }

  /* Miejsce na plywajacy przycisk "do gory" */
  .site-footer { padding-bottom: 86px; }
  .form__foot { flex-direction: column; align-items: stretch; }
  .form__foot .btn { width: 100%; }
}

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

@media print {
  .site-header, .to-top, .form { display: none !important; }
  .hero::before, .hero::after, .cta::before, .cta::after { display: none; }
  body { background: #ffffff; color: #000000; }
}
