/* ==========================================================================
   Fundacja RAZEM - main.css
   Studio Thom Pfister AG
   Struktura: 1 Fonts · 2 Tokens · 3 Base · 4 Layout · 5 Buttons & atoms
              6 Header & menu · 7 Footer · 8 Content elements · 9 Core content & form
   ========================================================================== */

/* 1 · Fonts (Figtree, OFL, self-hosted) ---------------------------------- */
@font-face { font-family: Figtree; font-style: normal; font-weight: 400; font-display: swap; src: url(../Fonts/figtree-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 400; font-display: swap; src: url(../Fonts/figtree-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 500; font-display: swap; src: url(../Fonts/figtree-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 500; font-display: swap; src: url(../Fonts/figtree-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 600; font-display: swap; src: url(../Fonts/figtree-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 600; font-display: swap; src: url(../Fonts/figtree-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 700; font-display: swap; src: url(../Fonts/figtree-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 700; font-display: swap; src: url(../Fonts/figtree-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 800; font-display: swap; src: url(../Fonts/figtree-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Figtree; font-style: normal; font-weight: 800; font-display: swap; src: url(../Fonts/figtree-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 2 · Tokens ---------------------------------------------------------------- */
:root {
  /* Marka */
  --c-orange: #F08A12;
  --c-orange-dark: #C96A00;
  --c-ink: #2A211B;
  --c-text: #4E4138;
  --c-muted: #6B5E54;
  --c-page: #F6F4EF;
  --c-stone: #ECE8DF;
  --c-white: #FFFFFF;
  --c-line: rgba(42, 33, 27, 0.12);

  /* Pastele (kolory sekcji) */
  --c-sand: #E6DFC8;
  --c-sage: #B9C2B8;
  --c-sage-light: #D3D9D1;
  --c-blue: #AEBBC3;
  --c-blue-light: #D5DEE2;
  --c-taupe: #C9C0B0;
  --c-beige: #DDD6C8;
  --c-rose: #B49A8B;
  --c-rose-light: #E4CFCC;
  --c-peach: #E6D5CB;

  /* Wymiary */
  --maxw: 1440px;
  --gutter: clamp(20px, 3.9vw, 56px);
  --section: clamp(64px, 6.7vw, 96px);
  --gap: 16px;
  --r-xl: clamp(28px, 2.8vw, 40px);
  --r-l: clamp(24px, 2.2vw, 32px);
  --r-m: clamp(22px, 1.95vw, 28px);
  --r-s: 22px;
  --r-pill: 999px;

  /* Typografia */
  --font: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(44px, 5.85vw, 84px);
  --fs-h1: clamp(38px, 4.2vw, 60px);
  --fs-h2: clamp(30px, 3.05vw, 44px);
  --fs-h3: clamp(23px, 1.9vw, 28px);

  --overline: var(--c-text);
  --shadow-hover: 0 20px 40px -24px rgba(42, 33, 27, 0.3);
  --header-h: 112px;
}

/* Kolory tła (wybierane w backendzie) */
.u-bg-orange { background-color: var(--c-orange); --overline: var(--c-ink); }
.u-bg-sand { background-color: var(--c-sand); --overline: #4A3A2E; }
.u-bg-sage { background-color: var(--c-sage); --overline: #2F3A32; }
.u-bg-sage-light { background-color: var(--c-sage-light); --overline: #2F3A32; }
.u-bg-blue { background-color: var(--c-blue); --overline: #2F3A44; }
.u-bg-blue-light { background-color: var(--c-blue-light); --overline: #2F3A44; }
.u-bg-taupe { background-color: var(--c-taupe); --overline: var(--c-text); }
.u-bg-beige { background-color: var(--c-beige); --overline: var(--c-text); }
.u-bg-rose { background-color: var(--c-rose); --overline: var(--c-ink); }
.u-bg-rose-light { background-color: var(--c-rose-light); --overline: var(--c-text); }
.u-bg-peach { background-color: var(--c-peach); --overline: var(--c-text); }
.u-bg-stone { background-color: var(--c-stone); --overline: var(--c-text); }
.u-bg-white { background-color: var(--c-white); --overline: var(--c-text); }
.u-bg-none { background-color: transparent; }

/* 3 · Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.has-open-nav { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-orange-dark); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c-sand); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--c-ink); color: #fff; padding: 12px 20px; border-radius: var(--r-pill); font-weight: 700;
}
.skip-link:focus { top: 16px; color: #fff; }
.muted { color: var(--c-muted); }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* 4 · Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.page-main { display: block; }
.content-flow > * + * { margin-top: var(--section); }
.content-flow > .ce-hero.hero--home + *,
.content-flow > .ce-hero + .ce-facts { margin-top: 24px; }
.content-flow > .ce-facts + .ce-bento { margin-top: var(--gap); }
.stage + .content-flow, .page-title + .content-flow, .article-header + .content-flow,
.stage + .with-sidebar, .page-title + .with-sidebar, .article-header + .with-sidebar { margin-top: clamp(40px, 5vw, 72px); }
.with-sidebar + .content-flow { margin-top: var(--section); }

/* Zagnieżdżone kontenery (np. w kolumnie z panelem bocznym) */
.container .container:not(.mega__inner) { padding-inline: 0; max-width: none; }

.with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 33%);
  gap: clamp(32px, 3.4vw, 48px);
  align-items: start;
}
.with-sidebar__aside { position: relative; height: 100%; }
.with-sidebar__sticky { position: sticky; top: 24px; display: grid; gap: var(--gap); }
.content-flow--narrow > * + * { margin-top: clamp(48px, 4.5vw, 64px); }

.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.grid--4 { --cols: 4; }
.grid--3 { --cols: 3; }
.grid--2 { --cols: 2; }
.grid > li { display: flex; }
.grid > li > * { flex: 1; }

/* 5 · Buttons & atoms ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  border: 0; border-radius: var(--r-pill);
  font-weight: 800; font-size: 16px; line-height: 1.2;
  white-space: nowrap; cursor: pointer; text-align: center;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { color: var(--c-ink); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--sm { padding: 12px 20px; font-size: 15px; }
.btn--lg { padding: 18px 28px; font-size: 17px; }
.btn--primary { background: var(--c-orange); color: var(--c-ink); }
.btn--primary:hover { background: #F59A2E; }
.btn--light { background: var(--c-white); color: var(--c-ink); font-weight: 700; }
.btn--light:hover { background: #FFF8EF; }
.btn--soft { background: var(--c-stone); color: var(--c-ink); font-weight: 700; }
.btn--soft:hover { background: #E2DDD2; }
.btn--glass { background: rgba(255, 255, 255, 0.34); color: var(--c-ink); font-weight: 700; }
.btn--glass:hover { background: rgba(255, 255, 255, 0.5); }
.btn--icon { padding: 13px 20px; font-size: 15px; font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--c-ink);
}
.icon-btn:hover { background: var(--c-stone); color: var(--c-ink); }

.overline {
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1.4; color: var(--overline);
}
.overline--small { font-size: 13px; }
.overline--accent { color: var(--c-orange-dark); }

.tag {
  display: inline-block; align-self: flex-start;
  padding: 5px 11px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--c-ink);
}

.link-underline {
  font-weight: 700; white-space: nowrap;
  border-bottom: 2px solid var(--c-orange); padding-bottom: 1px;
}

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px;
  margin-bottom: clamp(24px, 2.2vw, 32px);
}
.section-head__text { display: flex; flex-direction: column; gap: 8px; max-width: 920px; }
.section-head__title, .section-title {
  font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800;
  text-wrap: balance;
}
.section-title { margin-bottom: 24px; }
.section-head__intro { font-size: 18px; line-height: 1.5; color: var(--c-text); margin-top: 4px; text-wrap: pretty; }

.chip, .chip-btn {
  position: relative; display: inline-flex; align-items: center;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  padding: 11px 18px; font-weight: 700; font-size: 15px; line-height: 1.2;
  background: var(--c-stone); color: var(--c-ink); transition: background-color .2s;
}
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip:has(input:checked) { background: var(--c-sand); }
.chip:has(input:checked) span::before { content: "✓ "; }
.chip:has(input:focus-visible) { outline: 3px solid var(--c-orange); outline-offset: 2px; }
.chip-btn.is-active { background: var(--c-orange); }
.chip-btn:hover { background: #E2DDD2; }
.chip-btn.is-active:hover { background: #F59A2E; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.input {
  width: 100%; min-width: 0; padding: 15px 22px; border: 0; border-radius: var(--r-pill);
  background: var(--c-stone); font-weight: 500; font-size: 16px; color: var(--c-ink);
}
.input::placeholder { color: var(--c-muted); }

/* 6 · Header & menu --------------------------------------------------------- */
.site-header { position: relative; z-index: 50; background: var(--c-page); }
.site-header__bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); padding-block: 20px; }
.site-header__logo { flex: none; margin-left: -12px; }
.site-header__logo img { height: 64px; width: auto; }
.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
/* Górny pasek: social media · wyszukiwarka · język */
.site-header__top { --tool: rgba(107, 94, 84, .78); display: flex; align-items: center; justify-content: flex-end; gap: 2px; padding-top: 6px; position: relative; z-index: 2; }
@media (min-width: 1301px) {
  /* z górnym paskiem: pasek menu ciaśniej, całość niewiele wyższa niż sam pasek menu */
  .site-header:not(.is-compact) .site-header__bar { min-height: 0; padding-block: 0 14px; }
}
.site-header__top .social { gap: 2px; }
.social--header .social__link { width: 28px; height: 28px; background: none; color: var(--tool); transition: color .2s, background-color .2s; }
.social--header .social__link svg { width: 14px; height: 14px; }
.social--header .social__link:hover { opacity: 1; color: var(--c-ink); background: var(--c-stone); }
.site-header__sep { width: 1px; height: 12px; margin: 0 8px; background: rgba(42, 33, 27, .09); }
.site-header__tool { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 28px; height: 28px; padding: 0 6px; border: 0; border-radius: var(--r-pill); background: none; color: var(--tool, var(--c-muted)); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em; cursor: pointer; transition: color .2s, background-color .2s; }
.site-header__tool:hover, .site-header__tool[aria-expanded="true"] { color: var(--c-ink); background: var(--c-stone); }
.site-header__top [data-search-open] svg { width: 13px; height: 13px; stroke-width: 2.2; }
.site-header__search-mobile { display: none; border: 0; background: none; cursor: pointer; }

.lang-switch { position: relative; }
.lang-switch__btn svg { transition: transform .2s; }
.lang-switch__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-switch__list { position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--c-white); box-shadow: 0 12px 32px rgba(42, 33, 27, .12), 0 0 0 1px var(--c-line); }
.lang-switch__list[hidden] { display: none; }
.lang-switch__link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 15px; color: var(--c-text); }
.lang-switch__link:hover { background: var(--c-page); color: var(--c-ink); }
.lang-switch__link.is-active { color: var(--c-ink); font-weight: 600; }
.lang-switch__code { min-width: 22px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--c-muted); }
.lang-switch__check { margin-left: auto; color: var(--c-orange-dark); }
.lang-inline { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lang-inline__link { display: inline-flex; padding: 8px 12px; border-radius: var(--r-pill); font-size: 14px; font-weight: 700; color: var(--c-muted); }
.lang-inline__link.is-active { background: var(--c-stone); color: var(--c-ink); }
.mobile-nav__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; }
.social--mobile .social__link { width: 44px; height: 44px; background: var(--c-white); }

/* Wyszukiwarka (okno) */
.search-dialog { width: 100%; max-width: none; max-height: none; height: auto; margin: 0; padding: 0; border: 0; background: transparent; color: var(--c-ink); overflow: visible; }
.search-dialog::backdrop { background: rgba(42, 33, 27, .28); backdrop-filter: blur(3px); }
.search-dialog[open] { animation: search-in .22s ease-out; }
@keyframes search-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.search-dialog__panel { width: min(760px, calc(100% - 2 * var(--gutter))); margin: clamp(16px, 9vh, 96px) auto 0; border-radius: 24px; background: var(--c-page); box-shadow: 0 24px 64px rgba(42, 33, 27, .22); overflow: hidden; }
.search-dialog__form { display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 24px; border-bottom: 1px solid var(--c-line); color: var(--c-muted); }
.search-dialog__form > svg { flex: none; width: 20px; height: 20px; }
.search-dialog__input { flex: 1; min-width: 0; height: 60px; border: 0; background: none; font: inherit; font-size: 20px; font-weight: 500; color: var(--c-ink); outline: none; }
.search-dialog__input::placeholder { color: var(--c-muted); opacity: .7; }
.search-dialog__input::-webkit-search-cancel-button { display: none; }
.search-dialog__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--c-muted); cursor: pointer; }
.search-dialog__close:hover { background: var(--c-stone); color: var(--c-ink); }
.search-dialog__body { max-height: min(62vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 18px 12px 12px; }
.search-dialog__label { margin: 0 12px 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.search-dialog__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 12px 6px; padding: 0; list-style: none; }
.search-dialog__chips .chip { padding: 8px 14px; font-size: 14px; font-weight: 600; }
.search-dialog__chips .chip:hover { background: var(--c-sand); }
.search-dialog__status { margin: 0 12px; font-size: 14px; color: var(--c-muted); }
.search-dialog__status:empty { display: none; }
.search-dialog__status a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.search-results { margin: 8px 0 0; padding: 0; list-style: none; }
.search-results__link { display: block; padding: 12px; border-radius: 14px; outline: none; }
.search-results__link:hover, .search-results__link:focus-visible { background: var(--c-white); }
.search-results__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 3px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--c-muted); }
.search-results__type { padding: 2px 8px; border-radius: var(--r-pill); background: var(--c-stone); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.search-results__title { display: block; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--c-ink); }
.search-results__text { display: -webkit-box; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--c-text); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-results mark { padding: 0 1px; border-radius: 3px; background: rgba(240, 138, 18, .22); color: inherit; }
.search-dialog__keys { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin: 0; padding: 10px 20px; border-top: 1px solid var(--c-line); font-size: 12px; color: var(--c-muted); }
.search-dialog__keys kbd { display: inline-flex; min-width: 20px; justify-content: center; padding: 1px 5px; border-radius: 5px; background: var(--c-stone); font: inherit; font-size: 11px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .search-dialog[open] { animation: none; } }
/* Mała nawigacja (po przewinięciu > 500 px, patrz main.js) */
.site-header.is-compact { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 6px 24px rgba(42, 33, 27, .08); animation: header-in .3s ease-out; }
.site-header.is-compact .site-header__bar { min-height: 0; padding-block: 10px; }
.site-header.is-compact .site-header__top { display: none; }
.site-header.is-compact .site-header__logo img { height: 44px; }
@keyframes header-in { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .site-header.is-compact { animation: none; } }

.main-nav { flex: 1; min-width: 0; }
.main-nav__list { display: flex; gap: 4px; }
.main-nav__link {
  display: block; padding: 10px 12px; border: 0; border-radius: var(--r-pill);
  background: transparent; cursor: pointer;
  font-weight: 600; font-size: 16px; line-height: 1.5; white-space: nowrap; color: var(--c-ink);
}
/* długie nazwy działów łamią się na 2 linie zamiast rozpychać nagłówek */
.main-nav__list { align-items: center; }
.main-nav__item { flex: none; }
.main-nav__link { white-space: nowrap; }
.main-nav__link:hover, .main-nav__link[aria-expanded="true"] { background: var(--c-stone); color: var(--c-ink); }
.main-nav__item.is-active > .main-nav__link { background: var(--c-stone); font-weight: 700; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-white);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 40px 60px -40px rgba(42, 33, 27, 0.35);
  padding-block: 40px 48px;
}
.mega[hidden] { display: none; }
.mega__inner { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 48px; }
.mega__intro {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 28px; border-radius: var(--r-m); background: var(--c-sand);
}
.mega__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.mega__text { color: var(--c-text); font-size: 16px; line-height: 1.5; margin-bottom: 10px; }
.mega__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 32px; align-content: start; }
.mega__link { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.mega__link-title { font-weight: 700; font-size: 17px; }
.mega__link-text { font-size: 14px; color: var(--c-muted); line-height: 1.4; }
.mega__link:hover .mega__link-title, .mega__link.is-current .mega__link-title { color: var(--c-orange-dark); }
.mega__links--grouped { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 24px; }
.mega__col-title {
  display: block; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--c-ink);
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text);
}
.mega__col-title:hover, .mega__col-title.is-current { color: var(--c-orange-dark); }
.mega__col-list { display: grid; gap: 4px; }
.mega__col-list a { display: block; padding: 6px 0; font-size: 16px; font-weight: 500; line-height: 1.35; }
.mega__col-list a[aria-current] { color: var(--c-orange-dark); }
/* wyróżniona kolumna (np. bezpłatne wsparcie) - pole strony «Frontend Layout» = 1 */
.mega__col--highlight { background: var(--c-sage-light); border-radius: var(--r-s); padding: 0 16px 16px; margin-top: -14px; padding-top: 14px; align-self: start; }
.mega__col-badge { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: var(--r-pill); background: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }


.burger {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--c-stone); cursor: pointer; align-items: center; justify-content: center;
}
.burger__lines, .burger__lines::before, .burger__lines::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--c-ink);
  transition: transform .25s, opacity .2s;
}
.burger__lines { position: relative; }
.burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
.burger__lines::before { top: -6px; }
.burger__lines::after { top: 6px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--mobile-top, 88px) 0 0 0; z-index: 60;
  background: var(--c-page); overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--c-line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__inner { padding: 16px var(--gutter) 40px; display: flex; flex-direction: column; gap: 32px; min-height: 100%; }
