/* ============================================================================
   NAZWA FIRMY — strona wizytówka
   ----------------------------------------------------------------------------
   ZMIANA KOLORU FIRMOWEGO:
   Wystarczy podmienić JEDNĄ wartość --brand poniżej. Reszta odcieni
   (ciemniejszy, jaśniejszy, tła, cienie) wyliczy się automatycznie.
   Jeśli nowy kolor będzie jasny (żółty, limonka), zmień też --brand-contrast
   na ciemny, żeby tekst na przyciskach pozostał czytelny.
   ========================================================================== */

:root {
  /* ---- KOLOR FIRMOWY (jedyne miejsce do zmiany) ---- */
  --brand: #DE8F2B;              /* bursztyn / pomarańcz budowlany */
  --brand-contrast: #10131A;     /* kolor tekstu NA kolorze firmowym */

  /* ---- odcienie wyliczane z --brand ---- */
  --brand-strong: color-mix(in oklab, var(--brand) 84%, #000);
  --brand-light:  color-mix(in oklab, var(--brand) 70%, #fff);
  --brand-soft:   color-mix(in oklab, var(--brand) 14%, #fff);
  --brand-tint:   color-mix(in oklab, var(--brand) 7%, #fff);
  --brand-glow:   color-mix(in oklab, var(--brand) 32%, transparent);
  --brand-line:   color-mix(in oklab, var(--brand) 38%, transparent);

  /* ---- grafit ---- */
  --ink-950: #0B0D11;
  --ink-900: #12151A;
  --ink-800: #1A1E25;
  --ink-700: #262B34;
  --ink-600: #3A414D;
  --ink-500: #5A6373;
  --ink-400: #808A99;
  --ink-300: #A8B0BC;
  --ink-200: #CED4DC;
  --ink-100: #E6EAEF;
  --ink-50:  #F4F6F9;

  /* ---- semantyka ---- */
  --bg: #FFFFFF;
  --bg-alt: var(--ink-50);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --border: var(--ink-100);
  --border-strong: var(--ink-200);

  /* ---- kształt i cień ---- */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 13, 17, .05), 0 2px 8px rgba(11, 13, 17, .04);
  --shadow: 0 4px 12px rgba(11, 13, 17, .06), 0 16px 32px rgba(11, 13, 17, .07);
  --shadow-lg: 0 8px 24px rgba(11, 13, 17, .10), 0 32px 64px rgba(11, 13, 17, .12);

  /* ---- siatka ---- */
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  /* ---- wzór kostki brukowej (tło dekoracyjne) ---- */
  --brick-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1'%3E%3Crect x='.5' y='.5' width='39' height='19'/%3E%3Crect x='40.5' y='.5' width='39' height='19'/%3E%3Crect x='-19.5' y='20.5' width='39' height='19'/%3E%3Crect x='20.5' y='20.5' width='39' height='19'/%3E%3Crect x='60.5' y='20.5' width='39' height='19'/%3E%3C/g%3E%3C/svg%3E");
  --brick-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cg fill='none' stroke='rgba(11,13,17,0.10)' stroke-width='1'%3E%3Crect x='.5' y='.5' width='39' height='19'/%3E%3Crect x='40.5' y='.5' width='39' height='19'/%3E%3Crect x='-19.5' y='20.5' width='39' height='19'/%3E%3Crect x='20.5' y='20.5' width='39' height='19'/%3E%3Crect x='60.5' y='20.5' width='39' height='19'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============================ RESET / BAZA ============================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: var(--brand-contrast);
  padding: .75rem 1.25rem; font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 28px; height: 28px; }

.link { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.link:hover { color: var(--brand); }

/* ============================ TYPOGRAFIA SEKCJI ============================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 1rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-light);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.eyebrow--dark { color: var(--brand-strong); }

.section { padding-block: var(--section-y); position: relative; }
/* żeby kotwice z menu nie chowały nagłówka pod przyklejonym paskiem */
main section[id] { scroll-margin-top: 92px; }
.section--alt { background: var(--bg-alt); }

.section--dark {
  background: var(--ink-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--dark .section__lead { color: var(--ink-300); }
.section__pattern {
  position: absolute; inset: 0;
  background-image: var(--brick-dark);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.section__head { max-width: 46rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__head--left .eyebrow::before { display: inline-block; }
.section__title { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.section__lead { margin: 0; font-size: clamp(1rem, 1.6vw, 1.125rem); color: var(--text-muted); }

/* ============================ PRZYCISKI ============================ */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--brand-contrast);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: 0 6px 18px var(--brand-glow); }
.btn--primary:hover { background: var(--brand-strong); box-shadow: 0 10px 26px var(--brand-glow); }

.btn--ghost {
  background: transparent; color: #fff;
  border-color: rgba(255, 255, 255, .28);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }

.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--ink-700); }

.btn--lg { padding: 1rem 1.9rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* ============================ TOPBAR ============================ */
.topbar {
  background: var(--ink-950);
  color: var(--ink-300);
  font-size: .875rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 42px; flex-wrap: wrap;
}
.topbar__contact { display: flex; align-items: center; gap: 1.5rem; }
.topbar__item {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0; text-decoration: none; color: inherit;
}
a.topbar__item:hover { color: var(--brand-light); }
.topbar .icon { width: 17px; height: 17px; color: var(--brand); }

/* ============================ HEADER ============================ */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(18, 21, 26, .92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled { background: rgba(11, 13, 17, .97); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }

/* ---- LOGO (placeholder) ---- */
.logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; }
.logo__mark { display: grid; place-items: center; width: 44px; height: 44px; color: var(--brand); flex: none; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__img { height: 44px; width: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; }
.logo__tag { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400); }

/* ---- NAWIGACJA ---- */
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav__list { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.nav__link {
  position: relative; display: inline-block; padding: .35rem 0;
  color: var(--ink-200); text-decoration: none; font-weight: 600; font-size: .9375rem;
  transition: color .2s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.burger {
  display: none; width: 46px; height: 46px; padding: 0;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm); cursor: pointer;
}
.burger span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-900); color: #fff;
  /* pełna wysokość okna minus pasek kontaktowy i nagłówek
     (dokładną wartość --chrome-h ustawia skrypt) */
  min-height: calc(100svh - var(--chrome-h, 118px));
  display: grid; align-items: center;
}

/* ZDJĘCIE W TLE — pierwsza warstwa to zdjęcie, druga to obrazek zastępczy
   (widoczny tylko wtedy, gdy zdjęcia zabraknie). Żeby zmienić zdjęcie,
   podmień plik `assets/hero.webp` albo wpisz tu inną nazwę. */
.hero__bg {
  position: absolute; inset: 0;
  background-image:
    url("../assets/hero.webp"),
    url("../assets/hero-placeholder.svg");
  background-size: cover;
  background-position: 62% 38%;
  background-repeat: no-repeat;
}
/* przyciemnienie, żeby tekst był czytelny na zdjęciu */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 13, 17, .88) 0%, rgba(11, 13, 17, .6) 46%, rgba(11, 13, 17, .18) 100%),
    linear-gradient(to bottom, rgba(11, 13, 17, .45) 0%, transparent 30%, rgba(11, 13, 17, .5) 100%);
}

.hero__inner {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero__content { max-width: 54rem; }
.hero__title { font-size: clamp(2.25rem, 5.6vw, 4rem); margin-bottom: 1.25rem; }
.hero__title .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero__lead { max-width: 34rem; font-size: clamp(1.0625rem, 1.8vw, 1.25rem); color: var(--ink-200); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2rem; }

/* strzałka „przewiń niżej” */
.hero__scroll {
  position: absolute; left: 50%; bottom: clamp(1rem, 3vh, 2rem); translate: -50% 0;
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px);
  animation: heroBob 2.4s ease-in-out infinite;
}
.hero__scroll:hover { background: rgba(255, 255, 255, .16); }
.hero__scroll svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes heroBob { 0%, 100% { translate: -50% 0; } 50% { translate: -50% 6px; } }
@media (max-height: 700px) { .hero__scroll { display: none; } }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__stats strong { display: block; font-size: clamp(1.75rem, 3.4vw, 2.5rem); color: var(--brand); line-height: 1.1; }
.hero__stats span { font-size: .9375rem; color: var(--ink-300); }

/* ============================ ATUTY ============================ */
.trust { background: var(--bg); border-bottom: 1px solid var(--border); }
.trust__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.trust__item .icon { color: var(--brand); margin-bottom: .875rem; }
.trust__item h3 { font-size: 1.0625rem; margin-bottom: .35rem; }
.trust__item p { margin: 0; font-size: .9375rem; color: var(--text-muted); }

/* ============================ KARTY USŁUG ============================ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.card {
  position: relative; overflow: hidden;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.125rem;
  border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-strong);
}
.card__title { font-size: 1.1875rem; margin-bottom: .5rem; }
.card p { margin: 0; color: var(--text-muted); font-size: .9375rem; }

/* ============================ PROCES ============================ */
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.step { position: relative; padding-top: 1.75rem; border-top: 2px solid rgba(255, 255, 255, .14); }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--brand);
}
.step__num { display: block; font-size: .8125rem; font-weight: 800; letter-spacing: .18em; color: var(--brand); margin-bottom: .75rem; }
.step__title { font-size: 1.1875rem; margin-bottom: .4rem; }
.step p { margin: 0; color: var(--ink-300); font-size: .9375rem; }

