/* ================================================================
   KONSULAT REPUBLIKI CHILE W BYDGOSZCZY — chile.css
   ================================================================ */

/* ================================================================
   ZMIENNE
   ================================================================ */

:root {
  /* Kolory główne */
  --ch-navy:    #0B1F4A;
  --ch-navy2:   #162B5E;
  --ch-red:     #D52B1E;
  --ch-red2:    #A81F14;
  --ch-red3:    #e8321f;
  --ch-blue:    #0032A0;
  --ch-cream:   #F5F1EB;
  --ch-dark:    #090E1D;
  /* Footer/nakładki — ciemny granat */
  --ch-navy-dark: #071428;
  --ch-navy-mid:  #0a1c3e;
  --ch-navy-deep: #0e2252;
  --ch-footer-bg: linear-gradient(135deg, #071428 0%, #0a1c3e 50%, #0e2252 100%);
  /* Tekst */
  --ch-text:    #1a1a1a;
  --ch-muted:   #555;
  /* Animacje */
  --ch-ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ch-t-fast:  .2s;
  --ch-t-base:  .28s;
  /* Layout */
  --ch-hdr-h:   128px;
  --ch-r-img:   16px;
  --ch-r-card:  20px;
}

/* ================================================================
   BASE RESET
   ================================================================ */

html, body {
  height: auto !important;
  background: #fff;
  color: #111;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  position: relative;
}

a, a:hover, a:focus { text-decoration: none; }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }

*, *:focus, *:active, *:focus-visible { outline: none !important; box-shadow: none !important; }

p { margin: 0; font-size: 1.125rem; line-height: 1.75; }

ul, ol { margin: 20px; font-size: 1.125rem; line-height: 1.75; }

h1 { margin: 0; font-size: 2.75rem; line-height: 1.15; }
h2 { font-size: 2.125rem; line-height: 1.2; }
h3 { font-size: 2.125rem; line-height: 1.2; }

.page-container { padding-top: 125px; }

/* ── Segment ── */
.segment {
  display: block;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
}
.segment.white { color: #fff; }
.segment.black { color: #111; }

/* Typografia w segmentach (bez banery) */
.segment:not(.banery) h2,
.segment:not(.banery) h3,
.segment:not(.banery) h4 { font-size: 2.25rem; line-height: 1.2; font-weight: 700; }
.segment:not(.banery) p,
.segment:not(.banery) li { font-size: 1rem; line-height: 1.6; }

/* Wypunktowanie w treściach CMS */
.ch-sec-text ul,
.ch-txtkol-col ul,
.ch-tpw-content ul,
.ch-newsd-body ul { list-style: none; padding-left: 0; margin: 0; }
.ch-sec-text ul li,
.ch-txtkol-col ul li,
.ch-tpw-content ul li,
.ch-newsd-body ul li { padding-left: 22px; position: relative; }
.ch-sec-text ul li::before,
.ch-txtkol-col ul li::before,
.ch-tpw-content ul li::before,
.ch-newsd-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  background: url('../img/point-red.png') center / contain no-repeat;
}

/* em w nagłówku = część lekka (kursywa w TinyMCE / ręcznie w polu tekstowym) */
.segment h1 em,
.segment h2 em,
.segment h3 em,
.segment h4 em { font-weight: 400; font-style: normal; }

/* W banery h1: em lżejszy, ale nie 300 — zachowuje czytelność na dużym foncie */
.ch-hero-h em { font-weight: 400; font-style: normal; display: block; }

/* ── Button ── */
.btn-kmn {
  display: inline-block;
  margin: 0;
  font-size: 1.313rem;
  border: 1px solid #000;
  transition: ease-in-out all 0.35s;
  user-select: none;
  color: #000;
  margin-top: 30px;
  background: none;
  text-align: center;
}
.segment.white .btn-kmn { border-color: #fff; color: #fff; }
.segment.black .btn-kmn { border-color: #111; color: #111; }

/* ── Social icons (sm.php) ── */
.sm-icons { padding-top: 30px; display: none; }
.s-1 .sm-icons { display: block; }
.sm-icons a { display: inline-block; }
.black .sm-icons a, .white .sm-icons a {
  display: inline-block;
  width: 30px; height: 30px;
  text-align: center; line-height: 30px;
  background-color: #000; color: #fff;
  transition: all 0.2s;
}
.white .sm-icons a { background-color: #fff; color: #000; }


/* ================================================================
   HEADER — dwurzędowy, fixed, nad hero
   ================================================================ */

/* Ukryj stare elementy Bootstrap nawigacji */
#hamburger, #cover, #sidenav { display: none !important; }

/* Wrapper – fixed na górze */
#ch-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

/* Wspólny inner container obu rzędów */
.ch-hdr-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex !important;
  align-items: center;
}

/* ──────────── Rząd 1: Logo + Utils ──────────── */
/* Logo */
a.ch-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
  margin-top: 40px;
}

.ch-logo-img {
  height: 90px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
  display: block;
}

.ch-logo-txt {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.ch-logo-txt .t1 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  white-space: nowrap;
}

.ch-logo-txt .t2 {
  font-size: 0.6875rem;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
  white-space: nowrap;
}

/* Utils: języki + przycisk */
.ch-hdr-utils {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  margin-left: auto;
}

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

.ch-langs a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  transition: color var(--ch-t-base);
  text-decoration: none;
}
.ch-langs a:hover        { color: #fff; }
.ch-langs a.ch-lang-active { color: #fff; font-weight: 700; }
.ch-langs-sep { color: rgba(255,255,255,.3); font-size: 0.8125rem; }

/* Przycisk "Kontakt" – czerwony pill */
.ch-btn-kontakt {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--ch-red);
  color: #fff !important;
  padding: 9px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: background var(--ch-t-base), transform var(--ch-t-fast);
  white-space: nowrap;
}
.ch-btn-kontakt:hover {
  background: var(--ch-red2);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Ukryj pustą listę sub-cat (brak <li>) */
.menu-main-sub-cat:not(:has(li)) {
  display: none !important;
}

/* ──────────── Rząd 2: Nawigacja ──────────── */
#menu {
  background: transparent !important;
  position: static !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

#menu .ch-hdr-inner {
  height: 48px;
  gap: 0;
}

/* Ikona Home */
a.ch-home-lnk {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  font-size: 1.0625rem;
  padding: 0 16px 0 0;
  transition: color var(--ch-t-base);
  text-decoration: none;
  flex-shrink: 0;
}
a.ch-home-lnk:hover { color: #fff; }

/* Nav links z print_submenu */
#menu .menu-main {
  display: flex !important;
  align-items: center !important;
  flex: 1 !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  background: none !important;
}

#menu .menu-main li { position: relative; }

#menu .menu-main > li > a,
#menu .menu-main > li > span {
  display: block !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
  color: rgba(255,255,255,.8) !important;
  padding: 14px 16px !important;
  background: none !important;
  white-space: nowrap;
  transition: color var(--ch-t-base);
  position: relative;
}

#menu .menu-main > li > a:hover,
#menu .menu-main > li.active > a { color: #fff !important; }

/* Podkreślenie aktywnej pozycji */
#menu .menu-main > li > a::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 16px; right: 16px;
  height: 2px;
  background: var(--ch-red);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity var(--ch-t-base), transform var(--ch-t-base) var(--ch-ease);
}
#menu .menu-main > li > a:hover::after { opacity: 1; transform: scaleX(1); }
#menu .menu-main > li.active > a::after { opacity: 1; transform: scaleX(1); }