.mobile-nav__item { border-bottom: 1px solid var(--c-line); }
.mobile-nav__link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 21px; font-weight: 700; cursor: pointer; list-style: none;
}
.mobile-nav__link::-webkit-details-marker { display: none; }
summary.mobile-nav__link::after {
  content: ""; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
details[open] > summary.mobile-nav__link::after { transform: rotate(-135deg) translate(-2px, -2px); }
.mobile-nav__sub { display: grid; gap: 2px; padding: 0 0 18px; }
.mobile-nav__sub a { display: block; padding: 9px 0; font-size: 17px; color: var(--c-text); }
.mobile-nav__sub > li:first-child > a { font-weight: 700; color: var(--c-ink); }
.mobile-nav__sub2 { padding: 0 0 8px 16px; border-left: 2px solid var(--c-stone); margin-left: 2px; }
.mobile-nav__sub2 a { padding: 6px 0; font-size: 16px; color: var(--c-muted); }
.mobile-nav__sub a[aria-current] { color: var(--c-orange-dark); }
.mobile-nav__actions { display: grid; gap: 10px; margin-top: auto; }

.breadcrumb { padding-block: 4px 16px; font-size: 14px; color: var(--c-muted); }
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; margin-right: 8px; color: var(--c-taupe); }
.breadcrumb a:hover { color: var(--c-ink); }

