/* Ten sam Montserrat i ta sama paleta co na stronie generatorow. Fonty leza
   lokalnie, zadnego linku do fonts.googleapis.com: adres IP nauczycielki nie
   ma po co trafiac do Google, skoro strona i tak nic o niej nie zbiera. */
@font-face {
  font-family: Montserrat;
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Montserrat;
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #06265d;
  --navy-deep: #031a42;
  --ink: #14213d;
  --green: #2f9d7e;
  --green-dark: #237a64;
  --mint: #dff7ee;
  --paper: #ffffff;
  --warm: #fbfaf7;
  --surface: #f4f7f8;
  --muted: #697688;
  --soft: #8c96a5;
  --line: #e1e6eb;
  --line-strong: #d2d9e1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 14px/1.6 Montserrat, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

/* NAGLOWEK */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(225, 230, 235, .85);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
}
.nav-shell {
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}
.brand { justify-self: start; }
.brand img { width: auto; height: 44px; display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--navy); background: var(--surface); }
/* Link do Akademii wyroznia sama zielona kropka i kolor marki. Tyle wystarczy,
   zeby menu nie zamienilo sie w drugi przycisk CTA obok "Ogladaj nagranie". */
.nav-links .nav-akademia { display: inline-flex; align-items: center; gap: 7px; color: var(--green-dark); }
.nav-links .nav-akademia i { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--mint); }
.nav-links .nav-akademia:hover { color: var(--green-dark); background: var(--mint); }
.nav-cta {
  justify-self: end;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(105deg, var(--navy), #0c477c 55%, var(--green));
  box-shadow: 0 12px 30px rgba(6, 38, 93, .2);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(6, 38, 93, .25); }
.nav-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* HERO */
.hero { position: relative; overflow: hidden; background: var(--warm); }
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 56% at 50% 0%, rgba(6, 38, 93, .09), transparent 72%),
    radial-gradient(30% 46% at 82% 30%, rgba(47, 157, 126, .1), transparent 75%),
    radial-gradient(34% 44% at 12% 88%, rgba(47, 157, 126, .06), transparent 78%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 40px));
  padding: 84px 0 92px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-pill {
  margin: 0;
  padding: 5px 14px 5px 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(105deg, var(--green-dark), var(--green) 55%, #45b795);
  box-shadow: 0 10px 26px rgba(35, 122, 100, .26);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  animation: rise .55s .1s both ease-out;
}
.pill-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.22); }
.pill-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pill-separator { width: 1px; height: 18px; background: rgba(255,255,255,.38); }
.hero h1 {
  margin: 29px 0 20px;
  color: var(--navy-deep);
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.07;
  letter-spacing: -.05em;
  text-wrap: balance;
  text-shadow: 0 15px 50px rgba(6, 38, 93, .12);
  animation: rise .6s .18s both ease-out;
}
.hero-lead {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
  text-wrap: balance;
  animation: rise .6s .26s both ease-out;
}
.hero-actions {
  margin-top: 31px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  animation: rise .6s .34s both ease-out;
}
.hero-meta { margin: 22px 0 0; color: var(--soft); font-size: 11px; font-weight: 700; animation: rise .6s .42s both ease-out; }


