/* Czcionka jest częścią projektu — strona nie pobiera jej z zewnętrznego serwera. */
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

/* ===== 01. KOLORY I GŁÓWNE USTAWIENIA =====
   Zmiana wartości w tym miejscu wpływa na wygląd całej strony. */
:root {
  --color-ivory: #f5f1e8;
  --color-ivory-deep: #e8e0d2;
  --color-gold: #c6a15b;
  --color-gold-light: #dfc58e;
  --color-gold-ink: #765a24;
  --color-charcoal: #15191b;
  --color-charcoal-soft: #202628;
  --color-white: #fffdf8;
  --color-muted: #5f6462;
  --container-width: 1180px;
  --header-height: 82px;
}

/* ===== 02. PODSTAWOWE ZASADY DLA CAŁEJ STRONY ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-charcoal);
  background: var(--color-ivory);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

/* Główny ogranicznik szerokości treści — używany w każdej sekcji. */
.container {
  width: min(100% - 48px, var(--container-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Link pojawia się dopiero po użyciu klawisza Tab i omija stałe menu. */
.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  color: var(--color-charcoal);
  background: var(--color-gold-light);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(calc(-100% - 20px));
  transition: transform 160ms ease;
}

.skip-link:focus {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
  transform: translateY(0);
}

/* ===== 03. STAŁE MENU ===== */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  color: var(--color-white);
  border-bottom: 1px solid rgb(255 255 255 / 16%);
  background: linear-gradient(to bottom, rgb(8 11 12 / 54%), transparent);
  transition: background-color 220ms ease, backdrop-filter 220ms ease, height 220ms ease;
}

.site-header.is-scrolled,
.site-header.menu-visible {
  height: 70px;
  background: rgb(16 20 21 / 94%);
  backdrop-filter: blur(14px);
}

.header-content {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  text-transform: uppercase;
}

.header-brand-main {
  color: var(--color-gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: 0.11em;
}

.header-brand-detail {
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.9vw, 28px);
}

.site-nav a {
  position: relative;
  color: rgb(255 253 248 / 84%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.site-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--color-gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--color-white);
}

.site-nav a:not(.nav-contact):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Główny przycisk w menu — złote wypełnienie od razu prowadzi wzrok do wyceny. */
.site-nav .nav-contact {
  padding: 11px 17px;
  color: var(--color-charcoal);
  border: 1px solid var(--color-gold);
  border-radius: 2px;
  background: var(--color-gold);
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  font-weight: 800;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.site-nav .nav-contact:hover {
  color: var(--color-charcoal);
  border-color: var(--color-gold-light);
  background: var(--color-gold-light);
  box-shadow: 0 10px 28px rgb(0 0 0 / 26%);
  transform: translateY(-1px);
}

.site-nav .nav-contact:active {
  transform: translateY(0);
}

/* Ikony są gotowe na docelowe odnośniki, ale pozostają nieaktywne do czasu ich otrzymania. */
.nav-socials {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-social-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  filter: drop-shadow(0 3px 8px rgb(0 0 0 / 24%));
}

.nav-social-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-social-google {
  padding: 7px;
  background: var(--color-white);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  color: var(--color-white);
  background: transparent;
  cursor: pointer;
}

.menu-toggle-line {
  display: block;
  width: 25px;
  height: 1px;
  margin: 7px auto;
  background: currentColor;
  transition: transform 200ms ease;
}

/* ===== 04. EKRAN OTWIERAJĄCY (HERO) ===== */
.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  color: var(--color-white);
  background-color: var(--color-charcoal);
  background-image: url("assets/images/hero-salon.jpg");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(9 12 13 / 36%), rgb(9 12 13 / 72%)),
    linear-gradient(to right, rgb(9 12 13 / 30%), transparent 48%, rgb(9 12 13 / 30%));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: calc(var(--header-height) + 44px) 0 88px;
  text-align: center;
}