.page-title { padding-block: 24px 8px; }
.page-title__h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; max-width: 900px; text-wrap: balance; }
.page-title__lead { margin-top: 18px; font-size: 20px; color: var(--c-text); max-width: 720px; }

/* 7 · Footer ---------------------------------------------------------------- */
.site-footer {
  margin-top: var(--section);
  background: var(--c-stone);
  border-radius: clamp(36px, 3.9vw, 56px) clamp(36px, 3.9vw, 56px) 0 0;
}
.site-footer__inner { display: flex; flex-direction: column; gap: clamp(40px, 3.9vw, 56px); padding-block: clamp(48px, 5vw, 72px) 40px; }
.site-footer__top {
  display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap;
  padding-bottom: clamp(32px, 3.4vw, 48px); border-bottom: 1px solid rgba(42, 33, 27, 0.1);
}
.site-footer__brand { display: flex; align-items: center; gap: 28px; }
.site-footer__logo img { height: 72px; width: auto; margin-left: -12px; }
.site-footer__divider { width: 1px; height: 56px; background: rgba(42, 33, 27, 0.15); }
.site-footer__claim { font-size: 22px; font-weight: 700; line-height: 1.3; max-width: 420px; letter-spacing: -0.01em; }

.footer-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px; }
.footer-nav__group { display: flex; flex-direction: column; gap: 18px; }
.footer-nav__title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.footer-nav__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--dot, var(--c-orange)); }
.footer-nav__group:nth-child(6n+2) { --dot: var(--c-sage); }
.footer-nav__group:nth-child(6n+3) { --dot: var(--c-blue); }
.footer-nav__group:nth-child(6n+4) { --dot: var(--c-taupe); }
.footer-nav__group:nth-child(6n+5) { --dot: var(--c-rose); }
.footer-nav__list { display: flex; flex-direction: column; gap: 11px; }
.footer-nav__list a { font-size: 15px; line-height: 1.35; color: var(--c-muted); }
.footer-nav__list a:hover { color: var(--c-ink); }

.newsletter {
  display: grid; grid-template-columns: 5fr 7fr; gap: 24px 48px; align-items: center;
  padding: 36px 40px; border-radius: var(--r-l); background: var(--c-white);
}
.newsletter__title { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 8px; }
.newsletter__text { font-size: 16px; line-height: 1.45; color: var(--c-text); }
.newsletter__form { display: flex; flex-direction: column; gap: 14px; }
.newsletter__topics { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 0; padding: 0; margin: 0; }
.newsletter__topics legend { float: left; font-size: 14px; color: var(--c-muted); margin-right: 4px; padding: 0; }
.newsletter__topics .chip { padding: 11px 18px; }
.newsletter__row { display: flex; gap: 10px; }
.newsletter__status { font-size: 15px; font-weight: 600; color: var(--c-text); }

.site-footer__bottom {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center;
  font-size: 14px; line-height: 1.6; color: var(--c-muted);
}
.social { display: flex; gap: 10px; }
.social__link {
  width: 48px; height: 48px; border-radius: 50%; background: var(--c-white); color: var(--c-ink);
  display: flex; align-items: center; justify-content: center; transition: opacity .2s;
}
.social__link:hover { opacity: .7; color: var(--c-ink); }
.site-footer__legal { max-width: 640px; }
.site-footer__legal a:hover, .site-footer__meta a:hover { color: var(--c-ink); }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; white-space: nowrap; }

