/* =========================================================
   Ideal Form — wspólne style (tokeny, layout, komponenty)
   Źródło: Figma "Idealform" (desktop 1440px)
   Style konkretnych podstron: assets/css/pages/*.css
   ========================================================= */

/* ---------- Tokeny ---------- */
:root {
  --c-green: #8cc63f;
  --c-ink: #231f20;
  --c-muted: #6b6b6b;
  --c-line: #e0e0de;
  --c-soft: #f5f5f4;
  --c-white: #fff;
  --c-on-dark: rgba(255, 255, 255, .78);
  --c-on-dark-muted: rgba(255, 255, 255, .55);

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

  --container: 1200px;
  --gutter: 24px;          /* odstęp paneli full-bleed od krawędzi */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-pill: 999px;

  --header-h: 72px;
  --topbar-h: 32px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, h5, h6, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--c-green); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.bleed { padding-inline: var(--gutter); }   /* panele z 24px marginesem */
.section { padding-block: 96px; }
.section--72 { padding-block: 72px; }
.section--soft { background: var(--c-soft); }
.section--line { border-top: 1px solid var(--c-line); }

/* ---------- Typografia ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  flex-shrink: 0;
}
.eyebrow--muted { color: var(--c-muted); }
.eyebrow--green { color: var(--c-green); }
.caps-label {
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.h-page {            /* tytuł podstrony 56 */
  font-size: 56px;
  line-height: 58px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.h-section {         /* nagłówek sekcji 44 light */
  font-size: 44px;
  line-height: 50px;
  font-weight: 300;
  letter-spacing: -.02em;
}
.h-panel {           /* nagłówek w ciemnym panelu 48 light */
  font-size: 48px;
  line-height: 54px;
  font-weight: 300;
  letter-spacing: -.02em;
}
.h-sub {             /* małe nagłówki sekcji 20 medium */
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.01em;
}
.text-muted { color: var(--c-muted); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--lg { padding: 13px 25px; font-size: 14px; line-height: 17px; }
.btn--md { padding: 11px 21px; }
.btn--dark { background: var(--c-ink); color: var(--c-white); }
.btn--dark:hover { background: #000; }
.btn--green { background: var(--c-green); color: var(--c-ink); }
.btn--green:hover { background: #7db535; }
.btn--light { background: var(--c-white); color: var(--c-ink); }
.btn--light:hover { background: var(--c-soft); }
.btn--outline { background: var(--c-white); color: var(--c-ink); border-color: var(--c-line); }
.btn--outline:hover { border-color: var(--c-ink); }
.btn--outline-dark { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--outline-dark:hover { background: var(--c-ink); color: var(--c-white); }
.btn--ghost-light { background: transparent; color: var(--c-white); border-color: rgba(255, 255, 255, .5); }
.btn--ghost-light:hover { border-color: var(--c-white); }

.link-arrow {
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity .2s;
}
.link-arrow:hover { opacity: .65; }

.circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-ink);
  font-size: 18px;
  font-weight: 500;
  flex-shrink: 0;
  transition: transform .25s;
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--r-pill);
  background: var(--c-green);
  color: var(--c-white);
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
}
.tag-new {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--c-green);
  color: var(--c-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--c-green);
  color: var(--c-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: var(--topbar-h);
  padding: 8.5px var(--gutter);
}
.topbar__usp { white-space: pre; }
.topbar__phone { white-space: nowrap; }
.topbar__phone a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-white);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--c-line); }
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
  padding-inline: var(--gutter);
}
.header__side { width: 170px; display: flex; align-items: center; flex-shrink: 0; }
.header__side--right { justify-content: flex-end; }
.header__logo { display: block; width: 132px; height: 60px; }
.header__logo img { width: 100%; height: 100%; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  white-space: nowrap;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.nav__link:hover,
.nav__link[aria-current="page"] { text-decoration-line: underline; }
.nav__link[aria-current="page"] .badge { text-decoration: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  margin-right: -10px;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Page head (podstrony) ---------- */
.page-head { padding: 56px 0 32px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  line-height: 15px;
  color: var(--c-muted);
}
.breadcrumb a:hover { color: var(--c-ink); }
.breadcrumb [aria-current="page"] { color: var(--c-ink); }
.page-head__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 20px;
}
.page-head__lead {
  width: 520px;
  flex-shrink: 0;
  font-size: 15px;
  line-height: 23px;
  color: var(--c-muted);
}

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.section-head__titles { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.section-head__lead { font-size: 14px; line-height: 20px; color: var(--c-muted); }
.section-head__lead--15 { font-size: 15px; line-height: 18px; }
.section-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  height: 760px;
  overflow: hidden;
  color: var(--c-white);
}
.hero__img {             /* kadr 1:1 z Figmy – ukrywa znak wodny u dołu zdjęcia */
  position: absolute;
  left: -5%; top: -3.62%;
  width: 110%; height: 117.24%;
  max-width: none;
  object-fit: cover;
}
.hero::before,
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero::before { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.08) 45%, rgba(0,0,0,.5) 100%); }
.hero::after { background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.5) 100%); }
.hero__content {
  position: absolute;
  z-index: 1;
  right: 72px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  text-align: right;
}
.hero__title {
  font-size: 72px;
  line-height: 74px;
  font-weight: 500;
  letter-spacing: -.025em;
}
.hero__lead { font-size: 16px; line-height: 24px; }
.hero__content .btn { padding: 12px 22px; }

