/* ================================================
   funkcjonuj.pl – main.css
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Typography */
  --font-body:    'Manrope', sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-nav:     'Manrope', sans-serif;
  --font-quote:   Georgia, serif;

  /* Brand palette — adjust the whole site here */
  --blue:         #0E34B4;
  --blue-dark:    #071D72;
  --blue-mid:     #1548D0;
  --accent:       #FF5A00; /* ultra orange */
  --accent-hover: #FF7A1A;
  --google-blue:  #4285F4;
  --google-red:   #EA4335;
  --google-yellow:#FBBC05;
  --google-green: #34A853;
  --white:        #FFFFFF;
  --off-white:    #F3F5FA;
  --gray:         #8A9BB0;

  /* Text, surfaces and lines */
  --text:         #1A1A2E;
  --text-muted:   #4A4F6A;
  --text-neutral: #444444;
  --text-form:    #333333;
  --form-border:  #DDE3F0;
  --form-surface: #FAFBFD;
  --panel-blue-1: #0B3E96;
  --panel-blue-2: #0E34B4;
  --panel-blue-3: #0A2880;
  --panel-blue-4: #0C3296;
  --panel-overlay-1: .62;
  --panel-overlay-2: .50;
  --panel-overlay-3: .70;
  --panel-overlay-4: .74;
  --panel-seam:   var(--blue-dark);
  --panel-outline: #93a4df;
  --panel-outline-width: 1px;

  /* RGB channels for transparent variants */
  --white-rgb:     255 255 255;
  --black-rgb:     0 0 0;
  --blue-rgb:      14 52 180;
  --blue-dark-rgb: 7 29 114;
  --accent-rgb:    255 90 0;

  /* Hero geometry and motion */
  --header-height: 92px;
  --hero-slant: clamp(58px, 7vw, 108px); /* horizontal offset of every diagonal seam */
  --hero-gap:  8px;
  --hero-label-angle: -84deg;
  --ease:      cubic-bezier(.2,.72,.18,1); /* SRS Nova snappy easing */
}

html {
  scroll-behavior: auto;
  overscroll-behavior-y: none;
  background: var(--blue-dark);
}

#hero,
#o-nas,
#blog,
#opinie,
#kontakt { scroll-margin-top: var(--header-height); }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: var(--blue-dark);
  transition: padding .35s var(--ease), background .4s, backdrop-filter .4s, box-shadow .4s;
}
.site-header.scrolled {
  padding-top: .55rem;
  padding-bottom: .55rem;
  background: var(--blue-dark);
  box-shadow: 0 2px 24px rgb(var(--black-rgb) / .25);
}
.site-header.menu-open,
.site-header:has(.nav-inner.open) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.site-header.scrolled.menu-open,
.site-header.scrolled:has(.nav-inner.open) {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 60px;           /* bigger logo */
  flex-shrink: 0;
  transition: height .35s var(--ease);
}
.site-header.scrolled .logo { height: 46px; }
.site-header.scrolled.menu-open .logo,
.site-header.scrolled:has(.nav-inner.open) .logo { height: 60px; }
.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.logo-fallback {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo-fallback span { color: var(--accent); }

.nav-inner { display: flex; align-items: center; gap: 1.25rem; }
.nav-links  { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  position: relative;
  display: inline-block;
  font-family: var(--font-nav);
  color: rgb(var(--white-rgb) / .8);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .55px;
  text-transform: uppercase;
  transition: color .25s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.45rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .32s var(--ease);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}
.nav-links > li { position: relative; }
.nav-links .sub-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  z-index: 50;
  min-width: 245px;
  padding: .65rem;
  border: 1px solid rgb(var(--white-rgb) / .12);
  border-top: 2px solid var(--accent);
  border-radius: 2px;
  background: rgb(var(--blue-dark-rgb) / .97);
  box-shadow: 0 18px 44px rgb(var(--black-rgb) / .28);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .25s ease, visibility .25s ease, transform .3s var(--ease);
}
.nav-links .sub-menu::before {
  content: '';
  position: absolute;
  inset: -1rem 0 auto;
  height: 1rem;
}
.nav-links .sub-menu li + li { border-top: 1px solid rgb(var(--white-rgb) / .08); }
.nav-links .sub-menu a {
  display: block;
  padding: .75rem .85rem;
  font-size: .76rem;
  line-height: 1.35;
  white-space: normal;
}
.nav-links .sub-menu a::after {
  right: auto;
  bottom: .45rem;
  width: calc(100% - 1.7rem);
}
.nav-links > .menu-item-has-children:hover > .sub-menu,
.nav-links > .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.submenu-toggle { display: none; }

.social-links {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.social-links a {
  display: grid;
  place-items: center;
  color: rgb(var(--white-rgb) / .72);
  text-decoration: none;
  transition: color .25s, background .25s, border-color .25s, transform .25s;
}
.social-links svg {
  width: 17px;
  height: 17px;
}
.social-links--header a {
  width: 31px;
  height: 31px;
  border: 1px solid rgb(var(--white-rgb) / .25);
  border-radius: 50%;
}
.social-links--header a:hover,
.social-links--header a:focus-visible {
  color: var(--blue-dark);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-nav {
  background: var(--accent);
  color: var(--blue-dark);
  padding: .55rem 1.4rem;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, transform .2s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--accent-hover); transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 1001;
  cursor: pointer;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .3s;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────────────────────────────────────
   HERO ACCORDION

   Panels overlap by exactly --hero-slant. Their matching clip-path edges
   therefore meet without gaps: the top of every seam is farther right than
   its bottom. Only the three inner edges are diagonal.
───────────────────────────────────────────── */
.hero-accordion {
  height: calc(100vh - var(--header-height));
  min-height: 520px;
  display: flex;
  overflow: hidden;
  position: relative;
  margin-top: var(--header-height);
  background: var(--panel-seam);
}
/* ── base panel ── */
.panel {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  min-width: calc(var(--hero-slant) + 72px);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  outline: 0;
  border: 0;
  background: var(--panel-outline);
  clip-path: polygon(
    var(--hero-slant) 0,
    100% 0,
    calc(100% - var(--hero-slant)) 100%,
    0 100%
  );
  transition: flex-grow .58s var(--ease);
  will-change: flex-grow;
}

/* The first and last panel close the hero with perfectly vertical edges. */
.panel-1 {
  z-index: 1;
  clip-path: polygon(
    0 0,
    100% 0,
    calc(100% - var(--hero-slant)) 100%,
    0 100%
  );
}
.panel:not(.panel-1) {
  margin-left: calc(0px - var(--hero-slant) + var(--hero-gap));
}
.panel:nth-of-type(2) { z-index: 2; }
.panel:nth-of-type(3) { z-index: 3; }
.panel-4 {
  z-index: 4;
  clip-path: polygon(
    var(--hero-slant) 0,
    100% 0,
    100% 100%,
    0 100%
  );
}
.panel-1 .panel-bg,
.panel-1 .panel-overlay {
  clip-path: polygon(
    0 0,
    100% 0,
    calc(100% - var(--hero-slant)) 100%,
    0 100%
  );
}
.panel-4 .panel-bg,
.panel-4 .panel-overlay {
  clip-path: polygon(
    var(--hero-slant) 0,
    100% 0,
    100% 100%,
    0 100%
  );
}

/* Same restrained accordion proportions and easing as the SRS Nova section. */
.hero-accordion:has(:where(.panel:is(:hover, :focus-visible, :has(:focus-visible)))) .panel { flex-grow: .58; }
.hero-accordion .panel:is(:hover, :focus-visible, :has(:focus-visible)) {
  z-index: 10;
  flex-grow: 3.35;
}

/* ── background image ── */
.panel-bg {
  position: absolute;
  inset: var(--panel-outline-width);
  background-size: cover;
  background-position: center;
  clip-path: polygon(
    var(--hero-slant) 0,
    100% 0,
    calc(100% - var(--hero-slant)) 100%,
    0 100%
  );
}

/* fallback colours */
.panel-1 .panel-bg { background-color: var(--panel-blue-1); }
.panel-2 .panel-bg { background-color: var(--panel-blue-2); }
.panel-3 .panel-bg { background-color: var(--panel-blue-3); }
.panel-4 .panel-bg { background-color: var(--panel-blue-4); }

/* Flat overlays keep the accordion light to render while differentiating tiles. */
.panel-overlay {
  position: absolute;
  inset: var(--panel-outline-width);
  clip-path: polygon(
    var(--hero-slant) 0,
    100% 0,
    calc(100% - var(--hero-slant)) 100%,
    0 100%
  );
  background: rgb(var(--blue-dark-rgb) / .5);
  z-index: 1;
  transition: opacity .35s ease;
}
.panel-1 .panel-overlay { background: rgb(var(--blue-dark-rgb) / var(--panel-overlay-1)); }
.panel-2 .panel-overlay { background: rgb(var(--blue-rgb) / var(--panel-overlay-2)); }
.panel-3 .panel-overlay { background: rgb(var(--blue-dark-rgb) / var(--panel-overlay-3)); }
.panel-4 .panel-overlay { background: rgb(var(--blue-dark-rgb) / var(--panel-overlay-4)); }
.panel:is(:hover, :focus-visible, :has(:focus-visible)) .panel-overlay { opacity: .76; }

/* ── expanded content ── */
.panel-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7rem 2rem 2.5rem;
  pointer-events: none;
}

/* ── compact label (shown when collapsed) ── */
.panel-label-v {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity .35s;
}

.panel-label-v span {
  display: block;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: rgb(var(--white-rgb) / .9);
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(var(--hero-label-angle));
  transform-origin: center;
}

/* hide label on hovered panel */
.hero-accordion:has(.panel:is(:hover, :focus-visible, :has(:focus-visible)))
  .panel:is(:hover, :focus-visible, :has(:focus-visible)) .panel-label-v { opacity: 0; }

/* ── content reveal animations ── */
.panel-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s .08s, transform .35s .08s;
}
.panel-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.05;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s .05s, transform .35s .05s;
}
.panel-desc {
  font-size: 1rem;
  color: rgb(var(--white-rgb) / .78);
  line-height: 1.65;
  margin-top: .9rem;
  max-width: 400px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .35s .18s, transform .35s .18s;
}
.panel-cta {
  display: inline-block;
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: .7rem 1.35rem;
  box-shadow: 0 8px 24px rgb(var(--black-rgb) / .2);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .35s .26s, transform .35s .26s, color .25s, background .25s, border-color .25s, box-shadow .25s;
}
.panel-cta:hover,
.panel-cta:focus-visible {
  color: var(--white);
  background: var(--blue-mid);
  border-color: rgb(var(--white-rgb) / .75);
  box-shadow: 0 10px 30px rgb(var(--black-rgb) / .3);
}

.panel:is(:hover, :focus-visible, :has(:focus-visible)) .panel-eyebrow,
.panel:is(:hover, :focus-visible, :has(:focus-visible)) .panel-title,
.panel:is(:hover, :focus-visible, :has(:focus-visible)) .panel-desc,
.panel:is(:hover, :focus-visible, :has(:focus-visible)) .panel-cta {
  opacity: 1;
  transform: translateY(0);
}

/* scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: grid;
  place-items: center;
  color: rgb(var(--white-rgb) / .5);
  transition: opacity .4s;
}
.scroll-hint-desktop { display: grid; place-items: center; }
.scroll-mouse {
  width: 24px;
  height: 36px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.scroll-mouse-wheel {
  fill: currentColor;
  stroke: none;
  animation: scroll-wheel 1.8s ease-in-out infinite;
}
.scroll-hint-mobile { display: none; }
@keyframes scroll-wheel {
  0% { opacity: 0; transform: translateY(-2px); }
  25% { opacity: 1; }
  70% { opacity: .85; transform: translateY(8px); }
  100% { opacity: 0; transform: translateY(8px); }
}
@keyframes scroll-right-cue {
  0%, 100% { transform: translateX(-1px); }
  50% { transform: translateX(3px); }
}
@keyframes scroll-down-cue {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(3px); }
}
@media (max-width: 700px) {
  .scroll-hint {
    right: 1rem;
    bottom: 1rem;
    left: auto;
    transform: none;
  }
  .scroll-hint-desktop { display: none; }
  .scroll-hint-mobile { display: flex; gap: .45rem; }
  .scroll-direction {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgb(var(--white-rgb) / .28);
    color: rgb(var(--white-rgb) / .72);
  }
  .scroll-direction svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .scroll-direction--right svg { animation: scroll-right-cue 1.65s ease-in-out infinite; }
  .scroll-direction--down svg { animation: scroll-down-cue 1.65s ease-in-out .2s infinite; }
}
/* ─────────────────────────────────────────────
   SHARED ATOMS
───────────────────────────────────────────── */
.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.08;
}

/* ─────────────────────────────────────────────
   O NAS
───────────────────────────────────────────── */
#o-nas { padding: 7rem 3rem; }
.o-nas-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text .section-title { color: var(--blue-dark); }
.about-text p {
  margin-top: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--text-muted);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2.8rem;
}
.stat {
  text-align: center;
  padding: 1.4rem 1rem;
  border: 2px solid var(--accent);
  border-radius: 3px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  white-space: nowrap;
}
.stat-label {
  font-size: .78rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: .35rem;
}

.about-visual {
  position: relative;
  margin-bottom: 2rem;
}
.about-visual-box {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  background: var(--blue);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: -14px;
  right: 14px;
  bottom: 14px;
  border: 2.5px solid var(--accent);
  border-radius: 3px;
  pointer-events: none;
}
.about-schedule-btn {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -1.7rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-width: 170px;
  padding: .85rem 1.65rem;
  border: 2px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--blue-dark);
  box-shadow: 0 10px 28px rgb(var(--black-rgb) / .2);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s, background .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.about-schedule-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-schedule-btn:hover,
.about-schedule-btn:focus-visible {
  color: var(--white);
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  box-shadow: 0 12px 32px rgb(var(--black-rgb) / .27);
  transform: translateX(-50%) translateY(-2px);
}

/* ─────────────────────────────────────────────
   BLOG (dynamic editorial grid)
───────────────────────────────────────────── */
#blog {
  position: relative;
  overflow: hidden;
  background: var(--blue-dark);
  padding: 10rem 3rem;
  clip-path: polygon(0 55px, 100% 0, 100% calc(100% - 55px), 0 100%);
  margin: -55px 0;
}
#blog::before {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  top: 12%;
  right: -260px;
  border: 1px solid rgb(var(--accent-rgb) / .32);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgb(var(--accent-rgb) / .035), 0 0 0 140px rgb(var(--accent-rgb) / .02);
  pointer-events: none;
}
.blog-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}
#blog .eyebrow { color: rgb(var(--accent-rgb) / .82); }
#blog .section-title { color: var(--white); }
.blog-intro {
  max-width: 430px;
  padding-bottom: .25rem;
  color: rgb(var(--white-rgb) / .68);
  font-size: 1.02rem;
  line-height: 1.7;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.blog-card {
  grid-column: span 5;
  min-width: 0;
  display: grid;
  grid-template-rows: 260px 1fr;
  overflow: hidden;
  background: var(--white);
  border-top: 4px solid var(--accent);
  box-shadow: 0 16px 38px rgb(var(--black-rgb) / .2);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.blog-card--wide { grid-column: span 7; }
.blog-card:hover,
.blog-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgb(var(--black-rgb) / .28);
}
.blog-card-media {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: var(--blue);
}
.blog-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(var(--blue-dark-rgb) / 0) 45%, rgb(var(--blue-dark-rgb) / .58) 100%);
  pointer-events: none;
}
.blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .4s ease;
}
.blog-card:hover .blog-card-media img,
.blog-card:focus-within .blog-card-media img {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.03);
}
.blog-card-number {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: .85rem;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 4px 18px rgb(var(--black-rgb) / .28);
}
.blog-card-number::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 54px;
  height: 54px;
  top: -11px;
  right: -10px;
  background: var(--accent);
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
}
.blog-card-body {
  min-height: 275px;
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1.8rem 1.8rem;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.blog-meta span {
  color: var(--gray);
  font-weight: 400;
}
.blog-card h3 {
  margin-top: .8rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.16;
  text-transform: uppercase;
}
.blog-card h3 a {
  color: var(--blue-dark);
  text-decoration: none;
}
.blog-card-body > p:not(.blog-meta) {
  margin-top: .9rem;
  color: var(--text-muted);
  font-size: .94rem;
  line-height: 1.65;
}
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: max-content;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
}
.blog-link span { transition: transform .25s ease; }
.blog-link:hover span,
.blog-link:focus-visible span { transform: translateX(5px); }

