/* =========================================================
   Podstrony – komponenty w stylu strony głównej
   (kolory, fonty i skala --u z styles.css)
   ========================================================= */

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 14px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* aktywna pozycja menu („true” = podstrona oferty – podkreślone „Oferta”) */
.nav__list a[aria-current] { color: #fff; }
.nav__list > li > a[aria-current]::after { transform: scaleX(1); }

/* ---------- Nagłówek podstrony ---------- */
.subhero {
  position: relative;
  height: max(640px, min(100svh, calc(1000 * var(--u))));
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
.subhero--small { height: max(540px, 64svh); --sh-size: clamp(88px, 14vw, 280px); }
.subhero__stage { position: absolute; inset: 0; }
.subhero__glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 38% 55% at var(--spot, 50% 42%), rgba(243, 243, 243, .1), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(174, 0, 10, .22), transparent 70%);
}
.subhero__title {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  margin: 0;
  font-weight: 400;
  pointer-events: none;
}
.subhero__title--front { z-index: 3; }
.subhero__solid, .subhero__outline {
  position: absolute; left: calc(var(--pad) - .04em); bottom: -.06em;
  display: block;
  font-family: var(--f-name);
  font-size: var(--sh-size, clamp(96px, 23vw, 440px));
  line-height: .9;
  letter-spacing: -.005em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--red);
  will-change: transform;
}
.subhero__solid > span, .subhero__outline > span { display: inline-block; transform: scaleY(1.22); transform-origin: bottom; }
.has-belway .subhero__solid > span, .has-belway .subhero__outline > span { transform: none; }
/* CS Belway jest węższy i niższy od Antona – większy stopień daje tę samą skalę tytułu */
.has-belway .subhero__solid, .has-belway .subhero__outline {
  font-size: calc(var(--sh-size, clamp(96px, 23vw, 440px)) * 1.5);
  letter-spacing: -.02em;
  line-height: .78;
}
.subhero__outline {
  z-index: 3;
  color: transparent;
  -webkit-text-stroke: max(1px, calc(2 * var(--u))) var(--red);
}
.subhero__photo {
  position: absolute; right: calc(var(--pad) - 40 * var(--u)); bottom: 0; z-index: 2;
  height: 108%;
  width: auto; max-width: none;
  object-fit: contain; object-position: bottom;
  /* górna krawędź zdjęcia poza kadrem + miękkie wygaszenie */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
  transform-origin: 50% 100%;
  will-change: transform;
}
/* „O mnie”: poziome zdjęcie z wachlarzem kart – twarz po lewej stronie kadru, karty lecą w prawo */
.subhero__photo--wide {
  height: 90%; right: calc(var(--pad) - 70 * var(--u));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 6%);
}
.subhero__cards { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.subhero__cards .pcard { --cw: calc(96 * var(--u)); }
.subhero__dark { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: #000; }
.subhero__beam {
  position: absolute; top: 0; bottom: 0; z-index: 6;
  left: calc(var(--spot-x, 50%) - 35%); width: 70%;
  pointer-events: none; opacity: 0;
  filter: blur(calc(22 * var(--u)));
  mix-blend-mode: screen;
}
.subhero__beam::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 246, 235, .3), rgba(255, 246, 235, .08) 55%, transparent 95%);
  clip-path: polygon(44% 0, 56% 0, 88% 100%, 12% 100%);
}
.subhero__inner {
  position: relative; z-index: 7;
  padding-top: max(128px, calc(190 * var(--u)));
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  max-width: 1920px;
}
.subhero__inner > * { max-width: min(640px, 100%); }
.subhero__lead { font-size: max(16px, calc(20 * var(--u))); line-height: 1.6; color: rgba(244, 244, 244, .85); max-width: min(34em, 100%) !important; }
.subhero .h2 { max-width: 14em; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(244, 244, 244, .6); }
.crumbs a { padding: 8px 0; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--white); }
.subhero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; z-index: 6;
  background: linear-gradient(rgba(10, 10, 10, 0), var(--bg));
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .subhero__inner > * { animation: shIn .9s cubic-bezier(.2, .7, .2, 1) both; }
  .subhero__inner > :nth-child(1) { animation-delay: .9s; }
  .subhero__inner > :nth-child(2) { animation-delay: 1.05s; }
  .subhero__inner > :nth-child(3) { animation-delay: 1.2s; }
  .subhero__inner > :nth-child(4) { animation-delay: 1.35s; }
  @keyframes shIn { from { opacity: 0; transform: translateY(24px); } }
}

/* ---------- Sekcje ogólne ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section--gray { background: var(--gray); }
.section--red { background: var(--red); }
.section-head--split {
  flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: calc(64 * var(--u));
}
.section-head--split > div { display: flex; flex-direction: column; gap: 16px; }
.section-head--split > .filters { flex-direction: row; justify-content: flex-end; }
.section-head .text { max-width: 560px; color: rgba(244, 244, 244, .8); }
.mb { margin-bottom: calc(64 * var(--u)); }
.display--sm { font-size: calc(120 * var(--u)); }
.muted { color: rgba(244, 244, 244, .65); }
.accent { color: var(--red); }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: calc(120 * var(--u));
  align-items: center;
}
.split--rev .split__media { order: 2; }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.split__media:hover img { transform: scale(1.04); }
.split__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(174, 0, 10, .55));
}
.split__media--wide { aspect-ratio: 16 / 11; }
.split__body { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.split__body .text + .text { margin-top: -8px; }

/* duży cytat */
.pull {
  position: relative;
  font-family: var(--f-head); font-weight: 500;
  font-size: max(28px, calc(64 * var(--u)));
  line-height: 1.15; letter-spacing: -.01em;
  text-transform: uppercase;
  max-width: 22ch;
}
.pull em { font-style: normal; color: var(--red); }
.pull::before {
  content: "“"; position: absolute; left: -.08em; top: -.55em;
  font-size: 3.2em; line-height: 1; color: var(--gray); z-index: -1;
}

