/* EG System — landing zasilanie-inwestycji / zestaw BHP (specyfikacja graficzna) */
:root {
  --color-eg-navy: #1d3456;
  --color-eg-red: #d00b37;
  --color-eg-dark-red: #8b0b37;
  --color-eg-light: #f2f5fa;
  --color-eg-mist: #e9eef6;
  --color-hero-bg: #1d3456;
  --color-white: #ffffff;
  --color-muted: #64748b;
  --color-accent-green: #16a34a;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
  --nav-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-eg-navy);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--color-eg-red);
  outline-offset: 2px;
}

.h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

.h3 {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 38rem;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s, border-color 0.2s,
    transform 0.15s var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-eg-red);
  color: var(--color-white);
  border-color: var(--color-eg-red);
}

.btn--primary:hover {
  background: var(--color-eg-dark-red);
  border-color: var(--color-eg-dark-red);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-white);
}

.btn--outline-navy {
  background: transparent;
  color: var(--color-eg-navy);
  border-color: var(--color-eg-navy);
}

.btn--outline-navy:hover {
  background: rgba(29, 52, 86, 0.06);
}

.btn--navy {
  background: var(--color-eg-navy);
  color: var(--color-white);
  border-color: var(--color-eg-navy);
}

.btn--navy:hover {
  background: #152a45;
  border-color: #152a45;
}

.btn--block {
  width: 100%;
}

.icon--green {
  color: var(--color-accent-green);
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.icon--red {
  color: var(--color-eg-red);
}

.icon--navy {
  color: var(--color-eg-navy);
}

.icon--muted {
  color: var(--color-muted);
}

.icon--white {
  color: var(--color-white);
}

/* Reveal on scroll — jednorazowe pojawienie; bez transform w stanie spoczynku (stabilny box przy scrollu) */
.reveal {
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transition: none;
  }
}

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  color: var(--color-eg-navy);
  border-bottom: 1px solid rgba(29, 52, 86, 0.12);
}

.nav__inner {
  position: relative;
  z-index: 2;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo img {
  height: 4.25rem;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__links a {
  color: var(--color-eg-navy);
}

.nav__links a:hover {
  color: var(--color-eg-red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav__item {
  position: relative;
}

.nav__item--dropdown .nav__link--dropdown::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.1rem);
  vertical-align: middle;
}

.nav__mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1.5rem 0 2rem;
  background: var(--color-white);
  border-top: 1px solid rgba(29, 52, 86, 0.12);
  border-bottom: 1px solid rgba(29, 52, 86, 0.12);
  border-radius: 0;
  box-shadow: 0 1rem 2.5rem rgba(29, 52, 86, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), visibility 0.2s;
  z-index: 60;
}

.nav__mega::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  left: 0;
  right: 0;
  height: 1.5rem;
}

@media (min-width: 768px) {
  .nav__mega {
    display: block;
  }

  .nav:has(.nav__item--dropdown:hover) .nav__mega,
  .nav:has(.nav__mega:hover) .nav__mega,
  .nav:has(.nav__item--dropdown:focus-within) .nav__mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav:has(.nav__item--dropdown:hover) .nav__link--dropdown,
  .nav:has(.nav__item--dropdown:focus-within) .nav__link--dropdown {
    color: var(--color-eg-red);
  }

  .nav:has(.nav__item--dropdown:hover) .nav__mega,
  .nav:has(.nav__mega:hover) .nav__mega,
  .nav:has(.nav__item--dropdown:focus-within) .nav__mega {
    border-top-color: transparent;
  }
}