/* ============================ GALERIA ============================ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.swipe-hint { display: none; }
.chip {
  padding: .5rem 1.1rem; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border-strong);
  font: inherit; font-size: .875rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all .2s ease;
}
.chip:hover { border-color: var(--brand); color: var(--text); }
.chip.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.tile {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--bg-alt); cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile.is-hidden { display: none; }
.tile__img, .tile__ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* wzór zastępczy zamiast zdjęcia */
.tile__ph, .ph {
  display: grid; place-items: center;
  background-color: var(--ink-100);
  background-image: var(--brick-light);
  color: var(--ink-500);
}
.tile__ph span, .ph span {
  padding: .4rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  font-size: .8125rem; font-weight: 700; letter-spacing: .02em;
}
.ph { border-radius: var(--radius-lg); border: 1px dashed var(--border-strong); min-height: 160px; text-align: center; }
.ph--tall { aspect-ratio: 4 / 5; width: 100%; }

.tile__cap { padding: 1rem 1.15rem 1.15rem; display: grid; gap: .15rem; }
.tile__cap strong { font-size: 1rem; }
.tile__cap span { font-size: .875rem; color: var(--text-muted); }

/* ============================ O NAS ============================ */
.about {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.about__text p { color: var(--text-muted); }
.about__text .btn { margin-top: 1rem; }
.about__media { position: relative; }
.about__badge {
  position: absolute; right: -12px; bottom: -18px;
  display: grid; gap: .1rem; padding: 1rem 1.35rem;
  background: var(--brand); color: var(--brand-contrast);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.about__badge strong { font-size: 1.75rem; line-height: 1; }
.about__badge span { font-size: .8125rem; font-weight: 600; }

/* ============================ OPINIE ============================
   Sekcja jest chwilowo zakomentowana w index.html — style zostają,
   żeby po wklejeniu prawdziwych opinii wszystko od razu wyglądało. */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.quote {
  margin: 0; padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--brand-tint); border: 1px solid var(--brand-line); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: .875rem;
}
.quote__stars { color: var(--brand); letter-spacing: .15em; font-size: 1rem; }
.quote blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.quote figcaption { display: grid; gap: .1rem; margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--brand-line); }
.quote figcaption span { font-size: .875rem; color: var(--text-muted); }

/* ============================ CTA ============================ */
.cta { background: var(--ink-900); color: #fff; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(50% 120% at 85% 50%, var(--brand-glow) 0%, transparent 65%), var(--brick-dark);
}
.cta__inner {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.cta__title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: .5rem; }
.cta__lead { margin: 0; max-width: 38rem; color: var(--ink-300); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .875rem; }

/* ============================ KONTAKT ============================ */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact .section__lead { margin-bottom: 2rem; }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .875rem; font-weight: 700; }
.field label span { color: var(--brand-strong); }

.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem;
  font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C0392B; }

.field__err { margin: 0; font-size: .8125rem; font-weight: 600; color: #C0392B; min-height: 0; }
.field__err:empty { display: none; }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .875rem; color: var(--text-muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--brand); flex: none; }

.form__note { margin: 0; font-size: .8125rem; color: var(--text-muted); text-align: center; }
.form__status { margin: 0; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form__status.is-ok { display: block; background: var(--brand-soft); color: var(--brand-strong); border: 1px solid var(--brand-line); }
.form__status.is-err { display: block; background: #FDECEA; color: #A93226; border: 1px solid #F0B7B0; }

.contact__info { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); }
.contact__h { font-size: 1.25rem; }
.contact__list { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.contact__list li { display: flex; gap: .85rem; align-items: flex-start; }
.contact__list .icon { color: var(--brand); margin-top: .2rem; }
.contact__list a { text-decoration: none; font-weight: 700; }
.contact__list a:hover { color: var(--brand-strong); }
.contact__k { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.contact__map {
  display: block; width: 100%; aspect-ratio: 16 / 10; margin-top: 1.5rem;
  border: 0; border-radius: var(--radius-lg);
}

/* ============================ STOPKA ============================ */
.footer { background: var(--ink-950); color: var(--ink-300); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 3rem); }
.footer__desc { margin: 1.25rem 0 0; font-size: .9375rem; max-width: 30rem; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: .625rem; font-size: .9375rem; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--brand); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .09); font-size: .875rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--brand); }

/* ============================ PASEK MOBILNY ============================ */
.mobilebar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  gap: .625rem; padding: .625rem .75rem calc(.625rem + env(safe-area-inset-bottom));
  background: rgba(11, 13, 17, .96); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.mobilebar__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #fff;
  font-weight: 700; font-size: .9375rem; text-decoration: none;
}
.mobilebar__btn--primary { background: var(--brand); color: var(--brand-contrast); }