/* światło podążające za kursorem */
/* :where – zerowa waga, żeby nie nadpisać position: absolute/sticky kafelków, które mają swoje ustawienie */
:where([data-glow]) { position: relative; }
[data-glow] { isolation: isolate; }
[data-glow]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(174, 0, 10, .28), transparent 60%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
[data-glow]:hover::before, .scard:hover .scard__panel::before { opacity: 1; }
/* czerwona ramka po najechaniu – wszystkie kafelki (część ma ją już w swoich stylach) */
.review, .counter, .step, .post-feature, .fit__col { transition: border-color .3s, box-shadow .3s; }
.card:hover, .review:hover, .counter:hover, .step:hover, .post-feature:hover, .fit__col--no:hover { border-color: rgba(174, 0, 10, .6); }
.step:last-child::before { display: none; }   /* jasna karta – sama czerwona ramka, bez poświaty */
/* symbole kart na kartach oferty – jak na podstronach (.pillar__suit) */
.card__suit { font-size: max(44px, calc(72 * var(--u))); margin-bottom: calc(-16 * var(--u)); }
.card:hover .pillar__suit { transform: rotateY(180deg) scale(1.1); }

/* ---------- Filary (O mnie) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar {
  padding: calc(48 * var(--u)) calc(40 * var(--u)) calc(44 * var(--u));
  min-height: calc(460 * var(--u));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 20px;
  overflow: hidden;
  transition: border-color .3s, transform .4s;
}
.pillar:hover { border-color: rgba(174, 0, 10, .6); transform: translateY(-6px); }
.pillar__suit {
  font-family: "Segoe UI Symbol", "Apple Symbols", serif;
  font-size: max(56px, calc(96 * var(--u))); line-height: 1; color: var(--red);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.pillar:hover .pillar__suit { transform: rotateY(180deg) scale(1.1); }
.pillar__num { font-family: var(--f-head); font-size: 14px; letter-spacing: .15em; color: rgba(244, 244, 244, .5); margin-top: auto; }
.pillar h3 { font-family: var(--f-head); font-weight: 500; font-size: max(24px, calc(36 * var(--u))); line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.pillar p { color: rgba(244, 244, 244, .8); line-height: 1.7; }

/* ---------- Liczby (pas) ---------- */
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.counter {
  padding: calc(40 * var(--u)) calc(36 * var(--u));
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), rgba(174, 0, 10, .18));
}
.counter b { display: block; font-family: var(--f-head); font-weight: 500; font-size: max(44px, calc(88 * var(--u))); line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.counter > span { display: block; margin-top: 14px; font-family: var(--f-head); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: rgba(244, 244, 244, .75); }

/* ---------- Przewijany pas logotypów ---------- */
.marquee {
  overflow: hidden; background: var(--gray);
  padding: calc(56 * var(--u)) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track ul { display: flex; align-items: center; gap: calc(120 * var(--u)); padding-right: calc(120 * var(--u)); min-width: max-content; }
.marquee__track img { height: auto; max-height: 64px; width: auto; max-width: 170px; opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logos .marquee { padding: max(40px, calc(96 * var(--u))) 0; }

/* ---------- Oferta: bloki naprzemienne ---------- */
.offer-block { scroll-margin-top: 90px; }
.offer-block + .offer-block { margin-top: calc(160 * var(--u)); }
.offer-block .split__media { aspect-ratio: 5 / 4; }
.offer-block__num {
  font-family: var(--f-name); font-size: max(80px, calc(160 * var(--u))); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px var(--red);
}
.offer-block h2 { font-family: var(--f-head); font-weight: 500; font-size: max(32px, calc(64 * var(--u))); line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.offer-block .tag { position: static; min-width: 0; }
.chips-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 19px;
  border: 1px solid rgba(244, 244, 244, .25);
  font-family: var(--f-head); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .2s, border-color .2s, color .2s;
}
button.chip { cursor: pointer; }
.chip:hover { border-color: var(--white); }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Odwracane karty – formaty pokazów ---------- */
.flips { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(40 * var(--u)); }
/* .flip stoi w miejscu i łapie najechanie; obraca się tylko .flip__inner.
   Gdyby obracała się cała karta, w połowie obrotu (bokiem) kursor „wypadałby” z niej
   i karta zawracałaby w kółko – to dawało efekt zacinania. */
.flip {
  position: relative; display: block; width: 100%;
  aspect-ratio: 63 / 88;
  text-align: left;
  perspective: 1600px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.flip__inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.3, 1.3, .4, 1);
}
.flip.is-flipped .flip__inner { transform: rotateY(180deg) rotateZ(-2deg); }
@media (hover: hover) { .flip:hover .flip__inner { transform: rotateY(180deg) rotateZ(-2deg); } }
.flip:focus-visible { outline: 2px solid var(--white); outline-offset: 8px; border-radius: calc(var(--radius) * .9); }
.flip__face {
  position: absolute; inset: 0;
  border-radius: calc(var(--radius) * .9);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
/* rewers karty – zakryta strona (wzór rewersu dla wszystkich kart na stronie, zob. card-back.svg) */
.flip__back {
  padding: 5.5%;
  background: #f6f3ec;
}
.flip__back-field {
  height: 100%; border-radius: calc(var(--radius) * .6);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.14) 0 1px, transparent 1px 16px),
    linear-gradient(160deg, #c1121b, #8e0008);
  box-shadow: inset 0 0 0 6px #8e0008, inset 0 0 0 9px rgba(255,255,255,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  color: #f6f3ec; text-align: center; padding: 12%;
}
.flip__back-field svg { width: 34%; height: auto; }
.flip__back-field strong { font-family: var(--f-head); font-weight: 500; font-size: max(22px, calc(34 * var(--u))); line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; }
.flip__hint { font-family: var(--f-head); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.flip__tag { font-style: normal; padding: 6px 14px; border-radius: 20px; background: #f6f3ec; color: #8e0008; font-family: var(--f-head); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
/* awers – odsłonięta treść */
.flip__front {
  transform: rotateY(180deg);
  background: radial-gradient(120% 90% at 30% 20%, #fffefb 0%, #f6f3ec 55%, #e9e4d9 100%);
  color: #141414;
  padding: 11% 10%;
  display: flex; flex-direction: column; gap: 14px;
}
.flip__front .flip__idx { font-family: Georgia, serif; font-weight: 700; font-size: 34px; line-height: 1; color: var(--red); }
.flip__front h3 { font-family: var(--f-head); font-weight: 500; font-size: max(22px, calc(32 * var(--u))); line-height: 1.1; text-transform: uppercase; }
.flip__front p { font-size: 16px; line-height: 1.6; color: #333; }
.flip__front dl { margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.flip__front dt { font-family: var(--f-head); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; color: #777; padding-top: 2px; }
.flip__front dd { font-weight: 600; }

.flips__cta { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: calc(80 * var(--u) + 16px); text-align: center; }
.flips__cta .text { color: rgba(244, 244, 244, .8); }

/* ---------- Kroki współpracy – karty nakładające się przy przewijaniu ---------- */
.steps { display: flex; flex-direction: column; gap: 24px; }
.step {
  position: sticky; top: calc(110px + var(--i) * 24px);
  display: grid; grid-template-columns: calc(220 * var(--u)) 1fr auto; align-items: center; gap: calc(48 * var(--u));
  min-height: calc(260 * var(--u));
  padding: calc(48 * var(--u)) calc(56 * var(--u));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .55);
}
.step:nth-child(even) { background: #151515; }
.step:last-child { background: #f4f1ea; border-color: #f4f1ea; color: #141414; }
.step:last-child p { color: #333; }
.step:last-child .step__suit { color: rgba(174, 0, 10, .25); }
.step__num { font-family: var(--f-name); font-size: max(72px, calc(150 * var(--u))); line-height: .8; color: var(--red); }
.step h3 { font-family: var(--f-head); font-weight: 500; font-size: max(24px, calc(40 * var(--u))); text-transform: uppercase; line-height: 1.1; margin-bottom: 12px; }
.step p { color: rgba(244, 244, 244, .8); max-width: 60ch; }
.step__suit { font-family: "Segoe UI Symbol", "Apple Symbols", serif; font-size: max(40px, calc(80 * var(--u))); color: rgba(244, 244, 244, .12); }

/* ---------- Galeria ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: calc(48 * var(--u)); }
.masonry { columns: 3 320px; column-gap: 16px; }
.masonry > a {
  position: relative; display: block; margin-bottom: 16px; break-inside: avoid;
  border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in;
}
.masonry > a[hidden] { display: none; }
.masonry img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s; }
.masonry > a::after {
  content: attr(data-caption);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  font-family: var(--f-head); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s;
}
.masonry > a:hover img { transform: scale(1.05); }
.masonry > a:hover::after { opacity: 1; transform: none; }
.masonry > a::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .18), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.masonry > a:hover::before { opacity: 1; }

.videos { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.videos__item { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
/* duży film zajmuje wysokość dwóch małych obok; filmy odtwarzają się na stronie (main.js) */
.videos__item:first-child { grid-row: 1 / 3; aspect-ratio: auto; }
.videos .yt { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(5, 5, 5, .94); color: var(--white);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__fig { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 92vw; }
.lightbox__img {
  max-width: 92vw; max-height: 80vh; width: auto; height: auto;
  border-radius: 12px;
  opacity: 0; transform: scale(.96); transition: opacity .35s, transform .45s cubic-bezier(.2, .7, .2, 1);
  user-select: none; -webkit-user-drag: none;
}
.lightbox__img.is-in { opacity: 1; transform: none; }
.lightbox__cap { font-family: var(--f-head); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 244, 244, .75); text-align: center; }
.lightbox__count { position: fixed; left: 24px; top: 20px; font-family: var(--f-head); font-size: 14px; letter-spacing: .1em; color: rgba(244, 244, 244, .6); }
.lightbox__btn { position: fixed; z-index: 2; }
.lightbox__close { right: 20px; top: 14px; width: 48px; height: 48px; border-radius: 50%; font-size: 20px; border: 2px solid rgba(244, 244, 244, .6); }
.lightbox__close:hover { background: var(--white); color: var(--bg); }
.lightbox__prev { left: 20px; top: 50%; margin-top: -32px; }
.lightbox__next { right: 20px; top: 50%; margin-top: -32px; }

/* ---------- Blog ---------- */
.post-feature {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  margin-bottom: calc(64 * var(--u));
}
.post-feature__media { position: relative; min-height: 420px; overflow: hidden; }
.post-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.post-feature:hover .post-feature__media img { transform: scale(1.04); }
.post-feature__body { padding: calc(64 * var(--u)) calc(56 * var(--u)); display: flex; flex-direction: column; gap: 20px; justify-content: center; align-items: flex-start; }
.post-feature__body h2 { font-family: var(--f-head); font-weight: 500; font-size: max(28px, calc(48 * var(--u))); line-height: 1.1; text-transform: uppercase; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--f-head); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 244, 244, .6); }
.meta .accent { color: var(--red); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .4s, border-color .3s;
}
.post[hidden] { display: none; }
.post:hover { transform: translateY(-6px); border-color: rgba(174, 0, 10, .6); }
.post__media { aspect-ratio: 16 / 10; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.post:hover .post__media img { transform: scale(1.06); }
.post__body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.post__body h3 { font-family: var(--f-head); font-weight: 500; font-size: 22px; line-height: 1.25; }
.post__body p { color: rgba(244, 244, 244, .75); font-size: 16px; line-height: 1.6; }
.post__more { margin-top: auto; padding-top: 8px; font-family: var(--f-head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); display: inline-flex; gap: 8px; align-items: center; }
.post__more::after { content: "→"; transition: transform .3s; }
.post:hover .post__more::after, .post-feature:hover .post__more::after { transform: translateX(6px); }
.demo-note {
  display: inline-block; margin-bottom: 24px; padding: 8px 14px; border-radius: 8px;
  background: rgba(174, 0, 10, .15); border: 1px dashed rgba(174, 0, 10, .6);
  font-size: 13px; color: rgba(244, 244, 244, .85);
}

/* wpis */
.progress {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
}
.article { max-width: 760px; margin: 0 auto; font-size: max(17px, calc(19 * var(--u))); line-height: 1.8; }
.article > * + * { margin-top: 1.1em; }
.article h2 { font-family: var(--f-head); font-weight: 500; font-size: max(24px, calc(34 * var(--u))); line-height: 1.2; text-transform: uppercase; margin-top: 2em; }
.article h2 .accent { font-family: var(--f-name); font-weight: 400; margin-right: .3em; }
.article ul, .article ol { padding-left: 1.2em; }
.article li + li { margin-top: .4em; }
.article li::marker { color: var(--red); }
.article blockquote {
  margin: 2em 0; padding: 28px 32px;
  border-left: 3px solid var(--red); border-radius: 0 16px 16px 0;
  background: var(--card);
  font-family: var(--f-head); font-size: 1.15em; line-height: 1.5;
}
.article figure { margin: 2em 0; }
@media (min-width: 1024px) { .article figure { margin-inline: calc(-1 * min(120px, 8vw)); } }
.article figure img { width: 100%; height: auto; border-radius: var(--radius); }
.article figcaption { margin-top: 10px; font-size: 14px; color: rgba(244, 244, 244, .6); text-align: center; }
.article a { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.article .lead { font-size: 1.2em; line-height: 1.6; color: #fff; }
.share { display: flex; align-items: center; gap: 12px; margin-top: 3em; padding-top: 2em; border-top: 1px solid var(--line); font-family: var(--f-head); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.share a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(244, 244, 244, .3); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.share a:hover { background: var(--red); border-color: var(--red); }
.share svg { width: 18px; height: 18px; }

/* ---------- Kontakt ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ccard {
  padding: calc(44 * var(--u)) calc(40 * var(--u));
  min-height: calc(280 * var(--u));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  overflow: hidden;
  transition: transform .4s, border-color .3s;
}
.ccard:hover { transform: translateY(-6px); border-color: rgba(174, 0, 10, .6); }
.ccard__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--red); font-size: 22px; }
.ccard__icon svg { width: 22px; height: 22px; }
.ccard h3 { font-family: var(--f-head); font-weight: 500; font-size: 14px; letter-spacing: .15em; text-transform: uppercase; color: rgba(244, 244, 244, .65); }
.ccard a, .ccard strong { font-family: var(--f-head); font-weight: 500; font-size: max(20px, calc(28 * var(--u))); line-height: 1.25; word-break: break-word; }
.ccard a:hover { color: var(--red); }
.ccard p { color: rgba(244, 244, 244, .7); font-size: 15px; margin-top: auto; }
.ccard__social { display: flex; gap: 12px; }
.ccard__social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(244, 244, 244, .3); display: grid; place-items: center; }
.ccard__social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.ccard__social svg { width: 20px; height: 20px; }
.ccard__social svg.fb { width: 11px; }
.ccard__social svg.yt { width: 24px; }
.contact--page { padding-top: var(--section-y); scroll-margin-top: 70px; }

/* ---------- Strony prawne ---------- */
.legal { max-width: 860px; margin: 0 auto; line-height: 1.8; }
.legal h2 { font-family: var(--f-head); font-weight: 500; font-size: max(22px, calc(30 * var(--u))); text-transform: uppercase; margin: 2.2em 0 .8em; line-height: 1.25; }
.legal h2:first-of-type { margin-top: 0; }
.legal p + p, .legal ul, .legal ol { margin-top: .9em; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li + li { margin-top: .35em; }
.legal li::marker { color: var(--red); }
.legal mark { background: rgba(174, 0, 10, .25); color: #fff; padding: 0 .25em; border-radius: 3px; }
.legal a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.legal__note {
  padding: 20px 24px; margin-bottom: 40px; border-radius: 12px;
  background: rgba(174, 0, 10, .12); border: 1px dashed rgba(174, 0, 10, .6);
}

/* ---------- 404 ---------- */
.page-404 .subhero { height: 100svh; }

/* =========================================================
   Responsywność
   ========================================================= */
@media (max-width: 1023px) {
  .subhero { height: max(560px, 88svh); }
  .subhero--small { height: max(420px, 56svh); }
  .subhero__photo { right: -22%; height: 64%; }
  .subhero__photo--wide { right: -12%; height: 50%; }
  .subhero__inner { text-shadow: 0 2px 18px rgba(0, 0, 0, .85); }
  .subhero__cards .pcard { --cw: clamp(44px, 12vw, 80px); }
  .subhero__solid, .subhero__outline { font-size: var(--sh-size-m, clamp(80px, 24vw, 220px)); }
  .has-belway .subhero__solid, .has-belway .subhero__outline { font-size: calc(var(--sh-size-m, clamp(80px, 24vw, 220px)) * 1.5); }
  .display--sm { font-size: clamp(48px, 12vw, 110px); }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--rev .split__media { order: 0; }
  .split__media { aspect-ratio: 4 / 3; }
  .pillars, .posts, .contact-cards { grid-template-columns: 1fr 1fr; }
  .pillar { min-height: 0; padding: 32px 28px; }
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .counter b { font-size: clamp(28px, 9.5vw, 72px); }
  .counter > span { font-size: 11px; letter-spacing: .1em; }
  .counter { padding: 28px 24px; }
  /* 2 + 1: trzecia karta wyśrodkowana pod dwiema */
  .flips { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
  .flips .flip { width: calc(50% - 12px); }
  .step { grid-template-columns: auto 1fr; padding: 32px 28px; gap: 24px; top: calc(80px + var(--i) * 16px); }
  .step__suit { display: none; }
  .post-feature { grid-template-columns: 1fr; }
  .post-feature__media { min-height: 260px; }
  .post-feature__body { padding: 32px 28px 36px; }
  .videos { grid-template-columns: 1fr; grid-template-rows: none; }
  .videos__item:first-child { grid-row: auto; aspect-ratio: 16 / 9; }
  .ccard { padding: 32px 28px; min-height: 0; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; margin-top: 0; }
}
@media (max-width: 639px) {
  .pillars, .posts, .contact-cards { grid-template-columns: 1fr; }
  .flips { max-width: 360px; margin-inline: auto; }
  .flips .flip { width: 100%; }
  .subhero__photo { right: -34%; height: 58%; }
  .subhero__photo--wide { right: -16%; height: 48%; }
  .subhero__inner > * { max-width: 100%; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step__num { font-size: 64px; }
  .article figure { margin-inline: 0; }
}
/* tablet: nieparzysty ostatni element nie zostaje sam po lewej */
@media (min-width: 640px) and (max-width: 1023px) {
  .pillars > :last-child:nth-child(odd),
  .contact-cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .posts > .post:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
}
@media (max-width: 400px) {
  .counter { padding: 22px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .step { position: relative; top: auto; }
}

/* =========================================================
   Podstrony oferty – wspólny szablon (offer_pages.py)
   ========================================================= */
.crumbs { flex-wrap: wrap; row-gap: 0; }
@media (min-width: 1181px) { .nav__dd a { white-space: nowrap; } }

/* papier kart do gry – ten sam co w kartach w hero */
.fit__col--yes {
  background: var(--paper);
  color: #221f1c;
}
.fit__col--yes::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: var(--grain-fine) 0 0 / 120px repeat;
  mix-blend-mode: multiply; opacity: .45;
}
.fit__col--yes > * { position: relative; z-index: 1; }

/* wstęp z filmem lub zdjęciem */
.intro__lead { font-family: var(--f-head); font-size: max(19px, calc(25 * var(--u))); line-height: 1.5; color: #fff; }
.split__media--video { aspect-ratio: 16 / 9; align-self: center; }
.split__media--video::after { display: none; }

/* film YouTube: miniatura → odtwarzacz po kliknięciu */
.yt {
  position: relative; display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer;
}
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .4s; filter: brightness(.82); }
.yt:hover img { transform: scale(1.04); filter: brightness(1); }
.yt__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: var(--red); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(174, 0, 10, .6); transition: transform .3s, box-shadow .6s;
}
.yt__play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.yt:hover .yt__play { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(174, 0, 10, 0); }
.yt:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.yt.is-playing { cursor: default; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ytgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
.ytgrid__item { margin: 0; min-width: 0; }
.ytgrid__item figcaption { margin-top: 14px; font-family: var(--f-head); font-size: max(15px, calc(18 * var(--u))); line-height: 1.35; color: rgba(244, 244, 244, .85); }

/* zdjęcia z pokazów – 5 kafelków: pierwszy duży (2 × 2), pozostałe w siatce obok */
.photos { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: max(140px, calc(290 * var(--u))); gap: 12px; }
.photos__item { position: relative; display: block; overflow: hidden; border-radius: calc(var(--radius) * .7); background: #000; }
.photos__item:first-child { grid-column: span 2; grid-row: span 2; }
.photos__item img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9); transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.photos__item:hover img { transform: scale(1.05); filter: brightness(1); }
.photos__item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(174, 0, 10, 0); transition: box-shadow .3s;
}
.photos__item:hover::after { box-shadow: inset 0 0 0 2px rgba(174, 0, 10, .85); }

/* okazje */
.occasions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.occ { min-height: 0; gap: 16px; }
.occ h3 { font-size: max(22px, calc(32 * var(--u))); }
.occ__p { color: rgba(244, 244, 244, .8); line-height: 1.7; font-size: max(15px, calc(17 * var(--u))); }
.occ__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--f-head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.occ__link::after { content: "→"; transition: transform .3s; }
.occ__link:hover::after { transform: translateX(6px); }
.occ--wide {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(64 * var(--u));
  padding: calc(56 * var(--u)) calc(56 * var(--u));
  background: radial-gradient(120% 140% at 0% 0%, rgba(174, 0, 10, .35), transparent 60%), var(--card);
  border-color: rgba(174, 0, 10, .45);
}
.occ__head { display: flex; flex-direction: column; gap: 20px; }
.occ--wide h3 { font-size: max(26px, calc(48 * var(--u))); }
.occ__body { display: flex; flex-direction: column; gap: 16px; }
.occ__body .btn-row { margin-top: 12px; align-items: center; gap: 24px; }
.section-head--split > .btn { flex-shrink: 0; white-space: nowrap; }


/* gwarancja */
.guarantee {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(64 * var(--u));
  padding: calc(56 * var(--u)) calc(72 * var(--u)) calc(56 * var(--u)) calc(56 * var(--u));
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 18px),
    radial-gradient(90% 140% at 15% 10%, #d0141f, var(--red) 55%, #7a0007);
}
.guarantee__seal {
  position: relative; width: max(150px, calc(210 * var(--u))); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #f6f1e7; color: var(--red);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .5), inset 0 0 0 6px #f6f1e7, inset 0 0 0 7px rgba(174, 0, 10, .35);
}
.guarantee__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 28s linear infinite; }
.guarantee__ring text { font-family: var(--f-head); font-weight: 500; font-size: 13.5px; letter-spacing: .12em; fill: var(--red); }
.guarantee__seal b { font-family: var(--f-name); font-weight: 400; font-size: max(48px, calc(72 * var(--u))); line-height: .9; }
.guarantee__seal small { font-family: var(--f-head); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.guarantee__body { display: flex; flex-direction: column; gap: 14px; }
.guarantee__title { font-family: var(--f-head); font-weight: 500; font-size: max(28px, calc(56 * var(--u))); line-height: 1.05; text-transform: uppercase; }
.guarantee__body p { font-size: max(17px, calc(22 * var(--u))); line-height: 1.55; max-width: 48ch; }
.btn--light { background: #f6f1e7; color: var(--red); }
.btn--light:hover { background: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* powody – karty kroków z kilkoma akapitami */
.steps--reasons { list-style: none; padding: 0; margin: 0; }
.step__p + .step__p { margin-top: 12px; }

/* kim jestem */
.about { align-items: start; }
.about__media { position: sticky; top: 110px; }
.about__sub { display: block; margin-top: .5em; font-size: max(18px, calc(26 * var(--u))); line-height: 1.35; text-transform: none; letter-spacing: 0; color: rgba(244, 244, 244, .75); }
.about__note { font-size: 15px; color: rgba(244, 244, 244, .6); margin-top: -12px; }
.counters--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: calc(96 * var(--u)); }

/* opinie */
.opinions { margin-top: calc(120 * var(--u)); }
.opinions__title { font-family: var(--f-head); font-weight: 500; font-size: max(24px, calc(36 * var(--u))); text-transform: uppercase; }
.opinions .testi__quote { margin-top: max(90px, calc(150 * var(--u))); }
.opinions .testi__mark { color: rgba(244, 244, 244, .07); }

/* dla kogo */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.fit__col { position: relative; padding: calc(56 * var(--u)) calc(56 * var(--u)) calc(48 * var(--u)); border-radius: var(--radius); }
.fit__col--yes { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); }
.fit__col--yes:hover { box-shadow: 0 0 0 2px rgba(174, 0, 10, .75), 0 40px 70px -30px rgba(0, 0, 0, .8); }
.fit__col--no { background: var(--card); border: 1px solid var(--line); }
.fit__title { font-family: var(--f-head); font-weight: 500; font-size: max(20px, calc(30 * var(--u))); line-height: 1.3; margin-bottom: 20px; }
.fit__list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(60, 40, 20, .14); line-height: 1.55; }
.fit__list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; fill: #b61f2c; }
.fit__col--no .fit__list li { border-top-color: var(--line); color: rgba(244, 244, 244, .7); }
.fit__x { position: relative; width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.fit__x::before, .fit__x::after { content: ""; position: absolute; left: 1px; right: 1px; top: 8px; height: 2px; border-radius: 1px; background: rgba(244, 244, 244, .45); transform: rotate(45deg); }
.fit__x::after { transform: rotate(-45deg); }

/* inne okazje */
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini {
  display: grid; grid-template-rows: auto 1fr;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .4s, border-color .3s;
}
.mini:hover { transform: translateY(-6px); border-color: rgba(174, 0, 10, .6); }
.mini__media { aspect-ratio: 16 / 9; overflow: hidden; }
.mini__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.mini:hover .mini__media img { transform: scale(1.06); }
.mini__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 26px 26px; }
.mini__tag { font-family: var(--f-head); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: rgba(244, 244, 244, .55); }
.mini strong { font-family: var(--f-head); font-weight: 500; font-size: max(18px, calc(22 * var(--u))); line-height: 1.25; text-transform: uppercase; }
.mini__more { margin-top: auto; padding-top: 6px; font-family: var(--f-head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; gap: 8px; }
.mini__more::after { content: "→"; transition: transform .3s; }
.mini:hover .mini__more::after { transform: translateX(6px); }

/* kontakt bezpośredni nad formularzem */
.contact__direct { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: calc(32 * var(--u)); }
.contact__direct a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid rgba(244, 244, 244, .3); border-radius: 24px;
  font-family: var(--f-head); font-size: 16px; transition: background-color .2s, border-color .2s;
}
.contact__direct a:hover { background: var(--red); border-color: var(--red); }
.contact__direct svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* strona oferty – karty wszystkich podstron */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offers-grid > :last-child:nth-child(3n + 1) { grid-column: 2; }
a.card__media { display: block; }
.offers-grid .card__body { gap: calc(28 * var(--u) + 8px); }
.offers-grid .card__title { font-size: max(22px, calc(34 * var(--u))); min-height: 0; }
.offers-grid .card__title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 6px; }
.offers-grid .text { color: rgba(244, 244, 244, .8); }

@media (max-width: 1023px) {
  .occasions { grid-template-columns: 1fr 1fr; }
  .occ--wide { grid-template-columns: 1fr; gap: 20px; padding: 32px 28px; }
  .ytgrid { grid-template-columns: 1fr 1fr; }
  .guarantee { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; padding: 40px 28px; }
  .guarantee__body { align-items: center; }
  .about__media { position: relative; top: auto; }
  .counters--3 .counter b { font-size: clamp(26px, 6.2vw, 60px); }
  .fit { grid-template-columns: 1fr; }
  .fit__col { padding: 32px 28px 24px; }
  .minis, .offers-grid { grid-template-columns: 1fr 1fr; }
  .offers-grid > :last-child:nth-child(n) { grid-column: auto; }
  .offers-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
}
@media (max-width: 639px) {
  .photos { grid-template-columns: 1fr 1fr; grid-auto-rows: 38vw; gap: 8px; }
  .photos__item:first-child { grid-row: span 1; }
  .occasions, .ytgrid, .minis, .offers-grid { grid-template-columns: 1fr; }
  .offers-grid > :last-child:nth-child(odd) { grid-column: auto; width: auto; }
  .counters--3 { grid-template-columns: 1fr; }
  .counters--3 .counter b { font-size: 44px; }
  .mini { grid-template-columns: 116px 1fr; grid-template-rows: none; }
  .mini__media { aspect-ratio: auto; height: 100%; }
  .mini__body { padding: 16px 18px; }
  .yt__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
}
@media (prefers-reduced-motion: reduce) {
  .guarantee__ring { animation: none; }
}

/* ---------- Poprawki klienta (październik) ---------- */
/* cytat Mayi Angelou na „O mnie” */
.quote { margin: 0; display: flex; flex-direction: column; gap: 16px; }
blockquote.pull { margin: 0; }
.quote__author { font-family: var(--f-head); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 244, 244, .7); }
.quote__author::before { content: "— "; }

/* stopka: role Macieja */
.footer__roles { font-family: var(--f-head); font-weight: 500; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: #fff; }

/* przycisk „do góry” */
.to-top {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background-color .2s;
  cursor: pointer;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-hover); }
.to-top:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.to-top svg { width: 24px; height: 24px; }

/* pionowy Short we wstępie podstrony */
.split__media--short { aspect-ratio: 9 / 16; width: min(100%, 360px); max-height: 78svh; justify-self: center; align-self: center; }
.split__media--short::after { display: none; }
.split__media--short .yt { aspect-ratio: auto; height: 100%; }

/* pieczęć gwarancji z dłuższym napisem („100%”) */
.guarantee__seal--wide b { font-size: max(36px, calc(54 * var(--u))); }

/* film z reakcjami Gości – opis po lewej, pionowe Shorty po prawej */
.reels { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: calc(64 * var(--u)); align-items: center; }
.reels__head { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.reels__head .text { color: rgba(244, 244, 244, .85); }
.reels__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.reels__item { margin: 0; min-width: 0; }
.reels__item .yt { aspect-ratio: 9 / 16; height: auto; border-radius: 16px; }
.reels__item .yt__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.reels__item .yt__play svg { width: 24px; height: 24px; }
.reels__item figcaption { margin-top: 10px; font-family: var(--f-head); font-size: 14px; line-height: 1.35; color: rgba(244, 244, 244, .75); }
@media (max-width: 1023px) { .reels { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 639px) { .reels__list { grid-template-columns: 1fr 1fr; } }

/* ---------- Opinie Google (Trustindex) ----------
   Widżet wczytuje własne style (z dużą wagą i !important), więc nadpisujemy je przez #opinie-google.
   Nazwy klas .ti-… pochodzą od Trustindex – gdyby po ich aktualizacji coś się rozjechało, poprawić tutaj. */
.gopinie { margin-top: max(56px, calc(120 * var(--u))); min-height: 300px; }
#opinie-google .ti-widget-container,
#opinie-google .ti-widget-container * { font-family: var(--f-body) !important; }

/* pasek z oceną – bez tła, z linią jak nagłówki sekcji; ocena i liczba opinii mają „bić po oczach” */
.gopinie { position: relative; }
#opinie-google .ti-widget-header {
  background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important; box-shadow: none !important;
  padding: 0 0 max(20px, calc(32 * var(--u))) !important;
  margin: 0 0 max(24px, calc(40 * var(--u))) !important;
}
#opinie-google .ti-header-content { align-items: center !important; }
#opinie-google .ti-header-logo img { height: max(26px, calc(36 * var(--u))) !important; width: auto !important; top: 0 !important; }
#opinie-google .ti-header-rating-text { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px max(14px, calc(24 * var(--u))) !important; }
#opinie-google .ti-header-rating-text > * { margin: 0 !important; }
#opinie-google .ti-header-logo { margin-right: max(16px, calc(28 * var(--u))) !important; }
#opinie-google .ti-header-rating-text.ti-mobile { display: none !important; }
#opinie-google .ti-header-rating {
  order: 1; font-family: var(--f-head) !important; font-weight: 700 !important; letter-spacing: -.03em;
  font-size: max(56px, calc(112 * var(--u))) !important; line-height: 1 !important; color: var(--white) !important;
}
#opinie-google .ti-header-rating-text .ti-stars { order: 2; display: inline-flex !important; gap: 4px; }
#opinie-google .ti-header-rating-text .ti-stars img { width: max(22px, calc(32 * var(--u))) !important; height: max(22px, calc(32 * var(--u))) !important; }
#opinie-google .ti-header-rating-reviews {
  order: 3; font-family: var(--f-head) !important; font-weight: 500 !important;
  font-size: max(26px, calc(52 * var(--u))) !important; text-transform: uppercase; letter-spacing: .01em; color: var(--white) !important;
}
#opinie-google .ti-header-rating-reviews::before { display: none !important; }
#opinie-google .ti-rating-text { order: 4; }
#opinie-google .ti-rating-text,
#opinie-google .ti-rating-text * {
  font-family: var(--f-head) !important; font-weight: 500 !important;
  text-transform: uppercase; letter-spacing: .12em; font-size: 13px !important; color: var(--muted) !important;
}
/* „Napisz recenzję” chowamy – o recenzje Maciej prosi po pokazie; w jego miejscu „Zobacz wszystkie opinie” */
#opinie-google .ti-header-write-btn-container { display: none !important; }
/* przycisk na wysokości wiersza z oceną – pod zakładkami Google / Facebook (gdy widżet ma kilka platform) */
.gopinie__all { position: absolute; right: 0; top: calc(71px + (max(56px, calc(112 * var(--u))) - 52px) / 2); }
.gopinie:not(:has(.ti-platform-tabs)) .gopinie__all { top: calc((max(56px, calc(112 * var(--u))) - 52px) / 2); }
@media (max-width: 767px) {
  #opinie-google .ti-header-content { flex-direction: column; align-items: flex-start !important; gap: 12px; }
  .gopinie__all { position: static; margin-top: 24px; width: 100%; }
}

/* karty opinii jak nasze kafelki – ciemne tło, cienka ramka, czerwone podświetlenie pod kursorem */
#opinie-google .ti-review-item > .ti-inner {
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(174, 0, 10, var(--glow, 0)), transparent 60%), var(--card) !important;
  border: 1px solid var(--line) !important; border-radius: 8px !important;
  padding: max(20px, calc(32 * var(--u))) !important;
  transition: border-color .3s;
}
#opinie-google .ti-review-item > .ti-inner:hover { border-color: rgba(174, 0, 10, .6) !important; --glow: .28; }
#opinie-google .ti-name {
  font-family: var(--f-head) !important; font-weight: 500 !important;
  text-transform: uppercase; letter-spacing: .04em; font-size: 14px !important;
}
#opinie-google .ti-date { color: var(--muted) !important; }
#opinie-google .ti-review-content { color: rgba(244, 244, 244, .88) !important; }
#opinie-google .ti-read-more span { color: var(--muted) !important; opacity: 1 !important; }
#opinie-google .ti-read-more span:hover { color: var(--white) !important; }

/* karty wyrównane do linii nagłówka; strzałki pod karuzelą po prawej – jak w naszych karuzelach */
#opinie-google .ti-reviews-container-wrapper { margin: 0 -8px !important; }
#opinie-google .ti-reviews-container { display: flex !important; flex-direction: column; }
#opinie-google .ti-controls {
  position: static !important; order: 2; margin: max(20px, calc(32 * var(--u))) 0 0 !important;
  display: flex !important; justify-content: flex-end; gap: 12px; height: auto !important;
}
#opinie-google .ti-prev { order: -1; }
#opinie-google .ti-next, #opinie-google .ti-prev {
  position: relative !important; left: auto !important; right: auto !important; top: auto !important;
  width: 44px !important; height: 44px !important; border-radius: 50% !important;
  background-color: var(--gray) !important; border: 1px solid var(--line) !important;
  transition: background-color .2s, border-color .2s;
}
#opinie-google .ti-next:hover, #opinie-google .ti-prev:hover { background-color: var(--red) !important; border-color: var(--red) !important; }

/* =====================================================================
   WordPress
   ===================================================================== */

/* ---------- Formularz – Contact Form 7 (te same pola co w projekcie) ---------- */
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7 .wpcf7-form-control-wrap { display: block; position: relative; }
.wpcf7 .wpcf7-form-control-wrap > textarea { display: block; }   /* bez odstępu linii pod polem (jak w wersji statycznej) */
.field input.wpcf7-not-valid, .field textarea.wpcf7-not-valid { border-color: #ff4a53; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; line-height: 1.3; color: #ff6b72; }
.consent .wpcf7-form-control-wrap { flex: 1; }
.consent .wpcf7-list-item { display: block; margin: 0; }
.consent label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent .wpcf7-not-valid-tip { margin-left: 32px; }
.wpcf7-response-output { font-size: 15px; min-height: 1.4em; line-height: 1.4; margin-top: -12px; }
.wpcf7-form.invalid .wpcf7-response-output, .wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output, .wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output { color: #ff6b72; }
.wpcf7-form.sent .wpcf7-response-output { color: #7fdc9c; }
.wpcf7-form.submitting button[type="submit"] { opacity: .6; pointer-events: none; }
.kh-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Treść wpisów z edytora bloków ---------- */
.article blockquote > :first-child { margin-top: 0; }
.article blockquote p + p { margin-top: .6em; }
.article blockquote cite { display: block; margin-top: 12px; font-size: .8em; font-style: normal; color: var(--muted); }
.article .wp-block-image img, .article img { max-width: 100%; height: auto; }
.article .aligncenter { margin-inline: auto; text-align: center; }
.article .wp-block-embed iframe, .article iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.article hr, .legal hr { border: 0; border-top: 1px solid rgba(244, 244, 244, .15); margin: 2em 0; }

/* ---------- Pasek administratora (tylko po zalogowaniu) ---------- */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