.nav__mega-inner {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

.nav__mega-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.nav__mega-col {
  min-width: 0;
}

.nav__mega-title {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--color-eg-navy);
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.nav__mega-title:hover {
  color: var(--color-eg-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav__mega-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__mega-sub li + li {
  margin-top: 0.35rem;
}

.nav__mega-sub a {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(29, 52, 86, 0.85);
  text-decoration: none;
}

.nav__mega-sub a:hover {
  color: var(--color-eg-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav__mega-col--solo .nav__mega-title {
  margin-bottom: 0;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .nav__mega-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.nav__phone {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-eg-navy);
  white-space: nowrap;
}

.nav__phone:hover {
  color: var(--color-eg-red);
}

.nav__cta {
  display: none;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav__cta .btn {
  white-space: nowrap;
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(29, 52, 86, 0.2);
  background: var(--color-white);
  color: var(--color-eg-navy);
  border-radius: 0.375rem;
  cursor: pointer;
}

.nav__toggle .icon-menu {
  display: block;
}

.nav__toggle .icon-close {
  display: none;
}

.nav__toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

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

.nav__drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--color-eg-navy);
  color: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
  z-index: 40;
  overflow-y: auto;
}

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

.nav__drawer a {
  display: block;
  padding: 0.875rem 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
}

.nav__drawer-toggle,
.nav__drawer-subtoggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 0;
  font: inherit;
  font-weight: 500;
  text-align: left;
  color: inherit;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav__drawer-toggle::after,
.nav__drawer-subtoggle::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.nav__drawer-toggle[aria-expanded="true"]::after,
.nav__drawer-subtoggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.nav__drawer-submenu {
  padding-left: 0.75rem;
}

.nav__drawer-submenu[hidden] {
  display: none;
}

.nav__drawer-submenu a {
  font-size: 0.9375rem;
  font-weight: 400;
  padding: 0.65rem 0;
}

.nav__drawer-all {
  font-weight: 600;
  color: var(--color-eg-red);
}

.nav__drawer-nested {
  padding-left: 0.75rem;
}

.nav__drawer-nested[hidden] {
  display: none;
}

.nav__drawer-nested a {
  font-size: 0.875rem;
  padding: 0.5rem 0;
  opacity: 0.92;
}

.nav__drawer .btn {
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .nav__cta {
    display: flex;
  }
}

@media (min-width: 1360px) {
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .nav__drawer {
    display: none;
  }
}

/* ——— Hero ——— */
/* Lewa strona: jednolity granat (jak na makiecie), prawa: ukośne warstwy z trojkaty.svg */
.hero {
  position: relative;
  background-color: var(--color-hero-bg);
  background-image: linear-gradient(165deg, #172643 0%, #1d3456 45%, #162038 100%);
  color: var(--color-white);
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
  isolation: isolate;
}

/* Wygasza krawędź grafiki i utrzymuje czytelny „panel” po lewej */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    #1d3456 0%,
    rgba(29, 52, 86, 0.98) 28%,
    rgba(29, 52, 86, 0.55) 40%,
    rgba(29, 52, 86, 0.12) 50%,
    transparent 58%
  );
}

.hero__bg-tri {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 980px);
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero__bg-tri .hero__tri {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 45%;
  opacity: 1;
}

@media (min-width: 768px) {
  .hero__bg-tri {
    width: min(72vw, 920px);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  }
}

@media (min-width: 1100px) {
  .hero__bg-tri {
    width: 58%;
    max-width: 900px;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
  }

  .hero__bg-tri .hero__tri {
    object-position: 58% 40%;
  }
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.5fr);
    gap: 2rem;
  }
}

.hero .lead {
  color: rgba(255, 255, 255, 0.88);
}

.hero .h1 {
  font-weight: 700;
  color: var(--color-white);
}

/* Mobile: bez sztywnego px — nagłówek mieści się w szerokości, równy margines z .container */
.hero__title {
  font-size: clamp(2rem, 5.2vw, 3.125rem);
  line-height: 1.18;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero__copy {
  min-width: 0;
  max-width: 100%;
}

.hero__visual-spacer {
  min-height: 0;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ——— Section alternating ——— */
.section {
  padding: 4rem 0;
}

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

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

.section--mist {
  background: var(--color-eg-mist);
}

.section--navy {
  background: var(--color-eg-navy);
  color: var(--color-white);
}

.section--navy .h2,
.section--navy .h3 {
  color: var(--color-white);
}

.section--navy .download-card .h3,
.section--navy .download-card__title {
  color: var(--color-eg-navy);
}

/* Bordo (lewy górny trójkąt) + jasnoczerwień: wierzchołek przy 50vw u góry, prawa krawędź przy brzegu, dół po pełnej szerokości */
.section--red {
  position: relative;
  background-color: var(--color-eg-dark-red);
  color: var(--color-white);
  overflow: hidden;
  isolation: isolate;
}

.section--red::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-eg-red);
  -webkit-clip-path: polygon(50vw 0, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(50vw 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.zamow-online-card {
  margin: 1.25rem 0 1.5rem;
  max-width: 32rem;
  padding: 2rem 2.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.zamow-online-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
}

.zamow-online-card__desc {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.zamow-online-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
}

.section--red .h2,
.section--red .h3 {
  color: var(--color-white);
}

.section--red .quote-card .h3,
.section--red .quote-card__title {
  color: var(--color-eg-navy);
}

.section__intro {
  max-width: 42rem;
  margin-bottom: 2rem;
}

/* Center intro text in "Wyzwania" section */
#problemy .section__intro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#dla-kogo .section__intro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#problemy .card__icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

#problemy .card {
  text-align: center;
}

/* Problem cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--color-white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(29, 52, 86, 0.08);
}

.section--light .card {
  box-shadow: 0 1px 3px rgba(29, 52, 86, 0.06);
}

.card__icon {
  margin-bottom: 0.75rem;
}

.card p {
  margin: 0;
  font-size: 1rem;
  color: rgba(29, 52, 86, 0.88);
}

.section--navy .card {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  box-shadow: none;
}

.section--navy .card p {
  color: rgba(255, 255, 255, 0.9);
}

.card--outline {
  background: var(--color-white);
  border: 1px solid rgba(29, 52, 86, 0.18);
  box-shadow: none;
}

.card--outline p {
  color: rgba(29, 52, 86, 0.88);
}

/* Dla kogo — 3 cols */
.audience-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.audience-grid--circles {
  gap: 2rem;
}

.audience-card {
  text-align: center;
  padding: 0 0.5rem;
}

.audience-card__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-eg-light);
}

.audience-card__icon .icon {
  width: 1.85rem;
  height: 1.85rem;
}

/* Dostępność — lista miast */
.availability {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .availability {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.availability__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.25rem;
}

.availability__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
}

.availability__list .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Gotowy zestaw — two col + arrow */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.split--arrow {
  position: relative;
}

.split__arrow {
  display: none;
}

@media (min-width: 768px) {
  .split__arrow {
    display: block;
    position: absolute;
    left: calc(50% - 3rem);
    top: 45%;
    width: 7rem;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
  }
}

.offer-card {
  background: var(--color-white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(29, 52, 86, 0.12);
}

.offer-card__img {
  /*aspect-ratio: 4 / 3;*/
  background: var(--color-eg-light);
  object-fit: cover;
}

.checklist {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
  font-size: 1rem;
}

.checklist li:last-child {
  margin-bottom: 0;
}

/* Pobrania — granat + duży czerwony trójkąt (jak czerwony-trojkat.svg) — data URI żeby zawsze działało bez <img> */
.downloads-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--color-eg-navy);
  padding-bottom: 2.5rem;
  isolation: isolate;
}

