:root {
  --white: #fff;
  --surface: #f4f7f9;
  --navy: #034971;
  --blue: #105d9c;
  --cyan: #24aae1;
  --ink: #142735;
  --muted: #657783;
  --line: #dbe5eb;
  /* Compatibility aliases used by the inherited gallery lightbox. */
  --krem: #fff;
  --ecru: #fff;
  --espresso: #034971;
  --kasztan: #034971;
  --tytoniowy: #105d9c;
  --koniak: #24aae1;
  --piasek: #24aae1;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(5rem, 9vw, 8.5rem);
  --radius: 1rem;
  --shadow: 0 18px 55px -30px rgba(3, 73, 113, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", Inter, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
::selection { color: var(--navy); background: rgba(36, 170, 225, .28); }

.site-shell {
  width: min(100% - (2 * var(--gutter)), 1280px);
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  z-index: 100;
  top: .75rem;
  left: .75rem;
  width: auto;
  height: auto;
  padding: .75rem 1rem;
  margin: 0;
  clip: auto;
  color: var(--white);
  background: var(--navy);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(219, 229, 235, .9);
  backdrop-filter: blur(16px);
}
.site-header__inner {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  min-height: 80px;
  gap: clamp(1rem, 3vw, 3rem);
}
.site-logo { display: block; width: clamp(150px, 14vw, 202px); }
.site-logo img { width: 100%; }
.primary-menu,
.primary-menu .sub-menu,
.footer-menu { padding: 0; margin: 0; list-style: none; }
.primary-menu { display: flex; align-items: center; gap: clamp(1.4rem, 2.8vw, 2.5rem); }
.primary-menu > li { position: relative; }
.primary-menu a {
  position: relative;
  display: block;
  padding-block: .4rem;
  color: rgba(20, 39, 53, .78);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
  transition: color .2s ease;
}
.primary-menu > li > a::after {
  position: absolute;
  right: 0;
  bottom: .05rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.primary-menu a:hover,
.primary-menu a:focus-visible,
.primary-menu .current-menu-item > a { color: var(--blue); }
.primary-menu > li > a:hover::after,
.primary-menu > li > a:focus-visible::after,
.primary-menu .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + .75rem);
  left: -1rem;
  min-width: 14rem;
  padding: .6rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .75rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-.35rem);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.header-cta { justify-self: end; color: var(--white); background: var(--navy); }
.header-cta:hover,
.header-cta:focus-visible { background: var(--blue); box-shadow: 0 12px 30px -16px rgba(3, 73, 113, .75); transform: translateY(-1px); }
.menu-toggle,
.submenu-toggle { display: none; }

.front-page__blocks > :first-child,
.page-content__article > :first-child { margin-top: 0; }
.front-page__blocks > :last-child,
.page-content__article > :last-child { margin-bottom: 0; }
.page-content { min-height: 55vh; }
.page-content--light-header { padding-top: 0; }
.page-content__article > :not(.alignfull) { width: min(100% - (2 * var(--gutter)), 1280px); margin-inline: auto; }
.page-content__article > :first-child:not(.alignfull) { margin-top: var(--section-space); }
.page-content__article > :last-child:not(.alignfull) { margin-bottom: var(--section-space); }
.fallback-page { padding-block: var(--section-space); }

.site-footer { color: rgba(255, 255, 255, .78); background: var(--navy); }
.site-footer--pattern { color: inherit; background: transparent; }
.site-footer__inner { display: grid; grid-template-columns: minmax(18rem, 1.2fr) minmax(9rem, .55fr) minmax(18rem, 1fr); gap: clamp(3rem, 6vw, 6.5rem); padding-block: clamp(4rem, 7vw, 6rem); }
.site-footer__logo { display: block; width: 205px; overflow: hidden; }
.site-footer__logo img { width: 100%; }
.site-footer__description { max-width: 28rem; margin: 1.5rem 0 0; font-size: .88rem; }
.site-footer__label { margin: .2rem 0 1.25rem; color: var(--cyan); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.footer-menu li + li { margin-top: .65rem; }
.footer-menu a,
.site-footer__contact-row { font-size: .86rem; text-decoration: none; transition: color .2s ease; }
.footer-menu a:hover,
.site-footer__contact-row:hover { color: var(--white); }
.site-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.site-footer__contact .site-footer__label { margin-bottom: .55rem; }
.site-footer__company { margin: 0; color: var(--white); font-weight: 750; }
.site-footer__contact-row { margin: 0; }
.site-footer__bottom { padding-block: 1.35rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.site-footer__bottom p { margin: 0; color: rgba(255, 255, 255, .5); font-size: .68rem; letter-spacing: .06em; text-align: center; text-transform: uppercase; }

@media (max-width: 980px) {
  .site-header__inner { grid-template-columns: 1fr auto; min-height: 72px; }
  .site-logo { width: 160px; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; color: var(--navy); background: transparent; border: 0; cursor: pointer; }
  .menu-toggle > span:not(.screen-reader-text) { display: block; width: 25px; height: 2px; margin-left: auto; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .primary-navigation { position: absolute; top: 100%; left: 0; width: 100%; padding: .5rem var(--gutter) 1rem; background: var(--white); border-block: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-.5rem); transition: opacity .22s ease, transform .22s ease, visibility .22s; }
  .primary-navigation.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-menu { display: block; }
  .primary-menu > li + li { border-top: 1px solid var(--line); }
  .primary-menu a { padding-block: .9rem; }
  .primary-menu > li > a::after { display: none; }
  .submenu-toggle { position: absolute; top: .35rem; right: 0; display: block; width: 40px; height: 40px; padding: 0; background: transparent; border: 0; }
  .submenu-toggle::before { content: "+"; color: var(--blue); font-size: 1.25rem; }
  .primary-menu .sub-menu { position: static; display: none; min-width: 0; padding: 0 0 .75rem 1rem; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .primary-menu .is-submenu-open > .sub-menu { display: block; }
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :root { --gutter: 1.15rem; --section-space: 4.75rem; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