.hero-logo {
  width: min(72vw, 420px);
  margin-bottom: clamp(14px, 3vh, 26px);
  filter: drop-shadow(0 10px 28px rgb(0 0 0 / 28%));
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-description {
  max-width: 730px;
  margin-bottom: 34px;
  color: rgb(255 253 248 / 84%);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button-gold {
  color: var(--color-charcoal);
  background: var(--color-gold);
}

.button-gold:hover {
  background: var(--color-gold-light);
}

.button-ghost {
  color: var(--color-white);
  border-color: rgb(255 255 255 / 58%);
  background: rgb(255 255 255 / 4%);
}

.button-ghost:hover {
  border-color: var(--color-white);
  background: rgb(255 255 255 / 10%);
}

/* ===== 05. WSPÓLNE STYLE SEKCJI ===== */
.section {
  padding-block: clamp(82px, 11vw, 150px);
  scroll-margin-top: 68px;
}

.section-light {
  background: var(--color-ivory);
}

.section-dark {
  color: var(--color-white);
  background: var(--color-charcoal);
}

.section-label,
.card-kicker {
  color: var(--color-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Ciemniejsze złoto zachowuje kontrast drobnego tekstu na jasnych tłach. */
.section-light .section-label,
.section-light .card-kicker,
.area-section .section-label,
.area-section .card-kicker,
.process-section .section-label,
.process-section .card-kicker,
.process-section .process-journey-number,
.section-light .project-instruction-icon,
.area-section .area-list-icon {
  color: var(--color-gold-ink);
}

.section h2 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* ===== 06. O NAS I DOŚWIADCZENIE ===== */
.about-layout {
  display: grid;
  gap: clamp(54px, 7vw, 84px);
}

.section-lead {
  max-width: 760px;
  margin-bottom: 52px;
  color: var(--color-muted);
  font-size: clamp(17px, 2vw, 20px);
}

.about-main {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
  column-gap: clamp(48px, 8vw, 110px);
}

.about-main .section-label {
  grid-column: 1 / -1;
}

.about-main h2 {
  max-width: 780px;
  margin: 14px 0 0;
  font-size: clamp(40px, 5.1vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.about-main > p:last-child {
  max-width: 510px;
  margin-bottom: 7px;
  color: var(--color-muted);
  font-size: clamp(17px, 1.8vw, 20px);
}

.about-main strong,
.about-strip > p strong {
  color: var(--color-charcoal);
  font-weight: 700;
}

.about-strip {
  display: grid;
  padding: 38px 0;
  align-items: center;
  border-top: 1px solid #c9bfaf;
  border-bottom: 1px solid #c9bfaf;
  grid-template-columns: minmax(490px, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(40px, 7vw, 90px);
}

.about-transfer {
  display: flex;
  min-width: 0;
  margin: 0;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.2vw, 28px);
}

.about-market {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.about-market-origin {
  align-items: center;
  text-align: center;
}

.about-flags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.about-market img {
  border: 1px solid rgb(21 25 27 / 13%);
  box-shadow: 0 5px 12px rgb(0 0 0 / 15%);
}

.about-market > span {
  color: var(--color-charcoal);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.about-market-poland {
  align-items: center;
}

.about-arrow {
  display: grid;
  min-width: 96px;
  flex: 1 1 132px;
  color: var(--color-gold-ink);
  place-items: center;
}

.about-arrow span {
  margin-bottom: 4px;
  color: var(--color-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.about-arrow svg {
  display: block;
  width: 100%;
  height: 28px;
  overflow: visible;
}

.about-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.about-strip > p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--color-muted);
}

.about-strip > p strong {
  box-shadow: inset 0 -0.3em rgb(198 161 91 / 22%);
}

/* ===== 07. ZAKRES PRAC — DOM RYSOWANY PODCZAS PRZEWIJANIA ===== */
.work-story {
  --work-electric: #f2b94b;
  --work-plumbing: #55b8dc;
  --work-plumbing-hot: #8ad3e8;
  --work-interior: var(--color-gold-light);
  position: relative;
  height: 600svh;
  color: var(--color-white);
  background:
    radial-gradient(circle at 44% 40%, rgb(198 161 91 / 8%), transparent 32%),
    var(--color-charcoal);
  /* Wewnętrzny odstęp sceny uwzględnia stałe menu, więc kotwica zaczyna się od góry ekranu. */
  scroll-margin-top: 0;
}

/* Scena pozostaje na ekranie, a wysokość .work-story dostarcza miejsca na przewijanie. */
.work-stage {
  position: sticky;
  top: 0;
  display: grid;
  width: min(100% - 72px, 1380px);
  height: 100svh;
  margin-inline: auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(16px, 2.6vh, 28px);
  padding: 96px 0 24px;
  overflow: hidden;
}

.work-stage-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.work-stage-heading > div:first-child {
  min-width: 0;
}

.work-stage-heading .section-label {
  margin-bottom: 8px;
}

.work-stage-heading h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.work-counter {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 9px;
  margin: 0;
  color: rgb(255 253 248 / 36%);
  font-size: 15px;
  white-space: nowrap;
}

.work-counter span:first-child {
  color: var(--color-gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 54px);
}

.work-stage-tools {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 5px;
}

.work-skip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: rgb(255 253 248 / 60%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms ease;
}

.work-skip:hover {
  color: var(--color-gold-light);
}

.work-skip span {
  color: var(--color-gold-light);
  font-size: 14px;
}

.work-layout {
  display: grid;
  min-height: 0;
  align-items: center;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.72fr);
  gap: clamp(32px, 6vw, 92px);
}

.work-visual {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 8%);
  background-image:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 34px 34px;
}

.work-visual::before,
.work-visual::after {
  position: absolute;
  z-index: 0;
  width: 42px;
  height: 42px;
  border-color: rgb(223 197 142 / 40%);
  content: "";
}

.work-visual::before {
  top: 14px;
  left: 14px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.work-visual::after {
  right: 14px;
  bottom: 14px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.work-drawing {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 860px);
  max-height: 65svh;
}

.work-house-halo {
  opacity: 0.9;
}

.work-layer {
  color: var(--color-white);
}

.work-foundation {
  color: var(--color-gold);
}

.work-walls {
  color: rgb(255 253 248 / 82%);
}

.work-upper-outline {
  color: var(--color-gold-light);
}

.work-electric {
  color: var(--work-electric);
}

.work-plumbing {
  color: var(--work-plumbing);
}

.work-plumbing .work-pipe-hot {
  color: var(--work-plumbing-hot);
}

.work-interior {
  color: var(--work-interior);
}

.work-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.work-walls .work-line {
  stroke-width: 4;
}

.work-upper-outline .work-line {
  stroke-width: 4.5;
}

.work-electric .work-line,
.work-plumbing .work-line {
  stroke-width: 3.5;
}

.work-device-box {
  fill: rgb(242 185 75 / 7%);
}

.work-node {
  fill: var(--color-charcoal-soft);
}

.work-legend {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 20px;
  display: flex;
  gap: 18px;
  color: rgb(255 253 248 / 55%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Bez JavaScriptu legenda pozostaje czytelna. Podczas animacji steruje nią aktualny etap. */
.work-story.is-legend-managed .work-legend span {
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

.work-story.is-legend-managed .work-legend span.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.work-legend-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.work-legend-electric {
  color: var(--work-electric);
}

.work-legend-plumbing {
  color: var(--work-plumbing);
}

.work-steps {
  display: grid;
  min-height: 0;
  align-content: center;
  gap: clamp(7px, 1.15vh, 12px);
  /* Dolny zapas chroni ostatnią kartę przed paskiem postępu animacji. */
  padding: 4px 0 22px;
  margin: 0;
  overflow: visible;
  list-style: none;
}

.work-card {
  display: grid;
  min-height: 78px;
  align-items: start;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    background-color 260ms ease,
    border-color 260ms ease;
}

.work-card.is-revealed {
  opacity: 0.42;
  transform: translateX(0);
}

.work-card.is-active {
  border-color: rgb(223 197 142 / 34%);
  opacity: 1;
  background: rgb(255 253 248 / 6%);
}

/* Złoty finał podkreśla główną specjalizację firmy bez odrywania się od reszty animacji. */
.work-card:last-child.is-active {
  border-color: var(--color-gold);
  background: linear-gradient(105deg, rgb(198 161 91 / 20%), rgb(255 253 248 / 7%));
  box-shadow: inset 3px 0 var(--color-gold);
}

.work-card:last-child.is-active h3 {
  color: var(--color-gold-light);
}

.work-card:last-child.is-active p {
  color: rgb(255 253 248 / 78%);
}

.work-card > span {
  color: var(--color-gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.work-card h3 {
  margin-bottom: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
}

.work-card p {
  margin-bottom: 0;
  color: rgb(255 253 248 / 58%);
  font-size: 11px;
  line-height: 1.45;
}

.work-progress {
  height: 2px;
  overflow: hidden;
  background: rgb(255 255 255 / 10%);
}

.work-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-gold-light);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* Na niższych ekranach zmniejszamy karty, aby ostatni etap zawsze mieścił się w scenie. */
@media (max-height: 760px) and (min-width: 821px) {
  .work-stage {
    gap: 12px;
    padding-top: 82px;
    padding-bottom: 14px;
  }

  .work-stage-heading h2 {
    font-size: 35px;
  }

  .work-card {
    min-height: 64px;
    padding-block: 7px;
  }

  .work-card h3 {
    font-size: 17px;
  }

  .work-drawing {
    max-height: 58svh;
  }
}

@media (max-width: 820px) {
  .work-story {
    height: 660svh;
  }

  .work-stage {
    width: min(100% - 28px, 680px);
    gap: 10px;
    padding: 82px 0 12px;
  }

  .work-stage-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .work-stage-heading h2 {
    max-width: 290px;
    font-size: clamp(27px, 7vw, 36px);
  }

  .work-counter span:first-child {
    font-size: 34px;
  }

  .work-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 128px;
    gap: 10px;
  }

  .work-visual {
    /* Rysunek i legenda mają osobne rzędy, więc instalacje nie nachodzą na domek. */
    grid-template-rows: minmax(0, 1fr) auto;
    padding-bottom: 0;
  }

  .work-visual::after {
    /* Na tablecie narożnik kończy się nad paskiem legendy. */
    bottom: 50px;
  }

  .work-drawing {
    grid-row: 1;
    width: min(100%, 650px);
    max-height: calc(48svh - 40px);
    align-self: center;
    justify-self: center;
  }

  .work-legend {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-row: 2;
    width: 100%;
    min-height: 38px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 8px 12px;
    border-top: 1px solid rgb(255 255 255 / 8%);
    background: #171c1e;
    font-size: 8px;
  }

  .work-steps {
    position: relative;
    display: block;
    min-height: 128px;
    padding: 0;
  }

  .work-card,
  .work-card.is-revealed {
    position: absolute;
    inset: 0;
    min-height: 128px;
    align-content: center;
    padding: 16px 18px;
    border-color: rgb(255 255 255 / 8%);
    opacity: 0;
    background: var(--color-charcoal-soft);
    transform: translateY(18px);
    pointer-events: none;
  }

  .work-card.is-active {
    border-color: rgb(223 197 142 / 34%);
    opacity: 1;
    transform: translateY(0);
  }

  .work-card h3 {
    font-size: 22px;
  }

  .work-card p {
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .work-stage-heading h2 {
    max-width: 218px;
  }

  .work-visual {
    background-size: 24px 24px;
  }

  .work-drawing {
    transform: none;
  }

  .work-legend {
    justify-content: center;
  }
}

@media (max-height: 700px) and (max-width: 820px) {
  .work-stage {
    padding-top: 76px;
    padding-bottom: 8px;
  }

  .work-stage-heading h2 {
    font-size: 26px;
  }

  .work-layout {
    grid-template-rows: minmax(0, 1fr) 116px;
  }

  .work-steps,
  .work-card,
  .work-card.is-revealed {
    min-height: 116px;
  }

  .work-card {
    padding: 11px 14px;
  }

  .work-card p {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-story {
    height: auto;
  }

  .work-stage {
    position: relative;
    min-height: 100svh;
  }

  .work-card {
    transition: none;
  }
}

/* ===== 08. PROCES WSPÓŁPRACY ===== */
.process-section {
  background: var(--color-ivory-deep);
}

.process-heading {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.process-heading h2 {
  margin-inline: auto;
}

.process-heading > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: clamp(17px, 2vw, 20px);
}

.process-journey {
  position: relative;
  display: grid;
  margin: clamp(62px, 8vw, 92px) 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 56px);
}

.process-journey::before {
  position: absolute;
  z-index: 0;
  top: 33px;
  right: calc(12.5% - 1px);
  left: calc(12.5% - 1px);
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold));
  content: "";
}

.process-journey-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.process-journey-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 25px;
  color: var(--color-charcoal);
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  background: var(--color-ivory-deep);
  place-items: center;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.process-journey-step:hover .process-journey-icon {
  color: var(--color-white);
  background: var(--color-charcoal);
  transform: translateY(-4px);
}

.process-journey-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.process-journey-number {
  display: block;
  margin-bottom: 14px;
  color: var(--color-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.process-journey-step h3 {
  min-height: 54px;
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 400;
  line-height: 1.12;
}

.process-journey-step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

/* ===== 09. REALIZACJE I GALERIA ===== */
.project-preview {
  display: grid;
  align-items: end;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 8vw, 110px);
}

.project-preview-copy > p:first-child {
  max-width: 650px;
  margin-bottom: 20px;
  color: var(--color-muted);
  font-size: clamp(17px, 2vw, 20px);
}

/* Krótka instrukcja prowadzi wzrok do przycisków bez udawania dodatkowego przycisku. */
.project-instruction {
  display: flex;
  max-width: 650px;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--color-charcoal);
  font-size: 13px;
}

.project-instruction-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--color-gold);
  border: 1px solid rgb(198 161 91 / 52%);
  border-radius: 50%;
  place-items: center;
}

.project-instruction-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.project-instruction strong {
  color: var(--color-charcoal);
  font-weight: 700;
  box-shadow: inset 0 -0.3em rgb(198 161 91 / 24%);
}

.project-grid {
  display: grid;
  width: 75%;
  margin: 54px auto 0;
  gap: clamp(30px, 6vw, 76px);
  grid-template-columns: 1fr;
}

.project-compare {
  overflow: hidden;
  border: 1px solid #d3ccbf;
  background: var(--color-white);
  box-shadow: 0 28px 70px rgb(34 36 34 / 8%);
}

.project-viewport {
  overflow: hidden;
  background: var(--color-charcoal);
}

.project-track {
  display: flex;
  width: 200%;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-compare.is-after .project-track {
  transform: translateX(-50%);
}

.project-track figure {
  position: relative;
  width: 50%;
  margin: 0;
  overflow: hidden;
  /* Jedna proporcja ramki utrzymuje równą wysokość zdjęć „Przed” i „Po”. */
  aspect-ratio: 16 / 8.6;
}

.project-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-track figcaption {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 10px;
  color: var(--color-white);
  background: rgb(11 14 15 / 74%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 34px);
}

.project-meta h3 {
  margin-bottom: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 400;
}

.project-meta p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-interaction {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
}

.project-controls {
  display: flex;
  border: 1px solid #cfc6b7;
}

.project-control {
  min-width: 62px;
  /* 44 px ułatwia trafienie przycisku kciukiem na ekranie telefonu. */
  min-height: 44px;
  padding: 7px 10px;
  color: var(--color-charcoal);
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.project-control.is-active {
  color: var(--color-charcoal);
  background: var(--color-gold);
}

/* ===== 10. OBSZAR DZIAŁANIA I MAPA ===== */
.area-section {
  background: var(--color-ivory-deep);
}

.area-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(50px, 9vw, 130px);
}

.area-copy .section-lead {
  margin-bottom: 34px;
}

.area-copy .section-lead strong {
  color: var(--color-charcoal);
  font-weight: 700;
  box-shadow: inset 0 -0.3em rgb(198 161 91 / 22%);
}

.area-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 13px;
}

.area-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
}

.area-list-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: var(--color-gold);
  border: 1px solid rgb(198 161 91 / 28%);
  border-radius: 50%;
  background: rgb(198 161 91 / 8%);
  place-items: center;
}

.area-list-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.map-card {
  position: relative;
  min-height: 600px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  color: var(--color-white);
  background:
    radial-gradient(circle at 80% 15%, rgb(198 161 91 / 16%), transparent 30%),
    var(--color-charcoal-soft);
  box-shadow: 0 30px 80px rgb(31 36 35 / 14%);
}

.poland-map {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: contain;
}

.map-location {
  position: absolute;
  right: clamp(24px, 4vw, 42px);
  bottom: clamp(24px, 4vw, 42px);
  left: clamp(24px, 4vw, 42px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.map-location > span {
  width: 12px;
  height: 12px;
  border: 3px solid var(--color-charcoal-soft);
  border-radius: 50%;
  background: var(--color-gold-light);
  box-shadow: 0 0 0 1px var(--color-gold-light);
}

.map-location strong {
  display: block;
  /* Manrope ma równe cyfry liniowe, dzięki czemu kod i nazwa leżą na jednej wysokości. */
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 22px;
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 600;
  line-height: 1.25;
}

.map-location p {
  margin-bottom: 0;
  color: rgb(255 255 255 / 52%);
  font-size: 12px;
}

/* ===== 11. DANE FIRMY I FORMULARZ ===== */
.contact-section {
  color: var(--color-white);
  background: var(--color-charcoal-soft);
}

.contact-heading {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 58px;
  text-align: center;
}

.contact-heading p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: rgb(255 255 255 / 60%);
  font-size: 17px;
}

.contact-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 18px;
}

.company-card,
.quote-form {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgb(255 255 255 / 14%);
  background: #171c1e;
  scroll-margin-top: 86px;
}

.company-card h3,
.quote-form h3 {
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 400;
}

.company-data {
  margin-bottom: 32px;
}

.company-data > div {
  display: grid;
  padding: 15px 0;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  grid-template-columns: 0.7fr 1.3fr;
  gap: 20px;
}

.company-data dt {
  color: rgb(255 255 255 / 46%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-data dd {
  margin-bottom: 0;
  color: rgb(255 255 255 / 84%);
}

.form-heading > p:last-child {
  margin-bottom: 32px;
  color: rgb(255 255 255 / 55%);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field > span {
  color: rgb(255 255 255 / 62%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 0;
  color: var(--color-white);
  background: #111516;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input,
.form-field select {
  height: 52px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 130px;
  padding: 14px;
  resize: vertical;
}

.form-field select {
  color-scheme: dark;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgb(255 255 255 / 30%);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgb(198 161 91 / 18%);
}

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

.form-demo-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 20px 0 0;
  color: rgb(255 255 255 / 66%);
  font-size: 12px;
  line-height: 1.55;
}

.form-demo-note::before {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--color-gold-light);
  content: "";
}

.form-status {
  margin: 18px 0 0;
  padding: 13px 15px;
  color: var(--color-gold-light);
  border-left: 2px solid var(--color-gold);
  background: rgb(198 161 91 / 8%);
  font-size: 13px;
}

.form-status[hidden] {
  display: none;
}

/* ===== 12. OKNO WYBORU KONTAKTU ===== */
.contact-dialog {
  width: min(calc(100% - 32px), 760px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--color-white);
  border: 1px solid rgb(198 161 91 / 55%);
  background: #171c1e;
  box-shadow: 0 30px 90px rgb(0 0 0 / 50%);
}

.contact-dialog::backdrop {
  background: rgb(8 11 12 / 76%);
  backdrop-filter: blur(7px);
}

.contact-dialog-inner {
  position: relative;
  padding: clamp(32px, 6vw, 62px);
}

.contact-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: rgb(255 255 255 / 66%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  background: transparent;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  place-items: center;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.contact-dialog-close:hover {
  color: var(--color-gold-light);
  border-color: var(--color-gold);
  transform: rotate(5deg);
}

.contact-dialog h2 {
  max-width: 610px;
  margin: 12px 50px 18px 0;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.contact-dialog-description {
  margin-bottom: 34px;
  color: rgb(255 255 255 / 60%);
  font-size: 16px;
}

.contact-dialog-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-dialog-option {
  position: relative;
  display: flex;
  min-height: 190px;
  padding: 26px;
  align-items: flex-start;
  flex-direction: column;
  color: var(--color-white);
  border: 1px solid rgb(255 255 255 / 15%);
  background: rgb(255 255 255 / 2%);
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.contact-dialog-option:hover {
  border-color: var(--color-gold);
  background: rgb(198 161 91 / 7%);
  transform: translateY(-3px);
}

.contact-dialog-option-label {
  margin-bottom: 28px;
  color: var(--color-gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-dialog-option strong {
  max-width: 250px;
  margin: auto 35px 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 29px);
  font-weight: 400;
  line-height: 1.1;
}

.contact-dialog-option small {
  max-width: 250px;
  color: rgb(255 255 255 / 48%);
  font-size: 12px;
  line-height: 1.5;
}

.contact-dialog-option-arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  color: var(--color-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

/* ===== 13. STOPKA I DOSTĘPNOŚĆ ===== */
.site-footer {
  color: rgb(255 255 255 / 50%);
  background: #0d1011;
  font-size: 12px;
}

.footer-partners {
  padding: clamp(28px, 4vw, 48px) 0 clamp(26px, 3.5vw, 40px);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.footer-partners-heading {
  margin-bottom: 18px;
}

.footer-partners-heading h2 {
  margin: 0;
  color: var(--color-gold-light);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.partner-grid {
  display: grid;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  list-style: none;
}

.partner-banner {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  background: rgb(255 255 255 / 3%);
}

.partner-banner img {
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
}

.partner-banner-demo {
  --partner-accent: var(--color-gold-light);
  position: relative;
  padding: 16px;
  grid-template-rows: auto auto;
  gap: 2px;
  background:
    linear-gradient(135deg, rgb(223 197 142 / 9%), transparent 60%),
    rgb(255 255 255 / 2%);
}

.partner-banner-demo::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 2px;
  background: var(--partner-accent);
  content: "";
}

.partner-wordmark {
  color: var(--color-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1;
  letter-spacing: 0.14em;
}

.partner-wordmark b {
  color: var(--partner-accent);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.44em;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: top;
}

.partner-banner-demo small {
  color: rgb(255 255 255 / 54%);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.partner-banner-volt {
  --partner-accent: #8ab8c4;
}

.partner-banner-level {
  --partner-accent: #c79572;
}

.partner-banner-wood {
  --partner-accent: #a5b388;
}

a.partner-banner {
  transition: border-color 180ms ease, background-color 180ms ease;
}

a.partner-banner:hover {
  border-color: rgb(223 197 142 / 48%);
  background: rgb(198 161 91 / 6%);
}

.portfolio-notice {
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: rgb(255 255 255 / 2%);
}

.portfolio-notice-inner {
  display: grid;
  align-items: center;
  padding-block: 19px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
}

.portfolio-notice-inner > span {
  padding: 6px 9px;
  color: var(--color-charcoal);
  background: var(--color-gold-light);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portfolio-notice p {
  max-width: 850px;
  color: rgb(255 255 255 / 66%);
  font-size: 11px;
  line-height: 1.6;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--color-gold-light);
  text-decoration: none;
}

/* Widoczna ramka dla osób poruszających się po stronie klawiaturą. */
.button:focus-visible,
.site-nav a:focus-visible,
.header-brand:focus-visible,
.menu-toggle:focus-visible,
.site-footer a:focus-visible,
.partner-banner:focus-visible,
.work-skip:focus-visible,
.project-control:focus-visible,
.contact-dialog-close:focus-visible,
.contact-dialog-option:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 5px;
}

/* ===== 14. WERSJA TABLETOWA ===== */
@media (max-width: 1000px) {
  .about-main,
  .about-strip {
    grid-template-columns: 1fr;
  }

  .about-main h2 {
    margin-bottom: 28px;
  }

  .about-main > p:last-child,
  .about-strip > p {
    max-width: 720px;
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-preview {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-preview-copy {
    max-width: 720px;
  }

  .process-journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 60px;
  }

  .process-journey::before {
    display: none;
  }

  .area-grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }

  .project-grid {
    width: 86%;
  }
}

/* ===== 15. WERSJA MOBILNA I MENU MOBILNE ===== */
@media (max-width: 820px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(100% - 28px, var(--container-width));
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: block;
  }

  .menu-visible .menu-toggle-line:nth-of-type(2) {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-visible .menu-toggle-line:nth-of-type(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: auto;
    /* Panel pozostawia widoczny fragment strony i nie dominuje na węższych telefonach. */
    width: min(82vw, 380px);
    /* Pełna wysokość i przewijanie chronią pozycje menu na niskich ekranach telefonu. */
    height: 100vh;
    height: 100dvh;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 24px;
    padding: 100px clamp(28px, 8vw, 38px) 50px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--color-charcoal);
    box-shadow: -20px 0 50px rgb(0 0 0 / 30%);
    transform: translateX(105%);
    transition: transform 240ms ease;
  }

  .menu-visible .site-nav {
    transform: translateX(0);
  }

  .site-nav a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }

  .nav-contact {
    margin-top: 8px;
    padding: 10px 18px;
    font-family: "Manrope", "Segoe UI", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
  }

  .nav-socials {
    margin-top: 4px;
  }

  .nav-social-icon {
    width: 38px;
    height: 38px;
  }

  .hero-logo {
    width: min(88vw, 390px);
  }

  .contact-grid,
  .area-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .map-card {
    min-height: 540px;
  }

  .project-grid {
    width: 100%;
  }

  .contact-heading {
    align-items: flex-start;
    text-align: left;
  }
}

/* ===== 16. WERSJA DLA MAŁYCH TELEFONÓW ===== */
@media (max-width: 560px) {
  .work-stage {
    /* Więcej wysokości przeznaczamy na pole rysunku, nie ściskając nagłówka. */
    padding-top: 76px;
  }

  .work-layout {
    grid-template-rows: minmax(0, 1fr) 116px;
    gap: 8px;
  }

  .work-steps,
  .work-card,
  .work-card.is-revealed {
    min-height: 116px;
  }

  .work-card {
    padding: 12px 14px;
  }

  .work-visual::before,
  .work-visual::after {
    /* Na małym telefonie narożniki zabierały miejsce potrzebne rysunkowi. */
    display: none;
  }

  .work-drawing {
    /* SVG wypełnia dostępny rząd, ale zachowuje proporcje i nie wystaje ponad kratkę. */
    width: 100%;
    height: 100%;
    max-height: none;
  }

  /* Cieńszy rysunek jest czytelniejszy na ekranie telefonu o dużej gęstości pikseli. */
  .work-line {
    stroke-width: 2;
  }

  .work-walls .work-line {
    stroke-width: 2.5;
  }

  .work-upper-outline .work-line {
    stroke-width: 2.75;
  }

  .work-electric .work-line,
  .work-plumbing .work-line {
    stroke-width: 2.25;
  }

  .contact-dialog {
    width: min(calc(100% - 20px), 760px);
    max-height: calc(100dvh - 20px);
  }

  .contact-dialog-inner {
    padding: 54px 22px 24px;
  }

  .contact-dialog h2 {
    margin-right: 0;
  }

  .contact-dialog-options {
    grid-template-columns: 1fr;
  }

  .contact-dialog-option {
    min-height: 160px;
    padding: 22px;
  }

  .about-transfer {
    gap: 12px;
  }

  .about-market-origin > span {
    max-width: 142px;
  }

  .about-flags {
    gap: 7px;
  }

  .about-flags img {
    width: 38px;
    height: auto;
  }

  .about-market-poland img {
    width: 47px;
    height: auto;
  }

  .about-arrow {
    min-width: 64px;
  }

  .about-arrow span {
    font-size: 8px;
  }

  .hero-content {
    padding-bottom: 64px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-description {
    font-size: 16px;
  }

  .project-track figure {
    aspect-ratio: 4 / 3;
  }

  .poland-map {
    height: 430px;
  }

  .process-journey {
    padding-left: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-journey::before {
    display: block;
    top: 34px;
    bottom: 34px;
    left: 33px;
    width: 1px;
    height: auto;
    background: var(--color-gold);
  }

  .process-journey-step {
    display: grid;
    min-height: 155px;
    padding: 0 0 38px;
    text-align: left;
    grid-template-columns: 68px minmax(0, 1fr);
    column-gap: 18px;
  }

  .process-journey-icon {
    margin: 0;
    grid-column: 1;
    grid-row: 1 / 5;
  }

  .process-journey-number,
  .process-journey-step h3,
  .process-journey-step p {
    grid-column: 2;
  }

  .process-journey-step h3 {
    min-height: auto;
  }

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

  .project-interaction {
    width: 100%;
    align-items: flex-start;
  }

  .project-controls,
  .project-control {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-full {
    grid-column: auto;
  }

  .company-data > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-notice-inner {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .portfolio-notice-inner > span {
    justify-self: start;
  }
}

/* Ograniczenie animacji dla osób, które mają taką opcję w systemie. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
