/* =============================================================
   non.agency — Next Level Lab (Edukacja)
   Źródło: „Edukacja - Next Level Lab.dc.html", artboardy 1a / 2a.
   Wartości przepisane 1:1 z projektu (inline style → klasy).
   Tokeny (--non-*) z assets/css/non-ds-tokens.css — ładowany obok.
   Prefiks .nll- żeby nic nie kolidowało z Webflow (.button, .grid, .card).
   ------------------------------------------------------------- */

/*
 * Reset lokalny — ten sam wzorzec co w international-seo.css i o-nas.css.
 * Motyw (webflow.css + style.css) dokłada własne marginesy nagłówkom
 * i akapitom oraz kolor linkom; bez tego układ się rozjeżdża, a przyciski
 * dostają fioletowy tekst. :where() ma zerową specyficzność, więc każda
 * klasa niżej wygrywa bez wojny na !important.
 */
.nll *,
.nll *::before,
.nll *::after { box-sizing: border-box; }

:where(.nll) :where(a) { color: inherit; text-decoration: none; }
:where(.nll) :where(h1, h2, h3, p, figure, blockquote) { margin: 0; }
:where(.nll) :where(img) { max-width: 100%; height: auto; display: block; }
:where(.nll) :where(button, input, textarea, select) { font-family: inherit; }

.nll {
  font-family: var(--font-sans);
  color: var(--non-ink);
  background: #fff;
  line-height: 1.5;
}

/* Projekt to kanwa 1440px z marginesem 100px. Trzymamy tę proporcję,
   ale pozwalamy treści oddychać na szerszych ekranach. */
.nll-hero,
.nll-webinars,
.nll-about,
.nll-speakers,
.nll-news,
.nll-cta,
.nll-blog {
  --nll-pad-x: 100px;
}

/* ---------- wspólne ---------- */

.nll-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--non-purple);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.nll-h2 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--non-ink);
  text-wrap: pretty;
}

.nll-h2--sm { font-size: 44px; }

/* ---------- przyciski ---------- */

.nll-btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  height: 64px;
  padding: 0 8px 0 30px;
  border: 0;
  border-radius: 26px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.nll-btn__chip {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex: none;
}