/* Hamburger mobile */
#ch-ham {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 50px;
  cursor: pointer;
  padding: 7px 14px 7px 10px;
  margin-left: auto;
  flex-shrink: 0;
  color: #fff;
  transition: background .2s, border-color .2s;
}
#ch-ham:hover { background: rgba(255,255,255,.1); border-color: #fff; }
#ch-ham.open { background: rgba(255,255,255,.15); border-color: #fff; }
.ch-ham-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.ch-ham-lines span {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}
.ch-ham-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: #fff;
  line-height: 1;
}
#ch-ham.open .ch-ham-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#ch-ham.open .ch-ham-lines span:nth-child(2) { opacity: 0; }
#ch-ham.open .ch-ham-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* page-container: brak domyślnego paddingu — baner nachodzi na header */
#skrollr-body,
.page-container {
  padding: 0 !important;
  background: transparent !important;
}
.page-container {
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

/* ================================================================
   HERO BANERY
   ================================================================ */

/* Sekcja banery zajmuje 100vh od samej góry */
section.banery,
section.banery.segment {
  position: relative;
  overflow: hidden;
  min-height: 560px !important;
  max-height: none !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Banery na podstronach — 3/5 wysokości */
.subPage #carousel .item { padding-top: 29.17% !important; }
.subPage #carousel .carousel-inner { max-height: 560px !important; }

/* Kontenery wewnętrzne muszą też mieć 100% */
section.banery .container-fluid,
section.banery .row,
section.banery .col-xs-12 {
  height: 100% !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

section.banery #carousel,
section.banery .carousel {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

section.banery .carousel-inner {
  height: 100%;
}

/* Każdy slide = 100% wysokości carousel */
section.banery .carousel-inner > .item {
  height: 100%;
  overflow: hidden;
}

/* Obrazy i tła absolutnie wypełniają item */
section.banery .item-anim {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

section.banery [style*="background-image"].item-anim {
  background-size: cover !important;
  background-position: center 30% !important;
}


/* ── Hero wrap: pozycjonuje się jak header (ten sam padding/max-width) ── */
.ch-hero-wrap {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: stretch;
  pointer-events: none;
}

.ch-hero-wrap .ch-hdr-inner {
  width: 100% !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding-top: calc(var(--ch-hdr-h) + 20px) !important;
  padding-bottom: 80px !important;
}

/* ── Hero content: tekst + przyciski ── */
.ch-hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.ch-hero-h {
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 28px;
  padding-left: 18px;
  border-left: 2px solid var(--ch-red);
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
  text-transform: none !important;
}

/* Dwa wersy w h1: pogrubiony + zwykły */
.ch-hero-bold {
  display: block;
  font-weight: 700;
}
.ch-hero-light {
  display: block;
  font-weight: 400;
}

/* Przyciski bezpośrednio pod nagłówkiem */
.ch-hero-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-left: 22px;
  pointer-events: auto;
}

.ch-hero-btns .btn-kmn {
  display: inline-flex !important;
  align-items: center !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  background: var(--ch-red) !important;
  color: #fff !important;
  border: 2px solid var(--ch-red) !important;
  padding: 11px 26px !important;
  border-radius: 50px !important;
  margin-top: 0 !important;
  white-space: nowrap;
  transition: all .25s !important;
}

.ch-hero-btns .btn-kmn span,
.ch-hero-btns .btn-kmn-2 span {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.ch-hero-btns .btn-kmn:hover {
  background: var(--ch-red2) !important;
  border-color: var(--ch-red2) !important;
}

/* Drugi przycisk — outline pill (para z btn-kmn) */
.ch-hero-btns .btn-kmn-2 {
  display: inline-flex !important;
  align-items: center !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.7) !important;
  padding: 11px 26px !important;
  border-radius: 50px !important;
  white-space: nowrap;
  transition: all .25s !important;
  text-decoration: none;
}

.ch-hero-btns .btn-kmn-2:hover {
  background: rgba(255,255,255,.15) !important;
  border-color: #fff !important;
  color: #fff !important;
}

/* item-caption (tryby a1/a2/a3 — legacy) */
section.banery .item-caption {
  position: absolute;
  top: 50%; left: 60px;
  transform: translateY(-50%);
  z-index: 10;
  max-width: 620px;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  pointer-events: none;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
  padding-left: 18px;
  border-left: 2px solid var(--ch-red);
  text-transform: none;
}

/* Carousel arrows */
section.banery .carousel-control {
  background: none !important;
  width: 56px !important;
  opacity: 0 !important;
  z-index: 20;
  transition: opacity .3s;
}
section.banery:hover .carousel-control { opacity: 1 !important; }

section.banery .carousel-control span {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  background: rgba(11,31,74,.6);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: #fff;
}
section.banery .left.carousel-control span  { left: 10px; }
section.banery .right.carousel-control span { right: 10px; }

/* ================================================================
   SPLIT SECTIONS  (obrazek_lewy / obrazek_prawy)
   ================================================================ */

.ch-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.ch-split-img {
  position: relative;
  overflow: hidden;
}

.ch-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slide-in effect for carousel in split */
.ch-split-img .carousel,
.ch-split-img .carousel-inner,
.ch-split-img .item { height: 100%; }
.ch-split-img .item img { height: 100%; object-fit: cover; }

.ch-split-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px;
}

.ch-split-body--cream { background: var(--ch-cream); }
.ch-split-body--navy  { background: var(--ch-navy); color: #fff; }

/* Label line */
.ch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ch-red);
  margin-bottom: 14px;
}
.ch-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--ch-red);
  flex-shrink: 0;
}
.ch-split-body--navy .ch-label { color: rgba(255,255,255,.55); }

/* Headings */
.ch-split-body h2,
.ch-split-body h3 {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--ch-navy);
}

.ch-split-body--navy h2,
.ch-split-body--navy h3 { color: #fff; }

/* Paragraphs */
.ch-split-body p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 28px;
}
.ch-split-body--navy p { color: rgba(255,255,255,.7); }

/* Buttons */
.ch-split-body .btn-kmn {
  display: inline-flex !important;
  align-items: center !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  padding: 13px 30px !important;
  border-radius: 1px !important;
  transition: all .28s var(--ch-ease) !important;
  align-self: flex-start;
}

.ch-split-body .btn-kmn span {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

/* cream variant */
.ch-split-body--cream .btn-kmn {
  background: var(--ch-red) !important;
  color: #fff !important;
  border: 2px solid var(--ch-red) !important;
}
.ch-split-body--cream .btn-kmn:hover {
  background: var(--ch-red2) !important;
  border-color: var(--ch-red2) !important;
}

/* navy variant */
.ch-split-body--navy .btn-kmn {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.5) !important;
}
.ch-split-body--navy .btn-kmn:hover {
  background: #fff !important;
  color: var(--ch-navy) !important;
  border-color: #fff !important;
}

/* ================================================================
   SPLIT-R SECTIONS  (obrazek_lewy_r / obrazek_prawy_r)
   ================================================================ */

.ch-splitr-section {
  background: #fff;
  min-height: auto !important;
  padding: 72px 0 88px;
}

