/* ==========================================================================
   NUTW - Nowodworski Uniwersytet Trzeciego Wieku
   Tokeny i komponenty. Wersja 1.0 (2026-09-02)

   Gdzie wkleić:
   - Elementor Pro: Site Settings -> Custom CSS (całość), albo
   - Hello Child Theme: style.css

   Wszystkie kolory sprawdzone na kontrast (patrz DESIGN.md, rozdz. 3).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokeny
   -------------------------------------------------------------------------- */
:root {
  /* Tekst */
  --nutw-ink: #231f20;        /* 16.3:1 na bieli */
  --nutw-ink-2: #4b4b55;      /* 8.6:1 na bieli */
  --nutw-ink-3: #5e5e68;      /* 6.4:1 na bieli, tylko >= 18px */

  /* Marka (z logo) */
  --nutw-primary: #3b3b98;       /* granat, 8.8:1 */
  --nutw-primary-dark: #2e2e7a;  /* hover, stopka, 11.1:1 */
  --nutw-link: #1f4fb5;          /* linki, 7.0:1 */
  --nutw-sky: #1b9cfc;           /* TYLKO dekoracja, 2.7:1 */
  --nutw-red: #d63031;           /* plakietki, tekst >= 24px bold, 4.6:1 */
  --nutw-red-text: #a52326;      /* czerwony tekst, 6.9:1 */

  /* Tła: strona biała, błękit z plakatów jako tło co drugiej sekcji.
     Krem z druku nie wchodzi na stronę, zostaje w materiałach drukowanych. */
  --nutw-bg: #ffffff;         /* tło strony */
  --nutw-bg-alt: #edf9f9;     /* błękit z plakatów: co druga sekcja */
  --nutw-bg-row: #f6fbfb;     /* co drugi wiersz tabeli */
  --nutw-surface: #ffffff;    /* karty, tabele */
  --nutw-footer: #2e2e7a;

  /* Linie */
  --nutw-line: #cfdde0;       /* linie w tabelach */
  --nutw-line-card: #dbe7ea;  /* obrys kart na białym tle */
  --nutw-line-strong: #5e5e68;
  --nutw-focus: #3b3b98;

  /* Stany */
  --nutw-ok: #1e7a3c;
  --nutw-warn: #8a5a00;
  --nutw-error: #a52326;

  /* Typografia */
  --nutw-font: "Fira Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --nutw-text-base: 20px;
  --nutw-text-small: 17px;
  --nutw-leading: 1.6;
  --nutw-measure: 65ch;

  /* Odstępy (skala 8px) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  /* Kształty */
  --radius-sm: 8px;    /* przyciski, pola, plakietki */
  --radius-md: 12px;   /* karty, zdjęcia */
  --radius-lg: 16px;   /* zdjęcie hero */

  --shadow-card: 0 2px 8px rgba(46, 46, 122, 0.08);
  --transition: 150ms ease-out;

  /* Layout */
  --container: 1200px;
  --measure-px: 720px;
}

@media (max-width: 767px) {
  :root {
    --nutw-text-base: 18px;
  }
}

/* --------------------------------------------------------------------------
   2. Baza i dostępność
   -------------------------------------------------------------------------- */
html {
  font-size: var(--nutw-text-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--nutw-font);
  font-size: var(--nutw-text-base);
  line-height: var(--nutw-leading);
  color: var(--nutw-ink);
  background: var(--nutw-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Stopka trzyma się dołu ekranu także na krótkich podstronach */
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body > .elementor-location-header {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 100;
}
body > .site-main { flex: 1 0 auto; }
body > .elementor-location-footer { flex: 0 0 auto; margin-top: auto; }

/* Elementor i niektóre motywy kasują outline. Przywracamy jeden, wyraźny. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--nutw-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.site-footer :where(a, button):focus-visible {
  outline-color: #ffffff;
}

/* Link "przejdź do treści" (Hello Theme ma własny, upewniamy się, że jest widoczny po fokusie) */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 1000;
  padding: var(--space-2) var(--space-3);
  background: var(--nutw-primary);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: var(--space-2);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   3. Typografia
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--nutw-font);
  color: var(--nutw-ink);
  text-wrap: balance;
  margin: 0 0 0.75em;
}
h1 { font-size: 44px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: 34px; font-weight: 700; line-height: 1.2; margin-top: 2em; }
h3 { font-size: 26px; font-weight: 700; line-height: 1.3; margin-top: 1.5em; }
h4 { font-size: 22px; font-weight: 700; line-height: 1.35; }

