/* ============================================================
   TCUW - site.css
   Wspólny system wyglądu dla nowych elementów strony:
   strona główna, stopka, formularz, menu mobilne.
   Prefiks th- (sekcje) i tf- (stopka), żeby nie kolidować z BeTheme.
   ============================================================ */

:root {
  --th-navy: #232c5c;
  --th-navy-deep: #16214e;
  --th-navy-ink: #121a3f;
  --th-orange: #f59b1e;
  --th-orange-dark: #e4891a;
  --th-orange-text: #a85800;   /* pomarańcz do tekstu na jasnym tle: 5,2:1 (WCAG AA) */
  --th-link: #1d4fbf;
  --th-ink: #1f2433;
  --th-text: #4a5163;
  --th-muted: #5d6475;
  --th-line: #e6e8ef;
  --th-soft: #f4f5f9;
  --th-white: #ffffff;
  --th-radius: 16px;
  --th-radius-sm: 10px;
  --th-wrap: 1600px;
  --th-gutter: clamp(18px, 2.2vw, 32px);
  --th-section: clamp(48px, 5.5vw, 80px);
  --th-head: "Antonio", "Oswald", "Arial Narrow", Arial, sans-serif;
  --th-body: "Poppins", "Segoe UI", Arial, sans-serif;
  --th-ease: cubic-bezier(.22, .61, .36, 1);
  --th-shadow: 0 18px 44px rgba(22, 33, 78, .12);
  --th-shadow-lg: 0 26px 56px rgba(22, 33, 78, .22);
}

/* ---------- odsunięcie treści spod absolutnego nagłówka BeTheme ---------- */
html body #Wrapper #Content { padding-top: var(--th-header-h, 216px) !important; }

/* ---------- nagłówek: większe logo, menu, wyszukiwarka i kontakty ---------- */
#mfn-header-template .mfn-header-mainmenu { flex-wrap: nowrap !important; }
#mfn-header-template .mfn-header-mainmenu > li { margin-right: 2px !important; }
#mfn-header-template .mfn-header-mainmenu > li > a { padding-left: 9px !important; padding-right: 9px !important; white-space: nowrap; }

@media (min-width: 960px) {
  /* górny pasek */
  #mfn-header-template .column_header_promo_bar * { font-size: 16px !important; }
  #mfn-header-template .column_heading,
  #mfn-header-template .column_heading * { font-size: 18px !important; font-weight: 400 !important; letter-spacing: .02em; }

  /* logo */
  #mfn-header-template .column_header_logo { width: 156px !important; }
  #mfn-header-template .column_header_logo img {
    width: auto !important;
    height: 120px !important;
    max-height: none !important;
    max-width: none !important;
  }

  /* wyszukiwarka */
  #mfn-header-template .search_wrapper input[type="text"],
  #mfn-header-template .search_wrapper input[type="search"] {
    height: 50px !important;
    font-size: 17px !important;
    padding-left: 48px !important;
  }
  #mfn-header-template .search_wrapper svg,
  #mfn-header-template .search_wrapper .icon_search { width: 24px !important; height: 24px !important; }

  /* menu */
  #mfn-header-template .mfn-header-mainmenu > li > a,
  #mfn-header-template .mfn-header-mainmenu > li > a .menu-label {
    font-size: 27px !important;
    font-weight: 500 !important;
    letter-spacing: .02em;
  }

  /* kontakty: ikony i teksty */
  #mfn-header-template .mfn-header-icon-box .icon-wrapper,
  #mfn-header-template .mfn-header-icon-box .icon-wrapper img {
    width: 58px !important;
    height: 58px !important;
    max-width: none !important;
  }
  #mfn-header-template .mfn-header-icon-box .desc-wrapper { font-size: 19px !important; line-height: 1.3 !important; }
  #mfn-header-template .mfn-header-icon-box .desc-wrapper span { font-size: 24px !important; }
}

/* większe laptopy i monitory do 1799 px: menu i kontakty muszą zmieścić się obok siebie */
@media (min-width: 1400px) and (max-width: 1799px) {
  #mfn-header-template .mfn-header-mainmenu > li > a,
  #mfn-header-template .mfn-header-mainmenu > li > a .menu-label { font-size: 24px !important; }
  #mfn-header-template .mfn-header-mainmenu > li > a { padding-left: 7px !important; padding-right: 7px !important; }
  #mfn-header-template .mfn-header-icon-box .icon-wrapper,
  #mfn-header-template .mfn-header-icon-box .icon-wrapper img { width: 50px !important; height: 50px !important; }
  #mfn-header-template .mfn-header-icon-box .desc-wrapper { font-size: 17px !important; }
  #mfn-header-template .mfn-header-icon-box .desc-wrapper span { font-size: 21px !important; }
}
/* typowe laptopy (960–1399 px) */
@media (min-width: 960px) and (max-width: 1399px) {
  #mfn-header-template .column_header_logo { width: 128px !important; }
  #mfn-header-template .column_header_logo img { height: 100px !important; }
  #mfn-header-template .mfn-header-mainmenu > li > a,
  #mfn-header-template .mfn-header-mainmenu > li > a .menu-label { font-size: 21px !important; }
  #mfn-header-template .mfn-header-mainmenu > li > a { padding-left: 5px !important; padding-right: 5px !important; }
  #mfn-header-template .mfn-header-icon-box .icon-wrapper,
  #mfn-header-template .mfn-header-icon-box .icon-wrapper img { width: 44px !important; height: 44px !important; }
  #mfn-header-template .mfn-header-icon-box .desc-wrapper { font-size: 16px !important; }
  #mfn-header-template .mfn-header-icon-box .desc-wrapper span { font-size: 19px !important; }
}
/* małe laptopy i tablety poziomo: w nagłówku zostaje sam numer telefonu
   (e-mail jest w stopce, w bocznym panelu i na stronie Kontakt) */
@media (min-width: 960px) and (max-width: 1199px) {
  #mfn-header-template .column_header_logo { width: 112px !important; }
  #mfn-header-template .column_header_logo img { height: 90px !important; }
  #mfn-header-template .mfn-header-mainmenu > li > a,
  #mfn-header-template .mfn-header-mainmenu > li > a .menu-label { font-size: 19px !important; }
  #mfn-header-template .mfn-header-mainmenu > li > a { padding-left: 4px !important; padding-right: 4px !important; }
  #mfn-header-template .column_header_icon:has(img[src*="kontakt_Obszar-roboczy-1."]),
  #mfn-header-template .column_header_icon:has(img[src*="Obszar-rodboczy"]) { display: none !important; }
  #mfn-header-template .mfn-header-icon-box .desc-wrapper { font-size: 0 !important; }
  #mfn-header-template .mfn-header-icon-box .desc-wrapper br { display: none; }
  #mfn-header-template .mfn-header-icon-box .desc-wrapper span { font-size: 19px !important; }
}