/* ─────────────────────────────────────────────
   OPINIE
───────────────────────────────────────────── */
#opinie { padding: 8rem 3rem; background: var(--white); }
.opinie-inner { max-width: 1200px; margin: 0 auto; }
#opinie .section-title { color: var(--blue-dark); }

.reviews-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 2.4rem;
  align-items: stretch;
  margin-top: 3rem;
}
.reviews-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.75rem 0;
}
.reviews-rating-word {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
}
.reviews-stars,
.review-stars {
  color: var(--accent);
  letter-spacing: 2px;
  line-height: 1;
}
.reviews-stars {
  margin-top: .75rem;
  font-size: 2rem;
}
.reviews-score {
  margin-top: .7rem;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.5;
}
.google-wordmark {
  margin-top: 1rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -1.5px;
}
.google-blue { color: var(--google-blue); }
.google-red { color: var(--google-red); }
.google-yellow { color: var(--google-yellow); }
.google-green { color: var(--google-green); }
.reviews-all-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.2rem;
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-decoration: none;
  text-transform: uppercase;
}
.reviews-all-link span { color: var(--accent); transition: transform .25s ease; }
.reviews-all-link:hover span { transform: translateX(4px); }
.reviews-carousel {
  position: relative;
  min-width: 0;
}
.reviews-track {
  display: flex;
  gap: 1rem;
  height: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 0;
  min-height: 285px;
  padding: 1.7rem 1.5rem;
  background: var(--off-white);
  border-radius: 3px;
  border: 1px solid rgb(var(--blue-rgb) / .1);
  box-shadow: 0 10px 28px rgb(var(--blue-rgb) / .08);
  scroll-snap-align: start;
}
.review-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
}
.review-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-mid);
  color: var(--white);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.review-avatar--accent { background: var(--accent); }
.review-avatar--dark { background: var(--blue-dark); }
.review-person h3 {
  color: var(--text);
  font-size: .93rem;
  line-height: 1.25;
}
.review-person p {
  margin-top: .18rem;
  color: var(--gray);
  font-size: .76rem;
}
.google-g {
  color: var(--google-blue);
  font-size: 1.4rem;
  font-weight: 800;
}
.review-stars {
  margin-top: 1.3rem;
  font-size: 1.25rem;
}
.review-text {
  margin-top: 1rem;
  font-size: .96rem;
  line-height: 1.7;
  color: var(--text-neutral);
}
.reviews-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(var(--blue-rgb) / .12);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-dark);
  box-shadow: 0 5px 18px rgb(var(--blue-rgb) / .14);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .25s, border-color .25s, transform .25s;
}
.reviews-arrow:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-50%) scale(1.06); }
.reviews-arrow--prev { left: -19px; }
.reviews-arrow--next { right: -19px; }

/* Trustindex: real Google reviews in the Funkcjonuj visual language. */
.trustindex-reviews {
  margin-top: 3rem;
}
.trustindex-reviews .ti-widget.ti-goog {
  overflow: visible;
  font-family: var(--font-body);
}
.trustindex-reviews .ti-widget.ti-goog .ti-widget-container,
.trustindex-reviews .ti-widget.ti-goog .ti-widget-container * {
  font-family: var(--font-body);
}
.trustindex-reviews .ti-widget.ti-goog .ti-widget-container {
  align-items: stretch !important;
  margin-bottom: 0;
}
.trustindex-reviews .ti-widget.ti-goog .ti-widget-container:not(.ti-col-1) .ti-footer {
  flex: 0 0 230px !important;
  max-width: 230px !important;
  min-height: 285px;
  margin: 0 2.4rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trustindex-reviews .ti-widget.ti-goog .ti-widget-container:not(.ti-col-1) .ti-reviews-container {
  flex: 0 0 calc(100% - 268px) !important;
  max-width: calc(100% - 268px) !important;
}
.trustindex-reviews .ti-widget.ti-goog .ti-footer .ti-fade-container {
  width: 100%;
  text-align: left;
}
.trustindex-reviews .ti-widget.ti-goog .ti-rating-text strong.ti-rating {
  margin-bottom: .8rem;
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: 1.55rem !important;
  font-weight: 500;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.trustindex-reviews .ti-widget.ti-goog .ti-footer .ti-stars {
  margin-bottom: .7rem;
}
.trustindex-reviews .ti-widget.ti-goog .ti-footer .ti-rating-text,
.trustindex-reviews .ti-widget.ti-goog .ti-footer .ti-rating-text span,
.trustindex-reviews .ti-widget.ti-goog .ti-footer .ti-rating-text strong:not(.ti-rating-large) {
  color: var(--text-muted);
  font-size: .9rem;
}
.trustindex-reviews .ti-widget.ti-goog .ti-large-logo {
  margin-top: 1rem;
}
.trustindex-reviews .ti-widget.ti-goog .ti-large-logo .ti-v-center {
  text-align: left !important;
}
.trustindex-reviews .ti-widget.ti-goog .ti-large-logo img {
  width: 116px !important;
  margin: 0 !important;
}
.trustindex-reviews .ti-widget.ti-goog .ti-reviews-container-wrapper {
  height: auto;
  margin: 0 -8px !important;
  padding: 0 0 1px;
}
.trustindex-reviews .ti-widget.ti-goog .ti-review-item {
  min-height: 285px;
}
.trustindex-reviews .ti-widget.ti-goog .ti-review-item .ti-inner {
  position: relative;
  height: 100%;
  min-height: 285px;
  padding: 1.7rem 1.5rem !important;
  border: 1px solid rgb(var(--blue-rgb) / .1) !important;
  border-radius: 0 !important;
  background: var(--off-white) !important;
  box-shadow: none;
}
.trustindex-reviews .ti-widget.ti-goog .ti-profile-img {
  margin-right: .8rem !important;
}
.trustindex-reviews .ti-widget.ti-goog .ti-profile-img img {
  width: 44px !important;
  height: 44px !important;
}
.trustindex-reviews .ti-widget.ti-goog .ti-widget-container .ti-name {
  padding-right: 1.7rem;
  color: var(--text);
  font-size: .93rem;
  line-height: 1.25;
}
.trustindex-reviews .ti-widget.ti-goog .ti-widget-container .ti-date {
  margin-top: .18rem;
  color: var(--gray);
  font-size: .76rem;
}
.trustindex-reviews .ti-widget.ti-goog .ti-reviews-container-wrapper .ti-inner > .ti-stars {
  margin: 1.3rem 0 1rem;
}
.trustindex-reviews .ti-widget.ti-goog .ti-review-content {
  height: 112px !important;
  padding-right: 1rem;
  overflow-y: auto !important;
  color: var(--text-neutral);
  font-size: .9rem;
  line-height: 1.7;
  scrollbar-width: none;
}
.trustindex-reviews .ti-widget.ti-goog .ti-review-content::-webkit-scrollbar {
  display: none;
  width: 0;
}
.funkcjonuj-review-scrollbar {
  position: absolute;
  right: 1rem;
  z-index: 2;
  width: 4px;
  overflow: hidden;
  background: rgb(var(--blue-rgb) / .1);
  pointer-events: none;
}
.funkcjonuj-review-scrollbar[hidden] {
  display: none;
}
.funkcjonuj-review-scrollbar span {
  display: block;
  width: 100%;
  height: var(--review-scroll-thumb-height, 30px);
  background: rgb(var(--blue-dark-rgb) / .48);
  transform: translateY(var(--review-scroll-thumb-offset, 0));
  transition: transform .12s linear;
}
.trustindex-reviews .ti-widget.ti-goog .ti-read-more span {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.trustindex-reviews .ti-widget.ti-goog .ti-controls .ti-next,
.trustindex-reviews .ti-widget.ti-goog .ti-controls .ti-prev {
  width: 38px;
  height: 38px;
  border: 1px solid rgb(var(--blue-rgb) / .12);
  border-radius: 50%;
  background-color: var(--white);
  box-shadow: 0 5px 18px rgb(var(--blue-rgb) / .14);
}
.trustindex-reviews .ti-widget.ti-goog .ti-controls .ti-prev {
  left: -19px !important;
}
.trustindex-reviews .ti-widget.ti-goog .ti-controls .ti-next {
  right: -19px !important;
}
.trustindex-reviews .ti-widget.ti-goog .ti-controls .ti-next:hover,
.trustindex-reviews .ti-widget.ti-goog .ti-controls .ti-prev:hover,
.trustindex-reviews .ti-widget.ti-goog .ti-controls .ti-next:focus-visible,
.trustindex-reviews .ti-widget.ti-goog .ti-controls .ti-prev:focus-visible {
  border-color: var(--accent);
  background-color: var(--white) !important;
  outline-color: var(--accent) !important;
}
.trustindex-reviews .ti-widget.ti-goog .ti-controls .ti-next:hover::before,
.trustindex-reviews .ti-widget.ti-goog .ti-controls .ti-prev:hover::before,
.trustindex-reviews .ti-widget.ti-goog .ti-controls .ti-next:focus-visible::before,
.trustindex-reviews .ti-widget.ti-goog .ti-controls .ti-prev:focus-visible::before {
  border-color: var(--accent) !important;
}

@media (max-width: 800px) {
  .trustindex-reviews { margin-top: 2.25rem; }
  .trustindex-reviews .ti-widget.ti-goog .ti-widget-container {
    flex-wrap: wrap;
  }
  .trustindex-reviews .ti-widget.ti-goog .ti-widget-container:not(.ti-col-1) .ti-footer,
  .trustindex-reviews .ti-widget.ti-goog .ti-widget-container .ti-footer {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    min-height: 0;
    margin: 0 0 1.5rem;
    justify-content: flex-start;
  }
  .trustindex-reviews .ti-widget.ti-goog .ti-footer .ti-fade-container {
    text-align: center;
  }
  .trustindex-reviews .ti-widget.ti-goog .ti-large-logo .ti-v-center {
    text-align: center !important;
  }
  .trustindex-reviews .ti-widget.ti-goog .ti-large-logo img {
    margin-inline: auto !important;
  }
  .trustindex-reviews .ti-widget.ti-goog .ti-widget-container:not(.ti-col-1) .ti-reviews-container,
  .trustindex-reviews .ti-widget.ti-goog .ti-widget-container .ti-reviews-container {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 600px) {
  .trustindex-reviews .ti-widget.ti-goog .ti-review-item,
  .trustindex-reviews .ti-widget.ti-goog .ti-review-item .ti-inner {
    min-height: 270px;
  }
}

/* ─────────────────────────────────────────────
   CTA BAND
───────────────────────────────────────────── */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue-dark) url('../img/onas.jpg') center 44% / cover no-repeat;
  padding: 7rem 3rem;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, rgb(var(--blue-dark-rgb) / .94), rgb(var(--blue-rgb) / .82));
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}
.cta-band p { margin-top: .7rem; color: rgb(var(--white-rgb) / .68); font-size: 1.05rem; }
.btn-cta {
  display: inline-block;
  margin-top: 2rem;
  background: var(--accent);
  color: var(--blue-dark);
  padding: 1rem 2.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .3s, transform .2s;
}
.btn-cta:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ─────────────────────────────────────────────
   KONTAKT
───────────────────────────────────────────── */
#kontakt { padding: 7rem 3rem; }
.kontakt-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 4rem;
}
.contact-info .section-title { color: var(--blue-dark); white-space: nowrap; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2rem; }
.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}
.contact-detail-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray);
}
.contact-detail-text span { font-size: .98rem; color: var(--text-form); line-height: 1.55; }
.contact-detail-text a { color: inherit; text-decoration: none; }
.contact-detail-text a:hover { color: var(--blue); }

/* form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { position: relative; margin-bottom: 1.1rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1.25rem 1.1rem .55rem;
  min-height: 56px;
  border: 2px solid var(--form-border);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--text-form);
  background: var(--form-surface);
  transition: border-color .3s;
  appearance: none;
}
.form-group label {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  color: var(--gray);
  font-size: .96rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: left top;
  transition: top .2s ease, transform .2s ease, color .2s ease, font-size .2s ease;
}
.form-group textarea + label { top: 1.25rem; }
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group--select label {
  top: .65rem;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  transform: none;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: .65rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  transform: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.form-group textarea { height: 140px; padding-top: 1.55rem; resize: vertical; }
.btn-submit {
  background: var(--blue);
  color: var(--white);
  padding: .95rem 2.5rem;
  border: none;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s, transform .2s;
}
.btn-submit:hover { background: var(--blue-mid); transform: translateY(-2px); }

/* Dedicated contact page */
.contact-page { background: var(--white); color: var(--blue-dark); }
.contact-page-hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
  align-items: end;
  gap: 5rem;
  padding: calc(var(--header-height) + 7rem) max(3rem, calc((100vw - 1320px) / 2)) 7rem;
  background: var(--blue-dark) url('../img/onas.jpg') center 39% / cover no-repeat;
  color: var(--white);
}
.contact-page-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: rgb(var(--blue-dark-rgb) / .84); }
.contact-page-hero h1 {
  margin: .8rem 0 1.7rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 8.5rem);
  font-weight: 300;
  line-height: .8;
  text-transform: uppercase;
}
.contact-page-hero h1 span { color: rgb(var(--white-rgb) / .34); }
.contact-page-hero-copy > p:last-child { max-width: 670px; color: rgb(var(--white-rgb) / .68); font-size: .95rem; line-height: 1.85; }
.contact-page-phone {
  position: relative;
  display: grid;
  gap: .55rem;
  padding: 2.2rem;
  border: 1px solid rgb(var(--white-rgb) / .22);
  color: var(--white);
  text-decoration: none;
  transition: border-color .25s, background .25s;
}
.contact-page-phone:hover { border-color: var(--accent); background: rgb(var(--white-rgb) / .05); }
.contact-page-phone span { color: var(--accent); font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.contact-page-phone strong { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 3rem); font-weight: 300; }
.contact-page-phone b { position: absolute; right: 1.6rem; top: 1.6rem; color: var(--accent); font-size: 1.3rem; font-weight: 300; }
.contact-page-main { padding-block: 9rem !important; }
.contact-page-main .kontakt-inner { max-width: 1320px; grid-template-columns: minmax(380px, .78fr) minmax(0, 1.22fr); gap: 7rem; }
.contact-page-main .contact-info .section-title { margin-top: .8rem; font-size: clamp(3.5rem, 5vw, 5.2rem); line-height: .87; white-space: normal; }
.contact-page-form { padding: 3.5rem; border: 1px solid var(--form-border); background: #f7f8fb; }
.contact-page-form header { margin-bottom: 2.5rem; }
.contact-page-form h2 { margin: .65rem 0 0; font-family: var(--font-display); font-size: clamp(2.6rem, 4vw, 4rem); font-weight: 300; line-height: .9; text-transform: uppercase; }
.contact-community {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: clamp(4rem, 8vw, 9rem);
  padding: 8rem max(3rem, calc((100vw - 1320px) / 2));
  background: var(--blue-dark);
  color: var(--white);
}
.contact-community-intro h2 {
  margin: .8rem 0 1.7rem;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 6vw, 6.6rem);
  font-weight: 300;
  line-height: .84;
  text-transform: uppercase;
}
.contact-community-intro > p:last-child { max-width: 460px; color: rgb(var(--white-rgb) / .64); font-size: .92rem; line-height: 1.8; }
.contact-community-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.contact-community-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 365px;
  padding: 2.5rem;
  border: 1px solid rgb(var(--white-rgb) / .22);
  color: var(--white);
  text-decoration: none;
  transition: border-color .25s, background .25s, transform .25s;
}
.contact-community-card + .contact-community-card { border-left: 0; }
.contact-community-card:hover { z-index: 1; border-color: var(--accent); background: rgb(var(--white-rgb) / .055); transform: translateY(-6px); }
.contact-community-card + .contact-community-card:hover { border-left: 1px solid var(--accent); margin-left: -1px; }
.contact-community-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(var(--white-rgb) / .3);
  border-radius: 50%;
}
.contact-community-icon svg { width: 22px; height: 22px; fill: currentColor; }
.contact-community-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; margin-top: 4.5rem; }
.contact-community-copy small { color: var(--accent); font-size: .58rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.contact-community-copy strong { margin-top: .7rem; font-family: var(--font-display); font-size: clamp(2rem, 3vw, 3.2rem); font-weight: 300; line-height: .92; text-transform: uppercase; }
.contact-community-copy > span { max-width: 330px; margin-top: 1.2rem; color: rgb(var(--white-rgb) / .6); font-size: .82rem; line-height: 1.7; }
.contact-community-card > b { position: absolute; top: 2.5rem; right: 2.5rem; color: var(--accent); font-size: 1.5rem; font-weight: 300; transition: transform .25s; }
.contact-community-card:hover > b { transform: translate(4px, -4px); }
.contact-map-section { padding: 8rem max(3rem, calc((100vw - 1320px) / 2)) 10rem; background: #f4f5f8; }
.contact-map-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; margin-bottom: 3.5rem; }
.contact-map-heading h2 { margin: .8rem 0 0; font-family: var(--font-display); font-size: clamp(4rem, 7vw, 7rem); font-weight: 300; line-height: .83; text-transform: uppercase; }
.contact-map-heading > a { padding-bottom: .4rem; border-bottom: 1px solid var(--accent); color: var(--blue-dark); font-size: .63rem; font-weight: 700; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.contact-map-heading > a span { color: var(--accent); }
.contact-map { height: 560px; border: 1px solid var(--form-border); background: var(--blue-dark); }
.contact-map iframe { width: 100%; height: 100%; display: block; border: 0; filter: saturate(.72) contrast(.96); }

/* 404 */
.error-page {
  min-height: max(700px, 84vh);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(440px, .97fr);
  padding-top: var(--header-height);
  background: var(--white);
  color: var(--blue-dark);
}
.error-page-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 7rem max(3rem, calc((100vw - 1320px) / 2)); padding-right: clamp(3rem, 6vw, 7rem); }
.error-kicker { margin: 0 0 1.1rem; color: var(--accent); font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 4.2rem); font-weight: 300; line-height: 1; }
.error-page h1 { margin: .8rem 0 1.7rem; font-family: var(--font-display); font-size: clamp(5rem, 8vw, 8rem); font-weight: 300; line-height: .8; text-transform: uppercase; }
.error-page-copy > p:not(.eyebrow):not(.error-kicker) { max-width: 590px; color: var(--text-muted); font-size: .92rem; line-height: 1.8; }
.error-home-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 3.5rem; min-width: 360px; margin-top: 2.7rem; padding: 1.25rem 1.6rem; background: var(--accent); color: var(--blue-dark); font-family: var(--font-display); font-size: 1rem; font-weight: 500; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: background .2s, transform .2s; }
.error-home-button:hover { background: var(--accent-hover); transform: translateY(-2px); }
.error-home-button span { font-size: 1.5rem; font-weight: 300; }
.error-page-media { position: relative; min-height: 660px; overflow: hidden; clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); background: var(--blue-dark); }
.error-page-media::after { content: ''; position: absolute; inset: 0; background: rgb(var(--blue-dark-rgb) / .42); }
.error-page-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.error-page-media strong { position: absolute; z-index: 2; right: 5%; bottom: -5%; color: rgb(var(--white-rgb) / .13); font-family: var(--font-display); font-size: clamp(12rem, 24vw, 28rem); font-weight: 300; line-height: .7; }

/* Workshops & Events */
.events-page { background: var(--white); color: var(--blue-dark); }
.events-hero { min-height: 760px; display: grid; grid-template-columns: .9fr 1.1fr; padding-top: var(--header-height); background: var(--blue-dark); color: var(--white); }
.events-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 7rem 3rem 7rem max(3rem, calc((100vw - 1320px) / 2)); }
.events-hero h1 { margin: .9rem 0 1.8rem; font-family: var(--font-display); font-size: clamp(6rem, 10vw, 10rem); font-weight: 300; line-height: .76; text-transform: uppercase; }
.events-hero h1 span { color: rgb(var(--white-rgb) / .35); }
.events-hero-copy > p:not(.eyebrow) { max-width: 530px; color: rgb(var(--white-rgb) / .72); font-size: 1.05rem; line-height: 1.75; }
.events-hero-link { margin-top: 2.5rem; padding-bottom: .45rem; border-bottom: 1px solid var(--accent); color: var(--white); font-size: .65rem; font-weight: 700; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.events-hero-link span { margin-left: .6rem; color: var(--accent); }
.events-hero-media { min-height: 680px; overflow: hidden; clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
.events-hero-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; opacity: .78; }
.events-intro { width: min(1320px, calc(100% - 6rem)); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 5rem; margin: 0 auto; padding: 10rem 0; }
.events-section-label span { display: block; margin-bottom: 2rem; color: var(--accent); font-size: .62rem; font-weight: 700; letter-spacing: .15em; }
.events-intro-copy h2 { max-width: 950px; margin: 0; font-family: var(--font-display); font-size: clamp(4rem, 7vw, 7rem); font-weight: 300; line-height: .86; text-transform: uppercase; }
.events-intro-text { max-width: 850px; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin: 4rem 0 0 auto; }
.events-intro-text p { margin: 0; color: var(--text-muted); font-size: .88rem; line-height: 1.85; }
.events-experience { padding: 9rem max(3rem, calc((100vw - 1320px) / 2)); background: #f4f5f8; }
.events-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 6rem; margin-bottom: 4.5rem; }
.events-heading h2 { max-width: 850px; margin: .8rem 0 0; font-family: var(--font-display); font-size: clamp(4rem, 6.5vw, 6.5rem); font-weight: 300; line-height: .86; text-transform: uppercase; }
.events-heading > p { margin: 0; padding-left: 1.5rem; border-left: 2px solid var(--accent); color: var(--text-muted); font-size: .86rem; line-height: 1.8; }
.events-brands { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--form-border); border-left: 1px solid var(--form-border); }
.events-brands span { min-height: 140px; display: grid; place-items: center; padding: 2rem 1.5rem; border-right: 1px solid var(--form-border); border-bottom: 1px solid var(--form-border); }
.events-brands img { max-height: 60px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.events-media-note { display: grid; grid-template-columns: .55fr 1.45fr; gap: 4rem; margin-top: 4rem; padding: 3rem; background: var(--blue-dark); color: var(--white); }
.events-media-note strong { color: var(--accent); font-family: var(--font-display); font-size: 2rem; font-weight: 300; text-transform: uppercase; }
.events-media-note p { margin: 0; color: rgb(var(--white-rgb) / .7); font-size: .86rem; line-height: 1.8; }
.events-media-note a { color: var(--white); text-underline-offset: .25rem; }
.events-media-note b { color: var(--white); font-weight: 600; }
.events-formats { padding: 10rem max(3rem, calc((100vw - 1320px) / 2)); background: var(--blue-dark); color: var(--white); }
.events-heading--light > p { color: rgb(var(--white-rgb) / .66); }
.events-format-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgb(var(--white-rgb) / .16); border: 1px solid rgb(var(--white-rgb) / .16); }
.events-format-grid article { min-height: 350px; display: flex; flex-direction: column; padding: 3.4rem; background: var(--blue-dark); transition: background .25s; }
.events-format-grid article:hover { background: var(--blue-mid); }
.events-format-grid article > span { margin-bottom: auto; color: var(--accent); font-size: .58rem; font-weight: 700; letter-spacing: .15em; }
.events-format-grid h3 { max-width: 12ch; margin: 4rem 0 1.2rem; font-family: var(--font-display); font-size: clamp(2.3rem, 3.8vw, 3.6rem); font-weight: 300; line-height: .9; text-transform: uppercase; }
.events-format-grid p { max-width: 600px; margin: 0; color: rgb(var(--white-rgb) / .62); font-size: .78rem; line-height: 1.8; }
.events-collaboration { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); }
.events-collaboration-media { min-height: 760px; overflow: hidden; }
.events-collaboration-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.events-collaboration-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 7rem max(3rem, calc((100vw - 1320px) / 2)) 7rem clamp(4rem, 7vw, 8rem); }
.events-collaboration-copy h2 { margin: .9rem 0 1.8rem; font-family: var(--font-display); font-size: clamp(4rem, 6vw, 6rem); font-weight: 300; line-height: .84; text-transform: uppercase; }
.events-collaboration-copy > p:not(.eyebrow) { max-width: 600px; color: var(--text-muted); font-size: .9rem; line-height: 1.85; }
.events-person { display: grid; gap: .35rem; margin-top: 2.4rem; }
.events-person strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 300; text-transform: uppercase; }
.events-person span { color: var(--text-muted); font-size: .71rem; line-height: 1.6; }
.events-contact-links { display: grid; gap: .6rem; margin-top: 2rem; }
.events-contact-links a { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-width: min(100%, 390px); padding: .9rem 0; border-bottom: 1px solid var(--form-border); color: var(--blue-dark); font-family: var(--font-display); font-size: 1.45rem; font-weight: 300; text-decoration: none; }
.events-contact-links a span { color: var(--accent); }
.events-social-links { display: flex; gap: 1.5rem; margin-top: 1.8rem; }
.events-social-links a { color: var(--blue-dark); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }

@media (max-width: 800px) {
  .error-page { display: flex; flex-direction: column-reverse; padding-top: var(--header-height); }
  .error-page-media { min-height: 330px; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
  .error-page-copy { padding: 4rem 1.5rem 6rem; }
  .error-page h1 { font-size: clamp(4.5rem, 20vw, 6.7rem); }
  .error-home-button { width: 100%; min-width: 0; }
  .events-hero { display: flex; flex-direction: column-reverse; padding-top: var(--header-height); }
  .events-hero-media { min-height: 440px; clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%); }
  .events-hero-copy { padding: 4rem 1.5rem 6rem; }
  .events-hero h1 { font-size: clamp(5rem, 24vw, 7.5rem); }
  .events-intro { width: calc(100% - 3rem); display: block; padding: 7rem 0; }
  .events-section-label { margin-bottom: 3rem; }
  .events-intro-copy h2 { font-size: 4rem; }
  .events-intro-text { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
  .events-experience,
  .events-formats { padding: 7rem 1.5rem; }
  .events-heading { display: block; }
  .events-heading h2 { font-size: 4rem; }
  .events-heading > p { margin-top: 2.5rem; }
  .events-brands { grid-template-columns: 1fr 1fr; }
  .events-brands span { min-height: 90px; }
  .events-brands img { max-height: 48px; max-width: 130px; }
  .events-media-note { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem; }
  .events-format-grid { grid-template-columns: 1fr; }
  .events-format-grid article { min-height: 310px; padding: 2.5rem 2rem; }
  .events-collaboration { display: flex; flex-direction: column; }
  .events-collaboration-media { min-height: 430px; }
  .events-collaboration-copy { padding: 6rem 1.5rem; }
  .events-collaboration-copy h2 { font-size: 4rem; }
}

@media (max-width: 800px) {
  .contact-page-hero { min-height: 620px; display: block; padding: calc(var(--header-height) + 5rem) 1.5rem 5rem; }
  .contact-page-hero h1 { font-size: clamp(4.5rem, 20vw, 7rem); }
  .contact-page-phone { margin-top: 3rem; }
  .contact-page-main { padding: 6rem 1.5rem !important; }
  .contact-page-main .kontakt-inner { display: block; }
  .contact-page-form { margin-top: 5rem; padding: 2.2rem 1.4rem; }
  .contact-map-section { padding: 6rem 1.5rem 7rem; }
  .contact-map-heading { display: block; }
  .contact-map-heading > a { display: inline-block; margin-top: 2rem; }
  .contact-map { height: 430px; }
}

/* ─────────────────────────────────────────────
   PARTNERZY
───────────────────────────────────────────── */
#partnerzy {
  position: relative;
  padding: 6.5rem 3rem;
  background: var(--white);
}
#partnerzy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 6rem), 1200px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0 90px, var(--form-border) 90px 100%);
  transform: translateX(-50%);
}
.partners-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.7fr);
  gap: 5rem;
  align-items: center;
}
.partners-intro .section-title { color: var(--blue-dark); }
.partners-intro > p:last-child {
  max-width: 430px;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}
