:root {
  --ink: #111311;
  --ink-soft: #20231f;
  --graphite: #2f322e;
  --paper: #f2f1ec;
  --white: #ffffff;
  --line: #d1d0c9;
  --muted: #6d706a;
  --accent: #d72124;
  --accent-dark: #a31619;
  --container: 1240px;
  --header-height: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
.button,
.main-nav a,
.eyebrow {
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
}

h1,
h2,
h3 {
  color: inherit;
  font-weight: 00;
  line-height: 0.98;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.6rem, 8vw, 7.8rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(2.35rem, 5vw, 5rem);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 3.15rem);
  letter-spacing: -0.035em;
}

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

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 120px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 3px;
  background: currentColor;
  content: "";
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--accent);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  min-height: var(--header-height);
  color: var(--ink);
  border-bottom: 1px solid rgba(17,19,17,0.12);
  background: rgba(255,255,255,0.98);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  color: var(--ink);
  border-color: rgba(17,19,17,0.16);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 150px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.main-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 13px 18px;
  color: var(--white);
  background: var(--accent);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  min-height: 920px;
  color: var(--white);
  background-color: #252823;
  background-image: url("assets/hero.jpg");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,9,8,0.94) 0%, rgba(8,9,8,0.72) 48%, rgba(8,9,8,0.26) 82%),
    linear-gradient(0deg, rgba(8,9,8,0.86) 0%, transparent 38%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: calc(var(--header-height) + 70px);
  padding-bottom: 180px;
}

.hero-eyebrow {
  color: var(--accent);
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 38px;
  color: rgba(255,255,255,0.84);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.095em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button-primary {
  color: var(--white);
  background: var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #b9191c;
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.15);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-dark:hover,
.button-dark:focus-visible {
  color: var(--ink);
  background: var(--accent);
}

.hero-data {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  background: rgba(12,13,12,0.62);
  backdrop-filter: blur(8px);
}

.hero-data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-data-grid > div {
  display: flex;
  align-items: center;
  min-height: 116px;
  padding: 28px 32px;
  border-right: 1px solid rgba(255,255,255,0.14);
  gap: 18px;
}

.hero-data-grid > div:last-child {
  border-right: 0;
}

.hero-data-grid span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero-data-grid strong {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operational {
  border-bottom: 1px solid var(--line);
}

.split-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 90px;
  align-items: end;
}

.split-heading h2 {
  margin-bottom: 0;
}

.section-copy {
  padding-bottom: 10px;
}

.section-copy p,
.section-header > p,
.clients .sticky-title > p,
.area-copy > p,
.company-panel > p,
.contact-copy > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.text-link,
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  color: var(--ink);
  border: 0;
  border-bottom: 2px solid var(--accent);
  background: transparent;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-link span,
.service-link span {
  transition: transform 160ms ease;
}

.text-link:hover span,
.service-link:hover span {
  transform: translateX(4px);
}

.services {
  background: var(--white);
}

.row-between {
  display: grid;
  grid-template-columns: 1.15fr 0.55fr;
  gap: 70px;
  align-items: end;
}

.section-header {
  margin-bottom: 70px;
}

.section-header h2 {
  margin-bottom: 0;
}

.section-header > p {
  margin-bottom: 7px;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-card {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  min-height: 540px;
  border-bottom: 1px solid var(--line);
}

.service-card-reverse {
  grid-template-columns: 0.82fr 1.18fr;
}

.service-card-reverse .service-media {
  order: 2;
}

.service-media {
  min-height: 430px;
  background-color: var(--graphite);
  background-position: center;
  background-size: cover;
}

.service-transport {
  background-image: url("assets/service-transport.jpg");
}

.service-earthworks {
  background-image: url("assets/service-earthworks.jpg");
}

.service-roads {
  background-image: url("assets/service-roads.jpg");
}

.service-stabilization {
  background-image: url("assets/service-stabilization.jpg");
}

.service-rental {
  background-image: url("assets/service-rental.jpg");
}

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(40px, 7vw, 86px);
  background: var(--paper);
}

.service-number {
  margin-bottom: 48px;
  color: var(--accent-dark);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.service-content p {
  max-width: 520px;
  margin-bottom: 34px;
  color: var(--muted);
}

.company {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 760px;
  background: var(--accent);
}

.company-image {
  min-height: 600px;
  background-color: var(--graphite);
  background-image: url("assets/company.jpg");
  background-position: center;
  background-size: cover;
}

.company-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(52px, 8vw, 112px);
}

.company-panel .eyebrow {
  color: var(--ink);
}

.company-panel h2 {
  max-width: 700px;
}

.company-panel > p {
  color: rgba(17,19,17,0.77);
}

.company-panel .button {
  margin-top: 18px;
}

.clients {
  background: var(--ink);
  color: var(--white);
}

.clients-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 100px;
}