/* ---------- podstawy ---------- */
.th-wrap {
  width: 100%;
  max-width: var(--th-wrap);
  margin-inline: auto;
  padding-inline: var(--th-gutter);
  box-sizing: border-box;
}
.th-section { padding-block: var(--th-section); }
.th-section--soft { background: var(--th-soft); }
.th-home, .th-home *, .tf, .tf * { box-sizing: border-box; }
.th-home { font-family: var(--th-body); color: var(--th-text); }

.th-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--th-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--th-orange-text);
}
.th-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.th-title {
  margin: 0 0 18px;
  font-family: var(--th-head);
  font-weight: 700;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.1;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--th-navy-deep);
  text-wrap: balance;
}
.th-lead { margin: 0; font-size: 17px; line-height: 1.7; color: var(--th-text); max-width: 62ch; }
.th-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 3vw, 40px);
}
.th-head-row .th-title { margin-bottom: 0; }

/* ---------- przyciski ---------- */
.th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--th-radius-sm);
  border: 2px solid transparent;
  font-family: var(--th-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .2s var(--th-ease), color .2s var(--th-ease),
              border-color .2s var(--th-ease), transform .2s var(--th-ease),
              box-shadow .25s var(--th-ease);
}
.th-btn svg { width: 18px; height: 18px; transition: transform .2s var(--th-ease); }
.th-btn:hover svg { transform: translateX(3px); }
.th-btn--primary { background: var(--th-orange); color: var(--th-navy-ink) !important; }   /* granat na pomarańczu: 7,7:1 */
.th-btn--primary:hover { background: var(--th-orange-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(228, 137, 26, .35); }
.th-btn--ghost { border-color: rgba(255, 255, 255, .75); color: var(--th-white) !important; }
.th-btn--ghost:hover { background: var(--th-white); border-color: var(--th-white); color: var(--th-navy-deep) !important; transform: translateY(-2px); }
.th-btn--outline { border-color: var(--th-navy-deep); color: var(--th-navy-deep) !important; }
.th-btn--outline:hover { background: var(--th-navy-deep); color: var(--th-white) !important; transform: translateY(-2px); }
.th-btn:active { transform: translateY(0); }
.th-btn:focus-visible, .th-tile:focus-visible, .tf a:focus-visible {
  outline: 3px solid var(--th-orange);
  outline-offset: 3px;
}

/* ---------- hero ---------- */
.th-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* hero wchodzi pod nagłówek: zdjęcie widać też wokół jego zaokrąglonej karty */
  margin-top: calc(-1 * var(--th-header-h, 216px));
  padding-top: var(--th-header-h, 216px);
  min-height: calc(var(--th-header-h, 216px) + clamp(400px, 56vh, 600px));
  color: var(--th-white);
  background: var(--th-navy-deep);
}
/* „Żywy Toruń”: powolny lot kamery nad starówką, poranna mgła i oddychające światło świtu.
   Ruch trwa dłużej niż 5 s, więc jest przycisk pauzy (WCAG 2.2.2); przy „ograniczeniu ruchu” wszystko stoi. */
.th-hero__bg, .th-hero__mist, .th-hero__glow { position: absolute; pointer-events: none; }
.th-hero__bg {
  inset: -4%;
  z-index: -3;
}
.th-hero__bg::before {        /* osobna warstwa na lot kamery, żeby nie gryzł się z paralaksą */
  content: "";
  position: absolute;
  inset: 0;
  background: url("/wp-content/themes/tcuw/assets/wp-content/uploads/2025/02/tcwu-torun-foto-scaled.webp") center 60% / cover no-repeat;
  animation: th-drone 32s ease-in-out infinite alternate;
  will-change: transform;
}
.th-hero__mist {
  inset: 0 0 0 38%;
  z-index: -2;
  overflow: hidden;
}
.th-hero__mist span {
  position: absolute;
  width: 90%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 236, 226, .38), rgba(240, 236, 226, .12) 55%, transparent);
  filter: blur(18px);
  opacity: 0;
  animation: th-mist 28s linear infinite;
}
.th-hero__mist span:nth-child(1) { top: 34%; left: -30%; }
.th-hero__mist span:nth-child(2) { top: 58%; left: -45%; height: 34%; animation-duration: 36s; animation-delay: -14s; }
.th-hero__mist span:nth-child(3) { top: 16%; left: -20%; height: 26%; animation-duration: 44s; animation-delay: -27s; }
.th-hero__glow {
  top: -20%;
  right: -10%;
  width: 60%;
  height: 70%;
  z-index: -2;
  background: radial-gradient(closest-side, rgba(245, 155, 30, .30), rgba(245, 155, 30, .08) 60%, transparent);
  mix-blend-mode: screen;
  animation: th-glow 10s ease-in-out infinite alternate;
}
@keyframes th-drone {          /* lot kamery: wyraźne wychylenia w bok i w pionie; przybliżenie daje zapas, więc bez pustych krawędzi */
  0%   { transform: scale(1.08) translate3d(0, 0, 0); }
  25%  { transform: scale(1.10) translate3d(-4%, -3.5%, 0); }
  50%  { transform: scale(1.14) translate3d(-3%, 4%, 0); }
  75%  { transform: scale(1.12) translate3d(4%, -3.5%, 0); }
  100% { transform: scale(1.16) translate3d(3.5%, 4%, 0); }
}
@keyframes th-mist {
  0%   { transform: translateX(0); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
@keyframes th-glow { from { opacity: .55; transform: scale(.97); } to { opacity: .9; transform: scale(1.03); } }
.th-hero.is-paused .th-hero__bg::before,
.th-hero.is-paused .th-hero__mist span,
.th-hero.is-paused .th-hero__glow { animation-play-state: paused; }

/* przycisk pauzy animacji tła */
.th-hero__pause {
  position: absolute;
  right: clamp(16px, 2.2vw, 32px);
  bottom: clamp(16px, 2.2vw, 28px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(18, 26, 63, .72);
  color: #fff;
  font: 500 13px/1 var(--th-body);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s;
}
.th-hero__pause:hover { background: rgba(18, 26, 63, .92); border-color: var(--th-orange); }
.th-hero__pause:focus-visible { outline: 3px solid var(--th-orange); outline-offset: 3px; }
.th-hero__pause svg { width: 18px; height: 18px; flex: none; }
.th-hero__pause .th-play { display: none; }
.th-hero.is-paused .th-hero__pause .th-play { display: block; }
.th-hero.is-paused .th-hero__pause .th-pause { display: none; }
.th-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 26, 63, .72) 0, rgba(18, 26, 63, .66) 700px, rgba(18, 26, 63, .28) 1000px, rgba(18, 26, 63, .04) 100%),   /* pod tekstem (do 700 px) krycie ≥ 0,66: nawet na białym niebie kontrast > 5:1 */
    linear-gradient(0deg, rgba(18, 26, 63, .4) 0%, rgba(18, 26, 63, 0) 40%);
}
.th-hero__inner { padding-block: clamp(56px, 7vw, 96px); }
.th-hero .th-eyebrow { color: var(--th-orange); }
.th-hero__title {
  margin: 0 0 20px;
  font-family: var(--th-head);
  font-weight: 700;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 1.22;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--th-white);
  max-width: 14ch;
  text-wrap: balance;
}
.th-hero__lead { margin: 0 0 32px; max-width: 52ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: rgba(255, 255, 255, .88); }
.th-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@keyframes th-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- podstrony: baner z tytułem (ta sama estetyka co hero) ---------- */
.th-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--th-header-h, 216px));
  padding-top: var(--th-header-h, 216px);
  color: var(--th-white);
  background: var(--th-navy-deep);
  font-family: var(--th-body);
}
.th-page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/wp-content/themes/tcuw/assets/wp-content/uploads/2025/02/tcwu-torun-foto-scaled.webp") center 62% / cover no-repeat;
}
.th-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(18, 26, 63, .94) 0%, rgba(18, 26, 63, .78) 45%, rgba(18, 26, 63, .45) 100%);
}
.th-page-hero__inner { padding-block: clamp(34px, 4.2vw, 60px); }
.th-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
}
.th-crumbs a { color: var(--th-white) !important; text-decoration: none !important; transition: color .18s var(--th-ease); }
.th-crumbs a:hover { color: var(--th-orange) !important; }
.th-crumbs [aria-current] { color: var(--th-orange); }
.th-page-hero__title {
  margin: 0 !important;
  font-family: var(--th-head) !important;
  font-weight: 700 !important;
  font-size: clamp(38px, 4.6vw, 68px) !important;
  line-height: 1.22 !important;
  text-transform: uppercase;
  color: var(--th-white) !important;
  text-wrap: balance;
}