.partners-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.partner-logo {
  height: 150px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--form-border);
  border-top: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgb(var(--blue-rgb) / .06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgb(var(--blue-rgb) / .11);
}
.partner-logo img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: contain;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer { background: var(--blue-dark); padding: 3.5rem 3rem 2rem; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgb(var(--white-rgb) / .1);
}
.footer-logo-img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
  margin-bottom: .5rem;
}
.footer-logo-txt {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo-txt span { color: var(--accent); }
.footer-tagline { margin-top: .5rem; font-size: .88rem; color: rgb(var(--white-rgb) / .45); line-height: 1.6; }
.footer-contact {
  display: grid;
  gap: .18rem;
  color: rgb(var(--white-rgb) / .62);
  font-size: .82rem;
  line-height: 1.55;
}
.footer-contact strong {
  display: block;
  margin-bottom: .08rem;
  color: rgb(var(--white-rgb) / .88);
  font-weight: 600;
}
.footer-contact address { margin: .5rem 0 0; font-style: normal; }
.footer-contact a {
  width: fit-content;
  color: inherit;
  text-decoration: none;
  transition: color .25s;
}
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--white);
}
.social-links--footer { margin-top: 2.5rem; }
.social-links--footer a {
  width: 39px;
  height: 39px;
  border: 1px solid rgb(var(--white-rgb) / .18);
  border-radius: 2px;
}
.social-links--footer a:hover,
.social-links--footer a:focus-visible {
  color: var(--blue-dark);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.footer-col h4 {
  position: relative;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.4rem;
  padding-left: 1rem;
}
.footer-col h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 25px;
  background: var(--accent);
  clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%);
  transform: translateY(-50%);
}
.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: .5rem; }
.footer-hours li {
  color: rgb(var(--white-rgb) / .6);
  font-size: .9rem;
  line-height: 1.5;
}
.footer-col ul a { color: rgb(var(--white-rgb) / .6); text-decoration: none; font-size: .9rem; transition: color .25s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  font-size: .8rem;
  color: rgb(var(--white-rgb) / .3);
}
.creator-credit { justify-self: center; }
.creator-credit [data-tooltip] {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.creator-credit [data-tooltip]::before,
.creator-credit [data-tooltip]::after {
  position: absolute;
  left: 50%;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.creator-credit [data-tooltip]::before {
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 170px;
  padding: .55rem .7rem;
  border-radius: 2px;
  background: var(--accent);
  color: var(--blue-dark);
  content: attr(data-tooltip);
  font-family: var(--font-nav);
  font-size: .64rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transform: translate(-50%, 5px);
}
.creator-credit [data-tooltip]::after {
  bottom: calc(100% + 5px);
  width: 0;
  height: 0;
  border-top: 5px solid var(--accent);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  content: '';
  transform: translateX(-50%);
}
.creator-credit [data-tooltip]:hover::before,
.creator-credit [data-tooltip]:hover::after,
.creator-credit [data-tooltip]:focus-visible::before,
.creator-credit [data-tooltip]:focus-visible::after {
  visibility: visible;
  opacity: 1;
}
.creator-credit [data-tooltip]:hover::before,
.creator-credit [data-tooltip]:focus-visible::before { transform: translate(-50%, 0); }
.creator-credit img {
  display: block;
  width: 18px;
  height: auto;
  opacity: .25;
  filter: grayscale(1) brightness(0) invert(1);
  transition: opacity .25s, transform .25s;
}
.creator-credit a:hover img,
.creator-credit a:focus-visible img {
  opacity: .8;
  transform: scale(1.08);
}
.footer-legal { justify-self: end; display: flex; align-items: center; gap: .65rem; }
.footer-legal a {
  color: inherit;
  text-decoration: none;
  transition: color .25s;
}
.footer-legal a:hover { color: var(--accent); }

@media (max-width: 1240px) and (min-width: 961px) {
  .site-header { padding-inline: 1.5rem; }
  .nav-links { gap: 1rem; }
  .nav-inner { gap: .8rem; }
  .social-links--header { gap: .3rem; }
  .social-links--header a { width: 28px; height: 28px; }
  .btn-nav { padding-inline: 1rem; }
}

/* ─────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --header-height: 84px; }
  .site-header { padding: 1rem 1.5rem; }
  .logo { height: 52px; }
  .site-header.scrolled .logo { height: 42px; }
  .site-header.scrolled.menu-open .logo,
  .site-header.scrolled:has(.nav-inner.open) .logo { height: 52px; }
  .nav-inner   { display: none; }
  .burger      { display: flex; }
  .nav-inner.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgb(var(--blue-dark-rgb) / .97);
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 7.5rem 1.5rem 2.5rem;
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    width: min(100%, 390px);
  }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a { padding: .6rem 1.8rem; font-size: 1.08rem; }
  .nav-links > .menu-item-has-children > a { padding-inline: 2.4rem; }
  .nav-links .sub-menu,
  .nav-links > .menu-item-has-children:hover > .sub-menu,
  .nav-links > .menu-item-has-children:focus-within > .sub-menu {
    display: none;
    position: static;
    min-width: 0;
    width: 100%;
    margin: .2rem 0 .5rem;
    padding: .3rem .7rem;
    border: 0;
    border-radius: 2px;
    background: rgb(var(--black-rgb) / .1);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav-links > .menu-item-has-children.submenu-open > .sub-menu { display: block; }
  .nav-links .sub-menu::before { display: none; }
  .nav-links .sub-menu li + li { border-color: rgb(var(--white-rgb) / .08); }
  .nav-links .sub-menu a { padding: .55rem .8rem; font-size: .82rem; }
  .submenu-toggle {
    position: absolute;
    top: .52rem;
    left: calc(50% + 3.8rem);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgb(var(--white-rgb) / .18);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    cursor: pointer;
  }
  .submenu-toggle span {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .25s var(--ease);
  }
  .submenu-toggle[aria-expanded='true'] span { transform: translateY(2px) rotate(225deg); }
  .social-links--header a { width: 38px; height: 38px; }
  .hero-accordion      { height: calc(100svh - var(--header-height)); }
  .panel-content       { padding: 2rem 3rem 2.5rem; }
  .o-nas-inner         { grid-template-columns: 1fr; gap: 3rem; }
  #blog                { padding: 8rem 1.5rem; }
  .blog-card,
  .blog-card--wide     { grid-column: span 6; }
  .reviews-layout      { grid-template-columns: 1fr; gap: 1.5rem; }
  .reviews-summary     { align-items: center; text-align: center; padding: 0 0 1rem; }
  .review-card         { flex-basis: calc((100% - 1rem) / 2); }
  .kontakt-inner       { grid-template-columns: 1fr; gap: 3rem; }
  .partners-inner      { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner        { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom       { grid-template-columns: 1fr; justify-items: start; gap: .9rem; }
  .creator-credit      { justify-self: stretch; display: flex; justify-content: center; }
  .footer-legal        { justify-self: start; }
  .form-row            { grid-template-columns: 1fr; }
  #o-nas, #opinie, #kontakt, #partnerzy { padding: 5rem 1.5rem; }
}
@media (max-width: 700px) {
  .hero-accordion {
    height: calc(100svh - var(--header-height));
    min-height: 500px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .hero-accordion::-webkit-scrollbar { display: none; }
  .panel,
  .panel-1,
  .panel-4 {
    flex: 0 0 86vw !important;
    min-width: 0;
    margin-left: 0;
    clip-path: none;
    scroll-snap-align: start;
  }
  .panel:not(.panel-1) { margin-left: 0; }
  .panel-bg,
  .panel-overlay,
  .panel-1 .panel-bg,
  .panel-1 .panel-overlay,
  .panel-4 .panel-bg,
  .panel-4 .panel-overlay { clip-path: none; }
  .panel-label-v { display: none; }
  .panel-content {
    justify-content: flex-end;
    padding: 2rem 1.5rem 3rem;
  }
  .panel-eyebrow,
  .panel-title,
  .panel-desc,
  .panel-cta {
    opacity: 1;
    transform: none;
  }
  .blog-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .blog-grid { margin-top: 2.75rem; }
  .blog-card,
  .blog-card--wide {
    grid-column: span 12;
    grid-template-rows: 220px 1fr;
  }
  .blog-card-media { height: 220px; }
  .blog-card-body { min-height: 270px; }
  .review-card { flex-basis: 86%; min-height: 270px; }
  .reviews-arrow { display: none; }
  .partners-logos { grid-template-columns: 1fr; }
  .partner-logo { height: 135px; }
}

/* Display headings intentionally use the lightest available brand weight. */
h1,
h2,
h3,
h4,
h5,
h6 { font-weight: 300 !important; }
@media (max-width: 560px) {
  .about-stats  { grid-template-columns: 1fr 1fr; }
  .stat-number  { font-size: 2.25rem; }
  .footer-legal { flex-wrap: wrap; row-gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .panel-bg,
  .panel-label-v,
  .panel-eyebrow,
  .panel-title,
  .panel-desc,
  .panel-cta { transition-duration: .01ms !important; }
}

/* ─────────────────────────────────────────────
   WORDPRESS INTEGRATION
───────────────────────────────────────────── */
.admin-bar .site-header { top: 32px; }
body:not(.home) .site-header {
  background: rgb(var(--blue-dark-rgb) / .97);
  box-shadow: 0 2px 24px rgb(var(--black-rgb) / .2);
}
.partner-logo a {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
.form-notice {
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border-left: 4px solid var(--blue);
  background: var(--off-white);
  color: var(--text-form);
  font-size: .9rem;
  line-height: 1.5;
}
.form-notice--success { border-left-color: var(--google-green); }
.form-notice--error { border-left-color: var(--google-red); }

/* Optional Contact Form 7 output selected through SCF. */
.contact-form .wpcf7-form > p { margin-bottom: 1.1rem; }
.contact-form .wpcf7-form label {
  display: block;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.contact-form .wpcf7-form-control-wrap { display: block; margin-top: .4rem; }
.contact-form .wpcf7 input:not([type='submit']),
.contact-form .wpcf7 textarea,
.contact-form .wpcf7 select {
  width: 100%;
  border: 2px solid var(--form-border);
  border-radius: 0;
  background: var(--form-surface);
  padding: 1rem;
  color: var(--text-form);
  font: inherit;
}
.contact-form .wpcf7 textarea { min-height: 170px; resize: vertical; }
.contact-form .wpcf7 input[type='submit'] {
  border: 0;
  background: var(--blue);
  color: var(--white);
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
}

.content-page {
  min-height: 70vh;
  padding: calc(var(--header-height) + 5rem) 3rem 7rem;
  background: var(--white);
}
.content-page-inner { max-width: 1200px; margin: 0 auto; }
.content-page-inner--narrow { max-width: 820px; }
.content-page .section-title {
  margin-bottom: 2.5rem;
  color: var(--blue-dark);
  font-size: clamp(2.5rem, 6vw, 5rem);
}
.entry-hero { margin: 0 0 2.5rem; }
.entry-hero img,
.entry-content img { max-width: 100%; height: auto; }
.entry-content { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2,
.entry-content h3 { color: var(--blue-dark); font-family: var(--font-display); text-transform: uppercase; }
.entry-content a { color: var(--blue); }
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.content-card { border: 1px solid var(--form-border); padding: 1.25rem; }
.content-card-image { display: block; height: 280px; margin: -1.25rem -1.25rem 1.25rem; overflow: hidden; }
.content-card-image img { width: 100%; height: 100%; object-fit: cover; }
.content-card h2 { margin: .6rem 0 1rem; font-family: var(--font-display); font-size: 2rem; line-height: 1.05; text-transform: uppercase; }
.content-card h2 a { color: var(--blue-dark); text-decoration: none; }
.content-card > p:not(.blog-meta) { color: var(--text-muted); line-height: 1.7; }
.post-navigation { margin-top: 3rem; }

/* Inner pages and articles */
.inner-page { min-height: 70vh; background: var(--white); }
.content-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(320px, 34vw, 450px);
  padding: calc(var(--header-height) + 3rem) 3rem 3.5rem;
  overflow: hidden;
  background: var(--blue-dark);
}
.content-hero--article { min-height: clamp(380px, 42vw, 540px); }
.content-hero-media,
.content-hero-overlay { position: absolute; inset: 0; }
.content-hero-media {
  z-index: -2;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.025);
}
.content-hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(var(--blue-dark-rgb) / .94) 0%, rgb(var(--blue-dark-rgb) / .78) 47%, rgb(var(--blue-rgb) / .54) 100%),
    linear-gradient(0deg, rgb(var(--blue-dark-rgb) / .58) 0%, transparent 62%);
}
.content-hero-inner { width: 100%; max-width: 1200px; margin: 0 auto; }
.content-hero h1 {
  max-width: 1000px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .92;
  text-wrap: balance;
  text-transform: uppercase;
}
.content-hero--article h1 { font-size: clamp(3rem, 6vw, 6rem); }
.eyebrow--light { color: var(--accent); }
.entry-section { padding: clamp(4.5rem, 8vw, 7rem) 3rem 7rem; }
.entry-content--page { max-width: 1050px; }
.entry-featured {
  width: 100%;
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
  background: var(--off-white);
}
.entry-featured--page { aspect-ratio: 16 / 7.5; }
.entry-featured--article { aspect-ratio: 16 / 9; }
.entry-featured img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1.35rem;
  color: rgb(var(--white-rgb) / .82);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.article-category {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .35rem .8rem;
  background: var(--accent);
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
}
.article-section { padding: clamp(4.5rem, 8vw, 7rem) 3rem 7rem; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
  gap: clamp(3rem, 6vw, 6rem);
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}
.article-content { min-width: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { scroll-margin-top: calc(var(--header-height) + 2rem); }
.entry-content h2 { margin-top: 3.5rem; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; }
.entry-content h3 { margin-top: 2.5rem; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.08; }
.entry-content h4 { margin-top: 2rem; color: var(--blue-dark); font-size: 1.2rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.5rem; }
.entry-content li + li { margin-top: .55rem; }
.entry-content blockquote {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.4rem 1.6rem 1.4rem 2rem;
  border-left: 5px solid var(--accent);
  background: var(--off-white);
  color: var(--blue-dark);
  font-size: 1.15rem;
  font-weight: 600;
}
.entry-content figure { max-width: 100%; }
.entry-content figcaption { margin-top: .5rem; color: var(--gray); font-size: .78rem; }
.entry-content iframe { max-width: 100%; }
.article-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: calc(100vh - var(--header-height) - 2rem);
  padding-right: .25rem;
  overflow-y: auto;
  scrollbar-color: var(--form-border) transparent;
  scrollbar-width: thin;
}
.sidebar-widget {
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--form-border);
  background: var(--white);
  box-shadow: 0 18px 45px rgb(var(--blue-dark-rgb) / .08);
}
.sidebar-widget-title {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 58px;
  padding: .95rem 1.2rem;
  background: var(--blue-dark);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}
.sidebar-widget-title::before {
  content: '';
  align-self: stretch;
  width: 4px;
  margin: -.95rem 0 -.95rem -1.2rem;
  background: var(--accent);
}
.sidebar-widget-title svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.toc-list { padding: .55rem 0; }
.toc-link {
  display: block;
  padding: .72rem 1.15rem;
  border-left: 3px solid transparent;
  color: var(--text-muted);
  font-size: .81rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s;
}
.toc-link.toc-level-3 { padding-left: 1.8rem; }
.toc-link.toc-level-4 { padding-left: 2.45rem; font-size: .76rem; }
.toc-link:hover,
.toc-link.is-active {
  border-left-color: var(--accent);
  background: rgb(var(--accent-rgb) / .07);
  color: var(--blue-dark);
}
.toc-link.is-active { font-weight: 800; }
.toc-progress { height: 3px; margin: .3rem 1.15rem 0; overflow: hidden; background: var(--form-border); }
.toc-progress span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .15s linear; }
.toc-reading-time { padding: .75rem 1.15rem 1rem; color: var(--gray); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.related-list { padding: .4rem 0; }
.related-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--form-border);
  text-decoration: none;
  transition: background .2s;
}
.related-item:last-child { border-bottom: 0; }
.related-item:hover { background: var(--off-white); }
.related-thumb { display: block; height: 68px; overflow: hidden; background: var(--blue-dark); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.related-item:hover .related-thumb img { transform: scale(1.08); }
.related-thumb-placeholder { display: grid; place-items: center; height: 100%; color: rgb(var(--white-rgb) / .5); font-family: var(--font-display); font-size: 2rem; }
.related-copy { display: flex; min-width: 0; flex-direction: column; gap: .4rem; }
.related-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--blue-dark);
  font-size: .78rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.related-copy small { color: var(--gray); font-size: .67rem; font-weight: 600; }