/* 8 · Content elements ------------------------------------------------------ */

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.hero__body { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hero__head { display: flex; flex-direction: column; gap: 24px; }
.hero__overline { max-width: 470px; }
.hero__title { font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.hero__foot { display: flex; flex-direction: column; gap: 28px; }
.hero__text { font-size: clamp(18px, 1.46vw, 21px); line-height: 1.5; max-width: 560px; color: var(--c-text); text-wrap: pretty; }
.hero.u-bg-orange .hero__text { color: var(--c-ink); }
.hero__media { position: relative; min-height: 100%; background: var(--c-stone); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

.hero--home { min-height: clamp(560px, 50vw, 720px); }
.hero--home .hero__body {
  padding: clamp(40px, 4.4vw, 64px) clamp(24px, 3.9vw, 56px) clamp(40px, 3.9vw, 56px);
  padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
}
.hero--home .hero__title { font-size: var(--fs-hero); }

.hero--page, .hero--text {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin-inline: auto; border-radius: var(--r-l);
}
.hero--page { min-height: clamp(380px, 32vw, 460px); }
.hero--page .hero__body, .hero--text .hero__body { padding: clamp(32px, 3.9vw, 56px); justify-content: center; gap: 24px; }
.hero--page .hero__head, .hero--text .hero__head { gap: 14px; }
.hero--page .hero__title, .hero--text .hero__title { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.03em; }
.hero--page .hero__foot, .hero--text .hero__foot { gap: 24px; }
.hero--page .hero__text, .hero--text .hero__text { font-size: 18px; }
.hero--text, .hero--no-image { grid-template-columns: 1fr; }
.hero--text { min-height: clamp(260px, 24vw, 340px); }
.hero--text .hero__body { justify-content: center; gap: 28px; max-width: 900px; }

/* Facts */
.facts {
  display: flex; align-items: center; gap: 24px 48px; flex-wrap: wrap;
  padding: 26px 40px; border-radius: var(--r-l); background: var(--c-stone);
}
.facts__number { display: flex; align-items: center; gap: 14px; flex: none; }
.facts__number strong { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.facts__number span { font-size: 17px; color: var(--c-text); min-width: 0; }
.facts__divider { width: 1px; align-self: stretch; background: rgba(42, 33, 27, 0.15); }
.facts__partners { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px 28px; font-size: 15px; font-weight: 700; color: var(--c-text); }
.facts__label { flex: none; font-weight: 500; }
/* Logotypy partnerów: pasek, który sam się przesuwa (pauza po najechaniu; bez animacji przy «ogranicz ruch») */
.facts__marquee { flex: 1 1 0; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.facts__track { display: flex; width: max-content; animation: facts-marquee 40s linear infinite; }
.facts__marquee:hover .facts__track, .facts__marquee:focus-within .facts__track { animation-play-state: paused; }
.facts__list { display: flex; align-items: center; gap: 44px; padding: 0 22px; margin: 0; list-style: none; }
.facts__item { flex: none; display: flex; align-items: center; }
.facts__item a { display: flex; align-items: center; }
.facts__logo { display: block; height: 44px; width: auto; max-width: 200px; object-fit: contain; opacity: .85; transition: opacity .2s; }
.facts__item a:hover .facts__logo { opacity: 1; }
.facts__name { white-space: nowrap; font-size: 16px; font-weight: 700; color: var(--c-text); }
.facts__item a:hover .facts__name { color: var(--c-ink); }
@keyframes facts-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .facts__track { animation: none; width: auto; }
  .facts__list { flex-wrap: wrap; gap: 20px 40px; padding: 0; }
  .facts__list[aria-hidden] { display: none; }
  .facts__marquee { -webkit-mask-image: none; mask-image: none; }
}

/* Bento */
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(300px, 330px) minmax(260px, 300px);
}
.bento__main {
  grid-column: 1 / 7; grid-row: 1 / 3;
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(28px, 2.8vw, 40px); border-radius: var(--r-l);
}
.bento__head { display: flex; flex-direction: column; gap: 10px; }
.bento__title { font-size: clamp(30px, 2.65vw, 38px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
.bento__text { font-size: 16px; line-height: 1.45; color: var(--c-text); }
.bento__main .link-list { flex: 1; }
.bento__button { align-self: flex-start; }
.bento__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.bento__link2 { font-weight: 700; font-size: 17px; border-bottom: 2px solid var(--c-orange); padding-bottom: 1px; }
.bento__media { grid-column: 7 / 13; grid-row: 1; border-radius: var(--r-l); overflow: hidden; background: #5B4A3E; }
.bento__tile--1 { grid-column: 7 / 10; grid-row: 2; }
.bento__tile--2 { grid-column: 10 / 13; grid-row: 2; }

.link-list { display: flex; flex-direction: column; }
.link-list__link {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--c-line);
  font-size: 18px; font-weight: 600;
}

/* Tile (kafel z linkiem) */
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 28px; border-radius: var(--r-l);
  transition: transform .2s, box-shadow .2s;
}
a.tile:hover { color: var(--c-ink); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tile .overline { color: var(--overline); }
.tile__bottom { display: flex; flex-direction: column; gap: 12px; }
.tile__title { font-size: clamp(23px, 1.9vw, 27px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.tile__title--md { font-size: clamp(22px, 1.7vw, 25px); }
.tile__text { font-size: 15px; line-height: 1.45; color: var(--c-text); margin-top: -4px; }
.tile__more { font-size: 15px; font-weight: 700; }
.tile--card { min-height: 220px; padding: 24px 24px 26px; border-radius: var(--r-m); }
.tile--card .tile__bottom { gap: 10px; }

/* Card */
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-white); border-radius: var(--r-m);
  transition: transform .2s, box-shadow .2s;
}
.card--link:hover { color: var(--c-ink); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.card__media--wide { aspect-ratio: 16 / 10; }
.card__media--empty { aspect-ratio: auto; height: 10px; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card__title { font-size: 20px; font-weight: 800; line-height: 1.2; text-wrap: pretty; }
.card__title--lg { font-size: clamp(20px, 1.6vw, 23px); }
.card__text { font-size: 15px; line-height: 1.45; color: var(--c-text); }
.card__meta { font-size: 14px; color: var(--c-muted); }
.card__cta { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 800; color: var(--c-orange-dark); }

/* Projects */
.projects { display: flex; flex-direction: column; gap: 32px; }
.projects--boxed { padding: clamp(28px, 3.9vw, 56px); border-radius: var(--r-xl); }
.projects--boxed .overline { color: var(--overline); }
.projects__head { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: flex-end; }
.projects__head .section-head__intro { color: inherit; }
.projects--boxed .section-head__intro { color: var(--overline); }
.projects__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.projects__head + .projects__toolbar { margin-top: -8px; }
.projects__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; font-size: 16px; }
.projects [data-status][hidden], .projects .is-filtered { display: none; }

.segmented { display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--r-pill); background: var(--c-white); }
.segmented__btn {
  border: 0; cursor: pointer; white-space: nowrap; padding: 12px 22px; border-radius: var(--r-pill);
  background: transparent; font-weight: 700; font-size: 16px; color: var(--c-ink);
}
.segmented__btn.is-active { background: var(--c-orange); }
.projects:not(.projects--boxed) .segmented { background: var(--c-stone); }

/* Knowledge */
.knowledge { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); }
.knowledge__feature { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-l); }
.knowledge__media { height: clamp(220px, 21vw, 300px); }
.knowledge__body { display: flex; flex-direction: column; gap: 14px; padding: 30px 32px 34px; }
.knowledge__title { font-size: clamp(24px, 1.95vw, 28px); font-weight: 800; line-height: 1.15; text-wrap: pretty; }
.knowledge__body .btn-row { margin-top: 6px; }
.knowledge__tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: var(--gap); }
.knowledge__tiles > li { display: flex; }
.ktile {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  min-height: 132px; padding: 26px 28px; border-radius: var(--r-m); transition: transform .2s;
}
a.ktile:hover { color: var(--c-ink); transform: translateY(-3px); }
.ktile__title { font-size: clamp(21px, 1.65vw, 24px); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.ktile__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ktile__text { font-size: 15px; line-height: 1.4; color: var(--c-text); }
.ktile__arrow { font-size: 20px; font-weight: 800; }

/* News rows */
.news-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.news-row {
  display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: center;
  padding: 10px; border-radius: var(--r-m); background: var(--c-white); transition: background-color .2s;
}
.news-row:hover { background: var(--c-stone); color: var(--c-ink); }
.news-row__media { display: block; height: 160px; border-radius: 20px; overflow: hidden; }
.news-row--empty, .news-row:has(.news-row__media--empty) { grid-template-columns: 10px 1fr; padding: 10px 10px 10px 10px; }
.news-row__media--empty { height: 100%; min-height: 96px; border-radius: 8px; }
.news-row__body { display: flex; flex-direction: column; gap: 10px; padding-right: 20px; }
.news-row__title { font-size: clamp(19px, 1.55vw, 22px); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; text-wrap: pretty; }

/* CTA */
.cta {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 56px; align-items: center;
  padding: clamp(32px, 3.9vw, 56px); border-radius: var(--r-xl);
}
.cta__text { display: flex; flex-direction: column; gap: 14px; }
.cta__title { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
.cta__intro { font-size: 18px; line-height: 1.5; color: var(--c-text); max-width: 560px; }
.cta--band { grid-template-columns: 1fr auto; }
.cta--band .cta__title { font-size: clamp(28px, 2.65vw, 38px); }
.cta--band .cta__intro { font-size: 16px; }
.cta--band .btn-row { justify-content: flex-end; }
.cta--note { grid-template-columns: 1fr auto; padding: 28px 40px 28px 40px; border-radius: var(--r-l); }
.cta--note .cta__title { font-size: 20px; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.cta--note .cta__intro { font-size: 18px; }
.cta__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta__tile {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 22px 24px; border-radius: var(--r-s); background: var(--c-white);
  font-size: 19px; font-weight: 800; transition: transform .2s;
}
.cta__tile:hover { color: var(--c-ink); transform: translateY(-2px); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); counter-reset: none; }
.steps__item { padding: 24px 24px 28px; border-radius: var(--r-m); background: var(--c-white); }
.steps__no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--c-orange);
  font-weight: 800; font-size: 15px; margin-bottom: 16px;
}
.steps__title { font-size: 20px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.steps__text { font-size: 15px; line-height: 1.5; color: var(--c-text); }

/* FAQ */
.faq { border-top: 1px solid transparent; }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-size: 18px; font-weight: 700; cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--c-orange-dark); }
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; border-radius: 2px;
  background: var(--c-orange); transform: translate(-50%, -50%); transition: transform .2s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 0 22px; max-width: 760px; color: var(--c-text); }