.display { font-size: 52px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.lead    { font-size: 24px; line-height: 1.5; color: var(--nutw-ink-2); max-width: var(--nutw-measure); }
.small   { font-size: var(--nutw-text-small); line-height: 1.55; }
.label   { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.num     { font-variant-numeric: tabular-nums; font-weight: 500; }

@media (max-width: 767px) {
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  h3 { font-size: 23px; }
  h4 { font-size: 20px; }
  /* Hero na telefonie musi zmieścić przycisk nad zgięciem ekranu */
  .display { font-size: 32px; line-height: 1.15; }
  .lead { font-size: 19px; line-height: 1.45; }
}

p, li {
  max-width: var(--nutw-measure);
}
p { margin: 0 0 1em; }

ul.nutw-list { padding-left: 1.5em; }
ul.nutw-list li { margin-bottom: 0.5em; }
ul.nutw-list li::marker { color: var(--nutw-primary); }

strong, b { font-weight: 700; }

/* Linki w treści */
.entry-content a,
.nutw-prose a,
a.nutw-link {
  color: var(--nutw-link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-thickness var(--transition);
}
.entry-content a:hover,
.nutw-prose a:hover,
a.nutw-link:hover {
  color: var(--nutw-primary-dark);
  text-decoration-thickness: 3px;
}

/* --------------------------------------------------------------------------
   4. Przyciski
   -------------------------------------------------------------------------- */
.btn,
.elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 56px;
  min-width: 160px;
  padding: 0 28px;
  font-family: var(--nutw-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}
.btn:active,
.elementor-button:active {
  transform: translateY(1px);
}
.btn svg, .btn i { width: 24px; height: 24px; flex: none; }

.btn-primary,
.elementor-button { background: var(--nutw-primary); color: #fff; }
.btn-primary:hover,
.elementor-button:hover { background: var(--nutw-primary-dark); color: #fff; transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--nutw-primary); border-color: var(--nutw-primary); }
.btn-secondary:hover { background: var(--nutw-bg-alt); color: var(--nutw-primary-dark); }

.btn-urgent { background: var(--nutw-red); color: #fff; }
.btn-urgent:hover { background: var(--nutw-red-text); color: #fff; }

@media (max-width: 767px) {
  .btn, .elementor-button { width: 100%; }
}

/* --------------------------------------------------------------------------
   5. Nagłówek i nawigacja
   -------------------------------------------------------------------------- */
/* Nagłówek i stopkę buduje Theme Builder Elementora.
   Reguły dla nich są w sekcji 10 (Elementor). Tu tylko wysokość i przyklejenie. */
.site-header {
  background: var(--nutw-surface);
  border-bottom: 1px solid var(--nutw-line);
  min-height: 88px;
}
@media (max-width: 1024px) {
  .site-header { min-height: 72px; }
}

/* --------------------------------------------------------------------------
   6. Sekcje, karty, boksy
   -------------------------------------------------------------------------- */
.section { padding: var(--space-7) 0; }
.section--alt { background: var(--nutw-bg-alt); }
@media (max-width: 767px) { .section { padding: var(--space-6) 0; } }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
@media (max-width: 767px) { .container { padding: 0 20px; } }

/* Hero na bieli, u dołu falisty podział przechodzący w błękitną sekcję.
   Fala to motyw z plakatów i Informatora NUTW. */
.hero-section { position: relative; overflow: hidden; }
.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 72px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,52 C220,96 430,8 700,34 C930,56 1180,104 1440,54 L1440,100 L0,100 Z' fill='%23edf9f9'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-section > .e-con-inner { position: relative; z-index: 1; }
@media (max-width: 767px) {
  .hero-section::after { height: 44px; }
}

.card {
  background: var(--nutw-surface);
  border: 1px solid var(--nutw-line-card);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.section--alt .card { border-color: transparent; }

.info-box {
  background: var(--nutw-surface);
  border: 1px solid var(--nutw-line-card);
  border-radius: var(--radius-md);
  border-left: 6px solid var(--nutw-primary);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3) var(--space-4);
}
.info-box > div { max-width: none; }
.info-box .sub { font-size: var(--nutw-text-small); color: var(--nutw-ink-2); margin-top: 4px; }
@media (max-width: 767px) { .info-box { grid-template-columns: 1fr; } }
.info-box--urgent { border-left-color: var(--nutw-red); }
.info-box .label { color: var(--nutw-ink-2); margin-bottom: var(--space-1); }
.info-box .value { font-size: 22px; font-weight: 700; }
.info-box--urgent .value--date { color: var(--nutw-red-text); }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--nutw-primary);
  color: #fff;
}
.badge--urgent { background: var(--nutw-red); }

/* Oferta jako lista: jedna pozycja w wierszu, ikona plus nazwa na białym pasku.
   Czyta się spokojniej niż siatka i zwalnia miejsce na zdjęcie obok. */
.offer-list {
  display: grid;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.offer-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 8px var(--space-3);
  background: var(--nutw-surface);
  border-radius: var(--radius-md);
  max-width: none;
  margin: 0;
}
.offer-item svg { width: 28px; height: 28px; color: var(--nutw-primary); flex: none; }
.offer-item span { font-size: 20px; font-weight: 700; line-height: 1.3; }

/* Zdjęcie obok listy wypełnia całą wysokość kolumny, żeby oba bloki kończyły
   się w tej samej linii. Kadr traci po ok. 8% z boków, czyli nikogo nie ucina. */
.offer-photo,
.offer-photo .elementor-widget-container { height: 100%; }
.offer-photo img {
  height: 100%;
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center 45%;
  border-radius: var(--radius-md);
}
@media (max-width: 767px) {
  .offer-item { min-height: 48px; }
  .offer-item span { font-size: 18px; }
  /* Na telefonie kolumny są jedna pod drugą, więc wracamy do stałych proporcji */
  .offer-photo, .offer-photo .elementor-widget-container { height: auto; }
  .offer-photo img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
}

/* Kafelki oferty */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.tile {
  background: var(--nutw-surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 150px;
}
.tile svg { width: 48px; height: 48px; color: var(--nutw-primary); flex: none; }
.tile h3 { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 0; max-width: none; }
@media (max-width: 1024px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .tile-grid { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* Dokumenty */
.doc-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 767px) { .doc-list { grid-template-columns: 1fr; } }
.doc-card {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--nutw-surface);
  border: 1px solid var(--nutw-line-card);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--transition), border-color var(--transition);
}
.doc-card:hover { background: var(--nutw-bg-alt); border-color: var(--nutw-bg-alt); }
.section--alt .doc-card { border-color: transparent; }
.doc-card svg { width: 32px; height: 32px; color: var(--nutw-primary); flex: none; margin-top: 4px; }
.doc-card .doc-body { display: flex; flex-direction: column; gap: 4px; }
.doc-card .title { font-size: 20px; font-weight: 700; color: var(--nutw-link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc-card .meta { font-size: var(--nutw-text-small); color: var(--nutw-ink-2); }

/* --------------------------------------------------------------------------
   7. Tabele (plan zajęć, dyżury) z listą kart na mobile
   -------------------------------------------------------------------------- */
.nutw-table-wrap {
  background: var(--nutw-surface);
  border: 1px solid var(--nutw-line-card);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}
.section--alt .nutw-table-wrap { border-color: transparent; }
.nutw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--nutw-text-base);
}
.nutw-table th {
  text-align: left;
  background: var(--nutw-bg-alt);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 20px;
}
.nutw-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--nutw-line);
  vertical-align: top;
  min-height: 64px;
}
.nutw-table tbody tr:nth-child(even) td { background: var(--nutw-bg-row); }
.nutw-table tbody tr:last-child td { border-bottom: 0; }
.nutw-table .num { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }

@media (max-width: 767px) {
  .nutw-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nutw-table, .nutw-table tbody, .nutw-table tr, .nutw-table td { display: block; }
  .nutw-table tr {
    border: 1px solid var(--nutw-line);
    border-radius: var(--radius-sm);
    padding: var(--space-2);
    margin-bottom: var(--space-2);
    background: var(--nutw-surface) !important;
  }
  .nutw-table td { border: 0; padding: 6px 0; background: transparent !important; }
  .nutw-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nutw-ink-2);
  }
}

/* Plan zajęć: jedna tabela na dzień tygodnia */
.plan-days { display: flex; flex-direction: column; gap: var(--space-5); }
.plan-days h3 { margin: 0 0 var(--space-2); }
/* Te same szerokości kolumn we wszystkich dniach, żeby wzrok nie skakał */
.plan-days .nutw-table { table-layout: fixed; }
.plan-days .nutw-table th:first-child,
.plan-days .nutw-table td:first-child { width: 170px; }
.plan-days .nutw-table th:nth-child(2),
.plan-days .nutw-table td:nth-child(2) { width: 300px; }
@media (max-width: 767px) {
  .plan-days .nutw-table { table-layout: auto; }
  .plan-days .nutw-table td { width: auto !important; }
}

/* Kroki zapisu: numerowana lista, numer w granatowym kółku */
.steps { list-style: none; counter-reset: krok; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.steps li {
  counter-increment: krok;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-3);
  align-items: start;
  max-width: 72ch;
}
.steps li > span { align-self: center; }
.steps li::before {
  content: counter(krok);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--nutw-primary);
  color: #fff;
  font-weight: 700;
  font-size: 22px;
}