/* ---------- podstrony: treść w tym samym kontenerze co reszta ---------- */
.th-page #Content .mcb-section > .section_wrapper {
  max-width: var(--th-wrap) !important;
  margin-inline: auto !important;
  padding-inline: var(--th-gutter) !important;
  box-sizing: border-box;
}
.th-page #Content .column_attr,
.th-page #Content .column_attr p { text-align: left !important; }
.th-page #Content .column_attr p { max-width: 82ch; line-height: 1.75; }

/* mniej pustej przestrzeni na podstronach: odstępniki i marginesy modułów BeTheme */
.th-page #Content .mcb-item-spacer-inner,
.th-page #Content .hr_invisible { max-height: 20px !important; }
.th-page #Content .mcb-column-inner { margin-bottom: 22px !important; }
.th-page #Content .mcb-section.mfn-default-section { padding-top: 40px !important; padding-bottom: 40px !important; }
@media (max-width: 767px) {
  .th-page #Content .mcb-section.mfn-default-section { padding-top: 26px !important; padding-bottom: 26px !important; }
  .th-page #Content .mcb-column-inner { margin-bottom: 16px !important; }
}

/* strony tekstowe: treść + boczny panel (kontakt i usługi) */
.th-has-aside #Content .content_wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
  max-width: var(--th-wrap);
  margin-inline: auto;
  padding-inline: var(--th-gutter);
  box-sizing: border-box;
}
.th-has-aside #Content .content_wrapper::before,
.th-has-aside #Content .content_wrapper::after { content: none !important; }
.th-has-aside #Content .content_wrapper > .sections_group { float: none !important; width: auto !important; min-width: 0; }
.th-has-aside #Content .mcb-section > .section_wrapper { max-width: none !important; padding-inline: 0 !important; }
.th-aside {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
  padding-block: 40px;
  font-family: var(--th-body);
}
.th-aside__card {
  padding: 26px;
  border: 1px solid var(--th-line);
  border-radius: 18px;
  background: var(--th-white);
  box-shadow: 0 10px 30px rgba(22, 33, 78, .06);
}
.th-aside__card--navy {
  border-color: transparent;
  color: rgba(255, 255, 255, .85);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 155, 30, .28), transparent 50%),
    linear-gradient(150deg, var(--th-navy) 0%, var(--th-navy-ink) 100%);
}
.th-aside__card--navy .th-eyebrow { color: var(--th-orange); margin-bottom: 8px; }
.th-aside__title {
  margin: 0 0 16px !important;
  font-family: var(--th-head) !important;
  font-weight: 700 !important;
  font-size: 28px !important;
  line-height: 1.12 !important;
  text-transform: uppercase;
  color: var(--th-white) !important;
}
.th-aside__title--dark { color: var(--th-navy-deep) !important; font-size: 24px !important; }
.th-aside__contact { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; font-size: 15px; line-height: 1.45; }
.th-aside__contact li { display: flex; gap: 12px; align-items: flex-start; }
.th-aside__contact svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--th-orange); margin-top: 1px; }
.th-aside__contact a { color: var(--th-white) !important; text-decoration: none !important; overflow-wrap: anywhere; }
.th-aside__contact a:hover { color: var(--th-orange) !important; }
.th-aside__card--navy .th-btn { width: 100%; }
.th-aside__nav { list-style: none; margin: 0; padding: 0; }
.th-aside__nav li + li { border-top: 1px solid var(--th-line); }
.th-aside__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  font-weight: 600;
  font-size: 15px;
  color: var(--th-navy-deep) !important;
  text-decoration: none !important;
  transition: color .18s var(--th-ease), padding-left .2s var(--th-ease);
}
.th-aside__nav a::after { content: "→"; color: var(--th-orange); opacity: 0; transform: translateX(-4px); transition: opacity .2s var(--th-ease), transform .2s var(--th-ease); }
.th-aside__nav a:hover, .th-aside__nav a[aria-current="page"] { color: var(--th-orange-text) !important; padding-left: 8px; }
.th-aside__nav a:hover::after, .th-aside__nav a[aria-current="page"]::after { opacity: 1; transform: none; }
@media (max-width: 1100px) {
  .th-has-aside #Content .content_wrapper { grid-template-columns: 1fr; }
  .th-aside { position: static; padding-top: 0; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* listy dokumentów (uchwały, linki): zwarte wiersze zamiast osobnych modułów co 120 px */
.th-page #Content .column_feature_list > .mcb-column-inner { margin-bottom: 0 !important; }
.th-page #Content .feature_list ul { margin: 0 !important; }
.th-page #Content .feature_list li {
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--th-line);
}
.th-page #Content .feature_list li a {
  display: flex !important;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 12px !important;
  border-radius: 10px;
  text-decoration: none !important;
}
.th-page #Content .feature_list li .icon {
  position: static !important;
  flex-shrink: 0;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  color: var(--th-orange-text) !important;
  font-size: 20px !important;
  line-height: 1 !important;
}
.th-page #Content .feature_list li .icon i { color: inherit !important; font-size: 22px !important; line-height: 1 !important; }
.th-page #Content .feature_list li p {
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 500;
  color: var(--th-navy-deep);
}