/* Text */
.text-block { display: grid; gap: clamp(24px, 3.4vw, 48px); align-items: start; }
.text-block--plain .text-block__body, .text-block--img-above .text-block__body { max-width: 820px; }
.text-block--img-right { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.text-block--img-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.text-block--img-left .text-block__media { order: -1; }
.text-block--img-above .text-block__media { order: -1; }
.text-block--box { padding: clamp(28px, 3.4vw, 48px); border-radius: var(--r-l); }
.text-block__body > .overline { margin-bottom: 8px; }
.text-block__title { margin-bottom: 16px; }
.text-block__media { margin: 0; }
.text-block__img { width: 100%; border-radius: var(--r-m); }
.text-block__media figcaption { font-size: 14px; color: var(--c-muted); margin-top: 8px; }
.with-sidebar .text-block--img-right, .with-sidebar .text-block--img-left { grid-template-columns: 1fr 1fr; }

/* Features (pigułki) */
.features__intro { max-width: 720px; margin-bottom: 24px; }
.pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pills__item { padding: 18px 22px; border-radius: var(--r-s); background: var(--c-stone); font-weight: 700; font-size: 17px; }

/* Pricebox */
.pricebox { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px 30px 30px; border-radius: var(--r-m); }
.pricebox__price { font-size: clamp(32px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.pricebox__text { font-size: 15px; line-height: 1.45; color: var(--c-text); }
.pricebox .btn { margin-top: 4px; }
.pricebox__phone { font-weight: 700; font-size: 16px; }
.pricebox__more { align-self: stretch; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--c-line); font-weight: 700; font-size: 15px; }

/* Offers */
.offers { display: grid; gap: 10px; }
.offers__row {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 16px 24px; align-items: center;
  padding: 18px 24px; border-radius: var(--r-s); background: var(--c-white); transition: box-shadow .2s;
}
.offers__row--link:hover { color: var(--c-ink); box-shadow: var(--shadow-hover); }
.offers__main { display: flex; flex-direction: column; gap: 2px; }
.offers__title { font-size: 18px; font-weight: 800; line-height: 1.25; }
.offers__meta { font-size: 14px; color: var(--c-muted); }
.offers__cta { font-weight: 800; font-size: 15px; color: var(--c-orange-dark); white-space: nowrap; }

/* Media teaser */
.media-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.media-teaser__media { position: relative; min-height: 320px; border-radius: var(--r-l); overflow: hidden; background: #5B4A3E; }
.media-teaser__media img { position: absolute; inset: 0; }
.media-teaser__badge {
  position: absolute; left: 20px; bottom: 20px; padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--c-white); font-weight: 700; font-size: 14px;
}
.media-teaser__body { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(28px, 2.8vw, 40px); border-radius: var(--r-l); }
.media-teaser__title { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; margin-top: 8px; }
.media-teaser__text { color: var(--c-text); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.contact__cards { display: grid; gap: var(--gap); }
.contact__card { padding: 24px 28px; border-radius: var(--r-m); }
.contact__value { font-size: clamp(22px, 1.8vw, 26px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin-top: 4px; overflow-wrap: anywhere; }
.contact__text { font-size: 15px; color: var(--c-text); margin-top: 2px; }
.contact__form { padding: clamp(24px, 2.4vw, 34px); border-radius: var(--r-l); background: var(--c-white); }
.contact__form-title { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.contact__map {
  position: relative; display: grid; place-items: center; min-height: 260px; margin-top: var(--gap);
  border-radius: var(--r-l); overflow: hidden; background: var(--c-stone);
}
.contact__map img { position: absolute; inset: 0; }
.contact__map-label { position: relative; padding: 10px 18px; border-radius: var(--r-pill); background: var(--c-white); font-weight: 700; font-size: 15px; }
.crisis { margin-top: var(--gap); padding: 22px 28px; border-radius: var(--r-m); font-size: 18px; font-weight: 700; }

/* Article header (typ strony «Artykuł») */
.article-header { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.article-header__text { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(32px, 3.9vw, 56px); border-radius: var(--r-l) 0 0 var(--r-l); }
.article-header__meta { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--c-muted); }
.article-header__title { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.article-header__lead { font-size: 19px; color: var(--c-text); }
.article-header__media { min-height: 380px; border-radius: 0 var(--r-l) var(--r-l) 0; overflow: hidden; }
.article-header__text:only-child { border-radius: var(--r-l); grid-column: 1 / -1; }

.back-link { display: inline-flex; gap: 8px; font-weight: 700; border-bottom: 2px solid var(--c-orange); padding-bottom: 1px; }
.content-flow + .container.back-wrap { margin-top: 48px; }

/* 9 · Core content (Fluid Styled Content) & form ----------------------------- */
.content-flow > .frame { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.with-sidebar .frame { padding-inline: 0; }
.frame > * { max-width: 820px; }
.frame-razem-box-sand, .frame-razem-box-sage, .frame-razem-box-blue, .frame-razem-box-stone, .frame-razem-box-white { position: relative; }
.frame[class*="frame-razem-box-"] > * { max-width: none; }
.frame[class*="frame-razem-box-"]::before { content: none; }
.frame[class*="frame-razem-box-"] { --box: var(--c-stone); }
.frame-razem-box-sand { --box: var(--c-sand); }
.frame-razem-box-sage { --box: var(--c-sage-light); }
.frame-razem-box-blue { --box: var(--c-blue-light); }
.frame-razem-box-white { --box: var(--c-white); }
.frame[class*="frame-razem-box-"] > .ce-bodytext,
.frame[class*="frame-razem-box-"] > .ce-textpic,
.frame[class*="frame-razem-box-"] > header { background: var(--box); }
.frame[class*="frame-razem-box-"] { display: flow-root; }
.frame[class*="frame-razem-box-"] > header { padding: 32px 40px 0; border-radius: var(--r-l) var(--r-l) 0 0; margin: 0; }
.frame[class*="frame-razem-box-"] > .ce-bodytext, .frame[class*="frame-razem-box-"] > .ce-textpic { padding: 24px 40px 36px; border-radius: 0 0 var(--r-l) var(--r-l); }
.frame[class*="frame-razem-box-"] > :only-child { border-radius: var(--r-l); padding-top: 32px; }

.frame-space-before-extra-small { margin-top: 16px !important; }
.frame-space-before-small { margin-top: 32px !important; }
.frame-space-before-medium { margin-top: 64px !important; }
.frame-space-before-large { margin-top: 128px !important; }
.frame-space-after-extra-small { margin-bottom: 16px; }
.frame-space-after-small { margin-bottom: 32px; }
.frame-space-after-medium { margin-bottom: 64px; }
.frame-space-after-large { margin-bottom: 128px; }

.frame header { margin-bottom: 16px; }
.frame h1, .rte h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
.frame h2, .rte h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
.frame h3, .rte h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; }
.frame h4, .rte h4 { font-size: 20px; line-height: 1.25; font-weight: 800; }
.frame header h2 + h3, .frame header h1 + h2 { margin-top: 8px; font-size: 18px; font-weight: 600; color: var(--c-text); letter-spacing: 0; }
.ce-bodytext, .rte { font-size: 17px; line-height: 1.6; color: var(--c-text); }
.ce-bodytext > * + *, .rte > * + * { margin-top: 1em; }
.ce-bodytext h2, .ce-bodytext h3, .ce-bodytext h4, .rte h2, .rte h3, .rte h4 { color: var(--c-ink); margin-top: 1.4em; }
.ce-bodytext a:not(.btn), .rte a:not(.btn) { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ce-bodytext ul, .ce-bodytext ol, .rte ul, .rte ol { padding-left: 1.3em; }
.ce-bodytext li + li, .rte li + li { margin-top: .35em; }
.ce-bodytext blockquote, .rte blockquote { padding: 20px 28px; border-radius: var(--r-s); background: var(--c-stone); font-size: 19px; font-weight: 600; color: var(--c-ink); }
.lead { font-size: 21px; line-height: 1.5; color: var(--c-ink); }
.rte table, .ce-table, .contenttable { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--c-white); border-radius: var(--r-s); overflow: hidden; }
.rte th, .rte td, .ce-table th, .ce-table td, .contenttable th, .contenttable td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-line); }
.rte th, .ce-table th, .contenttable th { background: var(--c-stone); font-weight: 700; }
.ce-gallery img { border-radius: var(--r-m); }
.ce-gallery figure { margin: 0; }
.ce-gallery figcaption { font-size: 14px; color: var(--c-muted); margin-top: 8px; }
.ce-textpic, .ce-image { display: flow-root; }
.ce-gallery { margin-bottom: 24px; }
.ce-intext.ce-right .ce-gallery { float: right; margin-left: 32px; max-width: 45%; }
.ce-intext.ce-left .ce-gallery { float: left; margin-right: 32px; max-width: 45%; }
.ce-uploads { list-style: none; padding: 0; display: grid; gap: 10px; }
.ce-uploads li { padding: 16px 20px; border-radius: var(--r-s); background: var(--c-white); }
.ce-uploads a { font-weight: 700; }
.ce-uploads span { display: block; font-size: 14px; color: var(--c-muted); }

/* EXT:form */
.contact__form form, .frame form { display: grid; gap: 14px; }
.contact__form form > h2 { display: none; }
.form-element, .form-group { display: grid; gap: 6px; margin: 0; }
.form-element.mb-3 { margin: 0; }
fieldset.form-element { border: 0; padding: 0; min-width: 0; }
.form-label, .control-label { font-size: 14px; font-weight: 700; color: var(--c-muted); }
.form-control, .form-select {
  width: 100%; min-width: 0; padding: 14px 20px; border: 0; border-radius: 24px;
  background: var(--c-stone); font-size: 16px; font-weight: 500; color: var(--c-ink);
}
textarea.form-control { border-radius: 22px; min-height: 130px; resize: vertical; }
.form-control::placeholder { color: var(--c-muted); }
.form-control:focus { outline: 3px solid var(--c-orange); outline-offset: 0; }

/* Radio jako «chipsy» (np. temat wiadomości) */
.form-element-radio [role="radiogroup"] { display: flex; flex-wrap: wrap; gap: 8px; }
.form-element-radio [role="radiogroup"] > div { margin: 0; }
.form-element-radio .form-check-wrapping-label { position: relative; display: inline-flex; cursor: pointer; }
.form-element-radio .form-check-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.form-element-radio .form-check-label {
  display: inline-block; padding: 10px 16px; border-radius: var(--r-pill); background: var(--c-stone);
  font-weight: 700; font-size: 14px; line-height: 1.2; transition: background-color .2s;
}
.form-element-radio .form-check-input:checked + .form-check-label { background: var(--c-orange); }
.form-element-radio .form-check-input:focus-visible + .form-check-label { outline: 3px solid var(--c-orange); outline-offset: 2px; }

.form-element-checkbox .form-check-wrapping-label, .form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--c-text); line-height: 1.45; }
.form-element-checkbox .form-check-input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--c-orange); flex: none; }
.form-element-checkbox .form-check-label { font-weight: 500; }