/* Lewy górny wierzchołek przy 50vw, prawy pion trójkąta dokładnie przy prawej krawędzi strony (right: 0) */
.downloads-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50vw;
  right: 0;
  width: auto;
  min-height: 14rem;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 100' preserveAspectRatio='none'%3E%3Cpolygon points='0%2C0 40%2C0 40%2C100' fill='%23D00B37'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left top;
}

.downloads__inner {
  position: relative;
  z-index: 2;
}

.downloads__intro {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.downloads__intro .h2 {
  color: var(--color-white);
  margin-bottom: 0.6rem;
}

.downloads__subtitle {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.download-grid {
  display: grid;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: stretch;
  }
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--color-white);
  color: var(--color-eg-navy);
  border-radius: 0.625rem;
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.download-card__icon-box {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.download-card__icon-box--pdf {
  background: rgba(208, 11, 55, 0.12);
}

.download-card__icon-box--dwg {
  background: var(--color-eg-light);
}

.download-card__icon-svg {
  display: block;
  width: 2.35rem;
  height: auto;
}

.download-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: var(--color-eg-navy);
}

.download-card__desc {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(29, 52, 86, 0.72);
  flex-grow: 0;
}

.download-card__filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #e8edf4;
  border-radius: 0.375rem;
  color: var(--color-eg-navy);
  margin-bottom: 1rem;
  word-break: break-all;
  line-height: 1.4;
}

.download-card .btn--block {
  margin-top: auto;
}

.downloads__footnote {
  text-align: center;
  margin: 2rem 0 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
}

.downloads__footnote a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.downloads__footnote a:hover {
  opacity: 0.9;
}

/* Wsparcie */
.support-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.support-photo {
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--color-eg-light);
  aspect-ratio: 4 / 3;
}

.support-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-wrench {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: var(--color-eg-light);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

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

.support-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

/* Tabela BHP */
.bhp-table-wrap {
  overflow-x: auto;
  margin-top: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(29, 52, 86, 0.12);
  background: var(--color-white);
}

.bhp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.bhp-table th,
.bhp-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(29, 52, 86, 0.1);
}

.bhp-table th {
  background: var(--color-eg-light);
  font-weight: 700;
}

.bhp-table--brand {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}

.bhp-table--brand th {
  background: var(--color-eg-navy);
  color: var(--color-white);
  font-weight: 600;
  border-bottom: none;
}

.bhp-table--brand td {
  font-family: var(--font-sans);
}

.bhp-row-fade td {
  position: relative;
}

.bhp-row-fade td::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 58%, rgba(255,255,255,1) 100%);
}

.bhp-row-fade--1 td::after {
  opacity: 0.55;
}