.nll-btn--purple { background: var(--non-purple); color: #fff; }
.nll-btn--purple .nll-btn__chip { background: var(--non-purple-deep); color: #fff; }
.nll-btn--purple:hover { background: var(--non-purple-deep); color: #fff; }

.nll-btn--ghost {
  gap: 0;
  padding: 0 30px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.nll-btn--ghost:hover { background: #fff; color: var(--non-ink); border-color: #fff; }

.nll-btn--white { background: #fff; color: var(--non-ink); }
.nll-btn__chip--purple { background: var(--non-purple); color: #fff; }
.nll-btn--white:hover { background: var(--non-purple); color: #fff; }
.nll-btn--white:hover .nll-btn__chip--purple { background: var(--non-purple-deep); }

/*
 * Zielony przycisk z projektu. W pliku źródłowym stoi `var(--green)` —
 * zmienna, której design system nie definiuje, więc tło wychodziło
 * przezroczyste. Używamy `--non-green`, bo to jest ten wariant opisany
 * w README design systemu („secondary green, chip z fioletową strzałką").
 */
.nll-btn--green {
  height: 60px;
  padding: 0 8px 0 28px;
  gap: 18px;
  background: var(--non-green);
  color: var(--non-purple-deep);
  font-size: 16px;
}
.nll-btn--green .nll-btn__chip {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--non-surface-2);
  color: var(--non-purple-deep);
}
.nll-btn--green:hover { background: #fff; }

.nll-btn--outline {
  height: 60px;
  gap: 14px;
  padding: 0 28px;
  border: 2px solid var(--non-ink);
  background: #fff;
  color: var(--non-ink);
  font-size: 16px;
}
.nll-btn--outline:hover { background: var(--non-ink); color: #fff; }

.nll-btn:focus-visible { outline: 3px solid var(--non-purple); outline-offset: 3px; }
.nll-btn--purple:focus-visible,
.nll-btn--ghost:focus-visible { outline-color: #fff; }

/* ---------- 1. Hero ---------- */

.nll-hero {
  background: var(--non-ink);
  color: #fff;
  padding: 80px var(--nll-pad-x) 88px;
  position: relative;
  overflow: hidden;
}

.nll-hero__inner { max-width: 1240px; margin: 0 auto; }

.nll-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
}

.nll-wordmark__text {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
}

.nll-wordmark__text em { font-style: italic; }
.nll-wordmark__underline { display: block; margin-top: 8px; max-width: 100%; }

.nll-hero__eyebrow {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--non-green);
  font-size: 14px;
  font-weight: 600;
}

.nll-hero__title {
  margin-top: 20px;
  font-size: 84px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
  color: #fff;
  max-width: 1000px;
  text-wrap: pretty;
}

.nll-hero__copy {
  margin-top: 28px;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nll-hero__copy p {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.62);
  text-wrap: pretty;
}

.nll-hero__copy b { color: #fff; font-weight: 700; }

.nll-hero__actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 2. Webinary ---------- */

.nll-webinars { padding: 88px var(--nll-pad-x) 96px; background: #fff; }

.nll-webinars__head {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.nll-webinars__intro { display: flex; flex-direction: column; gap: 14px; }
.nll-webinars__intro .nll-h2 { max-width: 720px; }

.nll-filters { display: flex; gap: 8px; flex: none; padding-bottom: 6px; flex-wrap: wrap; }

.nll-filter {
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--non-surface-2);
  background: #fff;
  color: var(--non-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.nll-filter:hover { border-color: var(--non-mute-2); }
.nll-filter.is-active { background: var(--non-ink); color: #fff; border-color: var(--non-ink); }
.nll-filter:focus-visible { outline: 3px solid var(--non-purple); outline-offset: 2px; }

.nll-webinars__list {
  max-width: 1240px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nll-card {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 40px;
  align-items: center;
  border: 3px solid var(--non-surface-2);
  border-radius: 24px;
  padding: 24px;
  transition: border-color 200ms ease;
}

.nll-card--upcoming { background: var(--non-purple); }
.nll-card--upcoming:hover { border-color: var(--non-purple); }
.nll-card--recorded { background: #fff; }
.nll-card--recorded:hover { border-color: var(--non-ink); }

.nll-card__img,
.nll-card__media .nll-img--empty {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Ramka na czas, gdy grafiki nie ma jeszcze w Bibliotece mediów. */
.nll-img--empty { background: var(--non-surface-2); }

.nll-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-right: 32px;
}

.nll-card__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.nll-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nll-badge--upcoming { background: var(--non-purple); color: #fff; }
.nll-badge__dot { width: 7px; height: 7px; border-radius: 999px; background: var(--non-green); }

.nll-badge--recorded {
  background: var(--non-surface);
  border: 2px solid var(--non-surface-2);
  color: var(--non-mute);
}

.nll-card__date { font-size: 14px; font-weight: 500; }
.nll-card--upcoming .nll-card__date { color: #fff; }
.nll-card--recorded .nll-card__date { color: var(--non-mute); }

.nll-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nll-card--upcoming .nll-lang { background: rgba(255, 255, 255, 0.16); color: #fff; }
.nll-card--recorded .nll-lang {
  background: var(--non-surface);
  border: 2px solid var(--non-surface-2);
  color: var(--non-ink);
}

.nll-card__title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
  text-wrap: pretty;
}

.nll-card__text { font-size: 16px; line-height: 1.5; max-width: 560px; text-wrap: pretty; }
.nll-card__hosts { font-size: 14px; font-weight: 600; }

.nll-card--upcoming .nll-card__title,
.nll-card--upcoming .nll-card__text,
.nll-card--upcoming .nll-card__hosts { color: #fff; }

.nll-card--recorded .nll-card__title { color: var(--non-ink); }
.nll-card--recorded .nll-card__text { color: var(--non-mute); }
.nll-card--recorded .nll-card__hosts { color: var(--non-ink); }

.nll-card .nll-btn { margin-top: 8px; }

.nll-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--non-mute);
  font-size: 16px;
}

/* ---------- 3. O projekcie ---------- */

.nll-about { padding: 88px var(--nll-pad-x); background: var(--non-surface); }

.nll-about__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.nll-about__copy { display: flex; flex-direction: column; gap: 20px; }

.nll-about__text { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }

.nll-about__text p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--non-mute);
  text-wrap: pretty;
  text-align: justify;
}

.nll-about__text b { color: var(--non-ink); font-weight: 700; }

.nll-about__cards { display: flex; flex-direction: column; gap: 16px; }

.nll-acard {
  background: #fff;
  border: 3px solid var(--non-surface-2);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.nll-acard__icon { color: var(--non-purple); flex: none; margin-top: 4px; display: inline-flex; }
.nll-acard__body { display: flex; flex-direction: column; gap: 8px; }

.nll-acard__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--non-ink);
  line-height: 1.25;
}

.nll-acard__text { font-size: 15px; line-height: 1.5; color: var(--non-mute); }

/* ---------- 4. Prelegenci ---------- */

.nll-speakers { padding: 88px var(--nll-pad-x); background: #fff; }

.nll-speakers__head {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nll-speakers__head .nll-h2 { max-width: 760px; }

.nll-speakers__grid {
  max-width: 1240px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nll-person { display: flex; align-items: center; gap: 20px; }

/* Kafel prowadzący do profilu autora — obramowanie zdjęcia reaguje na hover,
   zgodnie z resztą marki: zmiana koloru, bez ruchu i bez poświaty. */
.nll-person--link { transition: color 200ms ease; }
.nll-person--link .nll-person__photo { transition: border-color 200ms ease; }
.nll-person--link:hover .nll-person__photo { border-color: var(--non-purple); }
.nll-person--link:hover .nll-person__name { color: var(--non-purple); }
.nll-person--link:focus-visible { outline: 3px solid var(--non-purple); outline-offset: 4px; border-radius: 8px; }

.nll-person__photo {
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 999px;
  overflow: hidden;
  background: var(--non-surface);
  border: 3px solid var(--non-surface-2);
  display: grid;
  place-items: center;
}

.nll-person__photo img { width: 100%; height: 100%; object-fit: cover; }

.nll-person__initials {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--non-mute-2);
}

.nll-person__copy { display: flex; flex-direction: column; gap: 4px; }

.nll-person__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--non-ink);
  line-height: 1.2;
  transition: color 200ms ease;
}

.nll-person__role { font-size: 14px; color: var(--non-mute); }

/* ---------- 5. Newsletter ---------- */

.nll-news { padding: 0 var(--nll-pad-x) 96px; background: #fff; }

.nll-news__card {
  max-width: 1240px;
  margin: 0 auto;
  border: 3px solid var(--non-surface-2);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 56px;
  align-items: center;
  background: var(--non-surface);
}

/*
 * Miniatury webinarów są 16:9. Sztywne 380px wysokości przy 480px kolumny
 * dawało kadr 5:4, więc `cover` ucinał grafice boki razem z tytułem.
 * Pudełko trzyma teraz proporcje źródła — nic się nie przycina.
 */
.nll-news__img,
.nll-news__media .nll-img--empty {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.nll-news__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 40px 24px 0;
}

.nll-news__body .nll-h2 { max-width: 560px; }

.nll-news__text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--non-mute);
  max-width: 540px;
  text-wrap: pretty;
}

/* ---------- formularze zapisu ---------- */

.nll-signup {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
  width: 100%;
  max-width: 560px;
}

.nll-signup__row { display: flex; gap: 12px; flex-wrap: wrap; }

.nll-input {
  flex: 1;
  min-width: 220px;
  height: 60px;
  border-radius: 26px;
  border: 2px solid var(--non-surface-2);
  background: #fff;
  padding: 0 24px;
  font-size: 16px;
  letter-spacing: -0.03em;
  color: var(--non-ink);
  outline: none;
  transition: border-color 200ms ease;
}

.nll-input::placeholder { color: var(--non-mute); }
.nll-input:focus { border-color: var(--non-purple); }

.nll-input-btn {
  flex: none;
  height: 60px;
  padding: 0 30px;
  border: none;
  border-radius: 26px;
  background: var(--non-purple);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: background 200ms ease;
}

.nll-input-btn:hover { background: var(--non-purple-deep); }
.nll-input-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.nll-input-btn:focus-visible { outline: 3px solid var(--non-ink); outline-offset: 3px; }

/* Wariant z projektu newslettera — ciemny przycisk, fioletowy na hoverze. */
.nll-input-btn--ink { background: var(--non-ink); }
.nll-input-btn--ink:hover { background: var(--non-purple); }

.nll-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
  color: var(--non-mute);
}

.nll-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--non-purple);
}

.nll-consent { font-size: 13px; line-height: 1.45; color: var(--non-mute); }

/* Karta „nadchodzący" jest fioletowa — tekst zgody musi na niej być czytelny. */
.nll-card--upcoming .nll-check,
.nll-card--upcoming .nll-consent { color: rgba(255, 255, 255, 0.78); }

.nll-form-msg {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 26px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nll-form-msg.is-ok {
  background: #fff;
  border: 3px solid var(--non-green);
  color: var(--non-ink);
}

.nll-form-msg.is-error {
  background: #fef2f2;
  border: 2px solid var(--non-red);
  color: #7f1d1d;
}

/*
 * Etykieta tylko dla czytników ekranu. Motyw ma `.screen-reader-text`
 * w style.css z korzenia, ale ten plik nie jest wcale wczytywany na froncie
 * (enqueue idzie po assets/css/style.css) — więc definiujemy własną.
 */
.nll-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Honeypot — ukryty przed człowiekiem, obecny w DOM dla botów. */
.nll-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 6. CTA konsultacja ---------- */

.nll-cta { padding: 0 var(--nll-pad-x) 96px; background: var(--non-surface); }

.nll-cta__inner {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 3px solid var(--non-surface-2);
  padding-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: wrap;
}

.nll-cta__copy { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.nll-cta__copy .nll-h2 { font-size: 40px; }

.nll-cta__text {
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: var(--non-mute);
  text-wrap: pretty;
}

/* ---------- 7. Pasek do bloga ---------- */

.nll-blog {
  background: var(--non-ink);
  padding: 56px var(--nll-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.nll-blog__copy { display: flex; flex-direction: column; gap: 10px; }

.nll-blog__title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
}

.nll-blog__text { font-size: 17px; color: rgba(255, 255, 255, 0.6); max-width: 640px; }

/* ---------- responsywność ---------- */

@media (max-width: 1200px) {
  .nll-hero,
  .nll-webinars,
  .nll-about,
  .nll-speakers,
  .nll-news,
  .nll-cta,
  .nll-blog { --nll-pad-x: 48px; }

  .nll-hero__title { font-size: 64px; }
  .nll-card { grid-template-columns: 400px 1fr; gap: 28px; }
  .nll-news__card { grid-template-columns: 380px 1fr; gap: 32px; }
  .nll-about__grid { gap: 48px; }
}

@media (max-width: 900px) {
  .nll-card,
  .nll-news__card { grid-template-columns: 1fr; }

  .nll-card__body { padding-right: 0; }
  .nll-news__body { padding: 0; }
  .nll-news__img,
  .nll-news__media .nll-img--empty { height: auto; }

  .nll-about__grid { grid-template-columns: 1fr; }
  .nll-about__text p { text-align: left; }
  .nll-speakers__grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  .nll-hero,
  .nll-webinars,
  .nll-about,
  .nll-speakers,
  .nll-news,
  .nll-cta,
  .nll-blog { --nll-pad-x: 20px; }

  .nll-hero { padding-top: 56px; padding-bottom: 64px; }
  .nll-hero__title { font-size: 40px; }
  .nll-hero__copy p { font-size: 17px; }
  .nll-hero__actions .nll-btn { width: 100%; justify-content: space-between; padding-left: 24px; }
  .nll-btn--ghost { justify-content: center; }

  .nll-webinars { padding-top: 56px; padding-bottom: 64px; }
  .nll-h2 { font-size: 32px; }
  .nll-h2--sm { font-size: 28px; }
  .nll-cta__copy .nll-h2 { font-size: 28px; }
  .nll-card { padding: 16px; }
  .nll-card__title { font-size: 26px; }
  .nll-about,
  .nll-speakers { padding-top: 56px; padding-bottom: 56px; }
  .nll-acard { padding: 24px; }
  .nll-acard__title { font-size: 19px; }
  .nll-blog__title { font-size: 26px; }
  .nll-input-btn { width: 100%; }
}

/* Marka jest „precyzyjna, nie rozbrykana" — kto wyłączył animacje,
   dostaje układ bez żadnych przejść. */
@media (prefers-reduced-motion: reduce) {
  .nll *,
  .nll *::before,
  .nll *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