.actions, .form-navigation { margin-top: 4px; }
.form-navigation .btn-toolbar, .form-navigation .btn-group { display: flex; gap: 10px; }
.form-navigation button, .actions button, .contact__form button[type="submit"], .frame form button[type="submit"] {
  display: inline-flex; align-items: center; border: 0; cursor: pointer;
  padding: 14px 26px; border-radius: var(--r-pill); background: var(--c-orange);
  font-weight: 800; font-size: 16px; color: var(--c-ink);
}
.error.help-block, .invalid-feedback, .form-element .error { font-size: 14px; color: #A3361C; font-weight: 600; }
.has-error .form-control, .form-control.is-invalid, .form-control.error { outline: 2px solid #E9A089; }
.required { color: var(--c-orange-dark); }

/* Responsive ------------------------------------------------------------------ */
/* EXT:news (list, pagination, detail) -------------------------------------- */
.content-flow > .frame[class*="frame-type-news_"] { max-width: none; padding-inline: 0; }
.frame[class*="frame-type-news_"] > * { max-width: none; }
.news-detail__body { margin-top: clamp(40px, 5vw, 72px); }
.news-detail__body > * + * { margin-top: var(--section); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: clamp(40px, 4vw, 56px); }
.pagination__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pagination__link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: #fff; font-weight: 700; color: var(--c-ink); transition: background-color .2s ease; }
.pagination__link:hover { background: var(--c-stone); }
.pagination__link.is-current { background: var(--c-ink); color: #fff; }
.pagination__link:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }

/* Gallery + files ---------------------------------------------------------- */
.gallery { list-style: none; margin: 0; padding: 0; }
.gallery__link { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--c-stone); }
.gallery__link img { transition: transform .4s ease; }
.gallery__link:hover img { transform: scale(1.03); }
.gallery__caption { margin-top: 8px; font-size: 14px; color: var(--c-muted); }
.file-list__title { margin-bottom: 24px; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 820px; }
.file-list__link { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-radius: var(--r-s); background: #fff; font-weight: 700; color: var(--c-ink); }
.file-list__link:hover { background: var(--c-stone); }
.file-list__type { text-transform: uppercase; font-size: 12px; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: var(--c-sand); }
.file-list__size { font-weight: 400; font-size: 14px; color: var(--c-muted); }

/* Panel boczny (kafle startowe) ------------------------------------------ */
.side-panel {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
  width: min(50vw, 760px); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: transparent; color: var(--c-ink); overflow: visible;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1), overlay .35s allow-discrete, display .35s allow-discrete;
}
.side-panel[open] { transform: none; }
@starting-style { .side-panel[open] { transform: translateX(100%); } }
.side-panel::backdrop { background: rgba(42, 33, 27, 0); backdrop-filter: blur(0); transition: background .35s, backdrop-filter .35s, overlay .35s allow-discrete, display .35s allow-discrete; }
.side-panel[open]::backdrop { background: rgba(42, 33, 27, .32); backdrop-filter: blur(2px); }
@starting-style { .side-panel[open]::backdrop { background: rgba(42, 33, 27, 0); backdrop-filter: blur(0); } }
.side-panel__inner {
  height: 100%; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 24px;
  padding: clamp(28px, 3.5vw, 56px); border-radius: var(--r-l) 0 0 var(--r-l);
  box-shadow: -24px 0 60px rgba(42, 33, 27, .18);
}
.side-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.side-panel__head .overline { margin-bottom: 10px; }
.side-panel__title { font-size: clamp(30px, 2.8vw, 42px); font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; }
.side-panel__close {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.7); color: var(--c-ink); cursor: pointer;
  transition: background .2s, transform .2s;
}
.side-panel__close:hover { background: #fff; transform: rotate(90deg); }
.side-panel__close:focus-visible, .side-option:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }
.side-panel__text { font-size: 17px; line-height: 1.5; color: var(--c-text); max-width: 56ch; }
.side-panel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-option {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: var(--r-s); background: rgba(255,255,255,.72); color: var(--c-ink);
  transition: background .2s, transform .2s;
}
.side-option:hover { background: #fff; color: var(--c-ink); transform: translateX(-4px); }
.side-option__body { display: flex; flex-direction: column; gap: 4px; }
.side-option__title { font-size: 18px; font-weight: 700; line-height: 1.25; }
.side-option__text { font-size: 15px; line-height: 1.45; color: var(--c-text); }
.side-option__meta { font-size: 14px; font-weight: 700; white-space: nowrap; padding: 6px 12px; border-radius: var(--r-pill); background: var(--c-page); }
.side-option__arrow { font-size: 20px; }
.side-panel__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; }
.side-panel__more { font-weight: 700; border-bottom: 2px solid var(--c-orange); padding-bottom: 1px; }
html.has-side-panel { overflow: hidden; }
@media (max-width: 900px) {
  .side-panel { width: 100vw; }
  .side-panel__inner { border-radius: 0; }
  .side-option { grid-template-columns: 1fr auto; }
  .side-option__meta { grid-column: 1; justify-self: start; }
  .side-option__arrow { grid-row: 1 / span 2; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .side-panel, .side-panel::backdrop { transition: none; } }

/* Szkolenia (sf_event_mgt) --------------------------------------------------- */
.content-flow > .frame[class*="frame-type-sfeventmgt_"], .content-flow > .frame[class*="frame-type-powermail_"] { max-width: none; padding-inline: 0; }
.frame[class*="frame-type-sfeventmgt_"] > *, .frame[class*="frame-type-powermail_"] > * { max-width: none; }
.ev-trainings { display: grid; gap: 24px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ev-row { display: grid; grid-template-columns: 112px 1fr auto; gap: 24px; align-items: center; padding: 20px 24px 20px 20px; border-radius: var(--r-m); background: var(--c-white); }
.ev-row[hidden] { display: none; }
.ev-row__date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 104px; border-radius: var(--r-s); background: var(--c-sand); text-align: center; }
.ev-row__day { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.ev-row__month { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ev-row__body { display: grid; gap: 8px; min-width: 0; }
.ev-row__title { font-size: clamp(20px, 1.6vw, 24px); font-weight: 800; line-height: 1.2; }
.ev-row__title a:hover { color: var(--c-orange-dark); }
.ev-row__teaser { font-size: 16px; line-height: 1.45; color: var(--c-text); max-width: 70ch; }
.ev-row__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: var(--c-muted); }
.ev-row__price { font-weight: 800; color: var(--c-ink); }
.ev-row__places { font-size: 14px; font-weight: 700; color: var(--c-orange-dark); }
.ev-row__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ev-row__more { font-weight: 700; border-bottom: 2px solid var(--c-orange); padding-bottom: 1px; white-space: nowrap; }
.ev-detail .article-header + .ev-detail__layout { margin-top: clamp(40px, 5vw, 72px); }
.ev-facts__list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.ev-facts__list dt { font-weight: 700; color: var(--c-muted); }
.ev-facts__list dd { margin: 0; }
.ev-facts__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ev-speakers__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.ev-speaker { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.ev-speaker__img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.ev-speaker__name { font-weight: 800; font-size: 18px; }
.ev-speaker__job { font-size: 15px; color: var(--c-muted); }
.ev-speaker__text { font-size: 15px; color: var(--c-text); margin-top: 6px; }
.ev-register__grid { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 32px; align-items: start; }
.ev-register__title { font-size: 22px; font-weight: 800; line-height: 1.2; }
.razem-form { display: grid; gap: 18px; max-width: 720px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 6px; }
.form-field--check label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.form-field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-orange); flex: none; }
.form-required { color: var(--c-orange-dark); }
.form-note { font-size: 15px; color: var(--c-muted); }
.form-note--info { padding: 14px 18px; border-radius: var(--r-s); background: var(--c-peach); color: var(--c-ink); }
.field-errors .error { display: block; font-size: 14px; font-weight: 600; color: #A3361C; }
.f3-form-error .form-control, .form-field.error .form-control { outline: 2px solid #E9A089; }
.razem-form .btn { justify-self: start; border: 0; cursor: pointer; font-size: 17px; }
.ev-result { max-width: 820px; display: grid; gap: 14px; justify-items: start; }
.text-block--box { padding: clamp(28px, 3vw, 44px); border-radius: var(--r-l); }

/* Kalendarz wydarzeń: duże, czytelne wiersze (seniorzy, telefon) */
.schedule__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 980px; }
.schedule__day { display: flex; align-items: baseline; gap: 14px; margin-top: 28px; padding-bottom: 10px; border-bottom: 2px solid var(--c-ink); scroll-margin-top: 24px; }
.schedule__day:first-child { margin-top: 0; }
.schedule__daynum { font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.01em; }
.schedule__weekday { font-size: 18px; font-weight: 600; color: var(--c-muted); }
.schedule__day.is-today .schedule__weekday { color: var(--c-orange-dark); font-weight: 800; }
.schedule__item { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 16px 20px; border-radius: var(--r-s); background: var(--c-white); font-size: 18px; line-height: 1.45; }
.schedule__time { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule__title { font-weight: 700; }
.schedule__text { font-size: 17px; color: var(--c-text); }
.schedule__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 6px; font-size: 16px; color: var(--c-muted); }
.schedule__note { margin-top: 6px; font-size: 14px; color: var(--c-muted); }
.schedule__day.is-past, .schedule__item.is-past { opacity: .55; }

/* Powermail (formularz «Zapytaj o szkolenie») w wyglądzie strony */
.tx-powermail { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.powermail_form { display: grid; gap: 18px; max-width: 880px; padding: clamp(24px, 3vw, 44px); border-radius: var(--r-l); background: #fff; }
.powermail_form > h3, .powermail_form > h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; margin: 0; }
.powermail_fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.powermail_fieldwrap_type_textarea, .powermail_fieldwrap_type_check, .powermail_fieldwrap_type_submit, .powermail_fieldwrap_szkolenie { grid-column: 1 / -1; }
.powermail_fieldwrap_type_submit .btn { display: inline-flex; border: 0; cursor: pointer; padding: 14px 26px; border-radius: var(--r-pill); background: var(--c-orange); font-weight: 800; font-size: 17px; color: var(--c-ink); }
.powermail_fieldwrap_type_submit .btn:hover { filter: brightness(.95); }
.powermail_legend { display: none; }
.powermail_fieldwrap { display: grid; gap: 6px; }
.powermail_label { font-size: 14px; font-weight: 700; color: var(--c-muted); }
.powermail_input, .powermail_textarea, .powermail_select { width: 100%; padding: 14px 20px; border: 0; border-radius: 24px; background: var(--c-stone); font-size: 16px; font-weight: 500; color: var(--c-ink); }
.powermail_textarea { min-height: 140px; border-radius: 22px; resize: vertical; }
.powermail_input:focus, .powermail_textarea:focus, .powermail_select:focus { outline: 3px solid var(--c-orange); outline-offset: 0; }
.powermail_fieldwrap_type_check .powermail_label { display: none; }
.powermail_fieldwrap_type_check .checkbox label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--c-text); }
.powermail_fieldwrap_type_check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-orange); flex: none; }
.powermail_submit { display: inline-flex; border: 0; cursor: pointer; padding: 14px 26px; border-radius: var(--r-pill); background: var(--c-orange); font-weight: 800; font-size: 17px; color: var(--c-ink); }
.powermail-errors-list, .powermail_message_error, .parsley-errors-list { margin: 6px 0 0; padding: 0; list-style: none; color: #A3361C; font-size: 14px; font-weight: 600; }
.powermail_input.powermail_field_error, .powermail_select.powermail_field_error, .powermail_textarea.powermail_field_error { outline: 2px solid #A3361C; outline-offset: 0; }
.powermail_fieldwrap_type_check.powermail_field_error label, .powermail_fieldwrap_type_check .powermail_field_error + label { color: var(--c-text); }
.powermail_create, .powermail_message_ok { max-width: 820px; padding: clamp(28px, 3vw, 44px); border-radius: var(--r-l); background: var(--c-sage-light); }
.powermail_create h2 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; margin-bottom: 8px; }
.tx-powermail .container-fluid { all: unset; display: block; }
.tx-powermail .row { display: contents; }
@media (max-width: 900px) {
  .ev-row { grid-template-columns: 84px 1fr; padding: 16px; }
  .ev-row__date { min-height: 84px; }
  .ev-row__day { font-size: 30px; }
  .ev-row__actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .ev-register__grid, .form-grid, .powermail_fieldset { grid-template-columns: 1fr; }
  .schedule__item { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 1320px) {
  .main-nav__link { padding-inline: 9px; font-size: 15px; }
  .site-header__bar { gap: 16px; }
  .site-header__logo img { height: 56px; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 1300px) {
  .main-nav, .site-header__support, .site-header__top { display: none; }
  .site-header__search-mobile { display: inline-flex; }
  .search-dialog__keys { display: none; }
  .burger { display: inline-flex; }
}

@media (max-width: 1180px) {
  :root { --header-h: 88px; }
  .site-header__bar { padding-block: 16px; }
  .site-header__logo img { height: 52px; }

  .grid--4 { --cols: 2; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bento__main { grid-column: 1 / -1; grid-row: auto; }
  .bento__media { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .bento__tile--1, .bento__tile--2 { grid-column: auto; grid-row: auto; min-height: 240px; }

  .knowledge { grid-template-columns: 1fr; }
  .cta, .cta--band { grid-template-columns: 1fr; }
  .cta--band .btn-row { justify-content: flex-start; }
  .with-sidebar { grid-template-columns: 1fr; }
  .facts__divider { display: none; }
  .facts__partners { flex-basis: 100%; }
  .with-sidebar__sticky { position: static; }
  .newsletter { grid-template-columns: 1fr; }
  .site-footer__bottom { grid-template-columns: 1fr; }
  .mega__links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero--home { min-height: 0; }
  .hero--home .hero__body { padding-left: var(--gutter); padding-right: var(--gutter); }
  .hero__media { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .hero--home .hero__media { aspect-ratio: 16 / 11; }
  .hero__media img { position: absolute; }
  .hero--page { min-height: 0; }
  .hero--page .hero__media { order: 0; aspect-ratio: 16 / 10; }

  .grid--3 { --cols: 2; }
  .projects__head { grid-template-columns: 1fr; }
  .news-rows { grid-template-columns: 1fr; }
  .media-teaser, .contact, .article-header, .text-block--img-right, .text-block--img-left, .with-sidebar .text-block--img-right, .with-sidebar .text-block--img-left { grid-template-columns: 1fr; }
  .text-block--img-left .text-block__media { order: 0; }
  .article-header__text { border-radius: var(--r-l) var(--r-l) 0 0; }
  .article-header__media { border-radius: 0 0 var(--r-l) var(--r-l); min-height: 260px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .site-footer__brand { flex-wrap: wrap; gap: 16px 28px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header__cta { display: none; }
  .site-header__logo img { height: 46px; }
  .grid--4, .grid--3, .grid--2 { --cols: 1; }
  .bento { grid-template-columns: 1fr; }
  .bento__tile--1, .bento__tile--2 { min-height: 200px; }
  .facts { padding: 22px 24px; }
  .facts__number { flex-direction: column; align-items: flex-start; gap: 4px; }
  .facts__number strong { font-size: 38px; }
  .facts__divider { display: none; }
  .knowledge__tiles { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .ktile { min-height: 0; }
  .news-row { grid-template-columns: 110px 1fr; gap: 14px; }
  .news-row__media { height: 110px; border-radius: 16px; }
  .news-row__body { padding-right: 8px; gap: 6px; }
  .offers__row { grid-template-columns: 1fr; gap: 8px; }
  .pills { grid-template-columns: 1fr; }
  .rte table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
  .rte th, .rte td { padding: 10px 12px; min-width: 88px; }
  .rte td:first-child, .rte th:first-child { min-width: 160px; }
  .cta__tiles { grid-template-columns: 1fr; }
  .cta--note { grid-template-columns: 1fr; padding: 24px; }
  .btn-row .btn { flex: 1 1 auto; }
  .hero .btn-row .btn { flex: 0 1 auto; }
  .newsletter { padding: 28px 24px; }
  .newsletter__row { flex-direction: column; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .site-footer__divider { display: none; }
  .site-footer__claim { font-size: 19px; }
  .mega__links { grid-template-columns: 1fr; }
  .segmented { width: 100%; }
  .segmented__btn { flex: 1; padding-inline: 12px; }
  .ce-intext.ce-right .ce-gallery, .ce-intext.ce-left .ce-gallery { float: none; margin: 0 0 24px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .mobile-nav, .newsletter { display: none !important; }
  body { background: #fff; }
}

/* Szczegóły szkolenia - sekcje treści */
.ev-detail__layout .with-sidebar__main { display: block; }
.ev-section + .ev-section { margin-top: clamp(36px, 4vw, 56px); }
.ev-section .section-title { margin-bottom: 16px; }
.ev-section .rte > :first-child { margin-top: 0; }
.ev-detail__back { margin-top: clamp(36px, 4vw, 56px); }

/* Kafle na stronie głównej: zajawka najbliższego szkolenia / wydarzenia */
.tile__next { display: flex; gap: 14px; align-items: center; margin-top: 4px; margin-bottom: auto; padding: 10px 16px 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .32); }
.tile__next-date { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 40px; padding-right: 14px; border-right: 1px solid rgba(42, 33, 27, .14); font-size: 10.5px; font-weight: 600; line-height: 1; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.tile__next-date b { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; opacity: 1; }
.tile__next-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile__next-label { font-size: 10.5px; font-weight: 600; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.tile__next-title { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) {
  .ev-row { grid-template-columns: 1fr; gap: 12px; }
  .ev-row__date { flex-direction: row; justify-content: flex-start; gap: 8px; min-height: 0; padding: 8px 14px; justify-self: start; border-radius: var(--r-pill); }
  .ev-row__day { font-size: 20px; }
}
@media (max-width: 600px) {
  .facts__partners { flex-direction: column; align-items: flex-start; gap: 12px; }
  .facts__marquee { width: 100%; flex: none; }
  .facts__logo { height: 32px; }
}

/* Tryb podglądu (preview-lock.js) */
.preview-toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; padding: 12px 20px; border-radius: var(--r-pill); background: var(--c-ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(42, 33, 27, .25); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.preview-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
dialog .preview-toast { top: 24px; bottom: auto; transform: translate(-50%, -12px); }
dialog .preview-toast.is-visible { transform: translate(-50%, 0); }

/* Pokaz zdjęć (lightbox.js) */
html.has-lightbox { overflow: hidden; }
.gallery__link { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #18130f; color: #fff; overflow: hidden; display: none; grid-template-rows: auto 1fr auto auto; }
.lightbox[open] { display: grid; animation: lb-in .2s ease-out; }
.lightbox::backdrop { background: #18130f; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 6px 24px; position: relative; z-index: 3; }
.lightbox__count { font-size: 14px; font-weight: 600; letter-spacing: .06em; opacity: .75; font-variant-numeric: tabular-nums; }
.lightbox__tools { display: flex; gap: 6px; }
.lightbox__btn, .lightbox__nav { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background-color .2s, opacity .2s; }
.lightbox__btn { width: 44px; height: 44px; }
.lightbox__btn:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .18); }
.lightbox__btn:focus-visible, .lightbox__nav:focus-visible, .lightbox__thumb:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 8px 88px; overflow: hidden; touch-action: none; user-select: none; cursor: zoom-in; }
.lightbox.is-zoomed .lightbox__stage { cursor: grab; }
.lightbox.is-zoomed .lightbox__stage:active { cursor: grabbing; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; transform-origin: center center; will-change: transform; transition: opacity .2s; }
.lightbox.is-loading .lightbox__img { opacity: .25; }
.lightbox__spinner { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; opacity: 0; animation: lb-spin .8s linear infinite; pointer-events: none; }
.lightbox.is-loading .lightbox__spinner { opacity: 1; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lightbox__nav { position: absolute; top: 50%; z-index: 3; width: 56px; height: 56px; margin-top: -28px; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox.is-single .lightbox__nav, .lightbox.is-single .lightbox__thumbs, .lightbox.is-single .lightbox__count { display: none; }
.lightbox.is-zoomed .lightbox__nav, .lightbox.is-zoomed .lightbox__caption, .lightbox.is-zoomed .lightbox__thumbs { opacity: 0; pointer-events: none; }
.lightbox__caption { margin: 0 auto; max-width: 760px; padding: 10px 24px 0; font-size: 15px; line-height: 1.5; text-align: center; color: rgba(255, 255, 255, .85); transition: opacity .2s; }
.lightbox__thumbs { display: flex; gap: 8px; justify-content: safe center; margin: 0; padding: 12px 16px 18px; list-style: none; overflow-x: auto; scrollbar-width: none; transition: opacity .2s; }
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumb { display: block; width: 64px; height: 48px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .08); opacity: .45; cursor: pointer; transition: opacity .2s, box-shadow .2s; }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__thumb:hover { opacity: .8; }
.lightbox__thumb.is-current { opacity: 1; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 700px) {
  .lightbox__stage { padding: 4px 0; }
  .lightbox__nav { display: none; }
  .lightbox__bar { padding: 10px 10px 4px 18px; }
  .lightbox__thumb { width: 52px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }
