/* ==========================================================================
   redpin - onepager · V2
   Wartości (typografia, kolory, odstępy, wymiary) skalibrowane 1:1 z handoffu
   Figma (redpin-homepage-7068-5209.json). Mobile-first; breakpointy: 640 / 900 / 1000 / 1200 / 1500.
   ========================================================================== */

:root {
  /* kolory z Figmy */
  --c-red: #E32814;
  --c-red-dark: #C42110;
  --c-black: #161515;        /* nagłówki, tekst główny, pakiet Biznes+ */
  --c-dark: #181818;         /* sekcja „Dla kogo" */
  --c-footer: #151515;
  --c-ink: #000000;
  --c-text: #525252;         /* body copy */
  --c-text-2: #666666;       /* lead w hero */
  --c-text-3: #717171;       /* etykiety statystyk */
  --c-text-4: #737373;       /* opisy kroków */
  --c-text-5: #4E4E4E;       /* pozycje pakietów */
  --c-muted: #797979;        /* szara część manifestu */
  --c-light: #BDBDBD;        /* tekst na ciemnym */
  --c-line: #B7B7B7;         /* linie / separatory */
  --c-line-2: #C2C2C2;       /* nagłówek pakietu */
  --c-bg: #F0F0F2;           /* tło strony */
  --c-white: #FFFFFF;
  --c-off-white: #F0F0F0;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Familjen Grotesk", "Inter", system-ui, sans-serif;

  --max-w: 1368px;           /* standardowa szerokość łamania strony */
  --container: 1302px;       /* 1368 − 2×32 (wewnętrzna siatka treści) */
  --gutter: 20px;
  --header-h: 76px;          /* 16 + 44 + 16 */
  --section-y: clamp(48px, 5vw, 72px);       /* jednolity margines pionowy sekcji */

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.67;
  letter-spacing: 0.01em;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image: radial-gradient(circle, rgba(0,0,0,.085) 1px, transparent 1.2px);
  background-size: 14px 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

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

/* ---------- Utilities ---------- */
.accent { color: var(--c-red); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.muted { color: var(--c-muted); }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.ico { width: 1em; height: 1em; flex: 0 0 auto; }

/* sekcje o białym tle (Figma: fill #FFFFFF na frame'ie) */
.is-white { background: var(--c-white); }

/* Jednolity rytm: każda sekcja ma taki sam margines górny i dolny, bez
   dodatkowych odstępów między nimi. Wyjątki (hero, pasek statystyk, sekcje
   sklejone ze sobą) nadpisują to niżej. */
main > section { padding-block: var(--section-y); }
main > section.hero, main > section.stats { padding-block: 0; }

/* ---------- Typografia ---------- */
.h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.03em;
  color: var(--c-black);
  text-wrap: balance;
}
.h2--bold { font-weight: 700; }
.h2--center { text-align: center; }
.lead { font-size: 16px; line-height: 1.67; letter-spacing: .01em; color: var(--c-text); }
.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; }
.section-head--center .lead { max-width: 592px; margin: 24px auto 0; }
.section-foot { margin-top: 48px; display: flex; justify-content: center; }

/* ---------- Przyciski (Figma: h 44, Inter 16/24, pad 15/24/16/12, ikona 24) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  padding: 10px 24px 10px 12px;
  font-size: 16px; font-weight: 400; line-height: 24px; letter-spacing: 0;
  border-radius: 0;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 24px; height: 24px; }
.btn--pad { padding-left: 18px; gap: 9px; }          /* warianty z większym lewym paddingiem */
.btn--primary { background: var(--c-red); color: var(--c-white); }
.btn--primary:hover { background: var(--c-red-dark); }
.btn--dark { background: var(--c-black); color: var(--c-white); }
.btn--dark:hover { background: #000; }
.btn--white { background: var(--c-white); color: var(--c-black); }
.btn--white:hover { background: #ECECEC; }
.btn--off-white { background: var(--c-off-white); color: var(--c-black); }
.btn--off-white:hover { background: #E2E2E2; }
.btn:active { transform: translateY(1px); }

/* ---------- Scribble (czerwona pętla pod tekstem) ---------- */
.scribble { position: relative; display: inline-block; color: inherit; isolation: isolate; }
.scribble__svg {
  position: absolute; z-index: -1;
  left: -7%; top: -12%;
  width: 114%; height: 126%;
  overflow: visible;
  pointer-events: none;
  color: var(--c-red);
}
.scribble--wide .scribble__svg { left: -4%; width: 108%; }
.scribble--dark .scribble__svg { color: var(--c-black); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header { position: sticky; top: 0; z-index: 50; background: var(--c-white); }
.header__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
  max-width: var(--max-w); margin-inline: auto;
}
.logo img { width: 112px; height: auto; }
@media (min-width: 900px) { .logo img { width: 133px; } .header__inner { padding-inline: 32px; } }

.header__cta { display: none; }

/* --- burger (mobile) --- */
.burger {
  position: relative; z-index: 60;
  width: 44px; height: 44px;
  display: grid; place-content: center; gap: 5px;
  margin-right: -10px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--c-black);
  transition: transform .25s var(--ease), opacity .2s;
  transform-origin: center;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- nav (mobile: szuflada) --- */
.nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: var(--c-white);
  padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 24px;
  clip-path: inset(0 0 0 100%);       /* zamknięta: przycięta do zera, nie wystaje poza ekran */
  visibility: hidden;
  transition: clip-path .3s var(--ease), visibility 0s .3s;
  overflow-y: auto;
}
.nav.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .3s var(--ease);
}
.nav__list, .nav__cta-mobile { transform: translateX(28px); transition: transform .35s var(--ease); }
.nav.is-open .nav__list, .nav.is-open .nav__cta-mobile { transform: none; }
body.nav-open { overflow: hidden; }

.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: flex; align-items: center; gap: 6px;
  padding: 16px 0;
  font-size: 22px; font-weight: 500; letter-spacing: 0;
  color: var(--c-black);
  border-bottom: 1px solid var(--c-line);
}
.nav__chev { transition: transform .2s; }
.nav__cta-mobile { align-self: flex-start; }

/* --- nav (desktop: biała pigułka 437×44, pad 0 24, gap 28) --- */
@media (min-width: 900px) {
  .burger { display: none; }
  .header__cta { display: inline-flex; }
  .nav__cta-mobile { display: none; }

  .nav {
    position: absolute; inset: auto; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: var(--c-white);
    padding: 0 24px;
    height: 44px;
    display: flex; flex-direction: row; align-items: center;
    overflow: visible;
    visibility: visible;
    clip-path: none;
    transition: none;
  }
  .nav__list, .nav__cta-mobile { transform: none; }
  .nav__list { flex-direction: row; gap: 28px; }
  .nav__link {
    padding: 0 12px; height: 44px;
    font-size: 15.5px; font-weight: 400;
    border: 0;
    transition: color .2s;
  }
  .nav__link:hover { color: var(--c-red); }
}

/* ==========================================================================
   HERO  (Figma: tekst od x=32, zdjęcie 630×761 od x=736; H1 82/92% −3%)
   ========================================================================== */
.hero { position: relative; display: grid; grid-template-columns: 1fr; }
.hero__content {
  padding: 40px var(--gutter) 48px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero__title {
  margin-top: 18px;                  /* Figma: 32 px od czubka ogonka do wierzchu liter */
  font-family: var(--font-head);
  font-size: clamp(40px, 9vw, 82px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -0.03em;
  color: var(--c-black);
  text-wrap: balance;
}
.hero__lead {
  margin-top: 28px;
  font-size: 16px; line-height: 1.67; letter-spacing: .01em;
  color: var(--c-text-2);
  max-width: 549px;
}
.hero__lead strong { color: var(--c-ink); font-weight: 500; }
.hero__lead br { display: none; }
.hero__content .btn { margin-top: 44px; }

.hero__media { position: relative; overflow: hidden; }
.hero__media picture { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

@media (max-width: 899.98px) { .hero__media { aspect-ratio: 4 / 3; } }

@media (min-width: 900px) {
  .hero { grid-template-columns: 54% 46%; }
  .hero__content { padding: 100px 32px 160px; justify-content: flex-start; position: relative; z-index: 1; }
  .hero__title { width: 125%; max-width: none; text-wrap: initial; }   /* Figma: 824 px */
  .hero__lead br { display: inline; }
  .hero__media { min-height: 685px; }
}
@media (min-width: 1500px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero__content { padding-left: max(32px, calc((100vw - var(--max-w)) / 2 + 32px)); }
  .hero__media { min-height: clamp(685px, 46vw, 900px); }
}

/* dymek "Cześć!" - Figma: pole 89,5×45, ogonek 44,5×44 (prawa krawędź pionowa),
   odstęp od nagłówka 32 px liczony od czubka ogonka */
.tag-bubble {
  position: relative;
  display: inline-flex; align-items: center;
  min-width: 98px;                   /* szerokość docelowa - pole nie skacze w trakcie pisania */
  min-height: 45px;
  margin-bottom: 44px;               /* ogonek jest absolutny - rezerwujemy na niego miejsce */
  padding: 9px 15px 8px;             /* 9 + 28 (18,5 × 1,5) + 8 = 45 */
  background: var(--c-black);
  color: var(--c-white);
  font-size: 18.5px; font-weight: 400; line-height: 1.5; letter-spacing: 0;
}
/* kursor migający obok napisu - jakby ktoś właśnie pisał */
.tag-bubble__caret {
  display: inline-block;
  width: 2px; height: 20px;
  margin-left: 3px;
  background: var(--c-white);
  animation: caretBlink 1.06s steps(1, end) infinite;
}
@keyframes caretBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tag-bubble__caret { animation: none; } }

.tag-bubble::after {
  content: "";
  position: absolute; left: 0; top: 100%;
  width: 50%; height: 44px;
  background: var(--c-black);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* ==========================================================================
   STATS  (Figma: pasek white@81% + blur 8, pad 42/32, 48px Familjen, etykieta #717171)
   ========================================================================== */
.stats {
  /* pasek na pełną szerokość, ale treść trzymana w siatce --max-w */
  margin-top: 0;                 /* pasek przylega do zdjęcia w hero */
  padding-inline: max(0px, calc((100% - var(--max-w)) / 2));
  display: grid; grid-template-columns: 1fr;
  background: rgba(255,255,255,.81);
  backdrop-filter: blur(8px);
}
.stats__item {
  padding: 32px var(--gutter);
  text-align: center;
  border-bottom: 1px dashed var(--c-line);
}
.stats__item:last-child { border-bottom: 0; }
.stats__value {
  font-family: var(--font-head);
  font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  color: var(--c-black);
}
.stats__label { margin-top: 16px; font-size: 16px; line-height: .96; letter-spacing: 0; color: var(--c-text-3); }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats__item { padding: 42px 24px; border-bottom: 0; border-right: 1px dashed var(--c-line); }
  .stats__item:last-child { border-right: 0; }
}

/* ==========================================================================
   USŁUGI  (Figma: pad 32/32/64, gap 48; karta 420: obraz 233, treść pad 16 gap 24)
   ========================================================================== */
.services { overflow: hidden; }
.services .section-head { margin-bottom: 48px; }

.services__grid { display: grid; grid-template-columns: 1fr; gap: 21px; }
@media (min-width: 640px)  { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

.svc-card {
  background: var(--c-white);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transform: rotate(var(--rot, 0deg)) translate(var(--tx, 0px), var(--ty, 0px));
  will-change: transform;
}
.svc-card__img { width: 100%; aspect-ratio: 420 / 233; object-fit: cover; }
.svc-card__body { padding: 16px; }
.svc-card__body p { margin-top: 16px; }   /* tyle samo co do dolnej krawędzi */
.svc-card__title {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--font-head);
  font-size: 24px; font-weight: 700; line-height: .98; letter-spacing: -0.03em;
  color: var(--c-black);
}
.svc-card__title .ico { width: 22px; height: 22px; color: var(--c-ink); }
.svc-card__body p { font-size: 16px; line-height: 1.67; letter-spacing: .01em; color: var(--c-text); }

/* ==========================================================================
   DLACZEGO REDPIN  (Figma: białe tło, pad 92/32, kolumny 520 | 72 | 589)
   ========================================================================== */
.why { }
.why__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .why__grid { grid-template-columns: 520fr 589fr; gap: 72px; padding-left: 60px; }
}

.why__media { position: relative; aspect-ratio: 520 / 519; max-width: 520px; width: 100%; margin-inline: auto; }
.why__photo { position: absolute; overflow: hidden; }
.why__photo img { width: 100%; height: 100%; object-fit: cover; }
/* pinezki 326×326: (0,0) i (194,193) w polu 520×519 */
.why__photo--1 {
  left: 0; top: 0; width: 62.7%; height: 62.8%;
  clip-path: polygon(0 0, 100% 0, 100% 52%, 49% 52%, 49% 100%, 0 52%);
}
.why__photo--2 {
  left: 37.3%; top: 37.2%; width: 62.7%; height: 62.8%;
  clip-path: polygon(0 0, 100% 0, 100% 52%, 50% 100%, 50% 52%, 0 52%);
}
.why__content .lead { margin-top: 20px; max-width: 589px; }
.why__list { margin-top: 32px; max-width: 565px; }
.why__list li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  padding: 12px 0;
  font-size: 16px; font-weight: 500; line-height: 1.55; letter-spacing: 0;
  color: var(--c-black);
  border-bottom: 1px dashed var(--c-line);
}
/* czerwony punktor - tekst pod nim jest wcięty, nie podjeżdża pod kropkę */
.why__list li::before {
  content: "";
  width: 7px; height: 7px; margin-top: 9px;
  background: var(--c-red); border-radius: 50%;
}
.why__content .btn { margin-top: 32px; }

/* ==========================================================================
   DLA KOGO  (Figma: #181818, pad 48/32, kolumny 400 | 446 | 400 gap 32)
   ========================================================================== */
/* ciemna sekcja przylega do białej „Dlaczego warto" - jak w projekcie */
.audience { background: var(--c-dark); color: var(--c-white); }
.audience__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.audience__title { color: var(--c-white); }
.audience__media { position: relative; aspect-ratio: 1; overflow: hidden; }
.audience__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s var(--ease);
}
.audience__img.is-active { opacity: 1; }
/* bez transformu do wyśrodkowania - inaczej stan :active przesuwa przycisk w bok */
.audience__cta { position: absolute; left: 0; right: 0; bottom: 16px; margin-inline: auto; width: fit-content; z-index: 2; }
.audience__side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.audience__text { font-size: 15px; font-weight: 300; line-height: 1.45; letter-spacing: 0; color: var(--c-light); }
.audience__text strong { color: var(--c-white); font-weight: 300; }
.audience__text[hidden] { display: none; }
.audience__text:focus-visible { outline: 2px solid var(--c-red); outline-offset: 4px; }
.audience__text.is-active { animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 1px; }

.chip {
  padding: 6px 13px;
  font-size: 14px; font-weight: 300; line-height: 1.45; letter-spacing: 0;
  color: var(--c-white);
  background: #000;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.chip:hover { background: #272727; }
.chip.is-active { background: #272727; border-color: var(--c-red); font-weight: 500; }

@media (max-width: 639.98px) {
  .chips { flex-direction: column; gap: 8px; }
  .chip { width: 100%; text-align: left; padding: 10px 13px; }
}


@media (min-width: 900px) {
  .audience__grid { grid-template-columns: 400fr 446fr 400fr; gap: 32px; align-items: start; }
  .audience__media { aspect-ratio: 1; }
  .audience__text { align-self: flex-end; }
}

/* ==========================================================================
   MANIFEST + KLIENCI  (Figma: linie #B7B7B7, kicker 24 Regular, tekst 48 Bold)
   ========================================================================== */
.manifesto { }
.manifesto__grid {
  /* kropkowane linie na pełną szerokość, treść trzymana w siatce --max-w */
  padding-inline: max(0px, calc((100% - var(--max-w)) / 2));
  border-block: 1px dashed var(--c-line);
  display: grid; grid-template-columns: 1fr;
}
.manifesto__kicker {
  padding: 24px var(--gutter);
  font-family: var(--font-head);
  font-size: 24px; font-weight: 400; line-height: 1.03; letter-spacing: 0;
  color: var(--c-black);
  border-bottom: 1px dashed var(--c-line);
}
.manifesto__text {
  padding: 32px var(--gutter);
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  color: var(--c-black);
}
@media (min-width: 900px) {
  .manifesto__grid { grid-template-columns: 463fr 903fr; }
  .manifesto__kicker { display: flex; align-items: center; padding: 48px 32px 48px 85px; border-bottom: 0; border-right: 1px dashed var(--c-line); }
  .manifesto__text { padding: 48px 32px 48px 36px; max-width: 850px; }
}

.clients { }
.clients__title {
  margin: 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--c-black);
}
/* pas logotypów: okno o szerokości kontenera + pętla bez przeskoku.
   Dwie identyczne listy obok siebie, przesuw o dokładnie połowę toru. */
.clients__viewport { margin-top: 28px; overflow: hidden; }
.clients__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.clients__track:hover { animation-play-state: paused; }
.clients__list { display: flex; align-items: center; }
.clients__list li { flex: 0 0 auto; padding: 10px 0; margin-right: 64px; }
.clients__list img { width: 122px; height: 57px; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .clients__track .clients__list:last-child { display: none; }
}

/* ==========================================================================
   REALIZACJE  (Figma: pad 32, kolumny 333 | 620 | 333 gap 8, h 620)
   ========================================================================== */
.work { }
.work__grid { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 8px; }
.work-card { position: relative; display: block; overflow: hidden; background: var(--c-black); }
.work-card__tags li, .work-card__title { will-change: backdrop-filter; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-card:hover img { transform: scale(1.03); }
.work-card--1, .work-card--2, .work-card--3 { aspect-ratio: 4 / 3; }

.work-card__tags { position: absolute; left: 16px; top: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 1px; }
.work-card__tags li {
  padding: 2px 12px;
  font-size: 16px; line-height: 1.67; letter-spacing: .01em;
  background: rgba(255,255,255,.09); color: var(--c-white);
  backdrop-filter: blur(16px);
}
.work-card__title {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  padding: 16px;
  background: rgba(255,255,255,.15); color: var(--c-white);
  backdrop-filter: blur(18.5px);
  font-size: clamp(20px, 2.4vw, 32px); font-weight: 500; line-height: 1; letter-spacing: 0;
}
/* karty 1 i 3: overlay widoczny na hover (w Figmie warstwy ukryte) */
/* warstwa opisu: na mobile widoczna od razu, na desktopie na hover.
   will-change + translateZ trzymają warstwę skomponowaną, dzięki czemu
   backdrop-filter nie „przeskakuje" w momencie pojawienia się. */
.work-card__hover { position: absolute; inset: 0; }
@media (min-width: 900px) {
  .work-card__hover {
    opacity: 0;
    /* bez przenikania: szkło ma się pojawić od razu, a nie „doostrzać" w trakcie animacji
       (backdrop-filter przeliczany w trakcie zmiany krycia potrafi przeskoczyć) */
    will-change: opacity;
    transform: translateZ(0);
  }
  .work-card:hover .work-card__hover { opacity: 1; }
}
.work-card__hover .work-card__title {
  font-family: var(--font-head);
  font-size: 24px; font-weight: 600; line-height: 1.27;
  bottom: auto; top: 50%; transform: translateY(-50%);
}
@media (max-width: 899.98px) {
  /* mniejsze etykiety i tytuł - w wąskiej karcie 16 px rozjeżdżało układ */
  .work-card__tags { left: 12px; top: 12px; right: 12px; gap: 2px; }
  .work-card__tags li { padding: 2px 8px; font-size: 13px; line-height: 1.5; }
  .work-card__title { left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; font-size: 17px; }
  /* tytuł na kartach z overlayem też przy dole, jak na karcie środkowej */
  .work-card__hover .work-card__title { top: auto; bottom: 12px; transform: none; font-size: 17px; line-height: 1.2; }
}

@media (min-width: 900px) {
  .work__grid {
    grid-template-columns: 333fr 620fr 333fr;
    height: clamp(480px, 45.4vw, 620px);
  }
  .work-card--1, .work-card--2, .work-card--3 { aspect-ratio: auto; }

  /* Boczne kafelki są wąskie (333x620), więc ze zdjęcia 4:3 widać tylko 40%
     szerokości. Przesuwamy kadr tak, żeby mieścił ekran laptopa z logo
     klienta - wartości dobrane na podglądach, nie na oko.
     Niżej niż 900px karty mają 4:3, czyli proporcję zdjęcia, i nic nie wypada. */
  .work-card--1 img { object-position: 72% center; }
  .work-card--3 img { object-position: 32% center; }
}

/* ==========================================================================
   PROCES  (Figma: białe tło, pad 72/32, gap 72; tytuł 24 Bold/80%, opis Inter Medium 16 #737373)
   ========================================================================== */
.process { }
.timeline {
  --p: 0;
  position: relative;
  margin-top: 72px;
  display: grid; grid-template-columns: 1fr;
}
@media (max-width: 899.98px) {
  /* na mobile bez rozmycia - tekst ma być czytelny od razu */
  .timeline__step { filter: none !important; opacity: 1 !important; }
}
.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  padding-bottom: 32px;
  --f: 0;
  filter: blur(calc((1 - var(--f)) * 6.6px));
  opacity: calc(.4 + var(--f) * .6);
}
.timeline__title {
  grid-column: 2; grid-row: 1;
  font-family: var(--font-head);
  font-size: 24px; font-weight: 700; line-height: .8; letter-spacing: -0.03em;
  color: var(--c-black);
  padding-top: 4px;
}
.timeline__text {
  grid-column: 2; grid-row: 2;
  margin-top: 12px;
  font-size: 16px; font-weight: 500; line-height: 1.41; letter-spacing: -0.01em;
  color: var(--c-text-4);
}
/* marker: kropka 10.7 + pierścienie 30 (@32%) i 51.5 (@12%) */
.timeline__dot {
  grid-column: 1; grid-row: 1;
  justify-self: center; align-self: center;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 0 10px rgba(227,40,20,.32), 0 0 0 20px rgba(227,40,20,.12);
  position: relative; z-index: 1;
}
.timeline__dot--end { background: var(--c-ink); box-shadow: 0 0 0 10px rgba(0,0,0,.32), 0 0 0 20px rgba(0,0,0,.12); }
.timeline__track { position: absolute; left: 25px; top: 12px; bottom: 32px; width: 1px; background: rgba(0,0,0,.55); }
.timeline__progress { position: absolute; left: -0.5px; top: 0; width: 2px; height: calc(var(--p) * 100%); background: var(--c-red); }

@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(5, 1fr); column-gap: 24px; }
  .timeline__step {
    grid-template-columns: 1fr; grid-template-rows: 20px 108px auto;
    text-align: center; padding-bottom: 0;
  }
  .timeline__title { grid-column: 1; grid-row: 1; padding-top: 0; }
  .timeline__dot   { grid-column: 1; grid-row: 2; }
  .timeline__text  { grid-column: 1; grid-row: 3; margin-top: 0; padding-inline: 4px; }
  .timeline__track { left: 10%; right: 10%; width: auto; height: 1px; top: 73.5px; bottom: auto; }
  .timeline__progress { left: 0; top: -0.5px; width: calc(var(--p) * 100%); height: 2px; }
}

/* ==========================================================================
   PAKIETY  (Figma: pad 48/32; karty 400.8 | 484.3 | 400.8 gap 8; badge nachodzi 22 px)
   ========================================================================== */
.pricing { }
.pricing__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .pricing__grid { grid-template-columns: 400.8fr 484.3fr 400.8fr; gap: 8px; align-items: end; margin-top: 22px; } }

.plan { position: relative; background: var(--c-white); display: flex; flex-direction: column; }
.plan__img { width: 100%; aspect-ratio: 400.8 / 249.6; object-fit: cover; }
.plan__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line-2);
}
.plan__name { font-family: var(--font-head); font-size: 24px; font-weight: 700; line-height: .8; letter-spacing: 0; color: var(--c-black); padding-top: 4px; }
.plan__price { font-family: var(--font-head); font-size: 24px; font-weight: 700; line-height: .96; letter-spacing: -0.03em; white-space: nowrap; }
.plan__price small { font-family: var(--font); font-size: 12px; font-weight: 400; letter-spacing: -0.03em; color: #626262; margin-left: 4px; }
.plan__list { padding: 2px 0; flex: 1; }
.plan__list li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  font-size: 16px; line-height: .96; letter-spacing: -0.03em; color: var(--c-text-5);
}
.plan__list li:first-child { padding-top: 10px; }
.plan__list li:last-child  { padding-bottom: 10px; }
.plan__list li::before {
  content: "";
  flex: 0 0 auto; width: 24px; height: 24px;
  background: #F3F3F3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 16.5 16.5 7.5M9 7.5h7.5V15' fill='none' stroke='%23E32814' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.plan__cta { justify-content: center; padding-left: 24px; }

.plan--featured { background: var(--c-black); color: var(--c-white); }
.plan--featured .plan__img { aspect-ratio: 484.3 / 276; }
.plan--featured .plan__name { color: var(--c-white); }
.plan--featured .plan__head { border-color: #5B5B5B; }
.plan--featured .plan__price small { color: var(--c-white); }
.plan--featured .plan__list li { color: var(--c-white); }
.plan--featured .plan__list li::before { background-color: #3B3B3B; }
.plan__badge {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px 10px 18px; min-height: 44px;
  background: rgba(227,40,20,.82); color: var(--c-white);
  backdrop-filter: blur(4px);
  font-size: 16px; line-height: 24px; letter-spacing: 0; white-space: nowrap;
  z-index: 2;
}
.plan__badge .ico { width: 30px; height: 24px; }

.pricing__custom {
  margin-top: 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px;
  font-size: 16px; line-height: 1.67; letter-spacing: .01em; color: var(--c-text);
}
.pricing__custom strong { color: var(--c-ink); font-weight: 400; }
.pricing__custom .btn .ico { width: 30px; height: 24px; }

/* ==========================================================================
   OPINIE  (Figma: pad 48/32, siatka 3×420 gap 20, wiersz 400; karta white@65% + blur, pad 16)
   ========================================================================== */
.reviews { }
.reviews__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.reviews__head { padding-block: 16px; }
.reviews__rating { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.49; letter-spacing: 0; color: #4D4D4D; }
.reviews__rating img { width: 16px; height: 16px; margin-right: -4px; }
.reviews__count { color: #4D4D4D; border-bottom: 1px solid #75758A; padding: 0 2px 2px; }
.reviews__head .h2 { margin-top: 16px; max-width: 420px; }

.stars { display: inline-flex; gap: 5.8px; color: var(--c-red); }
.stars svg { width: 24px; height: 21px; }
.stars--gold { color: #F4B400; gap: 6.3px; }
.stars--gold svg { width: 19px; height: 19px; }

.review {
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
  padding: 16px;
  display: flex; flex-direction: column;
  min-height: 400px;
}
.review__head { display: flex; align-items: center; gap: 8px; }
.review__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--c-white); border: 1px solid #EBEBEB; padding: 3px; }
.review__avatar--logo { object-fit: contain; padding: 6px; }
.review__name { font-family: var(--font-head); font-size: 24px; font-weight: 700; line-height: .98; letter-spacing: -0.03em; color: var(--c-black); flex: 1; }
.review__quote { width: 90px; height: 68px; margin-top: 72px; color: var(--c-off-white); }
.review__text { margin-top: auto; padding-top: 24px; font-size: 16px; line-height: 1.67; letter-spacing: .01em; color: var(--c-text); }

.reviews__photo { overflow: hidden; background: #E9E6E2; aspect-ratio: 1; }
.reviews__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

@media (min-width: 640px) {
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__head { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .reviews__grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; }
  .reviews__head { grid-column: 1; grid-row: 1; align-self: center; padding: 0; }
  .review:nth-of-type(1) { grid-column: 2; grid-row: 1; }
  .review:nth-of-type(2) { grid-column: 3; grid-row: 1; }
  .review:nth-of-type(3) { grid-column: 1; grid-row: 2; }
  .reviews__photo { grid-column: 2; grid-row: 2; }
  /* wszystkie kafle są kwadratami - drugi rząd nie rozciąga się pod zdjęcie */
  .review, .reviews__photo { aspect-ratio: 1; min-height: 0; }
}

/* ==========================================================================
   CTA  (Figma: kontener pad-top 96; blok 1302×416 #E32814 pad 76/32; zdjęcie 404×551 wystaje 135 px)
   ========================================================================== */
.cta-band { }
.cta { position: relative; background: var(--c-red); color: var(--c-white); display: grid; grid-template-columns: 1fr; }
.cta__content { position: relative; z-index: 2; padding: 40px 24px 56px; }
.cta__title { color: var(--c-off-white); max-width: 459px; }
.cta__text { margin-top: 24px; font-size: 16px; line-height: 1.67; letter-spacing: .01em; max-width: 520px; }
.cta__actions { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; }

.cta__art { position: relative; z-index: 1; min-height: 300px; overflow: visible; clip-path: inset(-60% 0 0 0); }

/* kształty tła - geometria odczytana z projektu (blok 1302×416) */
.cta__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.cta__bg svg { width: 100%; height: 100%; }
.cta__bg--desktop { display: none; }

.cta__man {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 118%; width: auto; max-width: none;
  z-index: 3;
}
@media (min-width: 900px) {
  .cta { grid-template-columns: 1fr 1fr; min-height: 416px; }
  .cta__content { padding: 76px 32px; align-self: center; }
  .cta__art { min-height: 100%; }
  .cta__bg--desktop { display: block; }
  .cta__bg--mobile { display: none; }
  .cta__man { height: 132%; left: 12%; transform: none; }
}

/* ==========================================================================
   BLOG  (Figma: pad 96/32 gap 20; linie pełnej szerokości; artykuł 371.5: miniatura 321, info pad 16)
   ========================================================================== */
.blog { overflow-x: clip; }
.blog__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 8px;
  padding-block: 8px;
}
/* linie wychodzące poza kontener (Figma: 1461 px) */
.blog__grid::before, .blog__grid::after {
  content: ""; position: absolute; left: -100vw; right: -100vw; height: 0;
  border-top: 1px dashed var(--c-line);
}
.blog__grid::before { top: 0; } .blog__grid::after { bottom: 0; }
.blog__head { padding: 32px 0; }
.blog__head .lead { margin-top: 24px; max-width: 531px; }
.blog__head .btn { margin-top: 48px; }

.post { display: flex; flex-direction: column; background: var(--c-white); }
.post__media { position: relative; }
.post__media img { width: 100%; aspect-ratio: 371.5 / 321; object-fit: cover; }
/* etykiety nie mogą wejść pod znacznik „Wkrótce!" w prawym górnym rogu */
.post__meta { position: absolute; left: 8px; top: 8px; right: 112px; display: flex; flex-wrap: wrap; gap: 1px; }
.post__meta li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 2px 8px 2px 6px;
  font-size: 14px; line-height: 1.67; letter-spacing: .01em;
  background: rgba(255,255,255,.47); backdrop-filter: blur(8px); color: var(--c-ink);
}
.post__meta .ico { width: 16px; height: 16px; }

/* znacznik „Wkrótce!" na wpisach blogowych */
.post__soon {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  padding: 4px 12px;
  background: var(--c-red); color: var(--c-white);
  font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: 0;
}
/* bez linku wpis nie reaguje na kursor jak przycisk */
.post { cursor: default; }
.post:hover .post__title { color: var(--c-black); }
.post__body { padding: 16px; }
.post__title { font-family: var(--font-head); font-size: 24px; font-weight: 500; line-height: 1.03; letter-spacing: 0; color: var(--c-black); transition: color .2s; }
.post:hover .post__title { color: var(--c-red); }
.post__body p { margin-top: 24px; font-size: 16px; line-height: 1.67; letter-spacing: .01em; color: var(--c-text); }

@media (min-width: 900px) {
  .blog { padding: 0; }
  .blog__grid { grid-template-columns: 531fr 371.5fr 371.5fr; gap: 8px; }
  .blog__head { padding: 0 20px 0 0; align-self: center; }
}

/* ==========================================================================
   FAQ  (Figma: kontener 1082, pad 72/0, gap 48; pozycja white@65% pad 16; aktywna #E32814)
   ========================================================================== */
.faq { position: relative; overflow: hidden; }
.faq__deco {
  position: absolute; left: -28%; top: 6%;
  width: clamp(300px, 45vw, 620px); opacity: .9;
  pointer-events: none;
  /* --deco-p (0→1) ustawia JS wraz ze scrollem: grafika jedzie od lewej do prawej */
  transform: translate3d(calc(var(--deco-p, 0) * 95vw), 0, 0);
  will-change: transform;
}
.faq .container { position: relative; }
.accordion { margin-top: 48px; max-width: 1082px; margin-inline: auto; display: grid; gap: 1px; }
.accordion__item { background: rgba(255,255,255,.65); backdrop-filter: blur(8px); transition: background-color .2s; }
.accordion__summary {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 16px;
  padding: 16px;
  cursor: pointer;
}
.accordion__num { font-family: var(--font-head); font-size: 23px; line-height: .96; letter-spacing: .02em; color: #676767; transition: color .2s; }
.accordion__q { font-family: var(--font-head); font-size: 20px; font-weight: 700; line-height: 1.1; letter-spacing: 0; color: var(--c-black); transition: color .2s; }
.accordion__icon {
  width: 24px; height: 24px; display: grid; place-items: center;
  background: var(--c-red); color: var(--c-white);
  transition: transform .3s var(--ease), background-color .2s, color .2s;
}
.accordion__icon .ico { width: 22px; height: 22px; }
.accordion__item[open] .accordion__icon { transform: rotate(90deg); }
.accordion__item:hover { background: var(--c-red); }
.accordion__item:hover .accordion__num { color: #F4D5D1; }
.accordion__item:hover .accordion__q { color: var(--c-white); }
.accordion__item:hover .accordion__icon { background: var(--c-white); color: var(--c-red); }
.accordion__panel { padding: 4px 16px 16px; }
.accordion__panel p { font-size: 16px; line-height: 1.67; letter-spacing: .01em; color: var(--c-text); max-width: 998px; transition: color .2s; }
.accordion__item:hover .accordion__panel p { color: var(--c-white); }

@media (min-width: 900px) { .accordion__summary { column-gap: 32px; } }

.faq__foot {
  margin-top: 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 48px;
  font-size: 16px; line-height: 1.67; letter-spacing: .01em; color: var(--c-text);
}


/* ==========================================================================
   FORMULARZ KONTAKTOWY
   ========================================================================== */
.contact { }
/* kotwice nie chowają się pod przyklejonym nagłówkiem */
main > section { scroll-margin-top: calc(var(--header-h) + 8px); }
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.contact__intro .lead { margin-top: 24px; max-width: 460px; }

.contact__block { margin-top: 36px; }
.contact__sub {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em;
  color: var(--c-black);
}
.contact__list { margin-top: 18px; display: grid; gap: 14px; }

.contact__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--c-black);
}
.contact__item a { transition: color .2s; }
.contact__item a:hover { color: var(--c-red); }

.contact__ico {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  background: var(--c-red);
  border-radius: 50%;
  color: var(--c-white);
}
.contact__ico .ico { width: 15px; height: 15px; }
/* zegar jest rysowany jako wypełnione koło, więc nie potrzebuje czerwonego tła */
.contact__ico--plain { background: none; color: var(--c-red); }
.contact__ico--plain .ico { width: 26px; height: 26px; }

.contact__copy {
  padding: 3px 11px;
  font: inherit; font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: 0;
  color: var(--c-white);
  background: var(--c-red);
  border: 0; border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s;
}
.contact__copy:hover { background: var(--c-red-dark); }
.contact__copy.is-done { background: #1B7F3B; }

.form {
  background: var(--c-white);
  padding: 24px;
  border: 1px solid #E6E6E6;
  display: grid; gap: 16px;
}
.form__row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form__field { display: grid; gap: 6px; }
.form label { font-size: 14px; font-weight: 500; color: var(--c-black); letter-spacing: 0; }
/* wymagane pola zostawiamy bez znaku - zaznaczamy tylko te nieobowiązkowe */
.form__opt { font-weight: 400; font-size: 12px; color: var(--c-red); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: 15px; line-height: 1.4; letter-spacing: 0;
  color: var(--c-ink);
  background: var(--c-white);
  border: 1px solid #DCDCDC;
  border-radius: 0;
  transition: border-color .2s, background-color .2s;
}
.form ::placeholder { color: #A8A8A8; opacity: 1; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--c-black); background: var(--c-white); }
.form [aria-invalid="true"] { border-color: var(--c-red); background: #FDF3F2; }

.form__error { min-height: 0; font-size: 13px; line-height: 1.4; color: var(--c-red); }
.form__error:empty { display: none; }

.form__field--check { gap: 10px; }
.form__check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--c-text); cursor: pointer; }
.form__check input { width: 20px; height: 20px; accent-color: var(--c-red); margin-top: 1px; }
.form__link { color: var(--c-black); text-decoration: underline; text-underline-offset: 2px; }

/* pulapka na boty - niewidoczna, ale nie display:none (boty to omijaja) */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { display: grid; gap: 12px; margin-top: 8px; }
.form__submit { width: 100%; justify-content: center; }
.form__submit[disabled] { opacity: .6; pointer-events: none; }
.form__note { font-size: 12px; line-height: 1.5; color: var(--c-text-3); }
.form__status { font-size: 14px; line-height: 1.5; color: var(--c-text); }
.form__status.is-ok { color: #1B7F3B; }
.form__status.is-error { color: var(--c-red); }

@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .form { padding: 32px; gap: 20px; }
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
  .contact__intro { position: sticky; top: calc(var(--header-h) + 24px); }
}


/* ==========================================================================
   PODSTRONY TEKSTOWE (polityka prywatności itp.)
   ========================================================================== */
.legal { padding-block: clamp(40px, 6vw, 72px) var(--section-y); }
.legal__head { max-width: 760px; }
.legal__back { margin-bottom: 24px; font-size: 15px; }
.legal__back a { color: var(--c-text); border-bottom: 1px solid var(--c-line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.legal__back a:hover { color: var(--c-red); border-color: var(--c-red); }
.legal__title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.2vw, 56px); font-weight: 700; line-height: .98; letter-spacing: -0.03em;
  color: var(--c-black);
}
.legal__meta { margin-top: 12px; font-size: 14px; color: var(--c-text-3); }
.legal__lead { margin-top: 24px; font-size: 17px; line-height: 1.7; color: var(--c-text); }

.legal__toc {
  margin-top: 40px; padding: 24px;
  background: var(--c-white);
  max-width: 760px;
}
.legal__toc-title { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--c-black); }
.legal__toc ol { margin-top: 12px; padding-left: 20px; list-style: decimal; display: grid; gap: 6px; }
.legal__toc li { font-size: 15px; color: var(--c-text); }
.legal__toc a { border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.legal__toc a:hover { color: var(--c-red); border-color: var(--c-red); }

.legal__body { margin-top: 48px; max-width: 760px; }
.legal__body section + section { margin-top: 40px; }
.legal__body h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--c-black);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal__body h3 {
  margin-top: 24px;
  font-family: var(--font-head);
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--c-black);
}
.legal__body p { margin-top: 16px; font-size: 16px; line-height: 1.75; color: var(--c-text); }
.legal__body ul { margin-top: 16px; padding-left: 20px; list-style: disc; display: grid; gap: 10px; }
.legal__body li { font-size: 16px; line-height: 1.7; color: var(--c-text); }
.legal__body strong { color: var(--c-ink); font-weight: 600; }
.legal__body a { color: var(--c-black); border-bottom: 1px solid var(--c-line); transition: color .2s, border-color .2s; }
.legal__body a:hover { color: var(--c-red); border-color: var(--c-red); }
.legal__body section { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ==========================================================================
   FOOTER  (Figma: 1302 w kontenerze, #151515, pad 32, gap 38; tagline 48 SemiBold)
   ========================================================================== */
.footer-wrap { padding-bottom: 32px; }
.footer {
  position: relative; overflow: hidden;
  background: var(--c-footer); color: var(--c-white);
  padding: 32px 24px;
  display: grid; grid-template-columns: 1fr; gap: 38px;
}
.footer__deco { position: absolute; right: -6%; top: 0; width: clamp(160px, 17vw, 225px); opacity: .61; pointer-events: none; }
/* Na szerokich ekranach grafika sięga od górnego do dolnego marginesu stopki.
   Szerokość zostaje bez zmian, bo prawa kolumna menu dochodzi do krawędzi -
   szersza grafika wchodziłaby pod odnośniki. Wysokość domyka `cover`, który
   dokadrowuje ukośny wzór zamiast go rozciągać. */
@media (min-width: 900px) {
  .footer__deco {
    top: 32px;
    height: calc(100% - 64px);
    object-fit: cover;
    object-position: center;
  }
}
.footer__brand { position: relative; }
.footer__logo { width: 180px; }
.footer__claim { margin-top: 16px; font-family: var(--font-head); font-size: clamp(30px, 3.5vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: .98; color: var(--c-off-white); }
.footer__text { margin-top: 16px; font-size: 16px; line-height: 1.67; letter-spacing: .01em; color: var(--c-light); max-width: 275px; }
.footer__mail {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px 4px 8px;
  background: #2D2D2D; color: var(--c-red);
  font-size: 14px; line-height: 1; letter-spacing: 0;
}
.footer__mail .ico { color: var(--c-white); width: 14px; height: 14px; }

.footer__nav { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; align-content: start; }
.footer__nav li + li { margin-top: 14px; }
.footer__nav a { font-size: 16px; line-height: 1.2; letter-spacing: 0; transition: color .2s; }
.footer__nav a:hover { color: var(--c-red); }

.footer__copy { font-size: 16px; line-height: 1.67; letter-spacing: .01em; align-self: end; }
.footer__social { display: flex; align-items: center; gap: 16px; font-size: 16px; letter-spacing: 0; align-self: end; }
.footer__social a { display: grid; place-items: center; width: 26px; height: 29px; transition: color .2s; }
.footer__social a:hover { color: var(--c-red); }
.footer__social svg { width: 25px; height: 25px; }

@media (min-width: 900px) {
  .footer {
    padding: 32px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 38px; column-gap: 48px;
  }
  .footer__brand { grid-column: 1; grid-row: 1; }
  .footer__nav { grid-column: 2; grid-row: 1; padding-right: 32px; column-gap: 24px; grid-template-columns: 170px 170px; }
  .footer__copy { grid-column: 1; grid-row: 2; }
  .footer__social { grid-column: 2; grid-row: 2; justify-self: end; padding-right: 32px; }
}


/* ==========================================================================
   MODAL - kalendarz rezerwacji (Google Appointment Scheduling)
   ========================================================================== */
.modal {
  width: min(100% - 2 * var(--gutter), 1120px);
  max-width: none;
  max-height: min(100dvh - 24px, 940px);
  padding: 0;
  border: 0;
  background: var(--c-white);
  color: var(--c-text);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.modal::backdrop { background: rgba(22,21,21,.6); backdrop-filter: blur(3px); }
.modal[open] { animation: modalIn .25s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.modal__box { display: flex; flex-direction: column; max-height: inherit; }
.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 16px 16px 20px;
  border-bottom: 1px solid var(--c-line-2);
}
.modal__title {
  font-family: var(--font-head);
  font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  color: var(--c-black);
}
.modal__close {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--c-black);
  transition: background-color .2s, color .2s;
}
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover { background: var(--c-red); color: var(--c-white); }

.modal__body { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.modal__body iframe { display: block; width: 100%; height: 780px; border: 0; }
.modal__loader { padding: 48px 20px; text-align: center; font-size: 15px; color: var(--c-text); }

body.modal-open { overflow: hidden; }

@media (max-width: 639.98px) {
  .modal { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; }
  .modal__body iframe { height: 100%; min-height: 560px; }
}

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Baner zgody na cookies
   ========================================================================== */

.cookies {
  position: fixed;
  z-index: 10000;                 /* nad ekranem przejściowym (9999) */
  inset-inline: 0;
  bottom: 0;
  padding: 16px var(--gutter);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.cookies[hidden] { display: none; }

.cookies__box {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 22px 24px;
  background: var(--c-white);
  border: 1px solid var(--c-line-2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .14);
}

.cookies__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-black);
}

.cookies__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
}

.cookies__text a { color: var(--c-red); text-decoration: underline; text-underline-offset: 2px; }

.cookies__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookies__actions .btn { flex: 1 1 auto; justify-content: center; }

@media (min-width: 900px) {
  .cookies__box {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
  }
  .cookies__actions { flex-wrap: nowrap; }
  .cookies__actions .btn { flex: 0 0 auto; }
}

/* odnośnik w stopce otwierający baner ponownie - ma wyglądać jak sąsiednie linki */
.footer__cookies {
  padding: 0;
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .2s;
}

.footer__cookies:hover { color: var(--c-red); }
