/* =========================================================
   1) FONT-FACES
   ========================================================= */
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-VariableItalic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

/* =========================================================
   2) TOKENS (mobile-first)
   ========================================================= */
:root {
  /* --- Colors --- */
  --primary-color: #1E2A7B;
  --accent-color: #F36F36;
  --default-white: #FAFAF8;
  --default-dark: #333333;

  /* --- Typography scale --- */
  --font-sans: 'Satoshi', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-black: 700;

  /* H1 */
  --fs-h1: 80px;
  --lh-h1: 0.9;
  --ls-h1: -0.04em;
  /* H2 */
  --fs-h2: 32px;
  --lh-h2: 40px;
  --ls-h2: -0.5px;
  /* Lead */
  --fs-lead: 32px;
  --lh-lead: 1.25;
  --ls-lead: -0.02em;
  /* Body */
  --fs-body: 20px;
  --lh-body: 1.30;
  --ls-body: 0;
  /* Small */
  --fs-small: 16px;
  --lh-small: 24px;
  --ls-small: 0;

  /* Other */
  --fs-24: 24px;

  /* --- Layout --- */
  --container-max: 345px;
  --container-pad: 16px;
  --grid-gap: 24px;

  /* --- Buttons (text buttons) --- */
  --btn-py: 16px;
  --btn-px: 32px;
  --btn-radius: 9999px;
  --btn-fs: var(--fs-small);
  --btn-ls: 0.02em;
  --btn-min-h: 54px;
  --btn-gap: 8px;

  /* --- Icon Buttons (circular) --- */
  --ib-size: 40px;
  --ib-bg: var(--accent-color);
  --ib-ring-inner: #ffffff;
  --ib-ring-outer: rgba(0, 0, 0, .35);
  --ib-icon: 24px;
}

/* Desktop token overrides */
@media (min-width: 996px) {
  :root {
    /* Typography */
    --fs-h1: 128px;
    --lh-h1: 0.75;
    --ls-h1: -0.04em;

    --fs-h2: 40px;
    --lh-h2: 48px;

    --fs-lead: 40px;
    --lh-lead: 1.20;

    --fs-body: 24px;
    --lh-body: 1.25;
  }
}

@media (min-width: 692px) {
  :root {
    /* Navigation */
    --fs-nav: 18px;
    /* main text in navigation */
    --lh-nav: 1.0;
    --ls-nav: 0.02em;
    /* 2% */


    /* Layout */
    --container-max: 1336px;
    --container-pad: 24px;
    --grid-gap: 32px;
  }
}

/* =========================================================
   3) BASE / TYPOGRAPHY
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--default-dark);
  background: var(--default-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
.h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  font-weight: var(--fw-regular);
  margin: .5em 0 .3em;
}

h2,
.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  font-weight: var(--fw-medium);
  margin: .75em 0 .4em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
  font-weight: var(--fw-regular);
}

p {
  margin: 0 0 1em;
}

.small,
small {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  /* letter-spacing: var(--ls-small); */
  font-weight: var(--fw-regular);
}

.italic {
  font-style: italic;
}

.regular {
  font-weight: var(--fw-regular);
}

.medium {
  font-weight: var(--fw-medium);
}

/* ===== Default links in content ===== */
a {
  color: inherit;
  /* nie zmieniaj koloru */
  text-decoration: underline;
  /* zawsze podkreślony */
  text-decoration-color: currentColor;
  text-underline-offset: 0.15em;
  /* trochę odsunięta linia */
  text-decoration-thickness: from-font;
  /* korzysta z metryki fontu */
  text-decoration-skip-ink: auto;
}

/* nie dotykaj „linków-przycisków” */
a.btn,
a.iconbtn {
  text-decoration: none;
}

/* =========================================================
   4) LAYOUT (container, grid, row API, utilities)
   ========================================================= */
.container {
  max-width: calc(var(--container-max) + 2 * var(--container-pad));
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: 48px;
}

@media (min-width: 692px) {
  .section {
    padding-block: 80px;
  }
}

/* Raw grid */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-1 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 996px) {
  .grid-6-md {
    grid-template-columns: repeat(6, 1fr);
  }

  .grid-5-md {
    grid-template-columns: repeat(5, 1fr);
  }

  .grid-4-md {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-3-md {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-2-md {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-1-md {
    grid-template-columns: repeat(1, 1fr);
  }
}


@media (min-width:696px) and (max-width: 996px) {
  .grid-6-sm {
    grid-template-columns: repeat(6, 1fr);
  }

  .grid-5-sm {
    grid-template-columns: repeat(5, 1fr);
  }

  .grid-4-sm {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-3-sm {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-2-sm {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-1-sm {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Column spans / starts */
.col-span-1 {
  grid-column: span 1;
}

.col-span-2 {
  grid-column: span 2;
}

.col-span-3 {
  grid-column: span 3;
}

.col-span-4 {
  grid-column: span 4;
}

.col-span-5 {
  grid-column: span 5;
}

.col-span-6 {
  grid-column: span 6;
}

.col-start-1 {
  grid-column-start: 1;
}

.col-start-2 {
  grid-column-start: 2;
}

.col-start-3 {
  grid-column-start: 3;
}

.col-start-4 {
  grid-column-start: 4;
}

.col-start-5 {
  grid-column-start: 5;
}

.col-start-6 {
  grid-column-start: 6;
}

@media (min-width:696px) and (max-width: 996px) {
  .col-span-1-sm {
    grid-column: span 1;
  }

  .col-span-2-sm {
    grid-column: span 2;
  }

  .col-span-3-sm {
    grid-column: span 3;
  }

  .col-span-4-sm {
    grid-column: span 4;
  }

  .col-span-5-sm {
    grid-column: span 5;
  }

  .col-span-6-sm {
    grid-column: span 6;
  }

  .col-start-1-sm {
    grid-column-start: 1;
  }

  .col-start-2-sm {
    grid-column-start: 2;
  }

  .col-start-3-sm {
    grid-column-start: 3;
  }

  .col-start-4-sm {
    grid-column-start: 4;
  }

  .col-start-5-sm {
    grid-column-start: 5;
  }

  .col-start-6-sm {
    grid-column-start: 6;
  }
}

@media (min-width: 996px) {
  .col-span-1-md {
    grid-column: span 1;
  }

  .col-span-2-md {
    grid-column: span 2;
  }

  .col-span-3-md {
    grid-column: span 3;
  }

  .col-span-4-md {
    grid-column: span 4;
  }

  .col-span-5-md {
    grid-column: span 5;
  }

  .col-span-6-md {
    grid-column: span 6;
  }

  .col-start-1-md {
    grid-column-start: 1;
  }

  .col-start-2-md {
    grid-column-start: 2;
  }

  .col-start-3-md {
    grid-column-start: 3;
  }

  .col-start-4-md {
    grid-column-start: 4;
  }

  .col-start-5-md {
    grid-column-start: 5;
  }

  .col-start-6-md {
    grid-column-start: 6;
  }
}

/* Row API (bootstrap-like sugar) */
.row {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(var(--row-cols, 6), 1fr);
}

.row--1 {
  --row-cols: 1;
}

.row--2 {
  --row-cols: 2;
}

.row--3 {
  --row-cols: 3;
}

.row--4 {
  --row-cols: 4;
}

.row--5 {
  --row-cols: 5;
}

.row--6 {
  --row-cols: 6;
}

@media (min-width: 692px) {
  .row--1-md {
    --row-cols: 1;
  }

  .row--2-md {
    --row-cols: 2;
  }

  .row--3-md {
    --row-cols: 3;
  }

  .row--4-md {
    --row-cols: 4;
  }

  .row--5-md {
    --row-cols: 5;
  }

  .row--6-md {
    --row-cols: 6;
  }
}

/* gap helpers */
.row--nogap {
  gap: 0;
}

.row--gap-sm {
  gap: 16px;
}

@media (min-width: 692px) {
  .row--gap-lg {
    gap: 40px;
  }
}

/* force new row */
.row-break {
  grid-column: 1 / -1;
}

/* Utilities */
.w-full {
  width: 100%;
}

.prose {
  max-width: 70ch;
}

.standard-page-section {
  margin-top: 205px;
  padding-bottom: 160px;
}

.standard-page-section .page__title {
  color: var(--primary-color);
}

.standard-page-section .page__desc {
  margin-top: 64px;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}

@media (max-width: 996px) {
  .standard-page-section .page__desc {
    margin-top: 32px;
  }
}

@media (max-width: 692px) {
  .standard-page-section {
    margin-top: 140px;
  }
  .standard-page-section h1 {
    font-size: 62px;
  }
}

/* =========================================================
   5) BUTTONS (text buttons)
   ========================================================= */
/* Base */
.btn:not(li) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
  padding: var(--btn-py) var(--btn-px);
  min-height: var(--btn-min-h);
  border: 0;
  border-radius: var(--btn-radius);
  cursor: pointer;
  text-decoration: none;

  font-family: var(--font-sans);
  font-size: var(--btn-fs);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--btn-ls);

  transition: background-color .2s ease, box-shadow .2s ease, transform .02s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus base */
.btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Hover/active */
.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Disabled */
.btn[disabled],
.btn.is-disabled,
a.btn[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Block widths */
.btn--block {
  width: 100%;
}

.btn--block-sm {
  width: 100%;
}

.btn-outline-primary {
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color);
}

/* Social media buttons */
.sm-link {

}

@media (min-width: 692px) {
  .btn--block-sm {
    width: auto;
  }
}

@media (min-width: 692px) {
  .btn--block-md {
    width: 100%;
  }
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* Variants */
.btn--accent {
  background: var(--accent-color);
  color: #0D131D;
}

.btn--accent:hover {
  background: color-mix(in srgb, var(--accent-color) 92%, black);
}

.btn--accent:focus-visible {
  outline-color: #0D131D;
  box-shadow:
    0 0 0 3px #0D131D,
    0 0 0 6px color-mix(in srgb, var(--accent-color) 65%, transparent);
}
a.btn--blue,
.btn--blue {
  background: #093DA0;
  color: #fff;
}

a.btn--blue:hover, .btn--blue:hover {
  background: color-mix(in srgb, #093DA0 92%, black);
}

a.btn--blue:focus-visible, .btn--blue:focus-visible {
  outline-color: #ffffff;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 6px rgba(9, 61, 160, .55);
}

/* Outline tag / label */
.btn--tag {
  --btn-py: 6px;
  --btn-px: 16px;
  --btn-fs: var(--fs-small);
  --btn-min-h: 36px;
  --btn-ls: 0.02em;
  --btn-gap: 6px;

  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn--tag:hover {
  background: color-mix(in srgb, var(--primary-color) 8%, white);
}

.btn--tag:focus-visible {
  outline-color: var(--primary-color);
  box-shadow:
    0 0 0 3px var(--primary-color),
    0 0 0 6px color-mix(in srgb, var(--primary-color) 50%, transparent);
}

/* Sizes */
.btn--sm {
  --btn-py: 12px;
  --btn-px: 20px;
  --btn-fs: 14px;
  --btn-min-h: 44px;
  --btn-gap: 6px;
}

.btn--lg {
  --btn-py: 20px;
  --btn-px: 36px;
  --btn-fs: 18px;
  --btn-min-h: 60px;
  --btn-gap: 10px;
}

.btn--xl {
  --btn-py: 24px;
  --btn-px: 44px;
  --btn-fs: 20px;
  --btn-min-h: 68px;
  --btn-gap: 12px;
}

@media (min-width: 692px) {
  .btn--lg-md {
    --btn-py: 20px;
    --btn-px: 36px;
    --btn-fs: 18px;
    --btn-min-h: 60px;
    --btn-gap: 10px;
  }
}

/* =========================================================
   6) ICON BUTTONS (circular)
   ========================================================= */
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ib-size);
  height: var(--ib-size);
  border-radius: 50%;
  background: var(--ib-bg);
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease, transform .02s;
}

.iconbtn>img,
.iconbtn>svg {
  width: var(--ib-icon);
  height: var(--ib-icon);
  display: block;
}

.iconbtn:hover {
  transform: translateY(-1px);
}

.iconbtn:active {
  transform: translateY(0);
}

/* Focus */
.iconbtn:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 3px var(--ib-ring-inner),
    0 0 0 6px var(--ib-ring-outer);
}

/* Disabled */
.iconbtn[disabled],
.iconbtn.is-disabled,
a.iconbtn[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Variants */
.iconbtn--social {
  --ib-size: 40px;
  --ib-bg: var(--accent-color);
  --ib-icon: 24px;
  --ib-ring-inner: #ffffff;
  --ib-ring-outer: color-mix(in srgb, var(--accent-color) 55%, transparent);
}

.iconbtn--primary {
  --ib-bg: var(--primary-color);
}

.iconbtn--secondary {
  --ib-bg: var(--accent-color);
}

.iconbtn--social:hover {
  background: color-mix(in srgb, var(--accent-color) 92%, black);
}

.iconbtn--primary:hover {
  background: color-mix(in srgb, var(--primary-color) 92%, black);
}

.sm-icon-white--instagram {
  background-image: url();
}

.sm-icon--facebook img {
  position: relative;
  top: 1px;
}

.sm-icon--instagram img {
  position: relative;
  top: 1px;
}

.sm-icon--youtube img, .sm-icon--linkedin img {
  position: relative;
  top: 3px;
}

.iconbtn--secondary .sm-icon--youtube img, .iconbtn--secondary .sm-icon--linkedin img {
  top: 0;
}

@media (max-width: 996px) {
  .sm-icon--instagram img {
    position: relative;
    top: 3px;
  }

  .sm-icon--facebook img {
    position: relative;
    top: 3px;
  }
  
}

.iconbtn--arrow {
  --ib-size: 64px;
  --ib-bg: var(--accent-color);
  --ib-icon: 24px;
  --ib-ring-inner: #ffffff;
  --ib-ring-outer: color-mix(in srgb, var(--accent-color) 55%, transparent);
}

.iconbtn--arrow:hover {
  background: color-mix(in srgb, var(--accent-color) 92%, black);
}

.iconbtn--burger {
  --ib-size: 58px;
  --ib-bg: #093DA0;
  --ib-icon: 24px;
  --ib-ring-inner: #ffffff;
  --ib-ring-outer: rgba(9, 61, 160, .55);
}

.iconbtn--burger:hover {
  background: color-mix(in srgb, #093DA0 92%, black);
}

.iconbtn--close {
  --ib-size: 58px;
  --ib-bg: #fff;
  --ib-icon: 24px;
  --ib-ring-inner: #ffffff;
  --ib-ring-outer: rgba(9, 61, 160, .55);
}

.iconbtn--close img {
  width: 14px;
  height: 14px;
}

.iconbtn--close:hover {
  background: color-mix(in srgb, #ffffff 92%, black);
}

/* =========================================================
   7) MOTION PREFERENCES
   ========================================================= */
@media (prefers-reduced-motion: reduce) {

  .btn,
  .iconbtn {
    transition: none;
  }

  .btn:hover,
  .btn:active,
  .iconbtn:hover,
  .iconbtn:active {
    transform: none;
  }
}

/* =========================================================
   8) NAVIGATION 
   ========================================================= */
.menu a {
  text-decoration: none;
}

.menu a.btn {
  margin-left: 12px;
}

/* Polylang w menu */
.menu .lang-item a {
  padding: 0 8px;
  text-decoration: none;
  /* w topbarze bez underline */
}

/* Sticky bar na pełną szerokość; tło na starcie przezroczyste */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  margin: 0;
  z-index: 1000;
  padding-top: 20px;
  height: 102px;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease, height .3s ease;
}

/* Offset dla paska admina WP */
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 0;
  }
}

.site-header .header__inner {
  display: flex;
  align-items: flex-start;
  min-height: 72px;
  gap: 16px;
  padding-block: 0;
}

/* Logo: 162x162 – na desktopie może wychodzić ponad pasek */
.header__logo {
  display: block;
  flex: 0 0 auto;
  width: 162px;
  height: 162px;
}

.header__logo img {
  display: block;
  width: 125px;
  height: 125px;
  object-fit: contain;
  transition: .2s all;
}

.home .header__logo img {
  width: 100%;
  height: 100%;
}

/* Toggle (burger) – ukryty na desktopie */
.nav-toggle {
  display: none;
  border: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}

.nav-toggle__bar::before {
  top: -6px;
  position: relative;
}

.nav-toggle__bar::after {
  top: 6px;
  position: relative;
}

/* Nawigacja główna */
.site-nav {
  margin-left: auto;
}

.site-nav .site-nav__socials {
  display: none;
}

.site-nav .menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .menu>li>a {
  display: inline-flex;
  align-items: center;
  padding: 10px 4px;
  font-family: var(--font-sans);
  font-weight: var(--fw-black);
  font-size: var(--fs-nav);
  line-height: var(--lh-nav);
  letter-spacing: var(--ls-nav);
  text-decoration: none;
}

/* Submenu – ukryte; pokażemy hoverem/focusem na desktopie */
.site-nav .menu .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: var(--default-white);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  display: none;
}

.site-nav .menu .sub-menu li {
  list-style: none;
}

.site-nav .menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 16px;
  /* mniejszy od głównych */
  letter-spacing: 0.02em;
  color: var(--default-dark);
  /* submenu — ciemny */
  text-decoration: none;
  border-radius: 8px;
}

.site-nav .menu .sub-menu a:hover,
.site-nav .menu .sub-menu a:focus {
  background: rgba(0, 0, 0, .04);
}

/* Pokaż submenu na desktopie przy hover/focus */
@media (min-width: 692px) {
  .site-nav .menu>.menu-item-has-children {
    position: relative;
  }

  .site-nav .menu>.menu-item-has-children:hover>.sub-menu,
  .site-nav .menu>.menu-item-has-children:focus-within>.sub-menu {
    display: block;
  }
}

/* Mały przycisk rozwijanego submenu (dodawany w JS) – widoczny głównie na mobile */
.submenu-toggle {
  display: none;
  margin-left: 4px;
  background: transparent;
  border: 0;
  padding: 0 4px;
  line-height: 1;
  cursor: pointer;
}

.site-nav .menu li.header__cta {
  background-color: transparent;
}

.site-nav .menu li.header__cta>a {
  display: inline-flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: var(--btn-gap);
  padding: var(--btn-py) var(--btn-px);
  min-height: var(--btn-min-h);
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--accent-color);
  color: #0D131D;
  font-family: var(--font-sans);
  font-size: var(--btn-fs);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--btn-ls);
  text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease, transform .02s;
}

.site-nav .menu li.header__cta>a:hover {
  background: color-mix(in srgb, var(--accent-color) 92%, black);
}

.site-nav .menu li.header__cta>a:focus-visible {
  outline-color: #0D131D;
  box-shadow:
    0 0 0 3px #0D131D,
    0 0 0 6px color-mix(in srgb, var(--accent-color) 65%, transparent);
}

/* Zablokuj przewijanie body przy otwartym menu (opcja) */
html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  height: 100%;
  touch-action: none;
}

/* Sticky header */
.site-header.is-stuck {
  background-color: var(--default-white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.is-stuck .header__logo img {
  width: 125px;
  height: 125px;
}

.is-stuck .site-nav .menu>li>a {
  color: #0D131D;
}

.nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: none;
  z-index: 1001;
}

/* *** Mobile layout (off-canvas) – tylko stan bazowy *** */
@media (max-width: 691px) {
  .site-header {
    padding-top: 0;
    height: auto;
  }

  .site-header .header__inner {
    align-items: center;
    min-height: 110px;
    max-width: calc(100%);
  }
  
  .home .header__logo img {
    width: 125px;
    height: 125px;
  }

  .header__logo {
    width: 85px;
    height: 85px;
  }

  .is-stuck .header__logo img {
    width: 85px;
    height: 85px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    top: -17px;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: 24px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, .12);
  }

  .site-header.is-open .site-nav {
    transform: translateX(0%);
    overflow-y: auto;
  }

  .site-nav .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 150px;
    overflow-y: auto;
    height: 45vh;
  }

  .site-nav .menu>li>a {
    padding: 16px 0px;
    font-size: 24px;
    letter-spacing: 0.7px;
    color: var(--default-dark);
  }

  .site-nav .menu .sub-menu {
    position: static;
    display: none;
    padding: 6px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .menu-item-has-children .submenu-toggle {
    display: inline-block;
  }

  .menu-item-has-children.is-open>.sub-menu,
  .menu-item-has-children>.sub-menu[data-open="true"] {
    display: block;
  }

  /* CTA w off-canvas – pełna szerokość mile widziana */
  .site-nav .menu a.btn,
  .site-nav .menu li.header__cta>a {
    width: 100%;
  }

  .site-header.is-open .nav-close {
    display: inline-flex;
  }

  .is-open .header__logo {
    z-index: 99;
    width: 120px;
    height: 120px;
    position: fixed;
    top: 24px;
    left: 24px;
  }
}

/* === Mobile nav: kolorystyka linków w off-canvas === */
@media (max-width: 691px) {
  .site-nav .menu>li>a {
    color: #fff;
    /* czytelnie na primary */
  }

  .site-nav .menu .sub-menu a {
    color: rgba(255, 255, 255, .9);
  }
}

/* === Mobile nav: przycisk rozwijania submenu (jak w footerze) === */
.submenu-toggle {
  display: none;
  /* default: ukryty */
}

@media (max-width: 691px) {

  .site-nav .site-nav__socials {
    display: flex;
    position: absolute;
    bottom: 40px;
    align-items: center;
  }

  .site-nav__socials figure {
    margin-bottom: 0;
  }

  .site-nav__socials .footer-bottom-left__item {
    margin-right: 16px;
  }

  .site-nav__socials .footer-bottom-left__item:last-child {
    margin-right: 0;
  }

  .site-header.is-open .submenu-toggle {
    display: inline-flex;
    inline-size: 32px;
    block-size: 32px;
    margin-left: 4px;
    border: 0;
    background: transparent;
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
  }

  .site-header.is-open .submenu-toggle::before {
    content: "";
    width: 20px;
    height: 20px;
    -webkit-mask-image: url("../img/icons/chevron-down.svg");
    mask-image: url("../img/icons/chevron-down.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-color: currentColor;
    transition: transform .2s ease;
    display: block;
  }

  /* Rotacja strzałki po rozwinięciu */
  .site-header.is-open .menu-item-has-children.is-open>.submenu-toggle::before {
    transform: rotate(180deg);
  }

  /* Submenu na mobile: kolumna, bez tła/pudełka */
  .site-nav .menu .sub-menu {
    position: static;
    display: none;
    padding: 0px 0px 0px;
    border: 0;
    box-shadow: none;
    margin-top: -5px;
    background: transparent;
  }

  .menu-item-has-children.is-open>.sub-menu,
  .menu-item-has-children>.sub-menu[data-open="true"] {
    display: block;
    width: 100%;
  }

  .site-nav .menu .menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .site-nav .menu .menu-item:not(.header__cta) {
    border-bottom: 1px solid rgba(255, 255, 255, .2);
  }

  .site-nav .menu .sub-menu .menu-item {
    border-bottom: none;
  }

  .site-nav .menu .header__cta {
    margin-top: 50px;
    display: flex;
    position: absolute;
    bottom: 104px;
    align-items: center;
    width: calc(100% - 48px);
  }

  .site-nav .menu .sub-menu a {
    padding: 5px 0px;
  }

  .site-nav .menu .sub-menu li:last-child a {
    padding-bottom: 16px;
  }
}

/* =========================================================
   FORM
   ========================================================= */

form {
  font-family: 'Satoshi';
}

form label {
  font-size: 18px;
  line-height: 25px;
  font-weight: var(--fw-black);
  color: #222;  
}

form .required-symbol {
  color: var(--accent-color);
}

form input, form textarea, form select {
  width: 100%;
  font-size: 15px;
  line-height: 23px;
  font-weight: var(--fw-regular);
  padding: 12px;
  border: 1px solid var(--primary-color);
  margin-top: 8px;
}

form textarea {
  height: 125px;
}

form .wpcf7-radio {
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
  top: 6px;
  left: -2px;
}

form .wpcf7-radio .wpcf7-list-item {
  margin-left: 0;
}

form .wpcf7-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

form .wpcf7-radio input[type="radio"]:checked {
  border-color: var(--accent-color); 
  background-color: var(--accent-color);
}

form .wpcf7-radio input[type="radio"]:checked::before {
  content: "";
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

form .wpcf7-radio label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

form .wpcf7-radio label > span {
  font-size: 18px;
  color: #2b2b2b;
  position: relative;
  top: 4px;
}

.wpcf7-not-valid-tip {
  font-size: 16px;
  font-weight: 500;
  margin-top: 4px;
}

.wpcf7-not-valid {
  border-color: #D70000;
  
}

/* --- WRAPPER --- */
form input[type="file"] {
    opacity: 0;           /* ukrywamy domyślny file input */
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

form .file-button-wrapper .wpcf7-form-control-wrap {
  cursor: pointer;
}

form .file-button-wrapper .wpcf7-form-control-wrap input[type="file"] {
  opacity: 0;
  width: 140px;
  height: 50px;
  cursor: pointer;
  top: -40px;
  left: -30px;
}

form .file-button-wrapper {
  position: relative;
  top: -20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 40px;
  background: var(--primary-color);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

form .file-button-wrapper > span {
  pointer-events: none;
  cursor: pointer;
}

form .file-button-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

form .file-button-wrapper:hover {
  background: var(--primary-color);
}

form .file-button-wrapper:focus-within {
  outline: 2px solid #00205B;
  outline-offset: 3px;
}

form .file-button-wrapper p {
  margin-bottom: 0;
}

form .file-button-wrapper:hover {
  background: var(--primary-color);
}

form .file-button-wrapper:focus-within {
  outline: 2px solid #00205B;
  outline-offset: 3px;
}

form .file-button-wrapper .wpcf7-not-valid-tip {
  display: none;
}

form .file-button-wrapper .wpcf7-not-valid {
  border-color: #D70000;
}

form .file-hint {
  position: relative;
  top: -3px;
  font-size: 16px;
  font-weight: 500;
  color: #222222;
}

.file-field-label br {
  display: none;
}

form .wpcf7-spinner {
  position: relative;
  top: -38px;
  left: -12px;
}

form .wpcf7-response-output {
  border-color: rgb(243 111 54 / 15%) !important;
  background: rgb(243 111 54 / 15%);
  padding: 40px !important;
  margin: 0 !important;
  font-size: 24px;
  line-height: 30px;
  font-weight: 400;
}

.success-box {
  padding: 40px;
  background-color: rgb(0 151 65 / 5%);
}

.success-box img {
  margin-bottom: 24px;
}

.success-box h2, .success-box h3, .success-box h4 {
  margin: 0 0 24px;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  font-weight: var(--fw-regular);
}

.success-box p {
  margin-bottom: 24px;
}

.success-box p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer-top {
  background: var(--primary-color);
  color: var(--default-white);
  padding-top: 95px;
  padding-bottom: 50px;
}

.footer-newsletter__title {
  margin: 0 0 24px;
  color: var(--default-white);
  font-weight: var(--fw-regular);
}

.footer-newsletter__form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
}

.footer-newsletter__form input[type="email"] {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  border: 0;
  border-radius: 9999px;
  padding: 12px 16px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.9);
  color: #0D131D;
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0.02em;
  width: 441px;
  height: 62px;
  padding-right: 150px;
  padding-left: 32px;
}

.footer-newsletter__form input::placeholder {
  color: rgb(13 19 29 / 50%);
  font-weight: var(--fw-medium);
}

.footer-newsletter__submit {
  position: relative;
  left: -153px;
  top: 4px;
}

.footer-newsletter__disclaimer {
  margin: 8px 0 0;
  color: rgba(250, 250, 250, 0.5);
  font-weight: var(--fw-regular);
}

.footer-newsletter__disclaimer a {
  color: rgba(250, 250, 250, 0.5);
}

.footer-newsletter__disclaimer a:hover {
  color: rgba(250, 250, 250, 0.8);
}

.footer-top__logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-top__logo img {
  max-width: 164px;
  height: auto;
}

.footer-row--columns {
  margin-top: 96px;
}

.footer-col h3,
.footer-col h2,
.footer-col h4 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: var(--fs-24);
  font-weight: var(--fw-regular);
  line-height: var(--lh-h2);
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: 0 !important;
}

.footer-col ul li,
.footer-col {
  margin-bottom: 8px;
  text-decoration: none;
  font-size: 18px;
  line-height: 24px;
  font-weight: var(--fw-regular);
  color: #fff;
}

.footer-col ul li a {
  text-decoration: none;
}

.footer-row--bottom {
  margin-top: 96px;
}

.footer-bottom__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom__left figure {
  margin: 0;
}

.footer-bottom__right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
  color: rgba(250, 250, 250, 0.5);
  font-size: var(--fs-small);
}

.footer-bottom__left .wp-block-social-links {
  display: flex;
  gap: 12px;
}

.footer-bottom__left .wp-block-social-links .wp-social-link a {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--accent-color);
  color: #0D131D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, transform .02s;
}

.footer-bottom__left .wp-social-link a:hover {
  transform: translateY(-1px);
}

.footer-bottom-right__item ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom-right__item ul li {
  display: inline;
  margin-left: 24px;
}

.footer-bottom-right__item ul li a {
  text-decoration: none;
  color: rgba(250, 250, 250, 0.5);
  font-size: var(--fs-small);
}

.footer-bottom-right__item ul li a:hover {
  color: rgba(250, 250, 250, 0.8);
}

/* --- Bottom (biały pasek finansowania) --- */
.footer-funding {
  background: var(--default-white);
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding-top: 46px;
  padding-bottom: 40px;
}

.footer-funding__inner {
  align-items: center;
}

.footer-funding__text {
  margin: 0;
  color: var(--default-dark);
}

.footer-funding__logos {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-funding__logos img {
  height: auto;
  width: 427px;
}

/* Sr-only helper */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

/* Mobile tweaks */
@media (max-width: 996px) {
  .footer-top__logo {
    order: -1;
    justify-content: flex-start;
  }

  .footer-row {
    gap: 40px;
  }

  .footer-funding__logos {
    margin-left: 0;
  }
}

@media (max-width: 691px) {
  .footer-top {
    padding-block: 40px;
  }

  .footer-top__logo {
    justify-content: flex-start;
    margin-top: 0;
  }

  .footer-funding__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .footer-funding__logos {
    margin-left: 0;
  }

  .footer-top__logo img {
    width: 137px;
    margin-bottom: 36px;
  }

  .footer-newsletter__title {
    font-size: var(--fs-h2);
    line-height: 40px;
  }

  .footer-newsletter__form {
    position: relative;
  }

  .footer-newsletter__submit {
    position: absolute;
    right: 5px;
    left: auto;
    height: 47px;
    min-height: auto !important;
    top: 15px;
    right: 8px;
    padding: 14px 29px !important;
  }

  .footer-row {
    gap: 4px;
  }

  .footer-row--columns {
    margin-top: 40px;
  }

  .footer-col h3 {
    cursor: pointer;
  }

  .footer-row--bottom {
    margin-top: 40px;
  }

  .footer-bottom__left {
    margin-bottom: 40px;
  }

  .footer-bottom-right__item ul.wp-block-list {
    padding-left: 0;
  }

  .footer-bottom-right__item ul li:first-child {
    margin-left: 0;
  }

  .footer-bottom__right {
    justify-content: flex-start;
  }

  .footer-funding__logos img {
    width: 345px;
  }

  .footer-funding {
    padding-block: 40px;
  }

  .footer-newsletter__form input[type="email"] {
    max-width: 100%;
  }
}

/* =========================================================
   FOOTER ACCORDION (tylko mobile)
   ========================================================= */

@media (max-width: 691px) {
  .footer-row--columns .footer-accordion {
    border-top: 1px solid rgba(255, 255, 255, .2);
    padding-top: 12px;
  }

  .footer-row--columns .footer-accordion .wp-block-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 6px;
    color: var(--default-white);
  }

  .footer-toggle {
    inline-size: 32px;
    block-size: 32px;
    border: 0;
    background: transparent;
    color: var(--default-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
  }

  .footer-toggle::before {
    content: "";
    width: 24px;
    height: 24px;
    -webkit-mask-image: url("../img/icons/chevron-down.svg");
    mask-image: url("../img/icons/chevron-down.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-color: currentColor;
    transition: transform .2s ease;
    display: block;
  }

  .footer-accordion.is-open .footer-toggle::before {
    transform: rotate(180deg);
  }

  .footer-content {
    display: none;
    padding: 4px 0 10px;
  }

  .footer-accordion.is-open .footer-content {
    display: block;
  }
}

/* Desktop: zawsze otwarte, bez przycisku */
@media (min-width: 692px) {
  .footer-toggle {
    display: none;
  }

  .footer-content {
    display: block !important;
  }
}

/* =========================
   Pagination
  ========================= */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination__list {
  list-style: none;
  list-style: none;
  padding: 0;
  display: flex;
  margin: 0;
}

.pagination__prev, .pagination__next {
  flex: 1;
}

.pagination__list {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination__prev a, .pagination__next a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
  padding: var(--btn-py) var(--btn-px);
  min-height: var(--btn-min-h);
  border: 0;
  border-radius: var(--btn-radius);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: var(--btn-fs);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--btn-ls);
  background: #093DA0;
  color: #fff;
  transition: background-color .2s ease, box-shadow .2s ease, transform .02s;
}

.pagination__next {
  text-align: right;
}

.pagination__prev {
  text-align: left;
}

.pagination__list li {
  margin: 0 7px;
  font-size: 18px;
  font-weight: var(--fw-regular);
}

.pagination__list li a {
  text-decoration: none;
  font-size: 18px;
  font-weight: var(--fw-regular);
}

.pagination__item.is-current {
  color: var(--primary-color);
}

.pagination__item.is-current span {
  text-decoration: underline;
}

@media (max-width: 996px) {
  .pagination__prev a, .pagination__next a {
    min-width: 201px;
  }
}

@media (max-width: 692px) {
  .pagination__prev a, .pagination__next a {
    display: none;
  }
}

/* =========================================================
   SLIDER (eg. Projects)
  ========================================================= */
.swiper-horizontal, .swiper-mian-wrapper {
  position: relative;
}

.swiper-slide .slider-item__thumb {
  width: 100%;
  height: 325px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.swiper-slide .slider-item__title {
  margin: 40px 0 24px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
}

.swiper-slide .slider-item__excerpt {
  font-size: 18px;
  line-height: 25px;
}

.swiper-slide__next, .swiper-slide__prev {
  position: absolute;
  top: 25%;
  right: -23px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 44px;
  block-size: 44px;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform .15s ease;
}

.swiper-slide__prev {
  right: auto;
  left: -23px;
  transform: rotate(180deg);
}

.swiper-slide__prev:hover {
  transform: scale(1.05) rotate(180deg);
}

.swiper-button-disabled {
  display: none;
}

/* =========================================================
   WYSIWYG CONTENT STYLES
  ========================================================= */
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
  padding: var(--btn-py) var(--btn-px);
  min-height: var(--btn-min-h);
  border: 0;
  border-radius: var(--btn-radius);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: var(--btn-fs);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--btn-ls);
  transition: background-color .2s ease, box-shadow .2s ease, transform .02s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul.wp-block-list, ol.wp-block-list {
  padding-left: 25px;
}

.wp-block-pullquote blockquote {
  font-style: italic;
}

/* =========================================================
   GLOBAL ACF STYLES
  ========================================================= */

  .justify-on {
    text-align: justify !important;
  }