.sticky-title {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 42px);
}

.clients .sticky-title > p {
  color: rgba(255,255,255,0.6);
}

.client-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.client-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  min-height: 104px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.client-list span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.client-list strong {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.area {
  background: var(--paper);
}

.area-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 90px;
}

.area-list {
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.area-list li {
  display: flex;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.area-list li span {
  width: 9px;
  height: 9px;
  margin-right: 16px;
  background: var(--accent);
}

.map-panel {
  padding: clamp(30px, 6vw, 68px);
  background: #e7e5dc;
}

.poland-map {
  width: 100%;
  max-height: 520px;
}

.map-country {
  fill: #c7c6be;
  stroke: var(--ink);
  stroke-width: 3;
}

.map-south {
  fill: var(--accent);
  stroke: var(--ink);
  stroke-width: 2;
}

.map-pin {
  fill: var(--ink);
}

.map-pulse {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  opacity: 0.5;
}

.poland-map text {
  fill: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 22px;
  padding-top: 25px;
  border-top: 1px solid rgba(17,19,17,0.25);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.map-legend i {
  width: 13px;
  height: 13px;
  border: 1px solid var(--ink);
}

.legend-primary {
  background: var(--accent);
}

.legend-secondary {
  background: #c7c6be;
}

.process {
  background: var(--white);
}

.process-heading {
  max-width: 820px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list li {
  min-height: 340px;
  padding: 38px 30px;
  border-right: 1px solid var(--line);
}

.process-list li:last-child {
  border-right: 0;
}

.process-number {
  display: block;
  margin-bottom: 84px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.process-list h3 {
  font-size: 1.45rem;
  line-height: 1.08;
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  padding: 120px 0;
  color: var(--white);
  background: var(--graphite);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 90px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 42px);
}

.contact-copy > p {
  color: rgba(255,255,255,0.63);
}

.direct-contact {
  margin-top: 50px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.direct-contact a {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.direct-contact span {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.direct-contact strong {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.quote-form {
  padding: clamp(28px, 5vw, 60px);
  color: var(--ink);
  background: var(--paper);
}

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

.form-field {
  min-width: 0;
}

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

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field label span {
  color: var(--muted);
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid #b9b8b1;
  border-radius: 0;
  outline: 0;
  background: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(225,163,34,0.3);
}

.form-field input[type="file"] {
  padding: 12px;
  background: #e7e5dc;
}

.file-name {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.consent-field label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.55;
  text-transform: none;
}

.consent-field input {
  width: 19px;
  min-width: 19px;
  height: 19px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--accent);
}

.consent-field a {
  text-decoration: underline;
}

.submit-button {
  width: 100%;
  margin-top: 28px;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.footer {
  padding: 78px 0 24px;
  color: #111111;
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
  gap: 55px;
  padding-bottom: 62px;
}

.brand-footer {
  width: fit-content;
  margin-bottom: 24px;
  padding: 8px 12px;
  background: var(--white);
}

.footer-location {
  color: var(--white);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer h3 {
  margin: 9px 0 22px;
  color: var(--white);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li,
.footer address a,
.footer address span {
  display: block;
  margin-bottom: 10px;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--accent);
}

.footer address {
  font-style: normal;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.75rem;
}

.footer-bottom p {
  margin: 0;
}

.privacy-page {
  background: var(--paper);
}

.privacy-header {
  position: static;
  color: var(--ink);
  background: var(--white);
}

.privacy-main {
  padding: 100px 0;
}

.privacy-content {
  max-width: 880px;
}

.privacy-content h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  color: var(--ink);
}

.privacy-content h2 {
  margin-top: 58px;
  font-size: 2rem;
  color: var(--ink);
}

.privacy-content p,
.privacy-content li {
  color: #4e514c;
}

.privacy-content a {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  :root {
    --header-height: 74px;
  }

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

  .main-nav {
    gap: 20px;
  }

  .main-nav a {
    font-size: 0.75rem;
  }

  .brand-logo {
    height: 58px;
  }

  .split-heading,
  .row-between,
  .area-grid,
  .contact-grid {
    gap: 54px;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list li:nth-child(2) {
    border-right: 0;
  }

  .process-list li:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: 1.3fr repeat(3, 0.8fr);
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .section,
  .contact {
    padding: 88px 0;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 22px 24px 40px;
    color: var(--ink);
    background: var(--white);
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a {
    padding: 19px 0;
    border-bottom: 1px solid rgba(17,19,17,0.14);
    font-size: 1rem;
  }

  .main-nav a:not(.nav-cta)::after {
    display: none;
  }

  .main-nav .nav-cta {
    margin-top: 24px;
    padding: 18px;
    border-bottom: 0;
    text-align: center;
  }

  .hero {
    min-height: 820px;
    background-position: 62% center;
  }

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

  .hero-data-grid > div {
    min-height: 104px;
    padding: 22px 18px;
    gap: 11px;
  }

  .split-heading,
  .row-between,
  .clients-grid,
  .area-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split-heading,
  .clients-grid,
  .area-grid,
  .contact-grid {
    gap: 48px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .service-card,
  .service-card-reverse {
    grid-template-columns: 1fr;
  }

  .service-card-reverse .service-media {
    order: 0;
  }

  .service-media {
    min-height: 430px;
  }

  .service-content {
    padding: 52px 38px 62px;
  }

  .service-number {
    margin-bottom: 30px;
  }

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

  .company-image {
    min-height: 520px;
  }

  .sticky-title,
  .contact-copy {
    position: static;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 620px;
  }
}

@media (max-width: 650px) {
  :root {
    --header-height: 68px;
  }

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

  h1 {
    font-size: clamp(3.2rem, 16vw, 5.1rem);
  }

  h2 {
    font-size: clamp(2.2rem, 12vw, 3.65rem);
  }

  .section,
  .contact {
    padding: 72px 0;
  }

  .brand-logo {
    height: 152px;
  }

  .hero {
    min-height: 850px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8,9,8,0.94), rgba(8,9,8,0.48)),
      linear-gradient(0deg, rgba(8,9,8,0.9), transparent 50%);
  }

  .hero-content {
    justify-content: flex-end;
    padding-top: 120px;
    padding-bottom: 280px;
  }

  .hero-lead {
    font-size: 1rem;
  }

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

  .hero-data-grid {
    grid-template-columns: 1fr;
  }

  .hero-data-grid > div {
    min-height: 62px;
    padding: 13px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .hero-data-grid > div:last-child {
    border-bottom: 0;
  }

  .service-media {
    min-height: 300px;
  }

  .service-content {
    padding: 40px 24px 48px;
  }

  .company-image {
    min-height: 380px;
  }

  .company-panel {
    padding: 54px 24px 64px;
  }

  .client-list li {
    grid-template-columns: 48px 1fr;
    min-height: 84px;
  }

  .map-panel {
    padding: 18px;
  }

  .poland-map text {
    font-size: 13px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li,
  .process-list li:nth-child(2) {
    min-height: auto;
    padding: 30px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-list li:last-child {
    border-bottom: 0;
  }

  .process-number {
    margin-bottom: 32px;
  }

  .quote-form {
    padding: 28px 20px;
  }

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

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

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* POPRAWIONE MENU MOBILNE */
@media (max-width: 900px) {
  :root {
    --header-height: 86px;
  }

  .site-header {
    height: var(--header-height);
    min-height: var(--header-height);
    background: #ffffff !important;
  }

  .header-inner {
    height: var(--header-height);
    min-height: var(--header-height);
  }

  /* Większe logo na telefonie */
  .site-header .brand-logo {
    width: auto;
    height: 72px;
    max-width: 230px;
    object-fit: contain;
  }

  /* Pełnoekranowa biała szuflada */
  .main-nav {
    position: fixed !important;
    z-index: 2000;
    top: var(--header-height) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: calc(100dvh - var(--header-height));
    margin: 0 !important;
    padding: 20px 30px 40px;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;

    color: #111111 !important;
    background: #ffffff !important;

    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition:
      transform 220ms ease,
      opacity 150ms ease;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) !important;
  }

  .main-nav a {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    padding: 20px 0;

    color: #111111 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);

    font-size: 1.15rem;
    line-height: 1.2;
  }

  .main-nav .nav-cta {
    margin-top: 24px;
    padding: 20px;
    color: #ffffff !important;
    background: var(--accent) !important;
    border-bottom: 0;
    text-align: center;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* ==================================================
   NOWY FOOTER BUD-ZIEM
================================================== */

.footer {
  padding: 0;
  color: #111111;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

/* Górny czarny panel */

.footer-cta {
  color: #ffffff;
  background: #111111;
}

.footer-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 80px;
  min-height: 330px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.footer-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--accent, #e31e24);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-cta h2 {
  max-width: 800px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.footer-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

.footer-contact-large {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 22px;
  color: #ffffff;
  border-left: 4px solid var(--accent, #e31e24);
}

.footer-contact-large span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-contact-large strong {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.footer-contact-large:hover,
.footer-contact-large:focus-visible {
  color: var(--accent, #e31e24);
}

.footer-quote-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 26px;
  color: #ffffff;
  background: var(--accent, #e31e24);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-quote-button span {
  font-size: 1.7rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.footer-quote-button:hover,
.footer-quote-button:focus-visible {
  color: #ffffff;
  background: #bd171d;
}

.footer-quote-button:hover span {
  transform: translateX(5px);
}

/* Główna biała część */

.footer-main {
  padding-top: 74px;
  padding-bottom: 66px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) 0.75fr 0.75fr 1fr;
  gap: 58px;
}

.footer .brand-footer {
  display: block;
  width: fit-content;
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
}

.footer .brand-logo {
  display: block;
  width: auto;
  height: 155px;
  object-fit: contain;
}

.footer-description {
  max-width: 470px;
  margin: 0 0 25px;
  color: #565656;
  font-size: 0.96rem;
  line-height: 1.75;
}

.footer-email-strong {
  display: inline-block;
  color: #111111;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 2px solid var(--accent, #e31e24);
}

.footer h3 {
  position: relative;
  margin: 0 0 27px;
  padding-top: 18px;
  color: #111111;
  border-top: 2px solid #111111;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer h3::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--accent, #e31e24);
  content: "";
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin: 0;
}

.footer li a,
.footer address a {
  display: inline-block;
  margin-bottom: 12px;
  color: #555555;
  font-size: 0.9rem;
  line-height: 1.45;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.footer li a:hover,
.footer li a:focus-visible,
.footer address a:hover,
.footer address a:focus-visible {
  color: var(--accent, #e31e24);
  transform: translateX(4px);
}

.footer address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-style: normal;
}

.footer address .footer-phone {
  color: #111111;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.footer-area {
  display: block;
  max-width: 290px;
  margin-top: 12px;
  color: #686868;
  font-size: 0.83rem;
  line-height: 1.6;
}

/* Dolna część */

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  padding-top: 25px;
  padding-bottom: 28px;
  color: #666666;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
  font-size: 0.72rem;
  line-height: 1.5;
}

.footer-bottom p {
  margin: 0;
}

/* Tablet */

@media (max-width: 1000px) {
  .footer-cta-inner {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .footer-cta-actions {
    max-width: 520px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

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

/* Telefon */

@media (max-width: 650px) {
  .footer-cta-inner {
    min-height: auto;
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .footer-cta h2 {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
    line-height: 0.98;
  }

  .footer-contact-large strong {
    font-size: 1.9rem;
  }

  .footer-quote-button {
    min-height: 66px;
    padding: 0 20px;
  }

  .footer-main {
    padding-top: 54px;
    padding-bottom: 40px;
  }

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

  .footer .brand-logo {
    height: 120px;
  }

  .footer-brand {
    padding-bottom: 42px;
  }

  .footer-column,
  .footer-contact {
    padding: 34px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.14);
  }

  .footer h3 {
    border-top: 0;
    padding-top: 0;
  }

  .footer h3::before {
    top: auto;
    bottom: -9px;
    height: 3px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    padding-top: 22px;
    padding-bottom: 24px;
  }
}

/* Supplied BUD-ZIEM logo. All photographic backgrounds use local files from /assets only. */
.main-nav .nav-cta,
.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  color: var(--white);
}