.ch-splitr-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* "Poznaj Chile" — pierwsze słowo lekkie, reszta bold */
.ch-splitr-outer-title {
  text-align: center;
  margin-bottom: 48px;
  font-size: clamp(1.875rem, 3.5vw, 2.625rem);
  font-weight: 300;
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ch-splitr-outer-title strong { font-weight: 700; }

/* Główny kontener — foto wyrównane do centrum, karta wyznacza wysokość */
.ch-splitr-body {
  display: grid;
  grid-template-columns: 45fr 55fr;
  align-items: center;
  gap: 16px;
}

/* Prawy: karta LEFT, zdjęcie RIGHT */
.ch-splitr-body--prawy {
  grid-template-columns: 55fr 45fr;
}
.ch-splitr-body--prawy .ch-splitr-photo { order: 2; }
.ch-splitr-body--prawy .ch-splitr-card  { order: 1; }

/* Zdjęcie — kwadrat, centrowane w swojej kolumnie */
.ch-splitr-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--ch-r-card);
  aspect-ratio: 1 / 1;
  width: 100%;
}
.ch-splitr-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ch-ease);
}
.ch-splitr-photo:hover img {
  transform: scale(1.04);
}

/* Karta — wyższa od kwadratowego zdjęcia, wyznacza wysokość wiersza */
.ch-splitr-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--ch-r-card);
  padding: clamp(48px, 6vw, 72px) clamp(36px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  min-height: 560px;
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.14);
}

/* Warianty kolorystyczne z gradientem — od ciemnego do jasnego */
.ch-splitr-card--blue {
  background: linear-gradient(145deg, #071428 0%, var(--ch-navy) 55%, var(--ch-navy2) 100%);
}
.ch-splitr-card--red {
  background: linear-gradient(145deg, var(--ch-red2) 0%, var(--ch-red) 55%, #e8321f 100%);
}

/* Watermark — duży, w pełni widoczny, pod treścią */
.ch-splitr-card::before {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 480px;
  height: 480px;
  background: url('../img/footer-right-20.png') center / contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

/* Treść karty nad watermarkiem */
.ch-splitr-card > * { position: relative; z-index: 1; }

/* Typografia w karcie — spójna z resztą strony */
.ch-splitr-card h1,
.ch-splitr-card h2,
.ch-splitr-card h3,
.ch-splitr-card h4 {
  font-size: clamp(1.35rem, 1.9vw, 1.6rem) !important;
  font-weight: 700;
  line-height: 1.25 !important;
  color: #fff;
  margin: 0 0 24px;
}
.ch-splitr-card p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px;
}
.ch-splitr-card strong,
.ch-splitr-card b { font-weight: 700; color: #fff; }
.ch-splitr-card a { color: rgba(255,255,255,.85); }

/* Przycisk — pill z białą obwódką */
.ch-splitr-card .btn-kmn {
  display: inline-flex !important;
  align-items: center !important;
  padding: 13px 36px !important;
  border-radius: 50px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  color: #fff !important;
  background: transparent !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  margin-top: 24px;
  transition: background var(--ch-t-base) ease, border-color var(--ch-t-base) ease, transform var(--ch-t-fast) ease !important;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}
.ch-splitr-card .btn-kmn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
  transform: translateX(4px);
}
.ch-splitr-card .btn-kmn span {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

/* ================================================================
   FOOTER
   ================================================================ */

.ch-footer {
  position: relative;
  background: var(--ch-footer-bg) !important;
  color: rgba(255,255,255,.6);
  overflow: hidden;
  border-top: none;
  padding-top: 48px;
}

/* Decorative side images */
.ch-footer::before,
.ch-footer::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}
.ch-footer::before {
  left: -20px;
  bottom: 0;
  width: 420px;
  height: 100%;
  background: url('../img/footer-left-20.png') left bottom / contain no-repeat;
}
.ch-footer::after {
  right: -210px;
  bottom: 0;
  width: 420px;
  height: 100%;
  background: url('../img/footer-right-20.png') right bottom / contain no-repeat;
}

/* ── Main body ── */
.ch-footer-body {
  position: relative;
  z-index: 1;
  padding: 0;
}

.ch-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px 0 0;
  display: flex;
  align-items: flex-start;
}

/* ── Left section: logo + contact grid ── */
.ch-footer-left {
  flex: 0 0 50%;
  padding: 0 60px 56px 0;
}

.ch-footer-logo-link {
  display: inline-block !important;
  margin: 0 0 36px 0 !important;
  padding: 0 !important;
}

.ch-footer-logo {
  height: 100px !important;
  width: auto !important;
  display: block !important;
  margin: 0 !important;
}

/* 2×2 contact grid */
.ch-footer-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}

.ch-fci {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ch-fci-icon {
  flex-shrink: 0;
  width: 20px;
  font-size: 1.125rem;
  color: rgba(255,255,255,.7);
  margin-top: 3px;
  text-align: center;
}

.ch-fci-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ch-fci-text strong {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.ch-fci-text span {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}
.ch-fci-text span a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color var(--ch-t-base);
}
.ch-fci-text span a:hover { color: #fff; }

/* ── Right section: nav + bottom ── */
.ch-footer-right {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  border-left: none;
  padding-left: 60px;
  padding-bottom: 0;
  min-height: 100%;
}

.ch-footer-nav {
  display: flex;
  gap: 48px;
  flex: 1;
  padding-bottom: 56px;
}

.ch-footer-col { flex: 1; }

.ch-footer-col > strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.ch-footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ch-footer-col a,
.ch-footer-col ul li a {
  display: block !important;
  font-size: 1rem;
  color: rgba(255,255,255,.55) !important;
  padding: 4px 0 !important;
  text-indent: 0 !important;
  transition: color var(--ch-t-base);
  text-decoration: none !important;
  background: none !important;
}

.ch-footer-col a:hover,
.ch-footer-col ul li a:hover { color: #fff !important; }

/* ── Bottom row (inside right section) ── */
.ch-footer-bottom-row {
  border-top: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ch-footer-amb-link {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.5) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  line-height: 1.6;
  transition: color var(--ch-t-base);
  background: none !important;
  padding: 0 !important;
}
.ch-footer-amb-link:hover { color: #fff !important; }

.ch-footer-credit a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color var(--ch-t-base);
}
.ch-footer-credit a:hover { color: #fff; }

.ch-footer-credit {
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}

.ch-footer-credit strong {
  color: var(--ch-red);
  font-weight: 700;
  font-size: 1.125rem;
}

/* ================================================================
   UTILITIES
   ================================================================ */

/* Scroll reveal */
.ch-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ch-ease), transform .7s var(--ch-ease);
}
.ch-reveal.in { opacity: 1; transform: none; }
.ch-reveal.d1 { transition-delay: .1s; }
.ch-reveal.d2 { transition-delay: .2s; }
.ch-reveal.d3 { transition-delay: .3s; }

/* WCAG toggle */
#wcag-toggle-panel {
  background: var(--ch-navy) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 50% !important;
}

/* ================================================================
   MOZAIKA — obrazek_lewy & obrazek_prawy
   ================================================================ */

/* Outer wrapper — full-width, white bg, brak paddingu pionowego */
.ch-sec-wrap {
  display: grid;
  background: #fff;
  min-height: 520px;
  align-items: stretch;
}

/* lewy / prawy: równe kolumny */
.ch-sec-wrap--lewy,
.ch-sec-wrap--prawy { grid-template-columns: 50% 50%; }

/* Mozaika krwawi do krawędzi — segment pełna szerokość, podział 50/50 */
section.obrazek_lewy,
section.obrazek_prawy { max-width: none !important; }

/* Wyjątek: tylko jedno zdjęcie — wróć do standardowego 1440px */
section.obrazek_lewy:not(:has(.ch-mimg--sec)),
section.obrazek_prawy:not(:has(.ch-mimg--sec)) {
  max-width: 1440px !important;
  margin: 0 auto;
}
section.obrazek_lewy:not(:has(.ch-mimg--sec)) .ch-sec-text {
  padding-left: 56px;
}
section.obrazek_prawy:not(:has(.ch-mimg--sec)) .ch-sec-text {
  padding-right: 56px;
}
section.obrazek_lewy:not(:has(.ch-mimg--sec)) .ch-leaf,
section.obrazek_prawy:not(:has(.ch-mimg--sec)) .ch-leaf { display: none; }

/* Breadcrumbs */
.breadcrumb { display: none !important; }

/* ── Mozaika ── */
.ch-mosaic {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 40px 0;
  background: #fff;
  height: 100%;
  box-sizing: border-box;
}

/* lewy: mozaika po lewej — padding wewnętrzny po prawej */
.ch-mosaic--lewy {
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 2fr 3fr;
  padding-right: 32px;
}

/* prawy: mozaika po prawej — padding wewnętrzny po lewej */
.ch-mosaic--prawy {
  grid-template-columns: 2fr 3fr;
  grid-template-rows: 2fr 3fr;
  padding-left: 32px;
}

/* Komórki mozaiki */
.ch-mimg {
  overflow: hidden;
  border-radius: var(--ch-r-img);
  background: #eee;
}

.ch-mimg--sec,
.ch-mimg--tert {
  aspect-ratio: 1 / 1;
  align-self: end;
}

/* sec (obr. 2) = większy kwadrat na dole */
.ch-mimg--sec {
  width: 100%;
}

/* tert (obr. 3) = mniejszy kwadrat na górze */
.ch-mimg--tert {
  width: 60%;
  justify-self: end;
}

.ch-mimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ch-ease);
}

.ch-mimg:hover img { transform: scale(1.05); }

.ch-mimg-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}
.ch-mimg-link:hover,
.ch-mimg-link:focus { color: inherit; }
.ch-mimg-icon {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11,31,74,.82);
  color: #fff;
  font-size: 1rem;
  opacity: .94;
  transition: background var(--ch-t-base), transform var(--ch-t-base);
}
.ch-mimg-link:hover .ch-mimg-icon,
.ch-mimg-link:focus .ch-mimg-icon {
  background: var(--ch-red);
  transform: translateY(-2px);
}
.ch-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.94);
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}
.ch-lightbox.is-open { display: flex; }
.ch-lightbox-img {
  display: block;
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  touch-action: none;
}
.ch-lightbox-img.is-zoomed {
  cursor: grab;
}
.ch-lightbox-img.is-dragging {
  cursor: grabbing;
}
.ch-lightbox-controls {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ch-lightbox-zoom {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(7,20,40,.88);
  color: #fff;
  font-size: 30px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
}
.ch-lightbox-zoom:hover,
.ch-lightbox-zoom:focus {
  background: var(--ch-red);
}
.ch-lightbox-zoom:disabled {
  opacity: .38;
  cursor: default;
}
@media (hover: none), (pointer: coarse) {
  .ch-lightbox-controls { display: none; }
}
.ch-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(7,20,40,.88);
  color: #fff;
  font-size: 36px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
}
.ch-lightbox-close:hover,
.ch-lightbox-close:focus { background: var(--ch-red); }
html.ch-lightbox-lock,
body.ch-lightbox-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Duże zdjęcie — zajmuje obie wiersze */
.ch-mimg--main { grid-row: 1 / 3; }

.ch-leaf {
  position: absolute;
  top: 30px;
  pointer-events: none;
  z-index: 2;
}
.ch-leaf--tl { left: 0; }
.ch-leaf--tr { right: 0; transform: scaleX(-1); }

/* obrazek_lewy: duże po lewej */
.ch-mosaic--lewy .ch-mimg--main { grid-column: 1; }
.ch-mosaic--lewy .ch-mimg--sec  { grid-column: 2; grid-row: 2; }
.ch-mosaic--lewy .ch-mimg--tert { grid-column: 2; grid-row: 1; }

/* obrazek_prawy: duże po prawej */
.ch-mosaic--prawy .ch-mimg--main { grid-column: 2; }
.ch-mosaic--prawy .ch-mimg--sec  { grid-column: 1; grid-row: 2; }
.ch-mosaic--prawy .ch-mimg--tert { grid-column: 1; grid-row: 1; }
section.obrazek_prawy .ch-mimg.ch-mimg--tert { justify-self: start; }

/* Brak obu dodatkowych zdjęć — main na całą szerokość */
.ch-mosaic:not(:has(.ch-mimg--sec)) .ch-mimg--main {
  grid-column: 1 / -1;
}


/* ── Tekst ── */
.ch-sec-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  background: #fff;
  color: #000 !important;
}

/* Wcięcia tekstu wyrównane do strefy 1440px wewnątrz pełnoekranowego segmentu */
section.obrazek_lewy .ch-sec-text {
  padding-left: max(56px, calc((min(100vw, 1920px) - 1440px) / 2 + 56px));
}
section.obrazek_prawy .ch-sec-text {
  padding-right: max(56px, calc((min(100vw, 1920px) - 1440px) / 2 + 56px));
}

/* Heading — styl jak ch-hero-h, odrobinę mniejszy */
.ch-sec-text h2,
.ch-sec-text h3 {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  color: #000 !important;
  margin-bottom: 16px;
  padding-left: 18px;
  border-left: 2px solid var(--ch-red);
  text-transform: none !important;
}

.ch-sec-text h2 strong,
.ch-sec-text h3 strong,
.ch-sec-text h2 b,
.ch-sec-text h3 b {
  font-weight: 700;
  display: block;
}

.ch-sec-text p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #000 !important;
  margin-bottom: 28px;
}

/* Przycisk – czerwony zaokrąglony (pill) */
.ch-sec-text .btn-kmn {
  display: inline-flex !important;
  align-items: center !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: .03em !important;
  background: var(--ch-red) !important;
  color: #fff !important;
  border: none !important;
  padding: 11px 28px !important;
  border-radius: 50px !important;
  transition: background .25s, transform .2s !important;
  align-self: flex-start;
  width: auto !important;
}

.ch-sec-text .btn-kmn span {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
}

.ch-sec-text .btn-kmn:hover {
  background: var(--ch-red2) !important;
  color: #fff !important;
  transform: translateY(-1px);
}


/* ================================================================
   INNE_AKTUALNOSCI — siatka kart
   ================================================================ */

.ch-news-section { min-height: 0 !important; background: #fff !important; }

.ch-news-wrap {
  margin: 0 auto;
  padding: 78px 56px;
}

.ch-news-title {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  color: #111;
  text-align: center;
  margin: 0 0 60px;
  border: none !important;
  text-transform: none !important;
}

.ch-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.ch-news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  background: none;
  padding: 0 !important;
  transition: transform .25s;
}
.ch-news-card:hover { transform: translateY(-4px); }