/* ---------- Kategorie (home) ---------- */
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px var(--gutter);
}
.category {
  position: relative;
  height: 520px;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--c-white);
  isolation: isolate;
}
.category img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: scale .8s cubic-bezier(.16, 1, .3, 1);
}
.category::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.05) 50%, rgba(0,0,0,.6) 100%);
}
.category__content {
  position: absolute;
  left: 32px; right: 32px; bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.category__title {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -.02em;
}
.category__desc { margin-top: 8px; font-size: 14px; line-height: 22px; opacity: .85; }
.category:hover img { scale: 1.04; }
.category:hover .circle-btn { transform: translateX(4px); }

/* ---------- Split: zdjęcie + ciemny panel ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 624fr) minmax(0, 752fr);
  gap: 16px;
  padding: 0 var(--gutter) 24px;
}
.split__photo {
  position: relative;
  min-height: 320px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.split__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dark-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding: 64px;
  border-radius: var(--r-lg);
  background: var(--c-ink);
  color: var(--c-white);
}
.dark-panel__head { display: flex; flex-direction: column; gap: 20px; }
.dark-panel__copy { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 26px; color: var(--c-on-dark); }

/* ---------- Pasek zdjęć realizacji ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 40px;
}
.photo-strip a { display: block; height: 340px; border-radius: var(--r-sm); overflow: hidden; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s cubic-bezier(.16, 1, .3, 1); }
.photo-strip a:hover img { scale: 1.04; }

/* ---------- Opinie ---------- */
.reviews-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 48px;
}
.reviews-wall__col { display: flex; flex-direction: column; gap: 16px; }
.review {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--c-white);
}
.review__stars { font-size: 15px; letter-spacing: .12em; color: var(--c-green); line-height: 18px; }
.review__text { font-size: 16px; line-height: 26px; }
.review__author { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  background: var(--c-green);
  color: var(--c-ink);
}
.avatar--fb { background: var(--c-ink); color: var(--c-white); }
.review__name, .review__date { display: block; }
.review__name { font-size: 13px; font-weight: 500; line-height: 16px; }
.review__date { margin-top: 2px; font-size: 12px; line-height: 15px; color: var(--c-muted); }

/* ---------- Jak zamawiasz (kroki) ---------- */
.steps-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.steps-head__lead { font-size: 14px; line-height: 21px; color: var(--c-muted); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 19px;               /* + 1px border = 20px jak w Figmie */
  border-top: 1px solid var(--c-line);
}
.step__no { font-size: 40px; line-height: 40px; font-weight: 300; letter-spacing: -.02em; color: var(--c-green); }
.step__title { font-size: 16px; font-weight: 500; letter-spacing: -.005em; line-height: 19px; }
.step__text { font-size: 13px; line-height: 20px; color: var(--c-muted); }

/* ---------- Partnerzy ---------- */
.partners { padding: 55px 0 64px; border-top: 1px solid var(--c-line); }
.partners__logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
}
.partners__logos img { opacity: .6; width: auto; }