/* ============================ LIGHTBOX ============================ */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: min(900px, 92vw); max-height: 90vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(11, 13, 17, .82); backdrop-filter: blur(3px); }
.lightbox__content { border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-100); }
.lightbox__content .tile__ph { aspect-ratio: 4 / 3; min-height: 280px; }
.lightbox__content figcaption { background: #fff; padding: 1rem 1.25rem; display: grid; gap: .15rem; }
.lightbox__content figcaption span { font-size: .875rem; color: var(--text-muted); }
.lightbox__close {
  position: absolute; top: -48px; right: 0;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .26); }

/* ============================ ANIMACJE ============================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }
.reveal:nth-child(5) { transition-delay: .28s; }
.reveal:nth-child(6) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .tile:hover { transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================ RESPONSYWNOŚĆ ============================ */
@media (max-width: 1080px) {
  .about, .contact { grid-template-columns: 1fr; }
  .about__media { max-width: 26rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  /* bez backdrop-filter, żeby wysuwane menu (position: fixed) liczyło się
     względem okna, a nie względem nagłówka */
  .header { backdrop-filter: none; background: var(--ink-900); }
  .header.is-scrolled { background: var(--ink-950); }
  .logo { position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0 0 auto; top: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    /* zapas na nagłówek; dokładną wartość ustawia skrypt przy otwarciu menu */
    padding: 136px var(--gutter) 2.5rem;
    background: var(--ink-950);
    height: 100dvh; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
  .nav__link { display: block; padding: 1rem 0; font-size: 1.125rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 1.75rem; }
  .burger { position: relative; z-index: 2; }

  body.nav-open { overflow: hidden; }

  .mobilebar { display: flex; }
  body { padding-bottom: 74px; }

  /* strzałka koliduje z dolnym paskiem akcji */
  .hero__scroll { display: none; }

  .topbar__item--hide-sm { display: none; }

  /* filtry przewijane od krawędzi do krawędzi, bez ucinania w połowie chipa */
  .filters {
    justify-content: flex-start; flex-wrap: nowrap;
    overflow-x: auto; overscroll-behavior-x: contain;
    padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1);
    scroll-padding-inline: var(--gutter);
    padding-bottom: .35rem;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* ---------- telefony i małe tablety ---------- */
@media (max-width: 700px) {
  /* ATUTY — ikona obok tekstu zamiast nad nim, pozycje rozdzielone linią */
  .trust__grid { grid-template-columns: 1fr; gap: 0; padding-block: 2.25rem; }
  .trust__item {
    display: grid; grid-template-columns: auto 1fr;
    column-gap: 1rem; row-gap: .2rem;
    padding-block: 1.15rem;
    border-top: 1px solid var(--border);
  }
  .trust__item:first-child { border-top: 0; padding-top: 0; }
  .trust__item .icon { grid-row: span 2; margin: .2rem 0 0; }
  .trust__item h3 { margin: 0; }

  /* REALIZACJE — zamiast sześciu kafelków jeden pod drugim,
     przewijany poziomo pas ze „wskakiwaniem" na kolejne zdjęcie */
  .gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: .875rem;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1);
    padding-bottom: .5rem;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; }
  .tile:hover { transform: none; box-shadow: none; }

  .swipe-hint {
    display: block; margin: -.5rem 0 1rem;
    font-size: .8125rem; font-weight: 600; color: var(--text-muted); text-align: center;
  }

  /* przycisk zamknięcia nad podglądem mógłby wyjść poza ekran — kładziemy go na zdjęciu */
  .lightbox__close { top: 8px; right: 8px; background: rgba(11, 13, 17, .65); }
}

@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }

  /* górny pasek w jednym rzędzie — telefon jest i tak w dolnym pasku akcji */
  .topbar__inner { justify-content: center; }
  .topbar__contact { display: none; }

  /* stopka: krótkie listy obok siebie, kontakt na całej szerokości */
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .footer__brand, .footer__col--wide { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: .5rem; }
  /* liczby w jednym rzędzie, żeby hero mieściło się w ekranie telefonu */
  .hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .hero__stats strong { font-size: 1.5rem; }
  .hero__stats span { font-size: .75rem; line-height: 1.35; }
  .about__badge { right: 0; bottom: -14px; padding: .75rem 1rem; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1; }
}

/* na telefonach druga linia nagłówka może się złamać — inaczej wystaje poza ekran.
   Trzy linie nagłówka + lead potrzebują też mniejszych marginesów, żeby hero
   zmieściło się nad dolnym paskiem akcji. */
@media (max-width: 440px) {
  .hero__title .hl { white-space: normal; }
  .hero__inner { padding-block: 2rem; }
}

/* ============================ DRUK ============================ */
@media print {
  .header, .topbar, .mobilebar, .hero__bg, .section__pattern, .btn, .filters { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding-block: 1.5rem; }
  .reveal { opacity: 1; transform: none; }
}