.ch-news-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: #eee;
  margin-bottom: 20px;
  position: relative;
}
.ch-news-tag {
  position: absolute;
  top: 24px;
  left: 0;
  z-index: 2;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #fff;
  height: 35px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 0 6px 6px 0;
  white-space: nowrap;
  pointer-events: none;
}
.ch-news-tag--red  { background: linear-gradient(145deg, var(--ch-red2) 0%, var(--ch-red) 55%, #e8321f 100%); }
.ch-news-tag--blue { background: linear-gradient(145deg, #071428 0%, var(--ch-navy) 55%, var(--ch-navy2) 100%); }
.ch-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
  margin: 0 !important;
}
.ch-news-card:hover .ch-news-img img { transform: scale(1.04); }

.ch-news-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.ch-news-date {
  font-size: 0.9375rem;
  color: #999;
  letter-spacing: .02em;
}

.ch-news-name {
  font-size: 1.2rem !important;
  font-weight: 700;
  color: #111;
  margin: 0;
  border: none !important;
  text-transform: none !important;
  line-height: 1.4 !important;
}

.ch-news-excerpt {
  font-size: 1.0625rem;
  color: #555;
  line-height: 1.6;
  margin: 4px 0 0;
  flex: 1;
}

.ch-news-more {
  font-size: 1rem;
  color: #333;
  margin-top: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ch-news-card:hover .ch-news-more { color: var(--ch-red); }

.ch-news-pager {
  margin-top: 60px;
  text-align: center;
}
.ch-news-pager .pagination { display: inline-flex; gap: 4px; }
.ch-news-pager .pagination li a,
.ch-news-pager .pagination li span {
  border-radius: 6px !important;
  border-color: #ddd;
  color: #333;
  padding: 6px 14px;
}
.ch-news-pager .pagination .active a {
  background: var(--ch-red);
  border-color: var(--ch-red);
  color: #fff;
}

@media (max-width: 900px) {
  .ch-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .ch-news-grid { grid-template-columns: 1fr; }
  .ch-news-wrap { padding: 48px 20px; }
}

/* ================================================================
   BACK TO TOP
   ================================================================ */

#backtotop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  cursor: pointer;
  z-index: 999;
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ch-red);
  border: 2px solid var(--ch-red);
  opacity: 1;
  font-size: 1rem;
  color: #fff;
  transition: background .2s, transform .2s;
}
#backtotop:hover {
  background: var(--ch-red2);
  transform: translateY(-3px);
}
#backtotop span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
}

/* ================================================================
   BANERY (carousel)
   ================================================================ */

.segment.banery { min-height: 100px !important; }

#carousel .item { padding-top: 40.66%; }
#carousel .carousel-inner { max-height: 800px; max-width: 1920px; margin: 0 auto; }
#carousel .item-anim { display: block; position: absolute; top: 0; left: 0; }
#carousel .item-anim-mobile { display: none; width: 100%; height: auto; }
#carousel .banner-click { cursor: default; }

.delay-06 { animation-delay: 0.2s; }
.delay-12 { animation-delay: 0.6s; }
.delay-18 { animation-delay: 1s; }
.delay-20 { animation-delay: 1.4s; }

.carousel-control.right, .carousel-control.left {
    width: 50px; height: 50px;
    border-radius: 25px;
    background: #111;
    border: 2px solid #111;
    opacity: 1;
}
.carousel-control.right { top: 20px; right: 40px; }
.carousel-control.left  { left: auto; top: 20px; right: 100px; }
.carousel-control.left span, .carousel-control.right span {
    display: inline-block;
    width: 46px; height: 46px;
    border: 1px solid #fff;
    border-radius: 24px;
    line-height: 44px;
    text-align: center;
}

.carousel-fade .carousel-inner .item { opacity: 0; transition-property: opacity; }
.carousel-fade .carousel-inner .active { opacity: 1; }
.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right { left: 0; opacity: 0; z-index: 1; }
.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right { opacity: 1; }
.carousel-fade .carousel-control { z-index: 2; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1200px) {
  .ch-hdr-inner { padding: 0 24px !important; }
  #menu .menu-main > li > a { padding: 14px 10px !important; font-size: 0.75rem !important; }
}

@media (max-width: 992px) {
  html { font-size: 15px; }
  .ch-splitr-body,
  .ch-splitr-body--prawy { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ch-splitr-wrap { padding: 0 28px; }
}

@media (max-width: 991px) {
  /* nav (~50px) + logo (~100px) = 150px rzeczywista wysokość headera */
  :root { --ch-hdr-h: 150px; }

  /* Absolute — nachodzi na baner jak na desktopie, ale NIE jest sticky */
  #ch-header { position: absolute; display: flex; flex-direction: column; }

  /* Hamburger NAD logo: rząd nav (order:-1) wyżej niż rząd logo (order:0) */
  #menu { order: -1; }
  #ch-hdr-r1 { order: 0; }

  a.ch-logo { margin-top: 16px; margin-bottom: 12px; }
  .ch-logo-img { height: 72px; }

  /* Drawer wyjeżdżający z lewej (position:fixed — niezależny od headera) */
  #menu .menu-main {
    display: flex !important;
    position: fixed;
    top: 0; left: 0;
    width: min(80vw, 320px);
    height: 100vh;
    background: rgba(8,16,36,.98) !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: var(--ch-hdr-h) 0 40px !important;
    z-index: 998;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 32px rgba(0,0,0,.5);
  }
  #menu .menu-main.ch-open { transform: translateX(0) !important; }

  #ch-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 997;
    backdrop-filter: blur(2px);
  }
  #ch-nav-overlay.ch-open { display: block; }
  #menu .menu-main > li > a {
    padding: 13px 24px !important;
    font-size: 0.875rem !important;
    letter-spacing: 0 !important;
  }
  #menu .menu-main > li > a::after { display: none; }

  /* Rząd nav widoczny, hamburger w normalnym flow (NIE fixed — scrolluje z headerem) */
  #menu .ch-hdr-inner { height: auto; padding: 8px 20px; }
  a.ch-home-lnk { display: none; }
  #ch-ham { display: flex !important; position: relative; z-index: 1001; margin-left: 0; margin-right: auto; margin-top: 8px; }

  /* Języki + Kontakt na poziomie rzędu nav (po prawej) */
  #ch-hdr-r1 .ch-hdr-utils {
    position: absolute;
    top: 0; right: 20px;
    height: 50px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-left: 0;
  }

  /* Strony BEZ banera: dosunięcie treści pod header absolutny */
  #skrollr-body:not(:has(section.banery)) { padding-top: var(--ch-hdr-h) !important; }

  /* split (stary layout – do reużycia) */
  .ch-split { grid-template-columns: 1fr; }
  .ch-split-img { min-height: 300px; max-height: 380px; }
  .ch-split-body--navy { order: -1; }
  .ch-split-body { padding: 44px 28px; }

  /* mozaika */
  .ch-sec-wrap--lewy,
  .ch-sec-wrap--prawy { grid-template-columns: 1fr; }

  .ch-sec-wrap--prawy .ch-mosaic { order: -1; }

  .ch-mosaic--lewy,
  .ch-mosaic--prawy {
    padding: 24px;
    min-height: 320px;
    max-height: 400px;
    grid-template-rows: 1fr 1fr;
  }

  .ch-sec-text { padding: 40px 28px; }
  section.obrazek_lewy .ch-sec-text  { padding-left: 28px; }
  section.obrazek_prawy .ch-sec-text { padding-right: 28px; }
  .ch-leaf { height: 30%; }
  .ch-leaf--tl { left: 24px; top: 22px; }
  .ch-leaf--tr { right: 24px; top: 22px; }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  section.obrazek_lewy:not(:has(.ch-mimg--sec)) .ch-sec-text { padding-left: 28px; }

  .ch-logo-txt .t2 { display: none; }  /* ukryj podtytuł na małych */

  section.banery .item-anim { height: 70vh; max-height: none; }
  section.banery .item-caption { font-size: 24px; bottom: 58px; }
  section.banery .ch-hero-h { font-size: 1.75rem; }

  .ch-footer-inner { flex-direction: column; padding: 0 24px; }
  .ch-footer-left { flex: none; width: 100%; padding-right: 0; padding-bottom: 40px; }
  .ch-footer-right { flex: none; width: 100%; border-left: none; border-top: 1px solid rgba(255,255,255,.08); padding-left: 0; padding-top: 40px; }
  .ch-footer-contact-grid { grid-template-columns: 1fr; }
  .ch-footer-nav { flex-direction: column; gap: 28px; padding-bottom: 32px; }
  .ch-footer::before, .ch-footer::after { width: 120px; opacity: .4; }

  #carousel .item-anim { display: none !important; }
  #carousel .item { padding-top: 0 !important; }
  section.banery .carousel-inner { height: 60vh !important; }
  section.banery .item { position: relative; height: 60vh !important; overflow: hidden; }
  #carousel .item-anim-mobile { display: block !important; position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
  .ch-hero-wrap .ch-hdr-inner { padding-bottom: 32px !important; }
  .carousel-control { opacity: 0.2 !important; }
  .carousel-control:hover { opacity: 0.8 !important; }

  .ch-splitr-section { padding: 40px 0 56px; }
  .ch-splitr-wrap { padding: 0 20px; }
  .ch-splitr-body { grid-template-columns: 1fr; gap: 12px; }
  .ch-splitr-photo { aspect-ratio: 4/3; order: -1 !important; border-radius: 16px; }
  .ch-splitr-card { padding: 40px 28px; order: 0 !important; border-radius: 16px; min-height: auto; }
  .ch-splitr-card::before { width: 140px; height: 140px; }
}