/* Kontakt: telefon i mail dużą czcionką, z ikoną */
.contact-lines { display: flex; flex-direction: column; gap: var(--space-2); max-width: none; }
.contact-lines a, .contact-lines .contact-addr {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
}
.contact-lines svg { color: var(--nutw-primary); flex: none; }
.contact-phone { font-size: 26px; font-weight: 700; }
.contact-mail { font-size: 22px; }
.contact-addr { font-size: 20px; align-items: flex-start; }
.contact-addr svg { margin-top: 4px; }
.org-card h3 { margin-top: 0; }
.org-card p:last-child { margin-bottom: 0; }

/* Harmonogram roku: lista data + nazwa */
.timeline { list-style: none; padding: 0; margin: 0; max-width: none; }
.timeline li {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--nutw-line);
  max-width: none;
}
.timeline li:last-child { border-bottom: 0; }
.timeline .date { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--nutw-primary); }
@media (max-width: 767px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

/* --------------------------------------------------------------------------
   8. Formularze (na przyszłość)
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-3); }
.field label { font-size: 20px; font-weight: 700; }
.field .hint { font-size: var(--nutw-text-small); color: var(--nutw-ink-2); }
.field input, .field select, .field textarea {
  min-height: 56px;
  padding: 12px 16px;
  font: inherit;
  font-size: 20px;
  color: var(--nutw-ink);
  background: var(--nutw-surface);
  border: 2px solid var(--nutw-line-strong);
  border-radius: var(--radius-sm);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--nutw-primary);
  outline: 3px solid var(--nutw-focus);
  outline-offset: 2px;
}
.field.is-error input { border-color: var(--nutw-error); }
.field .error { font-size: var(--nutw-text-small); font-weight: 700; color: var(--nutw-error); }

/* --------------------------------------------------------------------------
   9. Stopka
   -------------------------------------------------------------------------- */
/* Tło i odstępy stopki ustawia kontener Elementora. Tu tylko kolory treści. */
.site-footer { color: #fff; font-size: var(--nutw-text-small); }
.site-footer a { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.site-footer a:hover { text-decoration-thickness: 3px; }

/* --------------------------------------------------------------------------
   10. Elementor: poprawki domyślnych zachowań
   -------------------------------------------------------------------------- */
/* Elementor lubi nadpisywać typografię widgetów; trzymamy skalę z DESIGN.md */
.elementor-widget-heading .elementor-heading-title { text-wrap: balance; }
.elementor-widget-text-editor { max-width: var(--measure-px); }
.elementor-widget-text-editor p { max-width: none; }

/* Nagłówek zbudowany w Theme Builderze: logo (html) + nav-menu.
   Elementor dokłada kontenerowi własny padding 20 px; zerujemy go,
   bo inaczej pasek rośnie do 130 px zamiast zakładanych 88 px. */
.site-header.e-con { padding-block: 0; }
.site-header > .e-con-inner { padding-block: 12px; }
/* Marginesy boczne nagłówka i stopki. Ustawienia kontenera z Elementora nie
   dochodzą tu do skutku (zostaje domyślne 10 px), a poniżej 1200 px treść
   przyklejała się do krawędzi ekranu. Padding na kontenerze zewnętrznym nie
   zwęża wyśrodkowanej treści na dużych ekranach. */
body > .elementor-location-header > .e-con,
body > .elementor-location-footer > .e-con { padding-inline: 32px; }
@media (max-width: 1024px) {
  body > .elementor-location-header > .e-con,
  body > .elementor-location-footer > .e-con { padding-inline: 24px; }
}
@media (max-width: 767px) {
  body > .elementor-location-header > .e-con,
  body > .elementor-location-footer > .e-con { padding-inline: 20px; }
}
.site-header .elementor-widget-html { line-height: 0; }
.site-header .site-logo { display: block; line-height: 0; }
.site-header .site-logo img { height: 56px; width: auto; display: block; }
/* Padding pozycji menu ustawia widget (Style > Main Menu), nie ten plik:
   Elementor ma własną regułę dla :hover, która nadpisałaby padding stąd
   i przy najechaniu przesuwałaby całe menu. */
.site-header .elementor-nav-menu--main .elementor-item {
  font-size: 19px;
  font-weight: 500;
  color: var(--nutw-ink);
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.site-header .elementor-nav-menu--main .elementor-item:hover,
.site-header .elementor-nav-menu--main .elementor-item.elementor-item-active,
.site-header .elementor-nav-menu--main .elementor-item:focus {
  color: var(--nutw-primary);
  border-bottom-color: var(--nutw-primary);
  background: transparent;
}
/* Menu nie może wyjść poza swoją kolumnę i nachodzić na przycisk */
.site-header .site-nav,
.site-header .site-nav nav,
.site-header .elementor-nav-menu--main > ul { min-width: 0; max-width: 100%; }
.site-header .elementor-nav-menu--main > ul {
  width: 100%;
  gap: var(--space-3);
  flex-wrap: nowrap;
  justify-content: flex-end;
  padding: 0;
}
.site-header .elementor-nav-menu--main > ul > li { flex: 0 0 auto; }
.site-header .elementor-nav-menu--main > ul > li > a { white-space: nowrap; }

/* Pozycja rozwijana (Dokumenty): strzałka informuje, że coś się pod nią kryje */
.site-header .elementor-nav-menu--main .menu-item-has-children > .elementor-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-header .elementor-nav-menu--main .menu-item-has-children > .elementor-item::after {
  content: "";
  /* Elementor pozycjonuje ::after absolutnie na potrzeby swoich efektów wskaźnika,
     przez co strzałka lądowała na pierwszej literze. Wracamy do układu w linii. */
  position: static;
  width: 7px;
  height: 7px;
  flex: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.site-header .elementor-nav-menu--main .sub-menu {
  background: var(--nutw-surface);
  border: 1px solid var(--nutw-line-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 6px;
  min-width: 280px;
}
.site-header .elementor-nav-menu--main .sub-menu .elementor-sub-item {
  font-size: 19px;
  font-weight: 500;
  color: var(--nutw-ink);
  min-height: 48px;
  padding: 10px var(--space-2);
  border-radius: var(--radius-sm);
  border-bottom: 0;
}
.site-header .elementor-nav-menu--main .sub-menu .elementor-sub-item:hover,
.site-header .elementor-nav-menu--main .sub-menu .elementor-sub-item:focus {
  background: var(--nutw-bg-alt);
  color: var(--nutw-primary);
}
/* W menu mobilnym podpozycje są wcięte, żeby było widać zależność.
   Wysokość 56 px, bo to też są cele dotyku, a nie tylko tekst. */
.site-header .elementor-nav-menu--dropdown .sub-menu .elementor-sub-item {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px var(--space-3) 14px var(--space-5);
  font-size: 19px;
  font-weight: 500;
  color: var(--nutw-ink);
  border-bottom: 1px solid var(--nutw-line);
}
.site-header .elementor-nav-menu--main .elementor-item.highlighted,
.site-header .elementor-nav-menu--main .elementor-item.elementor-item-anchor { background: transparent; }
.site-header .elementor-menu-toggle {
  min-height: 48px;
  min-width: 48px;
  padding: 0 var(--space-2);
  gap: var(--space-1);
  color: var(--nutw-primary);
  border: 2px solid var(--nutw-primary);
  border-radius: var(--radius-sm);
  background: transparent;
  font-weight: 700;
  font-size: 19px;
}
.site-header .elementor-menu-toggle::after { content: "Menu"; font-family: var(--nutw-font); }
.site-header .elementor-menu-toggle.elementor-active::after { content: "Zamknij"; }
/* Menu mobilne jako panel pod paskiem nagłówka.
   Domyślnie Elementor rozwija je w środku kolumny z nawigacją: pozycje wychodziły
   poza jej szerokość, a nagłówek rósł do 439 px i spychał treść strony. */
@media (max-width: 1024px) {
  /* Panel ma się kotwiczyć do całego nagłówka, a nie do wąskiej kolumny
     z nawigacją, dlatego kontenery po drodze przestają być punktem odniesienia. */
  .site-header .e-con-inner > .e-con,
  .site-header .e-con-inner > .e-con > .e-con,
  .site-header .site-nav,
  .site-header .site-nav > .elementor-widget-container { position: static; }
  .site-header .site-nav .elementor-nav-menu__container.elementor-nav-menu--dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    background: var(--nutw-surface);
    border-top: 1px solid var(--nutw-line);
    box-shadow: 0 12px 24px rgba(46, 46, 122, 0.14);
  }
}
.site-header .elementor-nav-menu--dropdown { background: var(--nutw-surface); border-top: 1px solid var(--nutw-line); }
.site-header .elementor-nav-menu--dropdown .elementor-item {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  color: var(--nutw-ink);
  min-height: 56px;
  /* Wcięcie równe marginesowi treści strony na telefonie */
  padding: 14px 20px;
  border-bottom: 1px solid var(--nutw-line);
}
.site-header .elementor-nav-menu--dropdown .elementor-item:hover,
.site-header .elementor-nav-menu--dropdown .elementor-item.elementor-item-active { color: var(--nutw-primary); background: var(--nutw-bg-alt); }
/* Rozwinięta pozycja z podmenu: Elementor daje jej ciemnoszare tło z ciemnym
   tekstem (kontrast poniżej normy). Nadpisujemy na barwy marki. */
.site-header .elementor-nav-menu--dropdown a.elementor-item.highlighted,
.site-header .elementor-nav-menu--dropdown a.elementor-item.highlighted:hover,
.site-header .elementor-nav-menu--main a.elementor-item.highlighted {
  background-color: var(--nutw-bg-alt);
  color: var(--nutw-primary);
}
/* To samo dotyczy podpozycji w menu mobilnym */
.site-header .elementor-nav-menu--dropdown a.elementor-sub-item.highlighted,
.site-header .elementor-nav-menu--dropdown a.elementor-sub-item.highlighted:hover,
.site-header .elementor-nav-menu--dropdown a.elementor-sub-item:hover,
.site-header .elementor-nav-menu--dropdown a.elementor-sub-item:focus,
.site-header .elementor-nav-menu--dropdown a.elementor-sub-item.elementor-item-active {
  background-color: var(--nutw-bg-alt);
  color: var(--nutw-primary);
}
@media (max-width: 1024px) {
  .site-header .site-logo img { height: 48px; }
}

/* Widgety Elementora w naszych klasach */
.elementor-widget-button .elementor-button { min-height: 56px; }
.btn-secondary .elementor-button { background: transparent; color: var(--nutw-primary); border: 2px solid var(--nutw-primary); }
.btn-secondary .elementor-button:hover { background: var(--nutw-bg-alt); color: var(--nutw-primary-dark); }
.btn-urgent .elementor-button { background: var(--nutw-red); }
.btn-urgent .elementor-button:hover { background: var(--nutw-red-text); }
.btn-on-dark .elementor-button { background: #fff; color: var(--nutw-primary-dark); }
.btn-on-dark .elementor-button:hover { background: var(--nutw-bg-alt); color: var(--nutw-primary-dark); }

/* Zdjęcie zamykające sekcję z ofertą. 16:9 to najwęższy kadr, przy którym grupa
   na zdjęciu z hali mieści się w całości (2,4:1 ucinało już nogi). */
.photo-band-img img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius-md);
  width: 100%;
}
/* Wewnątrz sekcji zdjęcie jest domknięciem listy, nie osobnym bytem:
   trzyma się kafelków odstępem mniejszym niż odstęp między sekcjami. */
.photo-in-offer { margin-top: calc(var(--space-2) - var(--space-5)); }
@media (max-width: 767px) {
  .photo-band-img img { aspect-ratio: 4 / 3; }
  .photo-in-offer { margin-top: calc(var(--space-2) - var(--space-5)); }
}

.photo-hero img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); width: 100%; }
.photo-card img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); width: 100%; }
.photo-card .widget-image-caption { font-size: var(--nutw-text-small); color: var(--nutw-ink-2); text-align: left; margin-top: var(--space-1); }