/* PRZYCISKI */
.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(105deg, var(--navy), #0c477c 55%, var(--green)); box-shadow: 0 12px 30px rgba(6, 38, 93, .2); }
.button-primary:hover { box-shadow: 0 16px 36px rgba(6, 38, 93, .25); }
.button-secondary { border-color: var(--line-strong); color: var(--navy); background: white; box-shadow: 0 7px 20px rgba(8, 35, 74, .06); }
.button[disabled] { opacity: .55; cursor: default; transform: none; box-shadow: none; }

/* WSPOLNE SEKCJE */
.section-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section-heading { margin-bottom: 40px; display: grid; grid-template-columns: 1.05fr .8fr; align-items: end; gap: 70px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -.045em; }
.section-lede { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.eyebrow { margin: 0 0 11px; display: flex; align-items: center; gap: 8px; color: var(--green-dark); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--mint); }

/* NAGRANIE */
.film-section { padding: 96px 0 100px; background: white; }
/* Rama udaje okno odtwarzacza: cien i zaokraglenie sa na ramie, a nie na samym
   iframe, bo iframe z YouTube potrafi wyjsc poza zaokraglone rogi. */
.film-rama { padding: 10px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(160deg, #f7fbfa, #eef5f3); box-shadow: 0 30px 80px rgba(4, 31, 76, .16); }
.film-plyta { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: var(--navy-deep); }
.film-plyta iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Zaslepka przed podpieciem filmu i tekst bledu: srodek plyty, jasny tekst. */
.film-zaslepka { position: absolute; inset: 0; margin: 0; padding: 24px; display: grid; place-items: center; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 700; text-align: center; }
/* Klikalna miniatura: iframe wchodzi dopiero po kliknieciu, wiec przed nim
   zadne ciasteczko YouTube ani Vimeo sie nie zaklada, a strona wstaje szybciej. */
.film-start { position: absolute; inset: 0; width: 100%; padding: 0; display: grid; place-items: center; border: 0; cursor: pointer; background: var(--navy-deep) center / cover no-repeat; }
.film-start::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,26,66,.34), rgba(3,26,66,.62)); transition: background .2s ease; }
.film-start:hover::before, .film-start:focus-visible::before { background: linear-gradient(180deg, rgba(3,26,66,.24), rgba(3,26,66,.5)); }
.film-start-srodek { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; color: white; }
.film-start-kolo { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(105deg, var(--green-dark), var(--green) 60%, #45b795); box-shadow: 0 18px 44px rgba(6, 38, 93, .45); transition: transform .2s ease; }
.film-start:hover .film-start-kolo { transform: scale(1.06); }
.film-start-kolo svg { width: 30px; height: 30px; margin-left: 4px; fill: white; stroke: none; }
.film-start-podpis { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* MATERIALY */
.materialy-section { padding: 96px 0 104px; background: var(--warm); border-top: 1px solid var(--line); }
/* Oba kafle stoja na wspolnej siatce pieciu wierszy (ikona, tytul, opis, srodek,
   przycisk) i biora ja przez subgrid. Dzieki temu przycisk "Pobierz ebook" stoi
   dokladnie na tej samej wysokosci co "Pobierz certyfikat", mimo ze karty maja
   w srodku zupelnie co innego: obrazek po lewej i formularz po prawej. */
.materialy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto 1fr auto;
  column-gap: 26px;
  row-gap: 0;
}
.material-karta {
  grid-row: 1 / -1;
  display: grid;
  grid-template-rows: subgrid;
  padding: 34px 32px 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 18px 50px rgba(8, 35, 74, .07);
}
.material-ikona { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--green-dark); background: var(--mint); }
.material-ikona svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.material-karta h3 { margin: 20px 0 10px; color: var(--navy); font-size: 20px; letter-spacing: -.02em; }
.material-karta p { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
/* Przycisk ebooka nie ma pod soba formularza, wiec sam z siebie nie ma szerokosci
   calej karty. Zamiast rozciagac go na sile, stawiamy go posrodku.
   `align-self: start` jest tu istotne: bez niego przycisk rozciagalby sie na
   cala wysokosc wiersza (wyzszego o linijke statusu z karty obok) i staly
   nizej niz "Pobierz certyfikat", czyli dokladnie odwrotnie, niz chcemy. */
.material-karta > .button { justify-self: center; align-self: start; }

.material-podglad { display: flex; align-items: center; justify-content: center; padding: 4px 0 26px; }
.material-podglad img { width: auto; max-width: 100%; max-height: 300px; height: auto; }

/* Zielona karta odroznia certyfikat od ebooka: to jedyne miejsce na stronie,
   ktore czegos chce w zamian, wiec ma sie roznic od reszty na pierwszy rzut oka.

   Ciemniejsza zielen wymusila wlasne kolory tekstu. Zwykly --muted (#697688)
   dawal na niej 3.3 kontrastu przy progu 4.5, a i na poprzedniej, jasniejszej
   wersji ledwie 4.25, czyli od poczatku byl za jasny. Kolory nizej sa policzone
   na ciemniejszym koncu gradientu, wiec trzymaja AA na calej powierzchni karty. */
.material-karta-zielona { border-color: #a8d6c1; background: linear-gradient(168deg, #cfe9dc, #bce1d0); }
.material-karta-zielona .material-ikona { background: white; }
.material-karta-zielona p { color: #44505f; }
.material-karta-zielona .cert-zgoda { color: #44505f; }
.material-karta-zielona .cert-zgoda a { color: #175647; }
.material-karta-zielona .cert-status { color: #44505f; }
.material-karta-zielona .cert-status.is-error { color: #8e2f27; }
.material-karta-zielona .cert-input { border-color: #ffffff; background: white; }
.material-karta-zielona .cert-input:focus { border-color: var(--green-dark); box-shadow: 0 0 0 4px rgba(255, 255, 255, .75); }

.cert-form { grid-row: 4 / -1; display: grid; grid-template-rows: subgrid; width: 100%; }
.cert-pola { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 22px; }
.cert-akcja { display: flex; flex-direction: column; gap: 8px; }
.cert-akcja .button { width: 100%; }
.cert-label { color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cert-input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  font: 400 14px/1.6 Montserrat, system-ui, sans-serif;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.cert-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--mint); }
.cert-status { margin: 0; min-height: 18px; color: var(--muted); font-size: 11px; font-weight: 700; }
.cert-status.is-error { color: #b4453c; }
/* Pulapka na boty. Nie `display: none`: czesc botow pomija ukryte pola,
   a to ma wygladac na zwykly input, ktorego czlowiek po prostu nie widzi. */
.cert-pulapka { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cert-zgoda { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.cert-zgoda input { flex: 0 0 15px; width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--green); }
.cert-zgoda a { color: var(--green-dark); font-weight: 700; }

/* AKADEMIA */
.akademia-section { padding: 84px 0; background: #eff8f5; border-top: 1px solid #d9ebe5; }
.akademia-shell { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,1fr); align-items: center; gap: 56px; }
.akademia-copy h2 { max-width: 720px; margin: 0; color: var(--navy); font-size: clamp(28px,3.1vw,44px); line-height: 1.07; letter-spacing: -.045em; }
.akademia-copy > p:not(.eyebrow) { max-width: 650px; margin: 22px 0 30px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.akademia-copy .akademia-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
/* Karta z prawej to zrzut hero ze strony Akademii, wiec nauczycielka widzi
   dokladnie to, co ja czeka po kliknieciu. Ramka udaje okno przegladarki. */
.akademia-karta { display: block; border-radius: 20px; overflow: hidden; background: white; border: 1px solid #d3e6df; box-shadow: 0 24px 70px rgba(4,31,76,.18); transition: transform .18s ease, box-shadow .18s ease; }
.akademia-karta img { display: block; width: 100%; height: auto; }
.akademia-karta:hover, .akademia-karta:focus-visible { transform: translateY(-3px); box-shadow: 0 30px 80px rgba(4,31,76,.24); }

/* STOPKA */
.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-shell { width: min(1180px, calc(100% - 40px)); min-height: 110px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.footer-shell img { height: 36px; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 22px; }
.footer-links a, .back-to-top { color: var(--navy); font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer-links a:hover, .back-to-top:hover { color: var(--green-dark); }
.back-to-top { justify-self: end; }
.back-to-top span { margin-left: 5px; color: var(--green); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .akademia-shell { grid-template-columns: 1fr; gap: 38px; }
  /* Jedna kolumna: karty stoja jedna pod druga, wiec nie ma czego wyrownywac.
     Wracamy do zwyklego ukladu, bo subgrid mialby tu tylko jedna karte na wiersz. */
  .materialy-grid { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 26px; }
  .material-karta { grid-row: auto; display: flex; flex-direction: column; align-items: stretch; }
  .cert-form { display: flex; flex-direction: column; }
  .material-podglad { padding: 4px 0 24px; }
}

@media (max-width: 860px) {
  /* Menu chowa sie tak samo jak na stronie generatorow: zostaje logo i jedno CTA.
     Linki do sekcji sa osiagalne przyciskami w hero, wiec nic nie ginie. */
  .nav-links { display: none; }
  .nav-shell { grid-template-columns: 1fr auto; height: 68px; }
  .nav-cta { padding: 0 15px; font-size: 10px; }
  .hero-content { padding: 60px 0 68px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .button { width: 100%; }
  .film-section, .materialy-section { padding: 64px 0 68px; }
  .akademia-section { padding: 64px 0; }
  .material-karta { padding: 28px 24px 30px; }
  .footer-shell { grid-template-columns: 1fr auto; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; padding-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
.button.is-disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; pointer-events: none; }