.related-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.15rem;
  border-top: 1px solid var(--form-border);
  background: var(--off-white);
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}
.related-all span { color: var(--accent); transition: transform .2s; }
.related-all:hover span { transform: translateX(4px); }
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--form-border);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.article-tags a {
  padding: .45rem .7rem;
  border: 1px solid var(--form-border);
  color: var(--blue-dark);
  text-decoration: none;
}
.article-tags a:hover { border-color: var(--accent); color: var(--accent); }
.article-author {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
  margin-top: 3rem;
  padding: 1.6rem;
  overflow: hidden;
  background: var(--blue-dark);
  color: var(--white);
}
.article-author::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgb(var(--blue-rgb) / .3));
  pointer-events: none;
}
.article-author-photo {
  position: relative;
  z-index: 1;
  width: 128px;
  height: 128px;
  padding: 4px;
  background: var(--accent);
  transform: skewX(-4deg);
}
.article-author-photo img { width: 100%; height: 100%; object-fit: cover; transform: skewX(4deg) scale(1.02); }
.article-author-copy { position: relative; z-index: 1; }
.article-author-label {
  margin-bottom: .35rem;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.article-author-copy h2 {
  margin: 0 0 .55rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}
.article-author-copy > p:not(.article-author-label) { margin: 0; color: rgb(var(--white-rgb) / .75); font-size: .84rem; line-height: 1.65; }
.article-author-copy a {
  display: inline-flex;
  gap: .5rem;
  margin-top: .8rem;
  color: var(--white);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.article-author-copy a span { color: var(--accent); transition: transform .2s; }
.article-author-copy a:hover span { transform: translateX(4px); }
.article-prevnext {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.article-prevnext-link {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-height: 112px;
  padding: 1.2rem;
  border: 1px solid var(--form-border);
  background: var(--off-white);
  color: var(--blue-dark);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.article-prevnext-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.article-prevnext-link small { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.article-prevnext-link strong { font-size: .84rem; line-height: 1.45; }
.article-prevnext-link--next { grid-column: 2; text-align: right; }

/* WordPress pagination also uses `.nav-links`; keep it independent from header navigation. */
.content-grid > .navigation.pagination {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 2rem;
}
.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
}
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 .8rem;
  border: 1px solid var(--form-border);
  border-radius: 2px;
  background: var(--white);
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color .22s, background .22s, border-color .22s, transform .22s;
}
.pagination a.page-numbers::after { display: none; }
.pagination .page-numbers.current {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--blue-dark);
}
.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}
.pagination .page-numbers.dots {
  min-width: 28px;
  padding: 0 .25rem;
  border-color: transparent;
  background: transparent;
}
.pagination .prev,
.pagination .next { min-width: 110px; }

/* ─────────────────────────────────────────────
   O NAS / ZESPÓŁ
───────────────────────────────────────────── */
.about-page { overflow: hidden; background: var(--white); }
.about-page-hero {
  position: relative;
  min-height: min(820px, 92vh);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 5rem) 3rem 6rem;
  isolation: isolate;
  color: var(--white);
  background: var(--blue-dark);
}
.about-page-hero::after {
  content: '';
  position: absolute;
  z-index: 2;
  right: -4vw;
  bottom: -1px;
  width: 44vw;
  height: 12vw;
  max-height: 150px;
  background: var(--white);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.about-page-hero-media,
.about-page-hero-overlay { position: absolute; inset: 0; }
.about-page-hero-media {
  z-index: -2;
  background-position: center 34%;
  background-size: cover;
}
.about-page-hero-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgb(var(--blue-dark-rgb) / .97) 0%, rgb(var(--blue-dark-rgb) / .82) 42%, rgb(var(--blue-dark-rgb) / .36) 100%);
}
.about-page-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.about-page-hero h1 {
  max-width: 880px;
  margin-top: .8rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.3vw, 6.5rem);
  font-weight: 300;
  line-height: .82;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.about-page-hero h1 em { color: var(--accent); font-style: normal; }
.about-page-hero-lead {
  max-width: 660px;
  margin-top: 2rem;
  color: rgb(var(--white-rgb) / .78);
  font-size: clamp(.86rem, 1.2vw, 1.08rem);
  line-height: 1.75;
}
.about-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-top: 2rem;
  color: var(--white);
  font-family: var(--font-nav);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}
.about-scroll-cue b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(var(--white-rgb) / .35);
  color: var(--accent);
  font-weight: 300;
}
.about-manifesto { padding: 9rem 3rem; }
.about-manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(4rem, 9vw, 9rem);
  align-items: end;
}
.about-manifesto h2,
.about-space h2,
.about-two-worlds h2,
.team-heading h2,
.about-final-cta h2,
.team-profile-aside h2 {
  margin-top: .65rem;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: .94;
  text-transform: uppercase;
}
.about-manifesto h2 { color: var(--blue-dark); font-size: clamp(2.4rem, 4.2vw, 4.5rem); }
.about-manifesto h2 span { color: var(--accent); }
.about-manifesto-copy {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--accent);
}
.about-manifesto-copy p { color: var(--text-muted); font-size: .9rem; line-height: 1.8; }
.about-manifesto-copy p + p { margin-top: 1.25rem; }
.about-space {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
  min-height: 700px;
  background: var(--off-white);
}
.about-space-photo { position: relative; min-height: 640px; overflow: hidden; }
.about-space-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(var(--blue-dark-rgb) / .15);
  pointer-events: none;
}
.about-space-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.about-space-stamp {
  position: absolute;
  z-index: 2;
  right: 2rem;
  bottom: 2rem;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgb(var(--white-rgb) / .65);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 3.15rem;
  font-weight: 300;
  line-height: .55;
  transform: rotate(-4deg);
}
.about-space-stamp small { font-family: var(--font-nav); font-size: .5rem; letter-spacing: .16em; text-transform: uppercase; }
.about-space-copy { align-self: center; padding: clamp(4rem, 7vw, 7rem); }
.about-space h2 { color: var(--blue-dark); font-size: clamp(2.25rem, 3.6vw, 3.75rem); }
.about-space-copy > p:not(.eyebrow) { margin-top: 1.7rem; color: var(--text-muted); line-height: 1.8; }
.about-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 2.2rem 0;
}
.about-numbers div { padding: 1.1rem .7rem; border-left: 2px solid var(--accent); background: var(--white); }
.about-numbers strong { display: block; color: var(--blue); font-family: var(--font-display); font-size: 2.35rem; font-weight: 300; line-height: .9; }
.about-numbers span { display: block; margin-top: .5rem; color: var(--text-muted); font-size: .58rem; font-weight: 600; line-height: 1.35; text-transform: uppercase; }
.about-action {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: .95rem 1.25rem;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s, color .25s;
}
.about-action:hover { background: var(--accent); color: var(--blue-dark); }
.studio-gallery {
  margin-top: 9rem;
  padding: 7rem 3rem 3rem;
  background: var(--blue-dark);
  color: var(--white);
}
.studio-gallery-heading {
  max-width: 1200px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1fr .65fr;
  gap: 5rem;
  align-items: end;
}
.studio-gallery-heading h2 {
  margin-top: .65rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.25vw, 5.25rem);
  font-weight: 300;
  line-height: .9;
  text-transform: uppercase;
}
.studio-gallery-heading > p {
  padding-left: 2rem;
  border-left: 1px solid var(--accent);
  color: rgb(var(--white-rgb) / .65);
  font-size: .9rem;
  line-height: 1.75;
}
.studio-gallery-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: clamp(130px, 12vw, 190px);
  gap: 4px;
}
.studio-gallery-item {
  position: relative;
  grid-column: span 3;
  display: block;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
}
.studio-gallery-item:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.studio-gallery-item:nth-child(2),
.studio-gallery-item:nth-child(3) { grid-column: span 3; grid-row: span 2; }
.studio-gallery-item:nth-child(4),
.studio-gallery-item:nth-child(5) { grid-column: span 4; grid-row: span 2; }
.studio-gallery-item:nth-child(6) { grid-column: span 4; }
.studio-gallery-item:nth-child(7) { grid-column: span 4; }
.studio-gallery-item:nth-child(8) { grid-column: span 8; grid-row: span 2; }
.studio-gallery-item:nth-child(9) { grid-column: span 4; grid-row: span 2; }
.studio-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .35s var(--ease);
}
.studio-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(var(--blue-dark-rgb) / .18);
  transition: background .35s var(--ease);
}
.studio-gallery-item > span {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgb(var(--white-rgb) / .62);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0;
  transition: opacity .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.studio-gallery-item:hover::after { background: rgb(var(--blue-dark-rgb) / .04); }
.studio-gallery-item:hover > span,
.studio-gallery-item:focus-visible > span { opacity: 1; background: var(--accent); color: var(--blue-dark); border-color: var(--accent); }
.studio-lightbox {
  width: min(92vw, 1500px);
  height: min(90vh, 1000px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
}
.studio-lightbox::backdrop { background: rgb(var(--blue-dark-rgb) / .94); }
.studio-lightbox img { display: block; width: 100%; height: 100%; object-fit: contain; }
.studio-lightbox-close {
  position: absolute;
  z-index: 2;
  top: .75rem;
  right: .75rem;
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--accent);
  color: var(--blue-dark);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.about-two-worlds {
  max-width: 1200px;
  margin: 9rem auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: .9fr 1fr 1fr;
  gap: 4px;
}
.about-two-worlds-intro,
.about-world { min-height: 390px; padding: clamp(2rem, 4vw, 4rem); }
.about-two-worlds-intro { display: flex; flex-direction: column; justify-content: flex-end; background: var(--blue-dark); color: var(--white); }
.about-two-worlds h2 { font-size: clamp(2rem, 3vw, 3.2rem); }
.about-world { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.about-world--movement { background: var(--off-white); color: var(--blue-dark); }
.about-world--recovery { background: var(--blue); color: var(--white); }
.about-world-index { position: absolute; top: 1.5rem; right: 1.8rem; color: var(--accent); font-family: var(--font-display); font-size: 4rem; font-weight: 300; line-height: 1; opacity: .75; }
.about-world h3 { font-family: var(--font-display); font-size: 2.1rem; font-weight: 300; text-transform: uppercase; }
.about-world p { margin-top: 1rem; color: inherit; font-size: .8rem; line-height: 1.7; opacity: .76; }
.about-world a { width: fit-content; margin-top: 1.5rem; color: inherit; font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-decoration-color: var(--accent); text-underline-offset: .4rem; text-transform: uppercase; }
.team-section { padding: 9rem 3rem; background: var(--off-white); }
.team-heading {
  max-width: 1200px;
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 5rem;
  align-items: end;
}
.team-heading h2 { color: var(--blue-dark); font-size: clamp(3rem, 5.25vw, 5.25rem); }
.team-heading > p { padding-left: 2rem; border-left: 1px solid var(--accent); color: var(--text-muted); line-height: 1.75; }
.team-grid { max-width: 1200px; margin: 0 auto; display: grid; gap: 7rem; }
.team-card { display: grid; grid-template-columns: minmax(310px, .78fr) 1fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.team-card--even { grid-template-columns: 1fr minmax(310px, .78fr); }
.team-card--even .team-card-media { grid-column: 2; grid-row: 1; }
.team-card--even .team-card-copy { grid-column: 1; grid-row: 1; }
.team-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--blue-dark);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
.team-card--even .team-card-media { clip-path: polygon(0 0, 90% 0, 100% 100%, 10% 100%); }
.team-card-media::after { content: ''; position: absolute; inset: 0; background: rgb(var(--blue-dark-rgb) / .2); transition: background .35s; }
.team-card:hover .team-card-media::after { background: rgb(var(--blue-dark-rgb) / .05); }
.team-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgb(var(--white-rgb) / .15); font-family: var(--font-display); font-size: 12rem; font-weight: 300; }
.team-card-role { color: var(--accent); font-size: .59rem; font-weight: 600; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.team-card h2,
.team-card h3 { margin-top: .75rem; font-family: var(--font-display); font-size: clamp(2.4rem, 4.1vw, 4.35rem); font-weight: 300; line-height: .9; text-transform: uppercase; }
.team-card h2 a,
.team-card h3 a { color: var(--blue-dark); text-decoration: none; }
.team-card-lead { max-width: 540px; margin-top: 1.5rem; color: var(--text-muted); font-size: .95rem; line-height: 1.75; }
.team-card-speciality { max-width: 520px; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--form-border); color: var(--blue); font-size: .68rem; font-weight: 600; letter-spacing: .07em; line-height: 1.7; text-transform: uppercase; }
.team-card-link { display: inline-flex; gap: 1rem; margin-top: 1.6rem; color: var(--blue-dark); font-family: var(--font-display); font-size: 1rem; font-weight: 300; letter-spacing: .12em; text-decoration-color: var(--accent); text-underline-offset: .5rem; text-transform: uppercase; }
.team-card-link span { color: var(--accent); }
.about-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 7rem max(3rem, calc((100vw - 1200px) / 2));
  background: var(--blue-dark);
  color: var(--white);
}
.about-final-cta h2 { font-size: clamp(2.25rem, 4.1vw, 4.35rem); }
.team-archive-hero .about-page-hero-media { background-position: center 42%; }
.team-archive-empty { max-width: 1200px; margin: 0 auto; color: var(--text-muted); }

/* Team profile */
.team-profile { background: var(--white); }
.team-profile-hero { min-height: 780px; display: grid; grid-template-columns: minmax(400px, .9fr) 1.1fr; padding-top: var(--header-height); background: var(--blue-dark); color: var(--white); }
.team-profile-portrait { position: relative; min-height: 680px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.team-profile-portrait::after { content: ''; position: absolute; inset: 0; background: rgb(var(--blue-dark-rgb) / .16); }
.team-profile-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-profile-intro { align-self: center; max-width: 780px; padding: 5rem clamp(3rem, 8vw, 9rem); }
.team-profile-back { display: inline-block; margin-bottom: 4rem; color: rgb(var(--white-rgb) / .58); font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.team-profile-intro h1 { margin-top: .8rem; font-family: var(--font-display); font-size: clamp(3.4rem, 6vw, 6rem); font-weight: 300; line-height: .82; text-transform: uppercase; }
.team-profile-lead { max-width: 580px; margin-top: 2rem; color: rgb(var(--white-rgb) / .76); font-size: .97rem; line-height: 1.75; }
.team-profile-speciality { margin-top: 1.8rem; padding-top: 1.3rem; border-top: 1px solid rgb(var(--white-rgb) / .15); color: var(--accent); font-size: .67rem; font-weight: 600; letter-spacing: .09em; line-height: 1.65; text-transform: uppercase; }
.team-profile-body { max-width: 1200px; margin: 0 auto; padding: 8rem 3rem; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(4rem, 9vw, 9rem); align-items: start; }
.team-profile-content > .eyebrow { margin-bottom: 2rem; }
.team-profile-content > figure:first-of-type,
.team-profile-content > .wp-block-image:first-of-type,
.team-profile-content > .wp-block-gallery:first-of-type,
.team-profile-content > .wp-block-media-text:first-of-type { display: none; }
.team-profile-aside { position: sticky; top: calc(var(--header-height) + 2rem); padding: 2.5rem; background: var(--off-white); border-top: 3px solid var(--accent); }
.team-profile-aside-mark { display: block; color: rgb(var(--blue-rgb) / .1); font-family: var(--font-display); font-size: 6rem; font-weight: 300; line-height: .7; }
.team-profile-aside h2 { margin-top: 1.6rem; color: var(--blue-dark); font-size: 2.1rem; }
.team-profile-aside p { margin: 1rem 0 1.7rem; color: var(--text-muted); font-size: .85rem; line-height: 1.7; }

@media (max-width: 960px) {
  .about-page-hero { min-height: 720px; }
  .about-manifesto-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-space { grid-template-columns: 1fr; }
  .about-space-photo { min-height: 520px; }
  .studio-gallery-heading { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .studio-gallery-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .studio-gallery-item { grid-column: span 2; }
  .studio-gallery-item:nth-child(1) { grid-column: span 4; }
  .studio-gallery-item:nth-child(2),
  .studio-gallery-item:nth-child(3) { grid-column: span 2; }
  .studio-gallery-item:nth-child(4),
  .studio-gallery-item:nth-child(5),
  .studio-gallery-item:nth-child(8) { grid-column: span 4; }
  .studio-gallery-item:nth-child(6),
  .studio-gallery-item:nth-child(7),
  .studio-gallery-item:nth-child(9) { grid-column: span 2; }
  .about-two-worlds { grid-template-columns: 1fr 1fr; }
  .about-two-worlds-intro { grid-column: 1 / -1; min-height: 260px; }
  .team-heading { grid-template-columns: 1fr; gap: 2rem; }
  .team-card,
  .team-card--even { gap: 3rem; grid-template-columns: minmax(270px, .8fr) 1fr; }
  .team-profile-hero { min-height: auto; grid-template-columns: .9fr 1.1fr; }
  .team-profile-portrait { min-height: 620px; }
  .team-profile-intro { padding: 4rem 2.5rem; }
  .team-profile-body { grid-template-columns: minmax(0, 1fr) 290px; gap: 3rem; }
}

@media (max-width: 700px) {
  .about-page-hero { min-height: 690px; padding: calc(var(--header-height) + 4rem) 1.5rem 5.5rem; }
  .about-page-hero::after { width: 65vw; height: 18vw; }
  .about-page-hero-overlay { background: rgb(var(--blue-dark-rgb) / .78); }
  .about-page-hero h1 { font-size: clamp(2.65rem, 12.75vw, 4.05rem); }
  .about-page-hero-lead { max-width: 88%; font-size: .88rem; }
  .about-manifesto { padding: 6rem 1.5rem; }
  .about-manifesto h2 { font-size: clamp(2.25rem, 10.5vw, 3.4rem); }
  .about-manifesto-copy { padding-left: 1.2rem; }
  .about-space { width: calc(100% - 1.5rem); margin-left: 0; }
  .about-space-photo { min-height: 420px; }
  .about-space-copy { padding: 3.5rem 1.5rem; }
  .about-space h2 { font-size: 2.65rem; }
  .about-numbers { gap: .35rem; }
  .about-numbers div { padding: .9rem .5rem; }
  .about-numbers strong { font-size: 1.8rem; }
  .studio-gallery { margin-top: 6rem; padding: 5rem 1.5rem 1.5rem; }
  .studio-gallery-heading { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
  .studio-gallery-heading h2 { font-size: 3.4rem; }
  .studio-gallery-heading > p { padding-left: 1.2rem; font-size: .81rem; }
  .studio-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .studio-gallery-item,
  .studio-gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .studio-gallery-item:nth-child(1),
  .studio-gallery-item:nth-child(4),
  .studio-gallery-item:nth-child(8) { grid-column: 1 / -1; grid-row: span 2; }
  .studio-gallery-item > span { opacity: 1; width: 32px; height: 32px; }
  .about-two-worlds { margin: 6rem auto; padding: 0 1.5rem; grid-template-columns: 1fr; }
  .about-two-worlds-intro { grid-column: auto; min-height: 230px; }
  .about-world { min-height: 330px; }
  .team-section { padding: 6rem 1.5rem; }
  .team-heading { margin-bottom: 3.5rem; }
  .team-heading h2 { font-size: 3.4rem; }
  .team-heading > p { padding-left: 1.2rem; font-size: .77rem; }
  .team-grid { gap: 5rem; }
  .team-card,
  .team-card--even { display: flex; flex-direction: column; align-items: stretch; gap: 2rem; }
  .team-card--even .team-card-media,
  .team-card--even .team-card-copy { grid-column: auto; grid-row: auto; }
  .team-card--even .team-card-media { clip-path: polygon(0 0, 92% 0, 100% 100%, 8% 100%); }
  .team-card-media { width: calc(100% + 1.5rem); margin-left: -.75rem; }
  .team-card h2,
  .team-card h3 { font-size: 2.8rem; }
  .team-card-lead { font-size: .83rem; }
  .about-final-cta { flex-direction: column; align-items: flex-start; padding: 5rem 1.5rem; }
  .team-profile-hero { display: flex; flex-direction: column; padding-top: var(--header-height); }
  .team-profile-portrait { width: calc(100% - 1.5rem); min-height: 520px; aspect-ratio: 4 / 5; }
  .team-profile-intro { padding: 3.5rem 1.5rem 4.5rem; }
  .team-profile-back { margin-bottom: 2.5rem; }
  .team-profile-intro h1 { font-size: 3.3rem; }
  .team-profile-body { padding: 5rem 1.5rem; grid-template-columns: 1fr; gap: 3rem; }
  .team-profile-aside { position: static; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 2.5rem; }
}
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .sidebar-widget { box-shadow: none; }
  .related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-item:nth-child(odd) { border-right: 1px solid var(--form-border); }
}
@media (max-width: 700px) {
  .content-page { padding: calc(var(--header-height) + 3rem) 1.5rem 5rem; }
  .content-grid { grid-template-columns: 1fr; }
  .content-hero { min-height: 330px; padding: calc(var(--header-height) + 3rem) 1.5rem 2.8rem; }
  .content-hero--article { min-height: 390px; }
  .content-hero-overlay {
    background: linear-gradient(0deg, rgb(var(--blue-dark-rgb) / .94) 0%, rgb(var(--blue-dark-rgb) / .72) 76%, rgb(var(--blue-rgb) / .5) 100%);
  }
  .content-hero h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .entry-section,
  .article-section { padding: 4rem 1.5rem 5rem; }
  .entry-featured--page,
  .entry-featured--article { aspect-ratio: 4 / 3; }
  .article-hero-meta { font-size: .7rem; }
  .article-prevnext { grid-template-columns: 1fr; }
  .article-prevnext-link--next { grid-column: 1; }
  .related-list { grid-template-columns: 1fr; }
  .related-item:nth-child(odd) { border-right: 0; }
  .article-author { grid-template-columns: 92px minmax(0, 1fr); gap: 1.1rem; padding: 1.2rem; }
  .article-author-photo { width: 92px; height: 110px; }
  .article-author-copy h2 { font-size: 1.65rem; }
  .article-author-copy > p:not(.article-author-label) { font-size: .76rem; }
}

/* ─────────────────────────────────────────────
   OFFER — INDEX + SHARED DETAIL TEMPLATE
───────────────────────────────────────────── */
.offer-page,
.offer-index {
  --offer-tone: var(--blue-mid);
  background: var(--white);
}
.offer-page--personal { --offer-tone: #5f4bc8; }
.offer-page--recovery { --offer-tone: #087f91; }
.offer-page--face { --offer-tone: #3d70c9; }

.offer-hero {
  min-height: 780px;
  display: grid;
  grid-template-columns: minmax(430px, .92fr) 1.08fr;
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--blue-dark);
  color: var(--white);
}
.offer-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 5rem clamp(3rem, 7vw, 9rem);
}
.offer-back {
  margin-bottom: 4rem;
  color: rgb(var(--white-rgb) / .62);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s;
}
.offer-back:hover { color: var(--accent); }
.offer-hero h1,
.offer-index-hero h1 {
  max-width: 9ch;
  margin: .8rem 0 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 7.1vw, 7.7rem);
  font-weight: 300;
  line-height: .83;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.offer-hero-lead {
  max-width: 600px;
  color: rgb(var(--white-rgb) / .74);
  font-size: clamp(.92rem, 1.15vw, 1.08rem);
  line-height: 1.85;
}
.offer-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 2.7rem;
}
.offer-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  min-height: 58px;
  padding: 1rem 1.8rem;
  background: var(--accent);
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 300;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .25s, color .25s, transform .25s;
}
.offer-primary-action:hover { background: var(--accent-hover); transform: translateY(-2px); }
.offer-primary-action span { font-family: var(--font-body); }
.offer-phone-action {
  color: rgb(var(--white-rgb) / .72);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration-color: rgb(var(--white-rgb) / .3);
  text-underline-offset: .35rem;
}
.offer-phone-action:hover { color: var(--white); }
.offer-hero-media {
  position: relative;
  min-width: 0;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  background: var(--offer-tone);
}
.offer-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(var(--blue-dark-rgb) / .35), transparent 55%), color-mix(in srgb, var(--offer-tone) 34%, transparent);
  mix-blend-mode: multiply;
}
.offer-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.offer-hero-shape {
  position: absolute;
  z-index: 2;
  left: 6%;
  bottom: -10%;
  width: 4px;
  height: 52%;
  background: var(--accent);
  transform: rotate(7deg);
  transform-origin: bottom;
}

.offer-facts {
  position: relative;
  z-index: 3;
  width: min(1240px, calc(100% - 6rem));
  min-height: 150px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: stretch;
  margin: -50px auto 0;
  background: var(--white);
  box-shadow: 0 22px 70px rgb(var(--blue-dark-rgb) / .12);
}
.offer-fact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem;
  border-right: 1px solid var(--form-border);
}
.offer-fact strong {
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 300;
  line-height: .9;
}
.offer-fact span {
  margin-top: .7rem;
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.offer-facts > a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 2.5rem;
  background: var(--offer-tone);
  color: var(--white);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 300;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.offer-facts > a span { color: var(--accent); font-family: var(--font-body); }

.offer-benefits {
  width: min(1320px, calc(100% - 6rem));
  margin: 0 auto;
  padding: 9rem 0 10rem;
}
.offer-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 4rem; }
.offer-section-heading h2,
.offer-details-heading h2,
.offer-more-heading h2 {
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  font-weight: 300;
  line-height: .9;
  text-transform: uppercase;
}
.offer-benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.offer-benefits-grid article {
  position: relative;
  min-height: 315px;
  padding: 3.2rem 2.7rem;
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid var(--form-border);
}
.offer-benefits-grid article::after {
  content: '';
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border: 1px solid color-mix(in srgb, var(--offer-tone) 25%, transparent);
  transform: rotate(28deg);
}
.offer-benefits-grid article > span { display: block; width: 48px; height: 3px; margin-bottom: 4.5rem; background: var(--accent); }
.offer-benefits-grid h3 {
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
}
.offer-benefits-grid p { max-width: 33ch; margin-top: 1.2rem; color: var(--text-muted); font-size: .83rem; line-height: 1.75; }