/* Stopka z Theme Buildera */
.site-footer.e-con { color: #fff; }
.site-footer h4, .site-footer .elementor-heading-title { color: #fff; font-size: 20px; margin-bottom: var(--space-2); }
.site-footer .elementor-widget-text-editor, .site-footer .elementor-widget-html { color: #fff; font-size: var(--nutw-text-small); max-width: none; }
.site-footer p { max-width: 40ch; }
/* Kolumny stopki równane górą, żeby nagłówki stały w jednej linii */
.site-footer .e-con-inner > .e-con > .e-con { align-content: start; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--space-1); max-width: none; }
.site-footer img { height: auto; }
/* Logo NUTW w stopce: wersja kolorowa na białej płytce, żeby było czytelne na granacie.
   Płytka ma tę samą wysokość co płytka logo miasta niżej, stąd równy rytm. */
.footer-logo {
  display: inline-block;
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  line-height: 0;
}
.footer-logo img { width: 234px; height: auto; display: block; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-sponsors {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
/* Bez ograniczenia szerokości: inaczej podpis łamie się w przypadkowym miejscu.
   Selektor musi być bardziej szczegółowy niż `.site-footer p { max-width: 40ch }`. */
.site-footer .footer-sponsors p,
.site-footer .footer-copy { margin: 0; max-width: none; }
.sponsor-plate {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  flex: none;
}
.sponsor-plate img { height: 48px; width: auto; display: block; }
.footer-copy { font-size: var(--nutw-text-small); opacity: 0.85; }
@media (max-width: 1024px) {
  .footer-bottom { justify-content: flex-start; }
}

/* Motion Effects / Entrance Animation wyłączone projektowo. Gdyby ktoś włączył: */
@media (prefers-reduced-motion: reduce) {
  .elementor-invisible { visibility: visible !important; }
}