/* ---------- kafelki usług ---------- */
.th-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
/* Kafelki z grafikami z oryginału: niebieska wersja, po najechaniu (lub fokusie
   klawiaturą) płynne przejście w pomarańczową z ikoną i opisem.
   Grafiki mają własne zaokrąglenia i przezroczysty margines, więc cień rysujemy
   po kształcie (drop-shadow), nie po prostokącie. */
.th-tile {
  position: relative;
  display: block;
  aspect-ratio: 700 / 800;
  border-radius: var(--th-radius);
  text-decoration: none !important;
  filter: drop-shadow(0 8px 16px rgba(22, 33, 78, .12));
  transition: transform .35s var(--th-ease), filter .35s var(--th-ease);
}
.th-tile__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  transition: opacity .45s var(--th-ease);
}
.th-tile__hover { opacity: 0; }
.th-tile:hover, .th-tile:focus-visible {
  transform: translateY(-6px);
  filter: drop-shadow(0 22px 28px rgba(22, 33, 78, .26));
}
.th-tile:hover .th-tile__hover, .th-tile:focus-visible .th-tile__hover { opacity: 1; }

/* ---------- O nas ---------- */
.th-about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.th-about__text p { margin: 0 0 16px; font-size: 16px; line-height: 1.75; }
.th-points {
  list-style: none;
  margin: 24px 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}
.th-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--th-navy-deep);
  line-height: 1.4;
}
.th-points svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--th-orange); margin-top: -1px; }
.th-about__media { position: relative; margin: 0; }
.th-about__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--th-radius);
  box-shadow: var(--th-shadow);
}
.th-badge {
  position: absolute;
  left: clamp(-18px, -1.2vw, -10px);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--th-white);
  border-radius: 14px;
  box-shadow: var(--th-shadow);
}
.th-badge strong { font-family: var(--th-head); font-size: 40px; line-height: 1; color: var(--th-orange-text); }
.th-badge span { font-size: 13px; line-height: 1.35; color: var(--th-navy-deep); font-weight: 600; max-width: 18ch; }

/* ---------- kontakt (karta CTA) ---------- */
.th-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(32px, 4.5vw, 64px);
  border-radius: 22px;
  color: var(--th-white);
  background:
    radial-gradient(circle at 92% 8%, rgba(245, 155, 30, .30), transparent 42%),
    linear-gradient(135deg, var(--th-navy) 0%, var(--th-navy-ink) 100%);
}
.th-cta .th-eyebrow { color: var(--th-orange); }
.th-cta .th-title { color: var(--th-white); }
.th-cta p { margin: 0 0 26px; color: rgba(255, 255, 255, .82); line-height: 1.7; max-width: 46ch; }
.th-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.th-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.th-info li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  transition: background-color .2s var(--th-ease), border-color .2s var(--th-ease);
}
.th-info li:hover { background: rgba(255, 255, 255, .10); border-color: rgba(245, 155, 30, .45); }
.th-info__ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(245, 155, 30, .16);
  color: var(--th-orange);
}
.th-info__ico svg { width: 21px; height: 21px; }
.th-info small {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.th-info div { font-size: 15px; line-height: 1.5; color: var(--th-white); font-weight: 500; overflow-wrap: anywhere; }
.th-info a { color: var(--th-white) !important; text-decoration: none; }
.th-info a:hover { color: var(--th-orange) !important; }

/* ---------- stopka ---------- */
.tf {
  font-family: var(--th-body);
  color: rgba(255, 255, 255, .72);
  background: var(--th-navy-ink);
  font-size: 15px;
  line-height: 1.7;
}
.tf__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 5vw, 72px);
}
.tf__logo {
  display: inline-flex;
  padding: 12px 16px;
  margin-bottom: 18px;
  background: var(--th-white);
  border-radius: 14px;
}
.tf__logo img { display: block; height: 64px; width: auto; }
.tf__brand p { margin: 0; max-width: 42ch; }
.tf h3 {
  margin: 4px 0 16px;
  font-family: var(--th-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--th-white);
}
.tf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tf a { color: rgba(255, 255, 255, .78) !important; text-decoration: none; transition: color .18s var(--th-ease); }
.tf a:hover { color: var(--th-orange) !important; }
.tf address { font-style: normal; margin-bottom: 10px; }
.tf__meta { margin: 10px 0 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
.tf__bar { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: rgba(255, 255, 255, .5); }
.tf__bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px; }

/* ---------- formularz kontaktowy (strona Kontakt) ---------- */
.tcuw-contact-section { padding: 8px 0 clamp(40px, 5vw, 64px); scroll-margin-top: 24px; }
.tcuw-form-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding: clamp(24px, 3.4vw, 44px);
  font-family: var(--th-body);
  background: var(--th-white);
  border: 1px solid var(--th-line);
  border-radius: 20px;
  box-shadow: var(--th-shadow);
}
.tcuw-form-intro .th-eyebrow { margin-bottom: 8px; }
.tcuw-form-title {
  margin: 0 0 10px !important;
  font-family: var(--th-head) !important;
  font-weight: 700 !important;
  font-size: clamp(40px, 4.2vw, 60px) !important;
  line-height: 1.1 !important;
  text-transform: uppercase;
  color: var(--th-navy-deep) !important;
}
.tcuw-form-sub { margin: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--th-text); }
.tcuw-form-alt { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tcuw-form-alt li {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--th-soft);
  font-size: 13px;
  color: var(--th-muted);
}
.tcuw-form-alt a { font-size: 15px; font-weight: 600; color: var(--th-navy-deep) !important; text-decoration: none !important; overflow-wrap: anywhere; }
.tcuw-form-alt a:hover { color: var(--th-orange-text) !important; }