.offer-details { padding: 9rem max(3rem, calc((100vw - 1320px) / 2)); background: var(--off-white); }
.offer-details-heading { display: grid; grid-template-columns: .85fr 1.15fr; align-items: end; gap: 4rem; margin-bottom: 5rem; }
.offer-details-heading h2 span { color: var(--offer-tone); }
.offer-details-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: clamp(3rem, 7vw, 7rem); }
.offer-rich-content {
  min-width: 0;
  padding: clamp(2.5rem, 5vw, 5rem);
  background: var(--white);
  box-shadow: 0 18px 60px rgb(var(--blue-dark-rgb) / .06);
}
.offer-rich-content > :first-child { margin-top: 0 !important; }
.offer-rich-content .wp-block-spacer,
.offer-rich-content p:empty { display: none !important; }
.offer-rich-content h2,
.offer-rich-content h3,
.offer-rich-content h4 {
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  text-transform: uppercase;
}
.offer-rich-content h2 { margin: 4.5rem 0 1.5rem; padding-top: 1rem; font-size: clamp(2.5rem, 4vw, 4rem); }
.offer-rich-content h3 { margin: 3.3rem 0 1.2rem; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.offer-rich-content h4 { margin: 2.5rem 0 1rem; font-size: 1.65rem; }
.offer-rich-content p,
.offer-rich-content li { color: var(--text-muted); font-size: .93rem; line-height: 1.9; }
.offer-rich-content p { margin: 0 0 1.35rem; }
.offer-rich-content ul,
.offer-rich-content ol { display: grid; gap: .55rem; margin: 1.5rem 0 2rem 1.2rem; }
.offer-rich-content li::marker { color: var(--accent); }
.offer-rich-content strong { color: var(--text); }
.offer-rich-content a { color: var(--blue); text-decoration-color: var(--accent); text-underline-offset: .3rem; }
.offer-rich-content .wp-block-columns { gap: 2rem; }
.offer-rich-content .wp-block-image { margin: 2.5rem 0; overflow: hidden; }
.offer-rich-content .wp-block-image img { display: block; width: 100%; height: auto; }
.offer-rich-content hr { height: 1px; margin: 3rem 0; border: 0; background: var(--form-border); }
.offer-rich-content blockquote { margin: 3rem 0; padding: 1.5rem 2rem; border-left: 3px solid var(--accent); background: var(--off-white); }

.offer-rich-content .offer-teaser-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin: 2.3rem 0 3rem;
  list-style: none;
}
.offer-teaser-grid > li { min-width: 0; }
.offer-teaser-grid > li::marker { content: ''; }
.offer-teaser-grid > li > a {
  position: relative;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid var(--form-border);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color .25s, background .25s, transform .25s;
}
.offer-teaser-grid > li > a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 3px;
  background: var(--accent);
}
.offer-teaser-grid > li > a:hover {
  background: color-mix(in srgb, var(--offer-tone) 6%, var(--white));
  border-color: color-mix(in srgb, var(--offer-tone) 38%, var(--form-border));
  transform: translateY(-3px);
}
.offer-teaser-grid h3,
.offer-teaser-grid h4 {
  margin: 0 2.5rem .7rem 0;
  padding: 0;
  color: var(--blue-dark);
  font-size: 1.65rem;
}
.offer-teaser-grid p { margin: 0; font-size: .76rem; line-height: 1.65; }
.offer-teaser-grid a > div:empty { display: none; }
.offer-teaser-grid a > span {
  position: absolute;
  right: 1.7rem;
  top: 1.5rem;
  color: var(--accent);
  font-size: 1.15rem;
}
.offer-section-anchor { scroll-margin-top: calc(var(--header-height) + 2rem); }

.offer-services-accordion {
  margin: 3.5rem 0 1rem;
  border-top: 1px solid var(--form-border);
}
.offer-accordion-item {
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
  border-bottom: 1px solid var(--form-border);
}
.offer-accordion-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 1.4rem;
  padding: 2rem 0;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  text-align: left;
  cursor: pointer;
}
.offer-accordion-number {
  align-self: start;
  padding-top: .3rem;
  color: var(--accent);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.offer-accordion-heading { display: grid; gap: .55rem; }
.offer-accordion-heading strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  line-height: .95;
  text-transform: uppercase;
}
.offer-accordion-heading > span {
  max-width: 650px;
  color: var(--text-muted);
  font-size: .76rem;
  line-height: 1.65;
}
.offer-accordion-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--form-border);
  border-radius: 50%;
  transition: border-color .25s, background .25s, transform .35s;
}
.offer-accordion-toggle::before,
.offer-accordion-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--offer-tone);
  transform: translate(-50%, -50%);
  transition: transform .3s, opacity .3s;
}
.offer-accordion-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.offer-accordion-trigger:hover .offer-accordion-toggle,
.offer-accordion-trigger:focus-visible .offer-accordion-toggle { border-color: var(--offer-tone); background: color-mix(in srgb, var(--offer-tone) 7%, var(--white)); }
.offer-accordion-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.offer-accordion-item.is-open .offer-accordion-toggle { border-color: var(--offer-tone); transform: rotate(180deg); }
.offer-accordion-item.is-open .offer-accordion-toggle::after { opacity: 0; transform: translate(-50%, -50%) rotate(0); }
.offer-services-accordion.is-ready .offer-accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transition: grid-template-rows .42s ease, opacity .28s ease;
}
.offer-services-accordion.is-ready .offer-accordion-item.is-open .offer-accordion-panel { grid-template-rows: 1fr; opacity: 1; }
.offer-accordion-content { padding: .75rem 0 4rem 4.1rem; }
.offer-services-accordion.is-ready .offer-accordion-content { min-height: 0; overflow: hidden; }
.offer-accordion-content > :first-child { margin-top: 0 !important; }
.offer-accordion-content .wp-block-group,
.offer-accordion-content .wp-block-group__inner-container { margin: 0; padding: 0; }
.offer-accordion-content .wp-block-image,
.offer-accordion-content .wp-block-media-text { margin-block: 2.2rem; }
.offer-accordion-content .wp-block-media-text { gap: 2rem; }
.offer-accordion-content img { max-height: 560px; object-fit: cover; }

.offer-pricing-panel {
  position: relative;
  margin: 4rem 0;
  padding: 1px;
  overflow: hidden;
  background: var(--form-border);
  box-shadow: 0 18px 45px rgb(var(--blue-dark-rgb) / .08);
}
.offer-pricing-panel::before {
  content: '';
  position: absolute;
  z-index: 1;
  right: -58px;
  top: -62px;
  width: 145px;
  height: 145px;
  border: 1px solid rgb(var(--white-rgb) / .18);
  transform: rotate(30deg);
}
.offer-pricing-panel .offer-pricing-title {
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 1.55rem 2rem;
  background: var(--offer-tone);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.offer-pricing-panel .offer-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .2rem 1.5rem;
  margin: 0;
  padding: 1.25rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--form-border);
}
.offer-price-label { color: var(--text); font-size: .82rem; font-weight: 600; }
.offer-price-value {
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 300;
  white-space: nowrap;
}
.offer-price-meta {
  grid-column: 1 / -1;
  color: var(--gray);
  font-size: .65rem;
  letter-spacing: .04em;
}
.offer-pricing-panel .offer-price-note {
  margin: 0;
  padding: 1rem 2rem;
  background: color-mix(in srgb, var(--offer-tone) 5%, var(--white));
  border-bottom: 1px solid var(--form-border);
  color: var(--text-muted);
  font-size: .75rem;
  line-height: 1.65;
}
.offer-pricing-panel .offer-price-note:last-child { border-bottom: 0; }
.offer-pricing-panel .offer-price-note a { font-weight: 700; }

