@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --brand-red: #f33c40;
  --brand-ink: #181719;
  --surface-white: #ffffff;
  --surface-paper: #f6f4f0;
  --surface-red-tint: #ffe9e8;
  --text-muted: #4c484b;
  --text-on-dark-muted: #d8d5d2;
  --line-subtle: #c9c5be;
  --line-soft: #dcd9d6;
  --line-dark: #343236;
  --control-border: #747073;
  --red-accessible: #aa2027;
  --error-ink: #982328;
  --error-bg: #fff3f3;
  --max: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-offset: 124px;
  font: 400 16px/1.6 Manrope, Arial, system-ui, -apple-system, sans-serif;
  color: var(--brand-ink);
  background: var(--surface-white);
  scroll-behavior: smooth;
}

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

[hidden] {
  display: none !important;
}

body, h1, h2, h3, p, figure, dl, dd, ol, ul, fieldset, legend, blockquote {
  margin: 0;
}

fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.24em;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button, summary {
  cursor: pointer;
}

::selection {
  background: var(--surface-red-tint);
  color: var(--brand-ink);
}

:focus-visible {
  outline: 3px solid var(--red-accessible);
  outline-offset: 3px;
}

.about-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--brand-red);
}

.process-band :focus-visible {
  outline-color: var(--brand-ink);
}

main:focus,
section[tabindex="-1"]:focus,
div[tabindex="-1"]:focus {
  outline: none;
}

section[id],
#zapytanie,
#prywatnosc {
  scroll-margin-top: var(--header-offset);
}

.container {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin-inline: auto;
}

.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  vertical-align: middle;
  transition: transform 0.15s ease;
}

.icon-survey {
  display: block;
  width: 40px;
  height: 40px;
  fill: none;
}

/* Skip link */
.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 50;
  padding: 10px 18px;
  background: var(--brand-red);
  color: var(--brand-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Shared Eyebrow & Typographic accents */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.datum-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--brand-red);
}

.eyebrow-on-red {
  color: var(--brand-ink);
}

.eyebrow-on-dark {
  color: var(--text-on-dark-muted);
}

.miara-rule {
  display: inline-block;
  width: 36px;
  height: 7px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--brand-red);
  background: repeating-linear-gradient(to right, var(--brand-red) 0 1px, transparent 1px 11px);
}

/* Buttons */
.button,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--brand-ink);
  border-radius: 0;
  background: var(--surface-white);
  color: var(--brand-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button-primary {
  min-height: 52px;
  padding-inline: 24px;
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: var(--brand-ink);
}

.button-primary:hover {
  border-color: var(--brand-ink);
  background: var(--brand-ink);
  color: var(--surface-white);
}

.button-outline:hover,
.menu-toggle:hover {
  background: var(--brand-ink);
  color: var(--surface-white);
}

.button-graphite {
  min-height: 48px;
  padding-inline: 22px;
  border-color: var(--brand-ink);
  background: var(--brand-ink);
  color: var(--surface-white);
}

.button-graphite:hover {
  background: var(--surface-white);
  color: var(--brand-ink);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button:hover .icon {
  transform: translate(2px, -2px);
}

.button-graphite:hover .icon {
  transform: translateY(2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: fit-content;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.text-link:hover .icon {
  transform: translateY(2px);
}

.text-link-light {
  color: var(--surface-white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.text-link-light .icon {
  color: var(--brand-red);
}

.text-link-light:hover {
  text-decoration-color: var(--surface-white);
}

.text-link-light:hover .icon {
  transform: translate(2px, -2px);
}

/* =========================================================
   SEKCJA 0: STICKY HEADER (Biel + 4px czerwony pas marki)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-top: 4px solid var(--brand-red);
  border-bottom: 1px solid var(--brand-ink);
  background: var(--surface-white);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

/* Pole ochronne logo: x = 0,31h = 16,6 px dla 232 px -> padding 18px gwarantuje zgodność */
.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 18px 20px 18px 0;
  text-decoration: none;
}

.brand img {
  width: 232px;
  height: auto;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.8vw, 40px);
}

.navigation a:not(.button) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.navigation a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease;
}

.navigation a:not(.button):hover::after,
.navigation a:not(.button):focus-visible::after {
  transform: scaleX(1);
}

.mobile-quote-dock {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  font-size: .8125rem;
  font-weight: 700;
}

.language-switch > * {
  display: grid;
  place-items: center;
  min-width: 29px;
  min-height: 44px;
  text-decoration: none;
}

.language-switch [aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--brand-red);
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}

.language-switch a:hover {
  text-decoration: underline;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  text-decoration: underline;
  text-decoration-color: var(--red-accessible);
}

.phone-short {
  display: none;
}

.menu-close-icon,
.menu-toggle[aria-expanded="true"] .menu-open-icon {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-close-icon {
  display: inline-block;
}

/* =========================================================
   SEKCJA 1: HERO
   ========================================================= */
.hero-band {
  position: relative;
  isolation: isolate;
  background: var(--brand-ink);
  color: #fff;
}

.hero {
  display: flex;
  align-items: center;
  min-height: clamp(540px, 76vh, 760px);
  padding-block: clamp(56px, 8vw, 112px) clamp(56px, 7vw, 96px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.6vw, 5.8rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.05em;
}

.accent-dot {
  color: var(--brand-red);
}

.hero-lead {
  max-width: 46ch;
  margin-top: 24px;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.02rem, 1.32vw, 1.22rem);
  line-height: 1.54;
}

.hero-partner {
  max-width: 29rem;
  margin-top: 20px;
  font-size: .9375rem;
  line-height: 1.5;
}

.hero-content > .button {
  margin-top: 32px;
}

.hero-band :focus-visible {
  outline-color: #fff;
}

.hero-media,
.hero-media img,
.hero-media::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -1;
  overflow: hidden;
}

.hero-media img {
  object-fit: cover;
  object-position: 72% 50%;
}

.hero-media::after {
  content: "";
  background: linear-gradient(90deg, rgba(17,16,18,.92) 0%, rgba(17,16,18,.64) 38%, rgba(17,16,18,.06) 72%);
}

.survey-scale {
  position: absolute;
  inset: 0 0 0 auto;
  width: 20px;
  background:
    repeating-linear-gradient(to bottom, var(--brand-red) 0 1px, transparent 1px 52px) right / 100% 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--brand-red) 0 1px, transparent 1px 26px) right / 52% 100% no-repeat;
  pointer-events: none;
}

/* Pas z danymi firmy i partnerem */
.facts-band {
  border-block: 1px solid var(--line-soft);
  background: var(--surface-white);
}

.facts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: clamp(24px, 3vw, 46px);
  padding-block: clamp(21px, 2.25vw, 34px);
}

.facts-grid {
  display: grid;
  grid-template-columns: 1.3fr .96fr .86fr 1.15fr;
  gap: 18px;
}

.fact-cell {
  min-width: 0;
}

.fact-cell dt {
  color: var(--text-muted);
  font-size: .8125rem;
  font-weight: 550;
  line-height: 1.35;
}

.fact-cell dd {
  margin-top: .33rem;
  font-size: clamp(1rem, 1.46vw, 1.375rem);
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: -.035em;
}

.facts-partner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: clamp(16px, 2vw, 34px);
  border-left: 1px solid var(--line-soft);
  font-size: .875rem;
  line-height: 1.25;
  font-weight: 600;
}

.facts-partner img {
  width: 140px;
  height: auto;
}

.facts-partner span {
  max-width: 9ch;
}

/* =========================================================
   SEKCJA 3: ZAKRES PRAC GEODEZYJNYCH
   ========================================================= */
.services-section {
  padding-block: clamp(36px, 4vw, 64px);
  background: var(--surface-white);
}

.section-head {
  margin-bottom: clamp(16px, 1.8vw, 26px);
}

.section-head h2,
.process-band h2,
.about-band h2,
.contact-band h2 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 3.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

/* Pionowe kadry z poziomym tytułem. Liczba paneli w rzędzie zależy od szerokości ekranu. */
.service-grid {
  --panel-gap: 6px;
  --panel-height: clamp(350px, 28vw, 430px);
  --panel-motion: .42s cubic-bezier(.22,.7,.25,1);
  display: flex;
  gap: var(--panel-gap);
}

.service-row,
.service-pair {
  display: contents;
}

.service-tile {
  --inset: clamp(10px, 1.1vw, 18px);
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  flex: 1 1 0;
  min-width: 0;
  height: var(--panel-height);
  overflow: hidden;
  color: white;
  background: var(--brand-ink);
  transition: flex-grow var(--panel-motion);
}

.service-tile[open] {
  flex-grow: 3.1;
}

.service-tile summary {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  padding: var(--inset);
  list-style: none;
  cursor: pointer;
}

.service-tile summary::-webkit-details-marker {
  display: none;
}

.service-tile summary img,
.service-tile summary::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.service-tile summary img {
  z-index: -2;
  object-fit: cover;
  transition: transform var(--panel-motion);
}

.service-tile[open] summary img {
  transform: translateX(.5%) scale(1.055);
}

.service-tile summary::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, rgba(14,14,16,.48), transparent 84%),
              linear-gradient(0deg, rgba(14,14,16,.86), rgba(14,14,16,.24) 72%, transparent);
}

.service-tile summary h3 {
  min-width: 0;
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  hyphens: manual;
  overflow-wrap: anywhere;
  transition: font-size var(--panel-motion), transform var(--panel-motion);
}

@container (max-width: 150px) {
  .service-tile:not([open]) summary h3 {
    font-size: .875rem;
  }
}

.service-tile[open] summary::before {
  background: linear-gradient(0deg, rgba(14,14,16,.98), rgba(14,14,16,.84) 29%, rgba(14,14,16,.34) 57%, transparent 85%);
}

.service-tile[open] summary h3 {
  max-width: calc(100% - 5px);
  font-size: clamp(1.3rem, 2.05vw, 2rem);
  transform: translate(5px, -3px);
}

.service-toggle {
  position: absolute;
  inset: 12px 12px auto auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.82);
  background: rgba(24,23,25,.62);
  color: white;
}

.service-toggle::before,
.service-toggle::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.service-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.service-tile[open] .service-toggle {
  color: var(--brand-ink);
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.service-tile[open] .service-toggle::after {
  display: none;
}

.service-tile summary:focus-visible {
  outline: 3px solid white;
  outline-offset: -6px;
}

.service-details {
  min-height: 0;
  overflow: hidden;
  padding-inline: calc(var(--inset) + 5px) var(--inset);
}

/* Rząd z opisem unosi tytuł płynnie, w miarę odsłaniania treści. */
.service-tile::details-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows var(--panel-motion), opacity .24s ease,
              content-visibility .42s allow-discrete;
}

.service-tile[open]::details-content {
  grid-template-rows: 1fr;
  opacity: 1;
}

.service-details p {
  max-width: 44ch;
  font-size: .9375rem;
  line-height: 1.45;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 12px;
  margin-bottom: var(--inset);
  padding: 0 15px;
  color: var(--brand-ink);
  background: var(--brand-red);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.service-cta:is(:hover, :focus-visible) {
  color: var(--brand-ink);
  background: white;
}

.service-cta:focus-visible {
  outline-color: white;
}

.service-cta .icon {
  width: 16px;
  height: 16px;
}

@container (max-width: 210px) {
  .service-cta {
    gap: 6px;
    padding-inline: 10px;
  }
}

@media (min-width: 641px) and (max-width: 1150px) {
  .service-grid {
    --panel-height: clamp(304px, 39vw, 408px);
    flex-direction: column;
  }

  .service-row {
    display: flex;
    gap: var(--panel-gap);
  }
}

@media (max-width: 640px) {
  .service-grid {
    --panel-height: clamp(348px, 60vw, 372px);
    flex-direction: column;
  }

  .service-pair {
    display: flex;
    gap: var(--panel-gap);
  }

  .service-tile {
    --inset: 10px;
  }

  .service-tile[open] {
    flex-grow: 2.3;
  }

  .service-pair > .service-tile:only-child {
    height: clamp(218px, 45vw, 270px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-tile,
  .service-tile summary img,
  .service-tile summary h3,
  .service-tile::details-content {
    transition: none;
  }
}

/* =========================================================
   SEKCJA 4: PROCES (UKŁAD FIRMOWY: Grafit #181719 na #F33C40)
   ========================================================= */
.process-band {
  padding-block: clamp(52px, 5.8vw, 88px);
  background: var(--brand-red);
  color: var(--brand-ink);
}

.process-head {
  margin-bottom: clamp(30px, 3.8vw, 48px);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px clamp(20px, 2.8vw, 36px);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--brand-ink);
}

.process-step {
  position: relative;
  padding-top: 24px;
}

/* Pionowy znacznik podziałki łaty na linii głównej */
.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 12px;
  background: var(--brand-ink);
}

.step-num {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.process-step h3 {
  margin-top: 10px;
  font-size: clamp(1.2rem, 1.55vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.process-step p {
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.process-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--brand-ink);
}

.process-tip {
  max-width: 60ch;
}

.process-tip strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
}

.process-tip p {
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* =========================================================
   SEKCJA 5: O FIRMIE (Grafit #181719 + Biel #FFFFFF)
   ========================================================= */
.about-band {
  padding-block: clamp(56px, 6.5vw, 96px);
  background: var(--brand-ink);
  color: var(--surface-white);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.about-media {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2b292c;
}

.about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-scale {
  position: absolute;
  inset: 14px 14px auto auto;
  width: 24px;
  height: 24px;
  border-top: 1px solid var(--brand-red);
  border-right: 1px solid var(--brand-red);
  pointer-events: none;
}

.about-content h2 {
  margin-top: 14px;
}

.about-role {
  margin-top: 6px;
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  font-weight: 600;
}

.about-content > p:not(.eyebrow):not(.about-role) {
  max-width: 56ch;
  margin-top: 18px;
  color: var(--text-on-dark-muted);
  line-height: 1.64;
}

.about-content > p + p:not(.about-role) {
  margin-top: 12px;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 28px;
  padding-block: 20px;
  border-block: 1px solid var(--line-dark);
}

.about-metrics dt {
  color: var(--text-on-dark-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-metrics dd {
  margin-top: 5px;
  color: var(--surface-white);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.about-content .text-link-light {
  margin-top: 20px;
}

/* =========================================================
   SEKCJA 6: KONTAKT I FORMULARZ (Ciepły papier + Biała karta)
   ========================================================= */
.contact-band {
  padding-block: clamp(56px, 6.5vw, 96px);
  background: var(--surface-paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.contact-intro {
  position: sticky;
  top: var(--header-offset);
}

.contact-intro h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 20px;
  background: var(--brand-red);
}

.contact-lead {
  max-width: 42ch;
  margin-top: 20px;
  color: var(--text-muted);
  line-height: 1.58;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line-subtle);
  font-style: normal;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item .icon {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  color: var(--brand-ink);
}

.contact-phone-link {
  display: inline-block;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.contact-phone-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--red-accessible);
}

.contact-company {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-value {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

.contact-label {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.contact-brands {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}
.contact-apex {
  display: grid;
  place-items: center;
  min-height: clamp(110px, 9.5vw, 142px);
  padding: 22px;
  background: var(--brand-red);
}
.contact-apex img { display: block; width: min(52%, 205px); height: auto; }
.contact-partner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  min-height: clamp(110px, 9.5vw, 142px);
  padding: clamp(8px, .75vw, 12px) clamp(10px, 1vw, 16px);
  background: var(--surface-white);
}
.contact-partner img {
  grid-area: 2 / 1;
  width: min(92%, 185px);
  height: auto;
}
.contact-partner h3 {
  grid-area: 1 / 1;
  place-self: start end;
  text-align: right;
  font-size: .875rem;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .contact-brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-apex,
  .contact-partner {
    aspect-ratio: 1;
    min-height: 0;
    padding: clamp(10px, 3vw, 22px);
  }

  .contact-apex img {
    width: min(90%, 205px);
  }
}

/* Biała karta formularza */
.inquiry-panel {
  min-width: 0;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line-subtle);
  border-top: 4px solid var(--brand-red);
  background: var(--surface-white);
}

.form-heading h3 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.form-subtitle {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.preselect-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 10px 14px;
  border-left: 3px solid var(--brand-red);
  background: var(--surface-red-tint);
  color: var(--brand-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.preselect-banner .icon {
  color: var(--red-accessible);
}

.form-group {
  margin-top: 24px;
}

.form-group-divided {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.form-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group-title span {
  color: var(--brand-ink);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}

.field :is(input, select, textarea):focus {
  outline: none;
}

.field:focus-within > label,
.inquiry-panel:focus-visible #form-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.req {
  color: var(--red-accessible);
}

.field label small {
  padding-left: 3px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--control-border);
  border-radius: 0;
  background: var(--surface-white);
  color: var(--brand-ink);
  font-size: 0.9375rem;
  line-height: 1.45;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23181719' stroke-width='2' stroke-linecap='square' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

.field :is(input, select, textarea):where(:not(:disabled, [aria-invalid="true"])):hover {
  border-color: var(--brand-ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.field textarea {
  resize: vertical;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error-ink);
  background-color: var(--error-bg);
}

.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--control-border);
  background: var(--surface-white);
  font-size: 0.9rem;
}

.file-picker:hover {
  border-color: var(--brand-ink);
}

.file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-picker:has(input[aria-invalid="true"]) {
  border-color: var(--error-ink);
  background: var(--error-bg);
}

.file-picker-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding-right: 12px;
  border-right: 1px solid var(--line-subtle);
  font-weight: 700;
}

.file-picker-state {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-hint,
.required-note {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.field-error {
  color: var(--error-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}

.file-list {
  margin: 4px 0 0;
  padding-left: 20px;
  color: var(--brand-ink);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.clear-files {
  justify-self: start;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--red-accessible);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form-notice {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-check {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  align-items: baseline;
  gap: .75rem;
  min-height: 1.75rem;
  color: var(--brand-ink);
}

.form-check input {
  align-self: start;
  width: 1.25rem;
  height: 1.25rem;
  margin: .05rem 0 0;
  accent-color: var(--red-accessible);
  cursor: pointer;
}

.form-check label {
  cursor: pointer;
}

.form-notice a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form-check .field-error {
  margin-top: .25rem;
}

.form-heading .required-note {
  margin-top: 8px;
}

.quote-note {
  max-width: 32ch;
  color: var(--brand-ink);
  font-size: 0.875rem;
  line-height: 1.45;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: 24px;
}

.form-alert,
.form-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
}

.form-alert,
.form-status[data-state="error"] {
  border: 1px solid var(--error-ink);
  background: var(--error-bg);
  color: var(--error-ink);
}

.form-status[data-state="success"] {
  border: 1px solid var(--brand-ink);
  background: var(--surface-paper);
  color: var(--brand-ink);
}

.form-status[data-state="pending"] {
  border: 1px solid var(--line-subtle);
  background: var(--surface-paper);
  color: var(--text-muted);
}

.form-status .icon {
  display: none;
  margin-top: 2px;
}

.form-status[data-state="success"] .status-success,
.form-status[data-state="error"] .status-error {
  display: inline-block;
}

.form-alert .icon {
  margin-top: 2px;
}

/* =========================================================
   SEKCJA 7: STOPKA (Grafit #181719 + górna linia 2px #F33C40)
   ========================================================= */
.site-footer {
  border-top: 2px solid var(--brand-red);
  background: var(--brand-ink);
  color: var(--surface-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px clamp(24px, 4vw, 64px);
  padding-block: 48px 36px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 140px;
  height: auto;
}

.footer-tagline {
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-desc {
  max-width: 34ch;
  margin-top: 8px;
  color: var(--text-on-dark-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.footer-col-title {
  margin-bottom: 14px;
  color: var(--text-on-dark-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  padding-block: 2px;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brand-red);
}

.footer-company p {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-company .footer-company-name {
  color: var(--surface-white);
  font-weight: 700;
}

.footer-phone {
  color: var(--surface-white);
  font-weight: 700;
  text-decoration: none;
}

.footer-phone:hover {
  text-decoration: underline;
  text-decoration-color: var(--brand-red);
}

.footer-ids {
  margin-top: 6px;
  font-size: 0.8125rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px 24px;
  border-top: 1px solid var(--line-dark);
}

.footer-copy {
  color: var(--text-on-dark-muted);
  font-size: 0.8125rem;
}

.footer-up {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-up .icon {
  color: var(--brand-red);
}

.footer-up:hover {
  text-decoration: underline;
}

.footer-up:hover .icon {
  transform: translateY(-2px);
}

/* =========================================================
   RESPONSYWNOŚĆ (1120px / 1024px / 768px / 520px)
   ========================================================= */
@media (max-width: 1120px) {
  .header-phone {
    display: none;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    gap: 16px;
  }

  .navigation {
    gap: 18px;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 32px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-intro {
    position: static;
  }
}

@media (max-width: 860px) {
  .brand img {
    width: 230px;
  }

  .navigation {
    gap: 14px;
  }

  .navigation a:not(.button) {
    font-size: 0.875rem;
  }

  .header-cta {
    padding-inline: 14px;
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-offset: 84px;
    --quote-space: calc(3.875rem + env(safe-area-inset-bottom, 0px));
  }

  .header-cta,
  .mobile-quote-ready main a[href="#zapytanie"] {
    display: none;
  }

  /* Oddzielny pas na przycisk pozwala przewijać zdjęcia, linki i stopkę ponad nim. */
  .mobile-quote-ready .page-scroll {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-padding-bottom: 8px;
  }

  .mobile-quote-dock:not([hidden]) ~ .page-scroll {
    bottom: var(--quote-space);
  }

  .mobile-quote-dock:not([hidden]) {
    position: fixed;
    z-index: 20;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: var(--quote-space);
    padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) var(--gutter);
    border-top: 1px solid var(--line-soft);
    background: var(--surface-white);
  }

  .mobile-quote {
    min-height: 44px;
    padding: 8px 16px;
    box-shadow: 2px 2px 0 var(--brand-ink);
  }

  .mobile-quote-ready .service-details p {
    padding-bottom: var(--inset);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0 12px;
  }

  /* Pole ochronne dla APEX bez dopisku (118px -> x = 8,4px; padding 12px) */
  .brand {
    padding: 14px 10px 14px 0;
  }

  .brand img {
    width: 118px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-phone {
    display: inline-flex;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid var(--brand-ink);
    background: var(--surface-white);
    font-size: 0.85rem;
  }

  .phone-number {
    display: none;
  }

  .phone-short {
    display: inline;
  }

  .menu-toggle {
    min-height: 44px;
    padding: 8px 11px;
    font-size: 0.85rem;
  }

  .navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 18px;
    border-top: 1px solid var(--line-soft);
  }

  .navigation a:not(.button) {
    padding: 6px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .navigation a:not(.button)::after {
    display: none;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .about-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 0;
  }

  .hero-media img {
    object-position: 76% 50%;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(17,16,18,.55), rgba(17,16,18,.9));
  }
}

@media (700px < width <= 1400px) {
  .facts-band {
    border-top: 2px solid var(--brand-red);
  }

  .facts-layout {
    grid-template-columns: minmax(0, 1fr) clamp(10.5rem, 19%, 14rem);
    gap: clamp(20px, 2.5vw, 36px);
    padding-block: 18px;
  }

  .facts-partner {
    align-self: stretch;
    flex-direction: column-reverse;
    justify-content: center;
    gap: 2px;
    padding-left: clamp(14px, 2vw, 28px);
    text-align: center;
  }

  .facts-partner span {
    max-width: none;
    color: var(--text-muted);
    font-weight: 550;
  }
}

@media (700px < width <= 1050px) {
  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
  }

  .fact-cell:nth-child(n + 3) {
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 700px) {
  .facts-band {
    border-top: 2px solid var(--brand-red);
  }

  .facts-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 4px;
  }

  .facts-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .fact-cell,
  .facts-partner {
    display: grid;
    grid-template-columns: min(42%, 9rem) minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
  }

  .fact-cell {
    padding-block: 11px;
    border-bottom: 1px solid var(--line-soft);
  }

  .fact-cell dd {
    margin: 0;
    text-align: right;
  }

  .facts-partner {
    justify-self: stretch;
    padding-block: 4px;
    padding-left: 0;
    border-left: 0;
  }

  .facts-partner span {
    grid-area: 1 / 1;
    max-width: none;
    color: var(--text-muted);
    font-size: .8125rem;
    font-weight: 550;
  }

  .facts-partner img {
    grid-area: 1 / 2;
    justify-self: end;
    width: 120px;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .hero-partner {
    font-size: .875rem;
    line-height: 1.45;
  }

  .hero-content > .button {
    width: 100%;
  }

  .form-grid,
  .about-metrics,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process-footer .button {
    width: 100%;
  }

  .field input:not([type="checkbox"]),
  .field select,
  .field textarea {
    font-size: 1rem;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .submit {
    width: 100%;
  }

  .quote-note {
    max-width: none;
  }


}

@media (max-width: 430px) {
  .brand img {
    width: 114px;
  }

  .header-phone .phone-short {
    display: none;
  }

  .header-phone {
    width: 44px;
    padding: 8px;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .header-inner { column-gap: 8px; }
  .header-actions { gap: 4px; }
  .menu-toggle > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root,
  .mobile-quote-ready .page-scroll {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
  }
}

/* =========================================================
   REDESIGN v2 - nakładka na bazowy arkusz (ładuje się ostatnia)
   Hero pełnoekranowe, usługi jako rejestr, podziałka na procesie
   ========================================================= */
.eyebrow,.about-metrics dt,.footer-col-title{text-transform:none;letter-spacing:0;font-size:.8125rem}

/* Header */
@media (min-width:769px){
  :root{--header-offset:92px}
  .brand{padding:14px 16px 14px 0}
  .brand img{width:192px}
}
.site-header{border-bottom-color:var(--line-soft)}

/* Nagłówki sekcji */
.section-head h2,.process-band h2,.about-band h2,.contact-band h2{margin-top:0;font-size:clamp(2rem,4.2vw,3.6rem);line-height:1.04;letter-spacing:-.045em}
/* Proces: podziałka łaty na linii głównej */
.process-band{padding-block:clamp(64px,7vw,104px)}
.process-steps{position:relative;border-top:2px solid var(--brand-ink)}
.process-steps::before{content:"";position:absolute;inset:0 0 auto 0;height:9px;background:repeating-linear-gradient(90deg,var(--brand-ink) 0 1px,transparent 1px 10px)}
.process-step{padding-top:42px}
.process-step::before{width:3px;height:26px}
.step-num{display:block;font-size:clamp(2.4rem,4vw,3.6rem);line-height:1;letter-spacing:-.04em}
.process-step h3{margin-top:14px}

@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 0;
    border-left: 2px solid currentColor;
  }

  .process-steps::before {
    inset: 0 auto 0 0;
    width: 12px;
    height: auto;
    background:
      repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 40px) left / 12px 100% no-repeat,
      repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 8px) left / 6px 100% no-repeat;
  }

  .process-steps > .process-step {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 9px 12px;
    padding: 3px 0 34px clamp(27px, 7vw, 40px);
    border: 0;
  }

  .process-step:last-child { padding-bottom: 4px; }
  .process-step::before { top: 18px; width: 19px; height: 3px; }
  .process-step .step-num { font-size: clamp(1.75rem, 6vw, 2.1rem); }
  .process-step h3, .process-step p { margin: 0; }
  .process-step p { grid-column: 1 / -1; max-width: 60ch; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .process-steps > .process-step {
    grid-template-columns: 2.75rem minmax(0, 1fr) minmax(0, 1.8fr);
    align-items: baseline;
    column-gap: clamp(16px, 2.5vw, 26px);
  }

  .process-step p { grid-column: 3; }
  .process-tip { flex: 1; }
}

@media screen and (max-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .can-reveal-steps .step-revealed > * {
    transition: opacity .38s ease-out, transform .38s ease-out;
  }

  .can-reveal-steps .process-step:not(.step-revealed) > * {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* O firmie */
.about-layout{align-items:stretch}
.about-media img{filter:none}
.about-content{align-self:center}
@media (min-width:769px){.about-media{aspect-ratio:auto;min-height:440px}}
.about-metrics dd{font-size:1.05rem}

/* Kontakt i formularz */
.contact-intro h2::after{width:56px;height:5px}
.form-group-title{gap:10px;font-size:1.0625rem;letter-spacing:-.01em;text-transform:none;color:var(--brand-ink)}
.form-group-title span{display:inline-grid;place-items:center;width:28px;height:28px;background:var(--brand-ink);color:#fff;font-size:.8125rem}
.field input:not([type="checkbox"]),.field select,.field textarea{min-height:50px}