.tcuw-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 0;
}
.tcuw-form .tcuw-wide { grid-column: 1 / -1; }
.tcuw-form label {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 600;
  color: var(--th-navy-deep);
}
/* BeTheme narzuca polom stałą szerokość i marginesy – tu je znosimy */
.tcuw-form input[type="text"],
.tcuw-form input[type="email"],
.tcuw-form textarea {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box;
  padding: 12px 14px !important;
  font-family: var(--th-body) !important;
  font-size: 15px !important;
  font-weight: 400;
  color: var(--th-ink) !important;
  background: #fafbfd !important;
  border: 1.5px solid #e1e4ef !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  transition: border-color .15s var(--th-ease), box-shadow .15s var(--th-ease), background-color .15s var(--th-ease);
}
.tcuw-form input:focus, .tcuw-form textarea:focus {
  outline: none;
  background: var(--th-white) !important;
  border-color: var(--th-orange) !important;
  box-shadow: 0 0 0 3px rgba(245, 155, 30, .16) !important;
}
.tcuw-form textarea { min-height: 128px; resize: vertical; }
.tcuw-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.tcuw-form .tcuw-consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  flex: 1 1 320px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: var(--th-text);
}
.tcuw-consent input { width: 18px !important; height: 18px; margin: 1px 0 0 !important; flex-shrink: 0; accent-color: var(--th-orange); }
.tcuw-form-btn {
  flex: 0 0 auto;
  padding: 14px 30px;
  border: 0;
  border-radius: var(--th-radius-sm);
  font-family: var(--th-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--th-navy-ink);
  background: var(--th-orange);
  cursor: pointer;
  transition: background-color .2s var(--th-ease), transform .2s var(--th-ease), box-shadow .25s var(--th-ease);
}
.tcuw-form-btn:hover { background: var(--th-orange-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(228, 137, 26, .35); }
.tcuw-form-btn:active { transform: translateY(0); }
.tcuw-form-msg { margin: 0; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.tcuw-form-msg.is-ok { background: rgba(34, 160, 92, .12); color: #1b7a44; }
.tcuw-form-msg.is-err { background: rgba(214, 69, 69, .10); color: #c0392b; }
@media (max-width: 900px) { .tcuw-form-card { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .tcuw-form { grid-template-columns: 1fr; }
  .tcuw-form-btn { width: 100%; }
}

/* ---------- pusty stan (np. Aktualności) ---------- */
.th-empty {
  max-width: 640px;
  margin: 8px auto;
  padding: clamp(32px, 4vw, 48px);
  text-align: center;
  font-family: var(--th-body);
  background: var(--th-white);
  border: 1px solid var(--th-line);
  border-radius: 20px;
  box-shadow: var(--th-shadow);
}
.th-empty__ico {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 18px;
  color: var(--th-orange-text);
  background: rgba(245, 155, 30, .12);
}
.th-empty__ico svg { width: 30px; height: 30px; }
.th-empty__title {
  margin: 0 0 10px !important;
  font-family: var(--th-head) !important;
  font-weight: 700;
  font-size: 30px !important;
  text-transform: uppercase;
  color: var(--th-navy-deep) !important;
}
.th-empty p { margin: 0 auto 24px; max-width: 44ch; color: var(--th-text); line-height: 1.7; }
.th-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- pojawianie się przy przewijaniu ---------- */
.th-js .th-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--th-ease), transform .7s var(--th-ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.th-js .th-reveal.is-in { opacity: 1; transform: none; }

/* ---------- menu mobilne (bez JS BeTheme) ---------- */
.mfn-header-tmpl-menu-sidebar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: min(360px, 88vw) !important;
  height: 100% !important;
  z-index: 100001 !important;
  overflow-y: auto;
  background: var(--th-white) !important;
  box-shadow: -18px 0 44px rgba(18, 26, 63, .25);
  transform: translateX(105%) !important;
  visibility: hidden;
  transition: transform .35s var(--th-ease), visibility 0s linear .35s;
}
.th-menu-open .mfn-header-tmpl-menu-sidebar {
  transform: translateX(0) !important;
  visibility: visible;
  transition: transform .35s var(--th-ease);
}
.th-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(18, 26, 63, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--th-ease), visibility 0s linear .3s;
}
.th-menu-open .th-menu-backdrop { opacity: 1; visibility: visible; transition: opacity .3s var(--th-ease); }
.th-menu-open, .th-menu-open body { overflow: hidden; }
.mfn-header-tmpl-menu-sidebar .mfn-close-icon {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  display: grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--th-soft);
  color: var(--th-navy-deep);
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}
.th-mnav { display: flex; flex-direction: column; min-height: 100%; padding: 26px 26px 32px; font-family: var(--th-body); }
.th-mnav__logo img { display: block; height: 52px; width: auto; }
.th-mnav__list { list-style: none; margin: 28px 0 0; padding: 0; }
.th-mnav__list li { border-bottom: 1px solid var(--th-line); }
.th-mnav__list a {
  display: block;
  padding: 15px 2px;
  font-family: var(--th-head);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--th-navy-deep) !important;
  transition: color .18s var(--th-ease), padding-left .2s var(--th-ease);
}
.th-mnav__list a:hover, .th-mnav__list a[aria-current="page"] { color: var(--th-orange-text) !important; padding-left: 8px; }
.th-mnav__contact { margin-top: auto; padding-top: 28px; display: grid; gap: 8px; }
.th-mnav__contact a { color: var(--th-orange-text) !important; font-weight: 600; text-decoration: none !important; overflow-wrap: anywhere; }

/* ---------- responsywność ---------- */
@media (max-width: 1100px) {
  .tf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .th-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th-cta { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .th-about { grid-template-columns: 1fr; }
  .th-badge { left: 14px; bottom: 14px; }
}
@media (max-width: 760px) {
  /* na telefonie tekst hero sięga prawej krawędzi – równomierne przyciemnienie */
  .th-page-hero::after { background: rgba(18, 26, 63, .86) !important; }
  .th-hero::after { background: rgba(18, 26, 63, .7) !important; }
}
@media (max-width: 600px) {
  .th-tiles { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .th-points, .th-info { grid-template-columns: 1fr; }
  .tf__grid { grid-template-columns: 1fr; }
  .th-hero__actions .th-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .th-hero__bg, .th-hero__bg::before, .th-hero__mist span, .th-hero__glow { animation: none !important; transform: none !important; }
  .th-hero__mist, .th-hero__pause { display: none; }
  .th-js .th-reveal { opacity: 1; transform: none; transition: none; }
  .th-tile, .th-tile__img, .th-btn { transition: none; }
}

/* ============================================================
   Dostępność – WCAG 2.2 AA
   ============================================================ */

/* 2.4.1: link „Przejdź do treści” – widoczny po wciśnięciu Tab */
.th-skip {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 100003;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: var(--th-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--th-white) !important;
  background: var(--th-navy-ink);
  box-shadow: var(--th-shadow-lg);
  text-decoration: none !important;
  transition: top .2s var(--th-ease);
}
.th-skip:focus { top: 16px; }
#Content:focus { outline: none; }

/* 2.4.7 / 2.4.13: wyraźny, gruby fokus na wszystkim, co da się zaznaczyć klawiaturą */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--th-orange-text) !important;
  outline-offset: 3px !important;
}
:where(.th-hero, .th-page-hero, .th-cta, .th-aside__card--navy, .tf, .th-tile, .th-skip) :focus-visible,
.th-tile:focus-visible, .th-skip:focus-visible {
  outline-color: var(--th-orange) !important;
}

/* 1.4.3: kolory w nagłówku BeTheme (jasnopomarańczowy tekst na białym miał 2:1) */
#mfn-header-template .mfn-header-icon-box .desc-wrapper span { color: var(--th-orange-text) !important; }
#mfn-header-template .mfn-header-mainmenu > li.current-menu-item > a,
#mfn-header-template .mfn-header-mainmenu > li.current-menu-item > a .menu-label,
#mfn-header-template .mfn-header-mainmenu > li > a:hover,
#mfn-header-template .mfn-header-mainmenu > li > a:hover .menu-label { color: var(--th-orange-text) !important; }
#mfn-header-template .search_wrapper input { color: var(--th-ink) !important; }
#mfn-header-template .search_wrapper input::placeholder { color: var(--th-muted) !important; opacity: 1; }

/* 1.4.3: przyciski BeTheme – granatowy napis na pomarańczu */
#Content a.button, #Content .button { background-color: var(--th-orange) !important; }
#Content a.button, #Content a.button .button_label, #Content .button .button_label { color: var(--th-navy-ink) !important; }

/* 1.4.3: tekst treści BeTheme był za jasny (#737e86 = 4,15:1) */
.th-page #Content .column_attr,
.th-page #Content .column_attr p,
.th-page #Content .column_attr li,
.th-page #Content .column_attr b,
.th-page #Content .column_attr strong,
.th-page #Content .desc { color: var(--th-text) !important; }
.th-page #Content input.field { color: var(--th-ink) !important; }

/* 1.4.1: linki w tekście rozpoznawalne nie tylko po kolorze */
.th-page #Content .column_attr a:not(.button),
.th-page #Content .tabs_wrapper a:not([role="tab"]),
.th-page #Content .toggle-content a {
  color: var(--th-link) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.th-page #Content .column_attr a:not(.button):hover { text-decoration-thickness: 2px; }

/* zakładki (np. Dotacje): role ARIA i obsługa klawiaturą dodaje skrypt */
.jq-tabs > ul[role="tablist"] {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid var(--th-line);
  list-style: none !important;
  background: none !important;
}
.jq-tabs > ul[role="tablist"] > li { float: none !important; margin: 0 !important; border: 0 !important; background: none !important; }
.jq-tabs [role="tab"] {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px !important;
  border-radius: 10px;
  font-family: var(--th-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  color: var(--th-navy-deep) !important;
  background: var(--th-soft) !important;
  transition: background-color .2s var(--th-ease), color .2s var(--th-ease);
}
.jq-tabs [role="tab"]:hover { background: #e9ebf3 !important; }
.jq-tabs [role="tab"][aria-selected="true"] { color: var(--th-white) !important; background: var(--th-navy-deep) !important; }
.jq-tabs [role="tabpanel"] { padding: 4px 0 0 !important; border: 0 !important; background: none !important; }
.jq-tabs [role="tabpanel"][hidden] { display: none !important; }
.th-tab-list { margin: 0 !important; padding-left: 1.2em !important; display: grid; gap: 10px; }

/* sekcje rozwijane (np. Polityka prywatności): przycisk z aria-expanded dodaje skrypt */
.mfn-toggle-item { border: 1px solid var(--th-line) !important; border-radius: 14px; margin-bottom: 12px !important; overflow: hidden; background: var(--th-white); }
.mfn-toggle-item .toggle-bar { padding: 0 !important; border: 0 !important; background: none !important; }
.mfn-toggle-item .toggle-heading { margin: 0 !important; padding: 0 !important; }
.th-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 16px 20px;
  border: 0;
  background: none;
  font-family: var(--th-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .02em;
  text-align: left;
  text-transform: uppercase;
  color: var(--th-navy-deep);
  cursor: pointer;
  transition: background-color .2s var(--th-ease);
}
.th-acc-btn:hover { background: var(--th-soft); }
.th-acc-btn::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--th-body);
  font-size: 20px;
  color: var(--th-navy-ink);
  background: var(--th-orange);
}
.th-acc-btn[aria-expanded="true"]::after { content: "−"; }
.mfn-toggle-item .toggle-content { display: block !important; padding: 4px 20px 20px !important; }
.mfn-toggle-item .toggle-content[hidden] { display: none !important; }
.mfn-toggle-item .toggle-icon { display: none !important; }

/* formularz: oznaczenie pól wymaganych i błędów */
.tcuw-req { color: var(--th-orange-text); font-weight: 700; }
.tcuw-form-note { margin: 0; font-size: 13px; color: var(--th-muted); }
.tcuw-form [aria-invalid="true"] { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192, 57, 43, .14) !important; }