.offer-booking-card {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  padding: 3rem 2.5rem;
  overflow: hidden;
  background: var(--blue-dark);
  color: var(--white);
}
.offer-booking-card::after {
  content: '';
  position: absolute;
  right: -85px;
  top: -80px;
  width: 190px;
  height: 190px;
  border: 1px solid rgb(var(--white-rgb) / .14);
  transform: rotate(30deg);
}
.offer-booking-card h2 { margin: 1rem 0 1.3rem; font-family: var(--font-display); font-size: 2.8rem; font-weight: 300; line-height: .95; text-transform: uppercase; }
.offer-booking-card > p:not(.eyebrow) { color: rgb(var(--white-rgb) / .67); font-size: .8rem; line-height: 1.75; }
.offer-booking-card .offer-primary-action { width: 100%; margin-top: 2.2rem; }
.offer-booking-phone { display: block; margin-top: 1.4rem; color: rgb(var(--white-rgb) / .76); font-size: .75rem; letter-spacing: .05em; text-align: center; text-underline-offset: .3rem; }

.offer-more { padding: 9rem max(3rem, calc((100vw - 1320px) / 2)) 10rem; background: var(--blue-dark); }
.offer-more-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 4rem; }
.offer-more-heading h2 { color: var(--white); text-align: right; }
.offer-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #35509d; }
.offer-more-card { position: relative; min-height: 460px; overflow: hidden; color: var(--white); text-decoration: none; }
.offer-more-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.offer-more-overlay { position: absolute; inset: 0; background: rgb(var(--blue-dark-rgb) / .66); transition: background .35s; }
.offer-more-card:hover .offer-more-overlay { background: rgb(var(--blue-dark-rgb) / .48); }
.offer-more-copy { position: absolute; inset: auto 0 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .7rem 1rem; padding: 2.5rem; }
.offer-more-copy small { grid-column: 1 / -1; color: var(--accent); font-size: .56rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.offer-more-copy strong { max-width: 9ch; font-family: var(--font-display); font-size: 2.2rem; font-weight: 300; line-height: .92; text-transform: uppercase; }
.offer-more-copy b { color: var(--accent); font-size: 1.5rem; font-weight: 300; }

.offer-index-hero {
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 7rem) max(3rem, calc((100vw - 1320px) / 2)) 7rem;
  overflow: hidden;
  background: var(--blue-dark);
  color: var(--white);
}
.offer-index-hero-inner { width: 100%; display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 5rem; }
.offer-index-hero .eyebrow { grid-column: 1 / -1; }
.offer-index-hero h1 { max-width: none; margin: 0; }
.offer-index-hero h1 span { color: rgb(var(--white-rgb) / .42); }
.offer-index-hero-inner > p:last-child { max-width: 480px; padding-left: 2rem; border-left: 2px solid var(--accent); color: rgb(var(--white-rgb) / .7); font-size: .92rem; line-height: 1.85; }
.offer-index-grid { width: min(1320px, calc(100% - 6rem)); margin: 0 auto; padding: 9rem 0 11rem; }
.offer-index-card { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; min-height: 520px; margin-bottom: 7rem; }
.offer-index-card:nth-child(even) { grid-template-columns: .92fr 1.08fr; }
.offer-index-card:nth-child(even) .offer-index-media { grid-column: 2; }
.offer-index-card:nth-child(even) .offer-index-copy { grid-column: 1; grid-row: 1; }
.offer-index-media { height: 100%; min-height: 520px; display: block; overflow: hidden; clip-path: polygon(0 0, 91% 0, 100% 100%, 9% 100%); background: var(--blue-dark); }
.offer-index-card:nth-child(even) .offer-index-media { clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%); }
.offer-index-media img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: .88; }
.offer-index-copy { position: relative; z-index: 2; margin-left: -3rem; padding: 4rem; background: var(--white); box-shadow: 0 22px 65px rgb(var(--blue-dark-rgb) / .1); }
.offer-index-card:nth-child(even) .offer-index-copy { margin-right: -3rem; margin-left: 0; }
.offer-index-copy h2 { margin: .8rem 0 1.4rem; font-family: var(--font-display); font-size: clamp(3.3rem, 5vw, 5rem); font-weight: 300; line-height: .88; text-transform: uppercase; }
.offer-index-copy h2 a { color: var(--blue-dark); text-decoration: none; }
.offer-index-copy > p:not(.eyebrow) { color: var(--text-muted); font-size: .88rem; line-height: 1.8; }

@media (max-width: 1050px) {
  .offer-hero { grid-template-columns: minmax(360px, 1fr) 1fr; }
  .offer-hero-copy { padding-inline: 3rem; }
  .offer-facts { width: calc(100% - 3rem); }
  .offer-fact { padding-inline: 1.5rem; }
  .offer-facts > a { padding-inline: 1.5rem; }
  .offer-details-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; }
}

@media (max-width: 800px) {
  .offer-page { width: 100%; max-width: 100%; overflow-x: clip; }
  .offer-hero {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    padding-top: var(--header-height);
    overflow: hidden;
  }
  .offer-hero-media {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-height: 500px;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  }
  .offer-hero-copy {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 3rem 1.5rem 5.5rem;
  }

  /* Desktopowe figury dekoracyjne potrafiły wystawać poza przycięte
     kontenery i odsłaniać pusty pas po prawej stronie na części telefonów. */
  .offer-hero-shape,
  .offer-benefits-grid article::after,
  .offer-pricing-panel::before,
  .offer-booking-card::after {
    content: none !important;
    display: none !important;
  }
  .offer-back { margin-bottom: 2.5rem; }
  .offer-hero h1 { font-size: clamp(3.9rem, 17vw, 6.4rem); }
  .offer-facts { width: calc(100% - 3rem); grid-template-columns: repeat(3, 1fr); margin-top: -2rem; }
  .offer-fact { padding: 1.6rem 1rem; }
  .offer-fact strong { font-size: 2.5rem; }
  .offer-fact span { font-size: .55rem; }
  .offer-facts > a { grid-column: 1 / -1; justify-content: center; min-height: 62px; }
  .offer-benefits { width: calc(100% - 3rem); padding: 7rem 0; }
  .offer-section-heading { display: block; }
  .offer-section-heading .eyebrow { margin-bottom: 1rem; }
  .offer-benefits-grid { grid-template-columns: 1fr; }
  .offer-benefits-grid article { min-height: 260px; }
  .offer-benefits-grid article > span { margin-bottom: 3rem; }
  .offer-details { padding: 6rem 1.5rem; }
  .offer-details-heading { display: block; margin-bottom: 3rem; }
  .offer-details-heading .eyebrow { margin-bottom: 1rem; }
  .offer-details-layout { grid-template-columns: 1fr; }
  .offer-rich-content { padding: 2.2rem 1.5rem; }
	.offer-rich-content .offer-teaser-grid { grid-template-columns: 1fr; }
	.offer-teaser-grid > li > a { min-height: 155px; }
	.offer-accordion-trigger { grid-template-columns: 30px minmax(0, 1fr) 44px; gap: .8rem; padding: 1.55rem 0; }
	.offer-accordion-heading strong { font-size: 2rem; }
	.offer-accordion-heading > span { font-size: .72rem; }
	.offer-accordion-toggle { width: 40px; height: 40px; }
	.offer-accordion-content { padding: .5rem 0 3rem 0; }
	.offer-accordion-content .wp-block-media-text { display: block; }
	.offer-accordion-content .wp-block-media-text__content { padding: 1.5rem 0 0; }
	.offer-accordion-content img { width: 100%; max-height: 430px; object-fit: cover; }
	.offer-pricing-panel .offer-price-row { padding: 1.15rem 1.25rem; }
	.offer-pricing-panel .offer-pricing-title,
	.offer-pricing-panel .offer-price-note { padding-inline: 1.25rem; }
  .offer-booking-card { position: static; }
  .offer-more { padding: 6rem 1.5rem 7rem; }
  .offer-more-heading { display: block; }
  .offer-more-heading .eyebrow { margin-bottom: 1rem; }
  .offer-more-heading h2 { text-align: left; }
  .offer-more-grid { grid-template-columns: 1fr; }
  .offer-more-card { min-height: 390px; }
  .offer-index-hero { min-height: 570px; padding: calc(var(--header-height) + 5rem) 1.5rem 5rem; }
  .offer-index-hero-inner { display: block; }
  .offer-index-hero h1 { margin: 1rem 0 2.5rem; font-size: clamp(4rem, 17vw, 6rem); }
  .offer-index-hero-inner > p:last-child { padding-left: 1.3rem; }
  .offer-index-grid { width: calc(100% - 3rem); padding: 6rem 0 8rem; }
  .offer-index-card,
  .offer-index-card:nth-child(even) { display: flex; flex-direction: column; align-items: stretch; min-height: 0; margin-bottom: 5rem; }
  .offer-index-media,
  .offer-index-card:nth-child(even) .offer-index-media { min-height: 420px; clip-path: polygon(0 0, 93% 0, 100% 100%, 7% 100%); }
  .offer-index-copy,
  .offer-index-card:nth-child(even) .offer-index-copy { margin: -2.5rem 1rem 0; padding: 2.5rem 1.7rem; }
  .offer-index-copy h2 { font-size: 3.3rem; }
}

@media (max-width: 520px) {
  .offer-hero-media { min-height: 390px; }
  .offer-hero-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .offer-primary-action { width: 100%; }
  .offer-phone-action { text-align: center; }
  .offer-facts { grid-template-columns: 1fr; }
  .offer-fact { align-items: center; border-right: 0; border-bottom: 1px solid var(--form-border); text-align: center; }
  .offer-benefits-grid article { padding: 2.6rem 2rem; }
  .offer-section-heading h2,
  .offer-details-heading h2,
  .offer-more-heading h2 { font-size: 3rem; }
  .offer-rich-content h2 { font-size: 2.5rem; }
  .offer-index-media,
  .offer-index-card:nth-child(even) .offer-index-media { min-height: 350px; }
}

/* Product catalogue ------------------------------------------------------- */
.product-catalog,
.product-single { background: var(--white); color: var(--blue-dark); }

.product-catalog-hero {
  min-height: 630px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--blue-dark);
  color: var(--white);
}
.product-catalog-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-height) + 7rem) 3rem 7rem max(3rem, calc((100vw - 1320px) / 2));
}
.product-catalog-hero h1 {
  max-width: 900px;
  margin: .9rem 0 1.7rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 9.5vw, 9rem);
  font-weight: 300;
  line-height: .8;
  text-transform: uppercase;
}
.product-catalog-hero h1 span { color: rgb(var(--white-rgb) / .36); }
.product-catalog-hero-copy > p:last-child { max-width: 650px; color: rgb(var(--white-rgb) / .68); font-size: .95rem; line-height: 1.85; }
.product-catalog-hero-media {
  overflow: hidden;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}
.product-catalog-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.catalog-filter {
  position: sticky;
  z-index: 20;
  top: var(--header-height-scrolled, 70px);
  display: flex;
  justify-content: center;
  gap: .45rem;
  padding: 1.1rem 1.5rem;
  overflow-x: auto;
  background: rgb(var(--white-rgb) / .96);
  border-bottom: 1px solid var(--form-border);
  backdrop-filter: blur(12px);
}
.catalog-filter a {
  flex: 0 0 auto;
  padding: .72rem 1.35rem;
  border: 1px solid var(--form-border);
  color: var(--blue-dark);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s, background .2s, border-color .2s;
}
.catalog-filter a:hover,
.catalog-filter a.is-active { border-color: var(--accent); background: var(--accent); color: var(--blue-dark); }