.bhp-row-fade--2 td::after {
  opacity: 0.8;
}

.bhp-table-wrap--hero {
  border: none;
  box-shadow: 0 4px 24px rgba(29, 52, 86, 0.08);
}

/* Zamów — dwie kolumny + karta formularza */
.order-cta {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .order-cta {
    grid-template-columns: 1fr minmax(18rem, 28rem);
    gap: 3rem;
    align-items: center;
  }
}

.order-cta__lead {
  opacity: 0.95;
  max-width: 36rem;
  margin: 0 0 1rem;
}

.order-cta__line {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.order-cta__line a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section--red .order-cta__contact a:hover {
  opacity: 0.9;
}

.order-cta__address {
  margin: 1rem 0 0;
  opacity: 0.9;
  line-height: 1.5;
}

.quote-card {
  background: var(--color-white);
  color: var(--color-eg-navy);
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.quote-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.quote-card__subtitle {
  margin: 0 0 1.25rem;
  text-align: center;
}

.quote-card__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quote-card__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-eg-navy);
}

.quote-card__form input:not([type="checkbox"]) {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(29, 52, 86, 0.2);
  border-radius: 0.375rem;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.quote-card__form input:not([type="checkbox"])::placeholder {
  color: var(--color-muted);
}

.quote-card__consent {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  font-size: 0.6875rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  color: var(--color-eg-navy);
}

.quote-card__consent input {
  width: auto;
  min-width: 0.875rem;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  align-self: flex-start;
}

.quote-card__consent span {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.quote-card__note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.has-newsletter-modal {
  overflow: hidden;
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: transparent;
}

.newsletter-modal[hidden] {
  display: none !important;
}

.newsletter-modal__panel {
  position: relative;
  width: min(100%, 29rem);
  background: var(--color-white);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem 1.65rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(29, 52, 86, 0.25);
}

.newsletter-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #e9eef6;
  color: var(--color-eg-navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.newsletter-modal__close:hover {
  background: #dbe4f1;
}

.newsletter-modal__thumb {
  width: 5.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
}

.newsletter-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-eg-navy);
}

.newsletter-modal__text {
  margin: 0;
  font-size: 1rem;
  color: rgba(29, 52, 86, 0.86);
}

/* Footer — bordowy trójkąt w prawym górnym rogu (przy prostym kącie u góry po prawej, przeciwprostokątna do prawego dołu) */
.footer {
  position: relative;
  background: var(--color-eg-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
  overflow: hidden;
  isolation: isolate;
}

.footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background: var(--color-eg-dark-red);
  -webkit-clip-path: polygon(82% 0, 100% 0, 100% 100%);
  clip-path: polygon(82% 0, 100% 0, 100% 100%);
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__grid--3 {
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .footer__grid--3 {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
    gap: 2rem 2.5rem;
    align-items: end;
  }

  .footer__meta-col {
    justify-self: end;
    text-align: right;
  }

  .footer__meta-col .footer__meta-inline {
    margin: 0;
  }
}

.footer__company,
.footer__address-block,
.footer__nip {
  color: rgba(255, 255, 255, 0.5);
}

.footer__company {
  margin: 0 0 0.125rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.footer__address-block {
  margin: 0 0 0.125rem;
  font-size: 0.9375rem;
  line-height: 1.35;
  font-style: normal;
}

.footer__nip {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.footer__label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.footer__meta-inline {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__logo {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.footer__logo img {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer__meta {
  font-size: 0.875rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}

/* Print */
@media print {
  .no-print {
    display: none !important;
  }

  .downloads-wrap::before {
    display: none !important;
  }

  .section--red::before {
    display: none !important;
  }

  .footer::before {
    display: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
  }

  .section,
  .hero {
    padding: 1rem 0;
    break-inside: avoid;
  }
}

/* Preloader przy przejściu do sklepu (link „Przejdź do sklepu”) */
.shop-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(29, 52, 86, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.shop-preloader[hidden] {
  display: none !important;
}

.shop-preloader__panel {
  max-width: 22rem;
  text-align: center;
  padding: 2rem 1.75rem;
  border-radius: 0.75rem;
  background: var(--color-white);
  box-shadow: 0 20px 50px rgba(29, 52, 86, 0.25);
}

.shop-preloader__spinner {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--color-eg-mist);
  border-top-color: var(--color-eg-red);
  border-radius: 50%;
  animation: shop-preloader-spin 0.75s linear infinite;
}

@keyframes shop-preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

.shop-preloader__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-eg-navy);
}

.shop-preloader__hint {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-muted);
}

@media print {
  .shop-preloader {
    display: none !important;
  }
}