/* tekst tylko dla czytników ekranu */
.th-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 2.5.8: cele w listach linków co najmniej 24 px */
.th-tab-list li { line-height: 1.6; }
.th-tab-list a { display: inline-block; min-height: 24px; padding-block: 3px; }

/* 1.4.10: długie adresy w treści łamią się zamiast wychodzić poza ekran przy 320 px */
#Content .column_attr, #Content .column_attr p, #Content .column_attr li,
#Content .th-tab-list li, #Content .toggle-content { overflow-wrap: anywhere; }
.th-page #Content .feature_list li a p { min-width: 0; overflow-wrap: anywhere; }

/* ---------- deklaracja dostępności ---------- */
.th-a11y-wrap { padding-block: var(--th-section); }
.th-a11y { max-width: 75ch; color: var(--th-text); font-size: 16px; line-height: 1.7; }
.th-a11y h2 { font-family: var(--th-head); color: var(--th-ink); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; margin: 1.8em 0 .5em; }
.th-a11y p, .th-a11y ul { margin: 0 0 1em; }
.th-a11y ul { padding-left: 1.2em; list-style: disc; }
.th-a11y li { margin-bottom: .35em; }
.th-a11y a { color: var(--th-link); text-decoration: underline; }
.th-a11y__facts { list-style: none; padding: 14px 18px !important; background: var(--th-soft); border-radius: var(--th-radius-sm); }
/* pola do uzupełnienia przez TCUW – usunąć klasę po wpisaniu danych */
.th-todo { background: #fff2b3; color: #4a3b00; padding: 0 .25em; border-radius: 4px; outline: 1px dashed #b38f00; }
.tf__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* telefon: pauza jako okrągła ikona w prawym górnym rogu zdjęcia, żeby nie zasłaniała przycisków */
@media (max-width: 700px) {
  .th-hero__pause { top: calc(var(--th-header-h, 216px) + 12px); bottom: auto; right: 12px; width: 44px; padding: 0; justify-content: center; }
  .th-hero__pause-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}


/* ---------- Ułatwienia dostępu: znaczek + panel + tryby ---------- */
.th-a11y-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.th-a11y-badge {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 9990;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: var(--th-navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 33, 78, .28);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s, width .2s;
}
.th-a11y-badge:hover { background: var(--th-navy-deep); width: 54px; }
.th-a11y-badge:focus-visible { outline: 3px solid var(--th-orange); outline-offset: 2px; }
.th-a11y-badge svg { width: 28px; height: 28px; }
.th-a11y-panel {
  position: fixed;
  left: 60px;
  top: 50%;
  z-index: 9991;
  width: min(320px, calc(100vw - 76px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  color: var(--th-ink);
  box-shadow: 0 22px 56px rgba(22, 33, 78, .32);
  transform: translateY(-50%);
  font-family: var(--th-body);
}
.th-a11y-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.th-a11y-panel h2 { margin: 0; font: 700 22px/1.1 var(--th-head); text-transform: uppercase; color: var(--th-navy); }
.th-a11y-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--th-soft); color: var(--th-ink); cursor: pointer; }
.th-a11y-close svg { width: 18px; height: 18px; }
.th-a11y-label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--th-muted); }
.th-a11y-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.th-a11y-sizes button, .th-a11y-opts button {
  min-height: 44px;
  border: 2px solid var(--th-line);
  border-radius: 10px;
  background: #fff;
  color: var(--th-ink);
  font: 600 14px/1.2 var(--th-body);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.th-a11y-sizes .is-l { font-size: 17px; }
.th-a11y-sizes .is-xl { font-size: 20px; }
.th-a11y-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.th-a11y-opts button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 6px; text-align: center; }
.th-a11y-ico { font-size: 20px; line-height: 1; }
.th-a11y-opts button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.th-a11y-panel button:hover { border-color: var(--th-orange); }
.th-a11y-panel button[aria-pressed="true"] { border-color: var(--th-navy); background: var(--th-navy); color: #fff; }
.th-a11y-panel button:focus-visible, .th-a11y-panel a:focus-visible { outline: 3px solid var(--th-orange); outline-offset: 2px; }
.th-a11y-reset { width: 100%; min-height: 44px; margin-top: 12px; border: 0; border-radius: 10px; background: var(--th-soft); color: var(--th-ink); font: 600 14px/1.2 var(--th-body); cursor: pointer; }
.th-a11y-decl { display: block; margin-top: 12px; text-align: center; font-size: 14px; color: var(--th-link); text-decoration: underline; }

/* tryby: rozmiar tekstu */
/* powiększamy treść i stopkę; nagłówek ma już duże napisy, a powiększony nie mieściłby się w jednym rzędzie */
html.a11y-size-1 #Content, html.a11y-size-1 .tf { zoom: 1.15; }
html.a11y-size-2 #Content, html.a11y-size-2 .tf { zoom: 1.3; }
/* podkreślenie linków */
html.a11y-links body:not(#a11y-1):not(#a11y-2):not(#a11y-3) a { text-decoration: underline !important; text-underline-offset: 3px; }
/* czytelna czcionka (bez ikon) */
html.a11y-font body:not(#a11y-1):not(#a11y-2):not(#a11y-3) *:not(i):not(svg):not([class*="icon"]):not([class^="fa"]):not([class*=" fa-"]) { font-family: Verdana, Tahoma, Arial, sans-serif !important; }
/* większe odstępy (wartości z WCAG 1.4.12) */
html.a11y-spacing body:not(#a11y-1):not(#a11y-2):not(#a11y-3) *:not(svg):not(path) { line-height: 1.8 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-spacing body:not(#a11y-1):not(#a11y-2):not(#a11y-3) p { margin-bottom: 2em !important; }
/* zatrzymanie wszystkich animacji i przejść */
html.a11y-still body:not(#a11y-1):not(#a11y-2):not(#a11y-3) *, html.a11y-still body:not(#a11y-1):not(#a11y-2):not(#a11y-3) *::before, html.a11y-still body:not(#a11y-1):not(#a11y-2):not(#a11y-3) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still body:not(#a11y-1):not(#a11y-2):not(#a11y-3) .th-reveal { opacity: 1 !important; transform: none !important; }
/* wysoki kontrast: czarne tło, biały tekst, żółte linki */
html.a11y-contrast body:not(#a11y-1):not(#a11y-2):not(#a11y-3), html.a11y-contrast body:not(#a11y-1):not(#a11y-2):not(#a11y-3) *:not(img):not(svg):not(path):not(circle):not(rect):not(video) {
  background-color: #000 !important;
  background-image: none !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-contrast body:not(#a11y-1):not(#a11y-2):not(#a11y-3) a, html.a11y-contrast body:not(#a11y-1):not(#a11y-2):not(#a11y-3) a * { color: #ff0 !important; }
html.a11y-contrast body:not(#a11y-1):not(#a11y-2):not(#a11y-3) button[aria-pressed="true"], html.a11y-contrast body:not(#a11y-1):not(#a11y-2):not(#a11y-3) .th-btn--primary, html.a11y-contrast body:not(#a11y-1):not(#a11y-2):not(#a11y-3) .th-btn--primary * { background-color: #ff0 !important; color: #000 !important; }
html.a11y-contrast body:not(#a11y-1):not(#a11y-2):not(#a11y-3) .th-hero::after, html.a11y-contrast body:not(#a11y-1):not(#a11y-2):not(#a11y-3) .th-page-hero::after { background: #000 !important; }
html.a11y-contrast body:not(#a11y-1):not(#a11y-2):not(#a11y-3) .th-hero__mist, html.a11y-contrast body:not(#a11y-1):not(#a11y-2):not(#a11y-3) .th-hero__glow, html.a11y-contrast body:not(#a11y-1):not(#a11y-2):not(#a11y-3) .th-hero__bg { display: none !important; }
html.a11y-contrast body:not(#a11y-1):not(#a11y-2):not(#a11y-3) svg { color: inherit; }
html.a11y-contrast body:not(#a11y-1):not(#a11y-2):not(#a11y-3) *:focus-visible { outline: 3px solid #ff0 !important; }
@media print { .th-a11y-badge, .th-a11y-panel { display: none !important; } }

/* ---------- treść edytowana w panelu WordPressa (page.php / single.php) ---------- */
.th-page #Content .th-content { padding-block: clamp(32px, 4vw, 56px); max-width: 82ch; color: var(--th-text); font-size: 16px; line-height: 1.75; }
.th-has-aside #Content .th-content { padding-inline: 0; }
.th-page:not(.th-has-aside) #Content .th-content { max-width: var(--th-wrap); }
.th-page:not(.th-has-aside) #Content .th-content > p, .th-page:not(.th-has-aside) #Content .th-content > ul:not([class]) { max-width: 82ch; }
.th-page #Content .th-content > :first-child { margin-top: 0; }
.th-page #Content .th-content h2,
.th-page #Content .th-content h3,
.th-page #Content .th-content h4 { font-family: var(--th-head); color: var(--th-navy); line-height: 1.15; text-wrap: balance; margin: 1.6em 0 .5em; }
.th-page #Content .th-content h2 { font-size: clamp(26px, 2.4vw, 34px); text-transform: uppercase; }
.th-page #Content .th-content h3 { font-size: clamp(21px, 1.8vw, 25px); }
.th-page #Content .th-content h4 { font-size: 19px; }
.th-page #Content .th-content p { margin: 0 0 1em; }
.th-page #Content .th-content ul:not([class]), .th-page #Content .th-content ul.wp-block-list:not([class*="is-style-tcuw"]), .th-page #Content .th-content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.th-page #Content .th-content ul:not([class]), .th-page #Content .th-content ul.wp-block-list:not([class*="is-style-tcuw"]) { list-style: disc; }
.th-page #Content .th-content li { margin-bottom: .35em; }
.th-page #Content .th-content a { color: var(--th-link); text-decoration: underline; text-underline-offset: 3px; }
.th-page #Content .th-content a:hover { color: var(--th-orange-text); }
.th-page #Content .th-content img { max-width: 100%; height: auto; border-radius: var(--th-radius-sm); }
.th-page #Content .th-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.th-page #Content .th-content th, .th-page #Content .th-content td { padding: 10px 12px; border: 1px solid var(--th-line); text-align: left; vertical-align: top; }
.th-page #Content .th-content th { background: var(--th-soft); color: var(--th-navy-deep); }
/* lista dokumentów do pobrania */
.th-page #Content .th-content .th-docs, .th-page #Content .th-content .is-style-tcuw-pliki { list-style: none; margin: 0 0 1.4em; padding: 0; border-top: 1px solid var(--th-line); }
.th-page #Content .th-content .th-docs li, .th-page #Content .th-content .is-style-tcuw-pliki li { margin: 0; border-bottom: 1px solid var(--th-line); }
.th-page #Content .th-content .th-docs a, .th-page #Content .th-content .is-style-tcuw-pliki a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 12px; border-radius: 10px; color: var(--th-navy-deep); font-weight: 500; text-decoration: none; }
.th-page #Content .th-content .th-docs a::before, .th-page #Content .th-content .is-style-tcuw-pliki a::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: var(--th-orange-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M12 12v6M9 15l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M12 12v6M9 15l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.th-page #Content .th-content .th-docs a:hover, .th-page #Content .th-content .is-style-tcuw-pliki a:hover { background: var(--th-soft); color: var(--th-orange-text); }
/* kafelki z ikoną (wartości, dane kontaktowe, osoby) */
.th-page #Content .th-content .th-features, .th-page #Content .th-content .is-style-tcuw-kafelki { list-style: none; margin: 0 0 1.6em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.th-page #Content .th-content .th-features li, .th-page #Content .th-content .is-style-tcuw-kafelki li { margin: 0; padding: 18px 18px 18px 74px; position: relative; min-height: 76px; border: 1px solid var(--th-line); border-radius: var(--th-radius-sm); background: #fff; line-height: 1.55; font-size: 15px; overflow-wrap: anywhere; }
.th-page #Content .th-content .th-features li strong:first-of-type, .th-page #Content .th-content .is-style-tcuw-kafelki li strong:first-of-type { display: block; margin-bottom: 4px; font-family: var(--th-head); font-size: 18px; font-weight: 600; color: var(--th-navy); letter-spacing: .01em; }
.th-page #Content .th-content .th-features__ico { position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; object-fit: contain; border-radius: 0; }
.th-page #Content .th-content .th-figure { margin: 0 0 1.4em; }
.th-page #Content .th-content .th-more a, .th-page #Content .th-content .is-style-tcuw-wiecej a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--th-navy-deep); text-decoration: none; }
.th-page #Content .th-content .th-more a::after, .th-page #Content .th-content .is-style-tcuw-wiecej a::after { content: "→"; color: var(--th-orange-text); }
/* sekcje rozwijane */
.th-page #Content .th-content details { margin: 0 0 12px; border: 1px solid var(--th-line); border-radius: var(--th-radius-sm); background: #fff; }
.th-page #Content .th-content summary { cursor: pointer; padding: 16px 52px 16px 18px; position: relative; font-family: var(--th-head); font-size: 20px; font-weight: 600; color: var(--th-navy); list-style: none; }
.th-page #Content .th-content summary::-webkit-details-marker { display: none; }
.th-page #Content .th-content summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--th-orange-text); }
.th-page #Content .th-content details[open] summary::after { content: "−"; }
.th-page #Content .th-content summary:focus-visible { outline: 3px solid var(--th-orange); outline-offset: 2px; }
.th-page #Content .th-content details > :not(summary) { margin-inline: 18px; }
.th-page #Content .th-content details > :last-child { margin-bottom: 18px; }
/* Kontakt: mapa pod treścią */
.th-page #Content .th-map { padding-block: 0 24px; }
.th-page #Content .th-map iframe { display: block; width: 100%; height: clamp(280px, 40vw, 440px); border: 0; border-radius: var(--th-radius); }
/* Aktualności */
.th-page #Content .th-news { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.th-page #Content .th-news__item article { height: 100%; padding: 22px; border: 1px solid var(--th-line); border-radius: var(--th-radius); background: #fff; }
.th-page #Content .th-news time { font-size: 13px; font-weight: 600; color: var(--th-orange-text); }
.th-page #Content .th-news__title { margin: 6px 0 10px; font-family: var(--th-head); font-size: 22px; line-height: 1.2; }
.th-page #Content .th-news__title a { color: var(--th-navy); text-decoration: none; }
.th-page #Content .th-news__title a:hover { text-decoration: underline; }
.th-page #Content .th-news p { margin: 0; color: var(--th-text); }
.th-page #Content .th-news__pages { display: flex; gap: 8px; margin-bottom: 40px; }
.th-page #Content .th-news__pages .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--th-line); border-radius: 10px; color: var(--th-navy); text-decoration: none; }
.th-page #Content .th-news__pages .current { background: var(--th-navy); color: #fff; border-color: var(--th-navy); }
.th-page #Content .th-news__date { color: var(--th-orange-text); font-weight: 600; font-size: 14px; }
/* link „Edytuj tę stronę” widoczny tylko dla zalogowanych redaktorów */
.th-edit-link { position: fixed; left: 16px; bottom: 16px; z-index: 9989; padding: 12px 18px; border-radius: 999px; background: var(--th-orange); color: var(--th-navy-ink) !important; font: 600 14px/1 var(--th-body); text-decoration: none !important; box-shadow: var(--th-shadow); }
.th-edit-link:focus-visible { outline: 3px solid var(--th-navy); outline-offset: 2px; }

/* bloki edytora WordPressa w treści */
.th-page #Content .th-content .wp-block-image { margin: 0 0 1.4em; }
.th-page #Content .th-content .is-style-tcuw-kafelki li:not(:has(img)) { padding-left: 18px; min-height: 0; }
.th-page #Content .th-content .is-style-tcuw-wazne { padding: 16px 18px; border-left: 4px solid var(--th-orange); border-radius: 0 var(--th-radius-sm) var(--th-radius-sm) 0; background: var(--th-soft); color: var(--th-ink); }
.th-page #Content .th-content .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--th-line); border-radius: var(--th-radius-sm); }
.th-page #Content .th-content .wp-block-file .wp-block-file__button { margin: 0; padding: 10px 16px; border-radius: 10px; background: var(--th-orange); color: var(--th-navy-ink); text-decoration: none; font-weight: 600; }
.th-page #Content .th-content .wp-block-button__link { background: var(--th-orange); color: var(--th-navy-ink); border-radius: 12px; font-family: var(--th-head); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.th-page #Content .th-content .wp-block-quote { margin: 0 0 1.4em; padding: 4px 0 4px 18px; border-left: 4px solid var(--th-orange); }
.th-page #Content .th-content .wp-block-separator { border: 0; border-top: 1px solid var(--th-line); margin: 2em 0; }
