/* =========================================================
   GRA-PA — Ocieplanie pianą PUR
   Arkusz stylów: mobile-first, breakpointy 600 / 900 / 1100 px
   ========================================================= */

:root {
  --navy: #101a44;
  --navy-2: #16225a;
  --navy-3: #1c2b6e;
  --accent: #f4a62a;
  --accent-dark: #d98c12;
  --ink: #172038;
  --muted: #5b6580;
  --line: #e2e6f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(16, 26, 68, .08);
  --shadow-lg: 0 18px 50px rgba(16, 26, 68, .16);
  --header-h: 72px;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

::selection { background: var(--accent); color: var(--navy); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--navy);
  padding: .75rem 1.25rem;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.ico { width: 1em; height: 1em; fill: currentColor; flex: 0 0 auto; }

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container--narrow { max-width: 840px; }

.section { padding: 3.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #dfe4f2; }

.section__head { max-width: 720px; margin: 0 auto 2.25rem; text-align: center; }
.section__head--light h2 { color: var(--white); }
.section__lead { color: var(--muted); font-size: 1.0625rem; margin: 0; }
.section--dark .section__lead { color: #b9c2dc; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 .5rem;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--accent); }

/* ---------------------------------------------------------
   Przyciski
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
  text-align: center;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--accent { background: var(--accent); color: var(--navy); box-shadow: 0 8px 20px rgba(244, 166, 42, .35); }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }

.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: #fff; color: var(--navy); }

.btn--outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn--outline:hover { background: #fff; color: var(--navy); }

.btn--phone { background: var(--navy); color: #fff; }
.btn--phone:hover { background: var(--navy-3); }

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

/* ---------------------------------------------------------
   Topbar
   --------------------------------------------------------- */
.topbar {
  background: var(--navy);
  color: #cfd6ea;
  font-size: .8125rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.5rem;
  padding: .5rem 1.25rem;
  justify-content: center;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
}
a.topbar__item:hover { color: var(--accent); }
.topbar__item--hours { display: none; }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Uwaga: bez backdrop-filter — tworzyłby blok zawierający
     dla position:fixed i psuł wysuwane menu mobilne. */
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-stuck { box-shadow: 0 6px 20px rgba(16, 26, 68, .1); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .65rem; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 8px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--navy);
}
.brand__text small { font-size: .6875rem; color: var(--muted); letter-spacing: .04em; }

.header__quote { display: none; }

/* burger */
.burger {
  position: relative;
  z-index: 130; /* nad wysuniętym panelem menu, żeby "X" był widoczny */
  width: 46px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  background: var(--navy);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* nawigacja — mobile: panel wysuwany */
.nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 86vw);
  background: var(--navy);
  padding: 5.5rem 1.5rem 2rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s;
  overflow-y: auto;
  z-index: 120;
  box-shadow: -10px 0 40px rgba(0, 0, 0, .3);
}
.nav.is-open { transform: translateX(0); visibility: visible; }
.nav__list { display: flex; flex-direction: column; gap: .25rem; }
.nav__list a {
  display: block;
  padding: .8rem .25rem;
  color: #e6eaf6;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--accent); }
.nav__phone { margin-top: 1.5rem; width: 100%; background: var(--accent); color: var(--navy); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 32, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  /* poniżej kontekstu nakładania nagłówka (z-index 100), w którym
     znajduje się panel nawigacji — dzięki temu menu jest nad tłem */
  z-index: 99;
}
.nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(244, 166, 42, .16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0c1436 100%);
  color: #e8ecf8;
  overflow: hidden;
  padding: 2.5rem 0 3rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .35;
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: 2.25rem; }
.hero h1 { color: #fff; margin-bottom: .75rem; }
.hero h1 .hl { color: var(--accent); display: block; }

.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.hero__chips span {
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .4rem .85rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
}
.hero__lead { color: #c6cfe6; font-size: 1.0625rem; max-width: 40rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1.5rem; }
.hero__actions .btn { flex: 1 1 auto; min-width: 220px; }

.hero__badges { display: grid; gap: .5rem; }
.hero__badges li {
  position: relative;
  padding-left: 1.75rem;
  font-size: .9375rem;
  color: #cdd6ec;
}
.hero__badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 1.1rem;
  height: .6rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.hero__media { position: relative; }
.hero__frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .14);
  aspect-ratio: 3 / 2;
  background: #0d1638;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.hero__stat {
  position: absolute;
  left: 1rem;
  bottom: -1rem;
  background: var(--accent);
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.hero__stat strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; }
.hero__stat span { font-size: .75rem; font-weight: 600; }

/* ---------------------------------------------------------
   Pasek statystyk
   --------------------------------------------------------- */
.stats { background: var(--navy-2); color: #fff; padding: 1.75rem 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  color: var(--accent);
}
.stat span { font-size: .8125rem; color: #bcc6e0; }

/* ---------------------------------------------------------
   Karty usług
   --------------------------------------------------------- */
.cards { display: grid; gap: 1.25rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(244, 166, 42, .6);
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; fill: var(--accent); }
.card h3 { color: var(--navy); }
.card > p { color: var(--muted); font-size: .9375rem; }

.card__list { margin: .25rem 0 1.25rem; display: grid; gap: .4rem; }
.card__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .875rem;
  color: var(--ink);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.card__link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .875rem;
  color: var(--navy);
  border-top: 1px solid var(--line);
  padding-top: .9rem;
}
.card__link:hover { color: var(--accent-dark); }

/* ---------------------------------------------------------
   Sekcja dzielona (dlaczego PUR)
   --------------------------------------------------------- */
.split { display: grid; gap: 2rem; align-items: start; }
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--navy);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__content .section__lead { margin-bottom: 1.75rem; }

.benefits { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.benefits li { display: flex; gap: 1rem; }
.benefits__num {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-dark);
  background: rgba(244, 166, 42, .14);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.benefits h3 { color: var(--navy); margin-bottom: .2rem; font-size: 1.0625rem; }
.benefits p { color: var(--muted); font-size: .9375rem; margin: 0; }

/* ---------------------------------------------------------
   Rodzaje piany
   --------------------------------------------------------- */
.foam { display: grid; gap: 1.25rem; }
.foam__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--white);
  border-top: 5px solid var(--navy);
}
.foam__card--accent { border-top-color: var(--accent); }
.foam__card h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: .15rem; }
.foam__tag {
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}
.foam__card ul { display: grid; gap: .6rem; }
.foam__card li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .9375rem;
  color: var(--ink);
}
.foam__card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: .9rem;
  height: .5rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.note {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  background: rgba(244, 166, 42, .12);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
}
.note .ico { font-size: 1.5rem; color: var(--accent-dark); margin-top: .1rem; }
.note p { margin: 0; font-size: .9375rem; }
.note a { color: var(--navy); font-weight: 700; text-decoration: underline; }

/* ---------------------------------------------------------
   Proces
   --------------------------------------------------------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
.step {
  position: relative;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step__num {
  position: absolute;
  top: -14px;
  left: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
}
.step h3 { color: #fff; margin-top: .85rem; }
.step p { color: #b9c2dc; font-size: .9375rem; margin: 0; }

/* ---------------------------------------------------------
   Galeria
   --------------------------------------------------------- */
.gallery { display: grid; gap: 1rem; }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); position: relative; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem .9rem .7rem;
  background: linear-gradient(to top, rgba(10, 16, 44, .92), transparent);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
}

/* ---------------------------------------------------------
   CTA / obszar działania
   --------------------------------------------------------- */
.cta {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #dfe4f2;
  padding: 3rem 0;
}
.cta__inner { display: grid; gap: 1.75rem; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #b9c2dc; font-size: .9375rem; margin: 0; }
.cta__actions { display: grid; gap: .75rem; }

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq { display: grid; gap: .75rem; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq__item[open] { border-color: rgba(244, 166, 42, .7); box-shadow: var(--shadow); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.15rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 1.45rem;
  width: .55rem;
  height: .55rem;
  border-right: 2.5px solid var(--accent-dark);
  border-bottom: 2.5px solid var(--accent-dark);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__body { padding: 0 1.15rem 1.15rem; }
.faq__body p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ---------------------------------------------------------
   Kontakt + formularz
   --------------------------------------------------------- */
.contact { display: grid; gap: 1.5rem; }

.contact__info { display: grid; gap: .75rem; align-content: start; }
.contact__box {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  transition: border-color .2s ease, transform .2s ease;
}
a.contact__box:hover { border-color: var(--accent); transform: translateX(3px); }
.contact__ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.contact__ico svg { width: 20px; height: 20px; fill: var(--accent); }
.contact__txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.contact__txt small { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact__txt strong { font-family: var(--font-head); font-size: 1rem; color: var(--navy); word-break: break-word; }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.form__row { display: grid; gap: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field > span {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .35rem;
}
.field b { color: #d64545; }

.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: .8rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 166, 42, .2);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d64545; }

.field__err {
  display: none;
  font-style: normal;
  font-size: .8125rem;
  color: #d64545;
  margin-top: .3rem;
}
.field.has-error .field__err { display: block; }
.field__err--check { margin: -.5rem 0 1rem; }
.field__err--check.is-visible { display: block; }

.check {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  font-size: .875rem;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  margin: .15rem 0 0;
  accent-color: var(--accent-dark);
  flex: 0 0 auto;
}
.check.has-error span { color: #d64545; }

.form__note { font-size: .75rem; color: var(--muted); margin: .9rem 0 0; }
.form__status { margin: .75rem 0 0; font-size: .9375rem; font-weight: 600; display: none; }
.form__status.is-ok { display: block; color: #1c7c4a; }
.form__status.is-err { display: block; color: #d64545; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer { background: #0c1436; color: #a9b3d0; padding: 2.75rem 0 0; font-size: .9375rem; }
.footer__grid { display: grid; gap: 2rem; padding-bottom: 2rem; }
.brand--footer { margin: 0 0 1rem; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { color: #8f9bbd; }
.footer__col h3 {
  color: #fff;
  font-size: .9375rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .9rem;
}
.footer__col ul { display: grid; gap: .5rem; }
.footer__col a:hover { color: var(--accent); }
.footer__contact a { color: #fff; font-weight: 600; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: center;
  text-align: center;
  font-size: .8125rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom a:hover { color: var(--accent); }

/* podpis autora strony */
.footer__credit { color: #8f9bbd; }
.footer__credit a {
  color: #dfe4f2;
  font-weight: 600;
  border-bottom: 1px solid rgba(244, 166, 42, .5);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.footer__credit a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------
   Mobilny pasek akcji + przycisk "do góry"
   --------------------------------------------------------- */
.mobilebar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  gap: 1px;
  background: rgba(16, 26, 68, .96);
  padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .25);
}
.mobilebar__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .75rem .5rem;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .875rem;
}
.mobilebar__btn svg { width: 18px; height: 18px; fill: currentColor; }
.mobilebar__btn--call { background: #fff; color: var(--navy); }
.mobilebar__btn--quote { background: var(--accent); color: var(--navy); }
body { padding-bottom: 64px; }

.totop {
  position: fixed;
  right: 1rem;
  bottom: 5.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 95;
}
.totop.is-visible { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--accent); color: var(--navy); transform: translateY(-3px); }

/* ---------------------------------------------------------
   Placeholder dla brakujących zdjęć
   --------------------------------------------------------- */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.25rem;
  color: #93a0c4;
  font-size: .8125rem;
  font-weight: 600;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #16225a, #0e1740);
}
.gallery__item .img-placeholder { aspect-ratio: 4 / 3; min-height: 0; }

/* ---------------------------------------------------------
   Animacje wejścia
   --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =========================================================
   BREAKPOINT: 600 px — większe telefony / małe tablety
   ========================================================= */
@media (min-width: 600px) {
  .section { padding: 4.5rem 0; }
  .topbar__item--hours { display: inline-flex; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .foam { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .form { padding: 2rem; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .cta__actions { grid-auto-flow: column; justify-content: start; }
  .hero__badges { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   BREAKPOINT: 900 px — tablety / małe laptopy
   ========================================================= */
@media (min-width: 900px) {
  .header__quote { display: inline-flex; }
  .hero { padding: 3.5rem 0 4rem; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; }
  .hero h1 .hl { display: inline; white-space: nowrap; }
  .split { grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .contact { grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: start; }
  .cta__inner { grid-template-columns: 1.4fr auto; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .hero__badges { grid-template-columns: repeat(3, 1fr); }

  /* pasek mobilny znika na większych ekranach */
  .mobilebar { display: none; }
  body { padding-bottom: 0; }
  .totop { bottom: 1.5rem; }
}

/* =========================================================
   BREAKPOINT: 1100 px — desktop: menu poziome
   ========================================================= */
@media (min-width: 1100px) {
  .section { padding: 5.5rem 0; }
  .burger { display: none; }
  .nav-backdrop { display: none; }

  .nav {
    position: static;
    width: auto;
    background: none;
    padding: 0;
    transform: none;
    visibility: visible;
    box-shadow: none;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  .nav__list { flex-direction: row; gap: .25rem; }
  .nav__list a {
    padding: .5rem .7rem;
    color: var(--navy);
    font-size: .9375rem;
    font-weight: 600;
    border-bottom: 0;
    border-radius: 8px;
    position: relative;
  }
  .nav__list a::after {
    content: "";
    position: absolute;
    left: .7rem;
    right: .7rem;
    bottom: .25rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .2s ease;
  }
  .nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
  .nav__list a.is-active { color: var(--navy); }
  .nav__phone { display: none; }

  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
  .hero__stat { left: auto; right: 1.5rem; bottom: -1.25rem; padding: .85rem 1.25rem; }
  .hero__stat strong { font-size: 1.5rem; }
}

/* =========================================================
   Wydruk
   ========================================================= */
@media print {
  .topbar, .header, .mobilebar, .totop, .hero__actions, .form, .cta__actions { display: none !important; }
  body { color: #000; padding: 0; }
  .hero, .section--dark, .cta, .footer, .stats { background: #fff !important; color: #000 !important; }
  .hero h1, h2, h3 { color: #000 !important; }
  .faq__item[open] .faq__body, .faq__body { display: block !important; }
}