.catalog-groups { width: min(1320px, calc(100% - 6rem)); margin: 0 auto; }
.catalog-group { padding: 9rem 0 2rem; scroll-margin-top: 150px; }
.catalog-group + .catalog-group { border-top: 1px solid var(--form-border); }
.catalog-group-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: end;
  gap: 4rem;
  margin-bottom: 4rem;
}
.catalog-group-heading > div { position: relative; }
.catalog-group-number { position: absolute; left: 0; top: -3.5rem; color: var(--accent); font-size: .6rem; font-weight: 700; letter-spacing: .16em; }
.catalog-group-heading h2,
.product-related h2 {
  margin: .8rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 6.8rem);
  font-weight: 300;
  line-height: .86;
  text-transform: uppercase;
}
.catalog-group-heading > p { margin: 0; padding-left: 1.5rem; border-left: 2px solid var(--accent); color: var(--text-muted); font-size: .86rem; line-height: 1.75; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--form-border); border: 1px solid var(--form-border); }
.product-card { min-width: 0; display: flex; flex-direction: column; background: var(--white); }
.product-card-media { position: relative; aspect-ratio: 1; display: block; overflow: hidden; background: #f2f4f9; }
.product-card-media::after { content: ''; position: absolute; inset: 0; border: 0 solid var(--accent); pointer-events: none; transition: border-width .22s; }
.product-card:hover .product-card-media::after { border-width: 5px; }
.product-card-media img { width: 100%; height: 100%; display: block; object-fit: contain; transition: transform .38s ease; }
.product-card:hover .product-card-media img { transform: scale(1.025); }
.product-card-placeholder { height: 100%; display: grid; place-items: center; color: rgb(var(--blue-dark-rgb) / .08); font-family: var(--font-display); font-size: 10rem; font-weight: 300; }
.product-card-copy { flex: 1; display: flex; flex-direction: column; padding: 2rem 1.7rem 2.2rem; }
.product-card-group { color: var(--accent); font-size: .55rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.product-card h3 { margin: .7rem 0 .9rem; font-family: var(--font-display); font-size: 1.9rem; font-weight: 300; line-height: .96; text-transform: uppercase; }
.product-card h3 a { color: var(--blue-dark); text-decoration: none; }
.product-card-copy p { margin: 0 0 1.5rem; color: var(--text-muted); font-size: .73rem; line-height: 1.7; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; }
.product-card-price { color: var(--accent); font-family: var(--font-display); font-size: 1.4rem; font-weight: 300; text-transform: uppercase; }
.product-card-link { color: var(--blue-dark); font-size: .61rem; font-weight: 700; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.product-card-link span { display: inline-block; margin-left: .35rem; color: var(--accent); transition: transform .2s; }
.product-card:hover .product-card-link span { transform: translateX(.3rem); }
.catalog-disclaimer { width: min(900px, calc(100% - 3rem)); margin: 7rem auto 10rem; padding: 2rem 2.5rem; border-left: 3px solid var(--accent); background: #f5f6fa; }
.catalog-disclaimer p { margin: 0; color: var(--text-muted); font-size: .73rem; line-height: 1.7; }
.catalog-disclaimer strong { color: var(--blue-dark); }

.product-single-hero { min-height: 720px; display: grid; grid-template-columns: 1fr 1fr; padding-top: var(--header-height); background: var(--blue-dark); }
.product-single-media { min-height: 640px; display: grid; place-items: center; padding: 5rem; background: #f1f3f8; }
.product-single-media img { width: 100%; height: 100%; max-height: 610px; display: block; object-fit: contain; }
.product-single-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 6rem max(3rem, calc((100vw - 1320px) / 2)); padding-left: clamp(3rem, 7vw, 8rem); color: var(--white); }
.product-back { margin-bottom: 5rem; color: rgb(var(--white-rgb) / .55); font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.product-single-copy h1 { max-width: 750px; margin: .8rem 0 1.5rem; font-family: var(--font-display); font-size: clamp(4rem, 6.7vw, 7rem); font-weight: 300; line-height: .84; text-transform: uppercase; }
.product-single-lead { max-width: 600px; margin: 0 0 2rem; color: rgb(var(--white-rgb) / .7); font-size: .91rem; line-height: 1.8; }
.product-single-lead p { margin: 0; }
.product-single-lead p + p { margin-top: .2rem; }
.product-single-price { margin: 0 0 1.6rem; color: var(--accent); font-family: var(--font-display); font-size: 2.4rem; font-weight: 300; letter-spacing: .01em; text-transform: uppercase; }
.product-buy-button {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: .7rem;
  padding: 1rem 1.6rem;
  background: var(--accent);
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.product-buy-button:hover { background: var(--accent-hover); color: var(--blue-dark); transform: translateY(-2px); }
.product-buy-button span { font-size: 1rem; }
.product-single-copy small { max-width: 470px; margin-top: 1.1rem; color: rgb(var(--white-rgb) / .45); font-size: .56rem; line-height: 1.5; }
.product-single-details { width: min(1120px, calc(100% - 6rem)); display: grid; grid-template-columns: .85fr 1.15fr; gap: 8rem; margin: 0 auto; padding: 10rem 0; }
.product-single-heading h2 { margin: .9rem 0 0; font-family: var(--font-display); font-size: clamp(4rem, 6vw, 6rem); font-weight: 300; line-height: .86; text-transform: uppercase; }
.product-single-content { color: var(--text-muted); font-size: .91rem; line-height: 1.9; }
.product-single-content p { margin: 0 0 15px; }
.product-single-content ul,
.product-single-content ol { margin: .55rem 0 1.5rem; padding-left: 1.75rem; }
.product-single-content li { margin: .25rem 0; padding-left: .25rem; }
.product-single-content li::marker { color: var(--accent); }
.product-single-content h2 { margin: 3rem 0 1rem; color: var(--blue-dark); font-family: var(--font-display); font-size: 2.7rem; font-weight: 300; line-height: .95; text-transform: uppercase; }
.product-single-content h2:first-child { margin-top: 0; }
.product-text-link { display: inline-block; margin-top: 2rem; padding-bottom: .35rem; border-bottom: 1px solid var(--accent); color: var(--blue-dark); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.product-related { padding: 8rem max(3rem, calc((100vw - 1320px) / 2)) 10rem; background: #f4f5f8; }
.product-related > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; margin-bottom: 4rem; }
.product-related h2 { max-width: 760px; font-size: clamp(3.8rem, 6vw, 6.2rem); text-align: right; }
.product-related .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-single-copy { padding-left: 4rem; }
}

@media (max-width: 800px) {
  .product-catalog-hero { min-height: 610px; display: block; padding: calc(var(--header-height) + 5rem) 1.5rem 5rem; }
  .product-catalog-hero h1 { font-size: clamp(4.4rem, 20vw, 7rem); }
  .product-catalog-hero-media { display: none; }
  .catalog-filter { justify-content: flex-start; }
  .catalog-groups { width: calc(100% - 3rem); }
  .catalog-group { padding-top: 7rem; }
  .catalog-group-heading { display: block; margin-bottom: 3rem; }
  .catalog-group-heading > p { margin-top: 2rem; }
  .catalog-group-heading h2 { font-size: 4.3rem; }
  .product-single-hero { display: flex; flex-direction: column; padding-top: var(--header-height); }
  .product-single-media { min-height: 440px; padding: 2.5rem; }
  .product-single-copy { padding: 4rem 1.5rem 5rem; }
  .product-back { margin-bottom: 3.5rem; }
  .product-single-copy h1 { font-size: clamp(4rem, 17vw, 6rem); }
  .product-single-details { width: calc(100% - 3rem); display: block; padding: 7rem 0; }
  .product-single-heading { margin-bottom: 3rem; }
  .product-related { padding: 6rem 1.5rem 7rem; }
  .product-related > header { display: block; }
  .product-related h2 { margin-top: 1rem; font-size: 3.8rem; text-align: left; }
  .product-related .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card h3 { font-size: 2.2rem; }
  .catalog-disclaimer { margin-block: 5rem 7rem; }
  .product-single-media { min-height: 360px; }
}

/* Fitssey --------------------------------------------------------------- */
.fitssey-page { min-height: 100vh; background: var(--off-white); }
.fitssey-page-hero {
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 5rem) 3rem 5.5rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(var(--blue-dark-rgb) / .96) 0%, rgb(var(--blue-dark-rgb) / .86) 50%, rgb(var(--blue-dark-rgb) / .68) 100%),
    url('../img/onas.jpg') center 42% / cover no-repeat;
  color: var(--white);
}
.fitssey-page-hero-inner { width: min(1320px, 100%); margin: 0 auto; }
.fitssey-page-hero h1 {
  margin-top: .8rem;
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 300;
  line-height: .84;
  text-transform: uppercase;
}
.fitssey-page-hero-inner > p:last-child {
  max-width: 670px;
  margin-top: 1.6rem;
  color: rgb(var(--white-rgb) / .72);
  font-size: .92rem;
  line-height: 1.8;
}
.fitssey-page-content { padding: 6rem 3rem 9rem; }
.fitssey-page-widget {
  width: min(1320px, 100%);
  min-height: 420px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2.5rem);
  border: 1px solid var(--form-border);
  border-top: 3px solid var(--accent);
  background: var(--white);
}
.fitssey-widget,
.fitssey-widget lb-schedule-widget,
.fitssey-widget lb-auth-widget,
.fitssey-widget lb-course-widget {
  width: 100%;
  min-width: 0;
  display: block;
}
.fitssey-widget--pricing {
  position: relative;
  min-height: 500px;
}
.fitssey-widget--pricing::before {
  content: 'Ładujemy cennik…';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fitssey-widget--pricing > * {
  position: relative;
  z-index: 1;
  opacity: 0;
}
.fitssey-widget--pricing.is-ready > * {
  opacity: 1;
  transition: opacity .25s ease;
}
.fitssey-widget--pricing.is-ready::before { display: none; }

@media (max-width: 800px) {
  .fitssey-page-hero {
    min-height: 350px;
    padding: calc(var(--header-height) + 3rem) 1.5rem 3.5rem;
    background-position: center, center 38%;
  }
  .fitssey-page-hero h1 { font-size: var(--mobile-hero-title, clamp(2.8rem, 13vw, 3.35rem)); }
  .fitssey-page-hero-inner > p:last-child { font-size: .82rem; }
  .fitssey-page-content { padding: 3rem 0 5rem; }
  .fitssey-page-widget { min-height: 360px; padding: .75rem; border-inline: 0; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  z-index: 90;
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(var(--blue-dark-rgb) / .16);
  border-radius: 50%;
  background: rgb(var(--white-rgb) / .92);
  color: var(--blue-dark);
  box-shadow: 0 10px 30px rgb(var(--blue-dark-rgb) / .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  cursor: pointer;
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease, border-color .2s ease, color .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .back-to-top { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
  .scroll-mouse-wheel,
  .scroll-direction svg { animation: none; }
}

/* ─────────────────────────────────────────────
   MOBILE RHYTHM, TYPE SCALE AND IMAGE CROPPING
───────────────────────────────────────────── */
@media (max-width: 800px) {
  :root {
    --mobile-section-space: 4.75rem;
    --mobile-hero-title: clamp(2.8rem, 13vw, 3.35rem);
    --mobile-section-title: clamp(2.35rem, 10.8vw, 2.8rem);
  }

  /* Hero headings */
  .about-page-hero h1,
  .contact-page-hero h1,
  .events-hero h1,
  .error-page h1,
  .offer-hero h1,
  .offer-index-hero h1,
  .product-catalog-hero h1,
  .product-single-copy h1,
  .team-profile-intro h1 {
    font-size: var(--mobile-hero-title);
    line-height: .86;
  }

  .content-hero h1,
  .content-hero--article h1 {
    font-size: clamp(2.35rem, 10.8vw, 2.8rem);
    line-height: .92;
  }

  /* Section headings */
  .events-intro-copy h2,
  .events-heading h2,
  .events-collaboration-copy h2,
  .contact-page-main .contact-info .section-title,
  .contact-page-form h2,
  .contact-map-heading h2,
  .about-manifesto h2,
  .about-space h2,
  .studio-gallery-heading h2,
  .team-heading h2,
  .offer-section-heading h2,
  .offer-details-heading h2,
  .offer-more-heading h2,
  .catalog-group-heading h2,
  .product-single-heading h2,
  .product-related h2 {
    font-size: var(--mobile-section-title);
    line-height: .92;
  }

  .about-final-cta h2 { font-size: 2rem; }
  .team-card h2,
  .team-card h3 { font-size: 2.35rem; }
  .offer-rich-content h2 { font-size: 2.15rem; }
  .offer-rich-content h3 { font-size: 1.75rem; }
  .product-single-content h2 { font-size: 2.15rem; }

  /* Image-first mobile heroes: crop the image to the container instead of
     leaving the container background visible below landscape photographs. */
  .offer-hero-media,
  .events-hero-media,
  .error-page-media {
    position: relative;
    height: 340px;
    min-height: 0;
  }
  .offer-hero-media img,
  .events-hero-media img,
  .error-page-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .offer-hero-media img { object-position: center 38%; }
  .events-hero-media img { object-position: center 36%; }

  .offer-hero-copy { padding: 2.5rem 1.5rem 4.25rem; }
  .offer-back { margin-bottom: 1.75rem; }
  .offer-hero-actions { margin-top: 2rem; }

  .events-hero-copy { padding: 3rem 1.5rem 4.5rem; }
  .events-hero-link { margin-top: 2rem; }
  .events-intro { padding: var(--mobile-section-space) 0; }
  .events-section-label { margin-bottom: 2rem; }
  .events-intro-text { margin-top: 2.25rem; }
  .events-experience,
  .events-formats { padding: var(--mobile-section-space) 1.5rem; }
  .events-heading { margin-bottom: 3rem; }
  .events-heading > p { margin-top: 1.75rem; }
  .events-format-grid article { min-height: 270px; padding: 2.25rem 1.75rem; }
  .events-format-grid h3 { margin-top: 3rem; font-size: 2.25rem; }
  .events-collaboration-media { position: relative; height: 390px; min-height: 0; }
  .events-collaboration-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  .events-collaboration-copy { padding: var(--mobile-section-space) 1.5rem; }

  .error-page-copy { padding: 3.5rem 1.5rem 4.75rem; }

  /* Compact page heroes and remove accumulated desktop padding. */
  .about-page-hero {
    min-height: 600px;
    padding: calc(var(--header-height) + 2.5rem) 1.5rem 4.25rem;
  }
  .about-page-hero::after { width: 55vw; height: 12vw; }

  .contact-page-hero {
    min-height: 560px;
    padding: calc(var(--header-height) + 3rem) 1.5rem 3.75rem;
  }
  .contact-page-phone { margin-top: 2.25rem; padding: 1.65rem; }
  .contact-page-main { padding: var(--mobile-section-space) 1.5rem !important; }
  .contact-page-form { margin-top: 3.5rem; }
  .contact-community { display: block; padding: var(--mobile-section-space) 1.5rem; }
  .contact-community-intro h2 { font-size: clamp(3.25rem, 15vw, 4.8rem); }
  .contact-community-groups { grid-template-columns: 1fr; margin-top: 3rem; }
  .contact-community-card { min-height: 300px; padding: 2rem; }
  .contact-community-card + .contact-community-card { border-top: 0; border-left: 1px solid rgb(var(--white-rgb) / .22); }
  .contact-community-card + .contact-community-card:hover { border-top: 1px solid var(--accent); margin-top: -1px; margin-left: 0; }
  .contact-community-copy { margin-top: 3.5rem; }
  .contact-community-card > b { top: 2rem; right: 2rem; }
  .contact-map-section { padding: var(--mobile-section-space) 1.5rem 5.25rem; }
  .contact-map-heading { margin-bottom: 2.5rem; }
  .contact-map { height: 360px; }

  .product-catalog-hero {
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-height) + 3rem) 1.5rem 4rem;
  }
  .product-catalog-hero-copy { width: 100%; padding: 0; }
  .product-catalog-hero h1 { margin-bottom: 1.25rem; }
  .catalog-group { padding-top: 5rem; }
  .catalog-group-heading { margin-bottom: 2.5rem; }
  .catalog-group-heading > p { margin-top: 1.5rem; }

  .product-single-media { min-height: 0; height: auto; padding: 2.25rem 2.5rem; }
  .product-single-media img { height: auto; max-height: 480px; }
  .product-single-copy { padding: 3.25rem 1.5rem 4.5rem; }
  .product-back { margin-bottom: 2.25rem; }
  .product-single-details { padding: 5rem 0; }
  .product-single-heading { margin-bottom: 2.25rem; }
  .product-related { padding: 4.75rem 1.5rem 5.5rem; }
  .product-related > header { margin-bottom: 2.75rem; }

  .offer-benefits { padding: var(--mobile-section-space) 0; }
  .offer-section-heading { margin-bottom: 2.75rem; }
  .offer-benefits-grid article { min-height: 220px; }
  .offer-benefits-grid article > span { margin-bottom: 2.25rem; }
  .offer-details { padding: var(--mobile-section-space) 1.5rem; }
  .offer-details-heading { margin-bottom: 2.5rem; }
  .offer-more { padding: var(--mobile-section-space) 1.5rem 5.25rem; }
  .offer-more-heading { margin-bottom: 2.75rem; }
  .offer-more-card { min-height: 330px; }
  .offer-index-hero {
    min-height: 520px;
    padding: calc(var(--header-height) + 3.25rem) 1.5rem 4rem;
  }
  .offer-index-hero h1 { margin-bottom: 2rem; }
  .offer-index-grid { padding: 4.75rem 0 6rem; }
  .offer-index-card,
  .offer-index-card:nth-child(even) { margin-bottom: 4rem; }
  .offer-index-media,
  .offer-index-card:nth-child(even) .offer-index-media {
    height: 330px;
    min-height: 0;
  }
  .offer-index-media img { height: 100%; object-fit: cover; }
  .offer-index-copy h2 { font-size: 2.6rem; }

  .about-manifesto { padding: var(--mobile-section-space) 1.5rem; }
  .about-space-photo { min-height: 360px; }
  .studio-gallery { margin-top: 4.75rem; padding-top: var(--mobile-section-space); }
  .about-two-worlds { margin: 4.75rem auto; }
  .team-section { padding: var(--mobile-section-space) 1.5rem; }
  .team-heading { margin-bottom: 3rem; }
  .team-grid { gap: 4rem; }
  .about-final-cta { padding: 4rem 1.5rem; }
  .team-profile-portrait { min-height: 0; height: 460px; }
  .team-profile-intro { padding: 3rem 1.5rem 4rem; }
  .team-profile-body { padding: var(--mobile-section-space) 1.5rem; }

  .content-hero { min-height: 300px; padding: calc(var(--header-height) + 2.25rem) 1.5rem 2.5rem; }
  .content-hero--article { min-height: 350px; }
  .entry-section,
  .article-section { padding: 3.5rem 1.5rem 4.75rem; }
}

@media (max-width: 420px) {
  :root {
    --mobile-hero-title: clamp(2.65rem, 12.5vw, 3.05rem);
    --mobile-section-title: clamp(2.2rem, 10.2vw, 2.55rem);
  }
  .offer-hero-media,
  .events-hero-media,
  .error-page-media { height: 310px; }
  .offer-index-media,
  .offer-index-card:nth-child(even) .offer-index-media { height: 300px; }
}