/* ═══════════════════════════════════════════════════════════════
   PRE-FOOTER CONTACT SECTION
═══════════════════════════════════════════════════════════════ */

/* Folk pattern banner */
.ch-prefooter-folk {
  height: 56px;
  background-image: url('../img/pattern-long.png');
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
}

/* Main contact section */
.ch-prefooter {
  position: relative;
  min-height: 560px;
  background-color: var(--ch-navy);
  background-image: url('../img/banner-stopka-form.jpg');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  max-width: 1920px;
  display: flex;
  align-items: stretch;
}
.ch-prefooter-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 240px 0 0;
  display: grid;
  grid-template-columns: 56fr 44fr;
  gap: 56px;
  align-items: stretch;
}

/* ── Left: form card ── */
.ch-pf-form-card {
  background: #fff;
  border-radius: var(--ch-r-card) var(--ch-r-card) 0 0;
  padding: 48px 44px 44px;
  box-shadow: 0 24px 72px rgba(0,0,0,0.28);
}
.ch-pf-form-card h3 {
  font-size: 1.625rem;
  font-weight: 700;
  color: #0e1c3a;
  text-align: center;
  margin: 0 0 36px;
  letter-spacing: 0.01em;
}
.ch-pf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.ch-pf-field {
  position: relative;
  margin-bottom: 28px;
}
.ch-pf-field input,
.ch-pf-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--ch-red);
  border-radius: 0;
  padding: 8px 0 6px;
  font-size: 1rem;
  color: #0e1c3a;
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.ch-pf-field input::placeholder,
.ch-pf-field textarea::placeholder {
  color: #9aa2b4;
  font-size: 0.9375rem;
}
.ch-pf-field--full {
  grid-column: 1 / -1;
}
.ch-pf-field textarea {
  min-height: 72px;
}
.ch-pf-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 0.9375rem;
  color: #5a6478;
}
.ch-pf-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ch-red);
  flex-shrink: 0;
  cursor: pointer;
}
.ch-pf-required-note {
  font-size: 0.8125rem;
  color: #8a93a6;
  margin: -18px 0 16px;
}
.ch-pf-check a {
  color: inherit;
  text-decoration: underline;
}
.ch-pf-check a:hover {
  color: var(--ch-red);
}
.ch-pf-submit {
  background: var(--ch-red);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 40px;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
}
.ch-pf-submit:hover {
  background: #c0230e;
  transform: translateY(-1px);
}