/* ---------- CTA kontakt ---------- */
.cta-contact { padding: 24px var(--gutter); }
.cta-contact__panel {
  position: relative;
  min-height: 560px;
  padding: 32px;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.cta-contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-contact__card {
  position: relative;
  width: 560px;
  min-height: 496px;
  padding: 56px;
  border-radius: var(--r-md);
  background: var(--c-ink);
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.cta-contact__head { display: flex; flex-direction: column; gap: 20px; }
.cta-contact__lead { font-size: 16px; line-height: 26px; color: var(--c-on-dark); }
.cta-contact__actions { display: flex; flex-direction: column; gap: 20px; }
.cta-contact__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-contact__meta { font-size: 13px; line-height: 16px; color: var(--c-on-dark-muted); white-space: pre-wrap; }
.cta-contact__meta a:hover { color: var(--c-white); }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 40px; font-size: 14px; line-height: 17px; }
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer__social { display: flex; gap: 24px; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  font-size: 12px;
  line-height: 15px;
  color: var(--c-muted);
}

/* ---------- Wordmark ---------- */
.wordmark {
  overflow: hidden;
  height: calc(min(22.222vw, 320px) * .906);
  padding-inline: calc(44.5 / 1440 * 100%);
}
.wordmark__text {
  display: block;
  margin-top: calc(min(22.222vw, 320px) * .0625);
  font-size: min(22.222vw, 320px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.055em;
  white-space: nowrap;
  text-align: center;
  user-select: none;
}
.wordmark__text span { color: var(--c-green); }

/* =========================================================
   Responsywność (Figma ma tylko desktop 1440 — reszta
   to adaptacja zgodna z systemem)
   ========================================================= */
@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .header__side { width: auto; }
  .header__side--right { gap: 12px; }
  .nav {
    position: fixed;
    inset: calc(var(--header-h)) 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px var(--gutter) 32px;
    background: var(--c-white);
    border-top: 1px solid var(--c-line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__link { width: 100%; padding: 16px 0; font-size: 20px; line-height: 24px; border-bottom: 1px solid var(--c-line); }
  .nav__link:hover, .nav__link[aria-current="page"] { text-decoration: none; color: var(--c-green); }
  .nav-open { overflow: hidden; }

  .hero__content { right: 48px; }
  .topbar__usp { display: none; }
  .topbar__inner { justify-content: center; }
  .partners__logos { flex-wrap: wrap; justify-content: center; gap: 32px 48px; }
}

@media (max-width: 1024px) {
  .section { padding-block: 72px; }
  .h-page { font-size: 44px; line-height: 48px; }
  .h-section, .h-panel { font-size: 36px; line-height: 42px; }
  .page-head__row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-head__lead { width: auto; max-width: 620px; }

  .hero { height: 640px; }
  .hero__title { font-size: 56px; line-height: 60px; }

  .categories { grid-template-columns: 1fr 1fr; }
  .categories .category:last-child { grid-column: 1 / -1; }
  .category { height: 440px; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .split__photo { aspect-ratio: 4 / 3; min-height: 0; }
  .split__photo img { object-position: 80% 50%; }   /* chowa znak wodny z lewego dolnego rogu */
  .dark-panel { padding: 48px; }

  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .photo-strip a:nth-child(n+4) { display: none; }

  .reviews-wall { grid-template-columns: 1fr 1fr; }
  .reviews-wall__col:last-child { display: none; }

  .cta-contact__panel { min-height: 0; }
  .cta-contact__card { width: min(560px, 100%); min-height: 0; padding: 48px; }

  .footer__top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .steps-head { flex-direction: column; }
  .steps { grid-template-columns: 1fr; }
  .reviews-wall { grid-template-columns: 1fr; }
  .reviews-wall__col:last-child { display: flex; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .header__logo { width: 110px; height: 50px; }
  .header__side--right .btn { padding: 9px 14px; font-size: 12px; }

  .section { padding-block: 56px; }
  .h-page { font-size: 36px; line-height: 40px; letter-spacing: -.025em; }
  .h-section, .h-panel { font-size: 30px; line-height: 36px; }
  .page-head { padding-top: 32px; }

  .hero { height: 560px; }
  .hero__content { left: 16px; right: 16px; bottom: 40px; }
  .hero__title { font-size: 40px; line-height: 44px; }
  .hero__lead br { display: none; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.6) 100%); }

  .categories { grid-template-columns: 1fr; }
  .category { height: 380px; }
  .category__content { left: 24px; right: 24px; bottom: 24px; }
  .category__title { font-size: 26px; }

  .dark-panel { padding: 32px 24px; gap: 32px; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip a { height: 220px; }
  .photo-strip a:nth-child(3) { display: none; }

  .review { padding: 24px; }
  .partners__logos { gap: 24px 32px; }
  .partners__logos img { transform: scale(.85); }

  .cta-contact__panel { padding: 16px; }
  .cta-contact__card { padding: 32px 24px; }

  .footer__nav { gap: 12px 20px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

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

/* ---------- Treści prawne ---------- */
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 26px; }
.legal h2 { margin-top: 24px; font-size: 20px; font-weight: 500; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal ul { display: flex; flex-direction: column; gap: 8px; }
.legal li { position: relative; padding-left: 18px; }
.legal li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-green); }