/* ── Right: contact info ── */
.ch-pf-info {
  color: #fff;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.ch-pf-info h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 300;
  color: #fff;
  margin: 0 0 36px;
  line-height: 1.2;
}
.ch-pf-info h2 strong {
  font-weight: 700;
}
.ch-pf-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  margin-bottom: 36px;
}
.ch-pf-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ch-pf-ci-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  margin-top: 2px;
}
.ch-pf-ci-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.ch-pf-ci-text span {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.ch-pf-ci-text span a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--ch-t-base);
}
.ch-pf-ci-text span a:hover { color: #fff; }

/* Red info card */
.ch-pf-alert {
  background: linear-gradient(145deg, var(--ch-red2) 0%, var(--ch-red) 55%, #e8321f 100%);
  border-radius: 0 14px 0 0;
  padding: 24px 28px 24px 56px;
  margin-top: auto;
  margin-left: -56px;
}
.ch-pf-alert-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.ch-pf-alert ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ch-pf-alert ul li {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ch-pf-alert ul li::before {
  content: '';
  width: 10px;
  height: 10px;
  background: url('../img/point-white.png') center / contain no-repeat;
  flex-shrink: 0;
  margin-top: 0.35em;
}
.ch-pf-alert a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ch-pf-alert a:hover { opacity: 0.85; }

/* Responsive */
@media (max-width: 991px) {
  .ch-prefooter { background-size: cover; }
  .ch-prefooter-inner {
    grid-template-columns: 1fr;
    padding: 48px 32px 0;
    row-gap: 0;
  }
  .ch-pf-info { order: 1; }
  .ch-pf-alert {
    margin-top: 32px;
    margin-left: -32px;
    margin-right: -32px;
    border-radius: 0;
  }
  .ch-pf-form-card {
    order: 2;
    margin-left: -32px;
    margin-right: -32px;
    border-radius: 0;
    box-shadow: none;
  }
  .ch-pf-contacts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ch-pf-alert {
    margin-left: -20px;
    margin-right: -20px;
    padding: 24px 20px;
  }
  .ch-pf-form-card {
    padding: 36px 20px 32px;
    margin-left: -20px;
    margin-right: -20px;
  }
  .ch-pf-form-row { grid-template-columns: 1fr; }
  .ch-pf-contacts { grid-template-columns: 1fr; }
  .ch-prefooter-inner { padding: 40px 20px 0; }
}

/* Strona kontakt — wariant ch-prefooter bez zdjęcia */
.page-kontakt .ch-prefooter {
  background-image: none;
  background: #fff;
  color: #111;
}
.page-kontakt .ch-prefooter-inner {
  padding-top: 80px;
}
.page-kontakt .ch-pf-form-card {
  background: var(--ch-footer-bg);
  color: #fff;
  box-shadow: none;
}
.page-kontakt .ch-pf-form-card h3 { color: #fff; }
.page-kontakt .ch-pf-field input,
.page-kontakt .ch-pf-field textarea { color: #fff; }
.page-kontakt .ch-pf-field input::placeholder,
.page-kontakt .ch-pf-field textarea::placeholder { color: rgba(255,255,255,0.5); }
.page-kontakt .ch-pf-info { color: #1a1a1a; }
.page-kontakt .ch-pf-info h2 { color: #1a1a1a; }
.page-kontakt .ch-pf-ci-text strong { color: #1a1a1a; }
.page-kontakt .ch-pf-ci-text span { color: #444; }
.page-kontakt .ch-pf-ci-text span a { color: #444; }
.page-kontakt .ch-pf-ci-text span a:hover { color: #1a1a1a; }
.page-kontakt .ch-pf-ci-icon { color: #444; }

/* ================================================================
   AKTUALNOŚCI — lista artykułów (.ch-aktlist-*)
   ================================================================ */

section.aktualnosci.segment {
  min-height: 0;
  overflow: visible;
  padding: 56px 0 80px;
}

.ch-aktlist-outer {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0 56px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px;
  align-items: start;
}

/* ── Lista główna ── */
.ch-aktlist-main { min-width: 0; }

.ch-aktlist-row { margin-bottom: 8px; }

.ch-aktlist-hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 0 0 32px;
  /* wysuwa do lewej krawędzi page-container (1920px): cofa padding + połowę nadwyżki 1920-1440 */
  margin-left: calc(-56px - max(0px, (min(100vw, 1920px) - 1440px) / 2));
}
.ch-aktlist-row:first-child .ch-aktlist-hr { display: none; }

.ch-aktlist-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  color: inherit;
  padding-bottom: 32px;
}
.ch-aktlist-inner:hover { color: inherit; }

.ch-aktlist-img {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  overflow: hidden;
  border-radius: var(--ch-r-img);
}
.ch-aktlist-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ch-ease);
}
.ch-aktlist-inner:hover .ch-aktlist-img img { transform: scale(1.04); }

.ch-aktlist-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ch-aktlist-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ch-aktlist-badge {
  display: inline-block;
  background: var(--ch-navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.ch-aktlist-date {
  font-size: 0.8rem;
  color: #8a8a8a;
  font-weight: 500;
}

.ch-aktlist-title {
  font-size: 1.2rem !important;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
  margin: 0;
}

.ch-aktlist-excerpt {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #555;
  margin: 0;
}

.ch-aktlist-more {
  font-size: 0.8125rem;
  color: #444;
  font-weight: 500;
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  margin-top: 4px;
}
.ch-aktlist-inner:hover .ch-aktlist-more {
  border-bottom-color: #444;
}

/* ── Paginacja ── */
.ch-aktlist-pager { margin-top: 16px; }
.ch-aktlist-pager ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ch-aktlist-pager li a,
.ch-aktlist-pager li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
}
.ch-aktlist-pager li a:hover { color: var(--ch-navy); background: #f0f2f6; }
.ch-aktlist-pager li.active a { color: var(--ch-navy); font-weight: 700; }
.ch-aktlist-pager li.arrow a {
  font-size: 1.25rem;
  color: #555;
}
.ch-aktlist-pager li.arrow a:hover { color: var(--ch-navy); background: #f0f2f6; }

/* ── Sidebar ── */
.ch-aktlist-sidebar {
  position: sticky;
  top: calc(var(--ch-hdr-h, 128px) + 24px);
}

.ch-aktlist-sidebar-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: inherit;
  margin: 0 0 20px;
  line-height: 1.2;
}

.ch-aktlist-scard {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #efefef;
  color: inherit;
}
.ch-aktlist-scard:last-of-type { border-bottom: none; }
.ch-aktlist-scard:hover { color: inherit; }

.ch-aktlist-sthumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 4px;
}
.ch-aktlist-sthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ch-ease);
}
.ch-aktlist-scard:hover .ch-aktlist-sthumb img { transform: scale(1.06); }

.ch-aktlist-sbody {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ch-aktlist-sdate {
  font-size: 0.7rem;
  color: #999;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ch-aktlist-stitle {
  font-size: 0.875rem;
  font-weight: 700;
  color: inherit;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ch-aktlist-smore {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}
.ch-aktlist-scard:hover .ch-aktlist-smore { color: var(--ch-navy); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ch-aktlist-outer { grid-template-columns: 1fr 280px; gap: 0 40px; }
}
@media (max-width: 768px) {
  .ch-aktlist-outer {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .ch-aktlist-sidebar { position: static; margin-top: 48px; }
  .ch-aktlist-img { width: 180px; height: 180px; }
}
@media (max-width: 480px) {
  .ch-aktlist-inner { flex-direction: column; gap: 16px; }
  .ch-aktlist-img { width: 100%; height: 260px; }
  .ch-aktlist-outer { padding: 0 16px; }
}

/* ================================================================
   NEWS DETAIL — strona szczegółu aktualności
   ================================================================ */

.ch-newsd-section {
  padding: 56px 0 80px;
  background: #fff;
}

.ch-newsd-outer {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0 56px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px;
  align-items: start;
}

.ch-newsd-main { min-width: 0; }

.ch-newsd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ch-muted, #888);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ch-newsd-breadcrumb a {
  color: var(--ch-muted, #888);
  transition: color var(--ch-t-base, .28s);
}
.ch-newsd-breadcrumb a:hover { color: var(--ch-navy); }
.ch-newsd-bc-sep { opacity: .4; }

.ch-newsd-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ch-newsd-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 32px;
}


.ch-newsd-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #222;
  margin-bottom: 8px;
}
.ch-newsd-content { margin-bottom: 24px; }
.ch-newsd-more { margin-bottom: 24px; }
.ch-newsd-embed { margin: 24px 0; }

.ch-newsd-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.ch-newsd-mgroup {
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.ch-newsd-mgroup--lewy {
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr;
  height: 400px;
}
.ch-newsd-mgroup--prawy {
  grid-template-columns: 2fr 3fr;
  grid-template-rows: 1fr 1fr;
  height: 400px;
}
.ch-newsd-mgroup--pair {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  height: 340px;
}
.ch-newsd-mgroup--single {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}

.ch-newsd-mphoto {
  display: block;
  overflow: hidden;
  border-radius: var(--ch-r-img, 16px);
  min-height: 0;
}
.ch-newsd-mphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.ch-newsd-mphoto:hover img { transform: scale(1.04); }

.ch-newsd-mgroup--lewy   .ch-newsd-mphoto--main,
.ch-newsd-mgroup--prawy  .ch-newsd-mphoto--main { grid-row: 1 / 3; }

.ch-newsd-mgroup--lewy  .ch-newsd-mphoto--main { grid-column: 1; }
.ch-newsd-mgroup--lewy  .ch-newsd-mphoto--a    { grid-column: 2; grid-row: 1; }
.ch-newsd-mgroup--lewy  .ch-newsd-mphoto--b    { grid-column: 2; grid-row: 2; }

.ch-newsd-mgroup--prawy .ch-newsd-mphoto--main { grid-column: 2; }
.ch-newsd-mgroup--prawy .ch-newsd-mphoto--a    { grid-column: 1; grid-row: 1; }
.ch-newsd-mgroup--prawy .ch-newsd-mphoto--b    { grid-column: 1; grid-row: 2; }

.ch-newsd-mgroup--single .ch-newsd-mphoto--main { aspect-ratio: 16 / 9; height: auto; }

@media (max-width: 768px) {
  .ch-newsd-mgroup--lewy,
  .ch-newsd-mgroup--prawy {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
  }
  .ch-newsd-mgroup--lewy  .ch-newsd-mphoto--main,
  .ch-newsd-mgroup--prawy .ch-newsd-mphoto--main {
    grid-column: 1; grid-row: 1;
    aspect-ratio: 16 / 9; height: auto;
  }
  .ch-newsd-mgroup--lewy  .ch-newsd-mphoto--a,
  .ch-newsd-mgroup--prawy .ch-newsd-mphoto--a { grid-column: 1; grid-row: 2; aspect-ratio: 16/9; height: auto; }
  .ch-newsd-mgroup--lewy  .ch-newsd-mphoto--b,
  .ch-newsd-mgroup--prawy .ch-newsd-mphoto--b { grid-column: 1; grid-row: 3; aspect-ratio: 16/9; height: auto; }
  .ch-newsd-mgroup--pair { height: auto; grid-template-rows: auto; }
  .ch-newsd-mgroup--pair .ch-newsd-mphoto { aspect-ratio: 4/3; height: auto; }
}

.ch-newsd-files {
  margin: 40px 0 32px;
}
.ch-newsd-files-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
}
.ch-newsd-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ch-newsd-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #ebebeb;
  color: #333;
  font-size: 0.875rem;
  font-weight: 500;
  background: #fafafa;
  transition: border-color var(--ch-t-base, .28s), background var(--ch-t-base, .28s), color var(--ch-t-base, .28s);
}
.ch-newsd-file:hover {
  background: #fff;
  color: var(--ch-navy);
  border-color: #dde3ef;
}
.ch-newsd-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ch-navy);
  color: #fff;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: background var(--ch-t-base, .28s);
}
.ch-newsd-file:hover .ch-newsd-file-icon { background: var(--ch-red); }
.ch-newsd-file-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-newsd-file-dl {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ch-muted, #999);
  white-space: nowrap;
  transition: color var(--ch-t-base, .28s);
}
.ch-newsd-file:hover .ch-newsd-file-dl { color: var(--ch-red); }

.ch-newsd-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #efefef;
}

.ch-newsd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ch-muted, #888);
  transition: color var(--ch-t-base, .28s);
}
.ch-newsd-back:hover { color: var(--ch-navy); }

@media (max-width: 1024px) {
  .ch-newsd-outer { grid-template-columns: 1fr 280px; gap: 0 40px; }
}
@media (max-width: 768px) {
  .ch-newsd-outer {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .ch-newsd-section { padding: 40px 0 60px; }
}
@media (max-width: 480px) {
  .ch-newsd-outer { padding: 0 16px; }
}

/* ================================================================
   INNE_TXT_KOL — dwukolumnowy tekst z nagłówkiem i zdjęciami
   ================================================================ */

section.inne_txt_kol.segment {
  min-height: 0;
  overflow: visible;
  padding: 64px 0 80px;
  background: #fff;
}

.ch-txtkol-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ── Nagłówek ── */
.ch-txtkol-header {
  text-align: center;
  margin-bottom: 52px;
}

.ch-txtkol-h2 {
  font-size: 2.125rem;
  line-height: 1.3;
  font-weight: 300;
  color: #1a1a1a;
  margin: 0;
}

.ch-txtkol-h-bold { font-weight: 700 !important; letter-spacing: -0.01em; }
.ch-txtkol-h-light { font-weight: 300 !important; }

.ch-txtkol-desc {
  font-size: 0.9375rem;
  color: #555;
  max-width: 480px;
  margin: 18px auto 0;
  line-height: 1.75;
}

/* ── Zdjęcia ── */
.ch-txtkol-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid #ebebeb;
}

.ch-txtkol-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch-txtkol-img img {
  max-height: 220px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
}

/* ── Kolumny ── */
.ch-txtkol-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  align-items: start;
}

.ch-txtkol-col { line-height: 1.75; }
section.inne_txt_kol:not(.white) .ch-txtkol-col { color: #1a1a1a; }

.ch-txtkol-col p  { margin-bottom: 12px; }
.ch-txtkol-col ul,
.ch-txtkol-col ol { margin: 0; }
.ch-txtkol-col li { margin-bottom: 8px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .ch-txtkol-images { gap: 40px; }
  .ch-txtkol-cols { gap: 0 40px; }
}

@media (max-width: 768px) {
  .ch-txtkol-wrap { padding: 0 28px; }
  .ch-txtkol-images { flex-direction: column; gap: 32px; border-bottom: none; padding-bottom: 0; margin-bottom: 40px; }
  .ch-txtkol-img img { max-height: 180px; }
  .ch-txtkol-cols { grid-template-columns: 1fr; gap: 32px 0; }
  .ch-txtkol-cols--rev .ch-txtkol-col:first-child { order: 2; }
  .ch-txtkol-cols--rev .ch-txtkol-col:last-child  { order: 1; }
}

@media (max-width: 480px) {
  .ch-txtkol-wrap { padding: 0 16px; }
  section.inne_txt_kol.segment { padding: 44px 0 56px; }
  .ch-txtkol-h2 { font-size: 1.625rem; }
}

/* ─────────────────────────────────────────────────────────────────
   TEKST PEŁNY WYCENTROWANY  (.ch-tpw-*)
───────────────────────────────────────────────────────────────── */
.ch-tpw-section { padding: 56px 0; }
.ch-tpw-wrap {
  max-width: 1440px;
  margin: 0 auto;
}
.ch-tpw-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--ch-r-card);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
}
.ch-tpw-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ch-tpw-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ch-tpw-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ch-tpw-overlay--red {
  background: linear-gradient(145deg,
    rgba(168,31,20,0.82) 0%,
    rgba(213,43,30,0.76) 55%,
    rgba(232,50,31,0.68) 100%);
}
.ch-tpw-overlay--blue {
  background: linear-gradient(145deg,
    rgba(7,20,40,0.86) 0%,
    rgba(0,50,160,0.80) 55%,
    rgba(14,34,82,0.72) 100%);
}
/* Watermark — spójny z ch-splitr-card */
.ch-tpw-card::before {
  content: '';
  position: absolute;
  bottom: 16px;
  right: 24px;
  width: 380px;
  height: 380px;
  background: url('../img/footer-right-20.png') center / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 2;
}
.ch-tpw-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: clamp(56px, 7vw, 96px) clamp(40px, 8vw, 120px);
  max-width: 860px;
  color: #fff;
}
.ch-tpw-h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.25;
  font-weight: 300;
  color: #fff;
  margin: 0 0 28px;
}
.ch-tpw-h-bold { font-weight: 800; }
.ch-tpw-h-light { font-weight: 300; }
.ch-tpw-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
  margin: 0 0 16px;
}
.ch-tpw-content strong,
.ch-tpw-content b { font-weight: 700; color: #fff; }
.ch-tpw-content a { color: rgba(255,255,255,0.85); }

/* Wariant bez koloru — ciemne tło fallback */
section.tekst_pelny_wycentrowany:not(:has(.ch-tpw-overlay)) .ch-tpw-content { color: inherit; }
section.tekst_pelny_wycentrowany:not(:has(.ch-tpw-overlay)) .ch-tpw-h2 { color: inherit; }
section.tekst_pelny_wycentrowany:not(:has(.ch-tpw-overlay)) .ch-tpw-content p { color: inherit; }

/* Marginesy: brak */
section.tekst_pelny_wycentrowany.ch-tpw-no-margin { padding: 0; }
section.tekst_pelny_wycentrowany.ch-tpw-no-margin .ch-tpw-section { padding: 0; }

@media (max-width: 1024px) {
  .ch-tpw-wrap { padding: 0; }
}
@media (max-width: 768px) {
  .ch-tpw-wrap { padding: 0; }
  .ch-tpw-card { border-radius: 16px; min-height: 320px; }
  .ch-tpw-content { padding: 48px 24px; }
  .ch-tpw-card::before { width: 140px; height: 140px; }
}
