:root {
  --ink: #121417;
  --muted: #5f6874;
  --line: #dce2ea;
  --paper: #f7f9fb;
  --white: #ffffff;
  --lemon: #f4b324;
  --orange: #f47a22;
  --leaf: #17804f;
  --blue: #24508f;
  --shadow: 0 10px 40px rgba(18, 20, 23, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  /* clip zamiast hidden: przycina schowaną szufladę menu poza ekranem,
     ale nie tworzy kontenera przewijania, więc sticky header dalej działa. */
  overflow-x: clip;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 24px);
  padding: 12px clamp(14px, 4vw, 56px);
  background: rgba(247, 249, 251, 0.93);
  border-bottom: 1px solid rgba(220, 226, 234, 0.9);
  backdrop-filter: blur(16px);
}

.header-actions {
  display: grid;
  grid-template-columns: auto 44px;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-logo {
  width: clamp(140px, 16vw, 170px);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(18, 20, 23, 0.12);
}

.footer-brand img {
  width: 156px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(18, 20, 23, 0.12);
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  color: var(--muted);
  font-size: 15px;
}

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

.header-action,
.button,
.header-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 850;
}

.header-action {
  padding: 0 16px;
  color: var(--white);
  background: var(--leaf);
}

.header-social {
  width: 44px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.header-social img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.button {
  border: 0;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.button-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex: 0 0 auto;
}

.primary {
  color: var(--ink);
  background: var(--lemon);
}

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

.ghost {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.phone-pulse {
  position: relative;
  animation: phonePulse 1.8s ease-in-out infinite;
}

.phone-pulse::after {
  position: absolute;
  inset: -4px;
  content: "";
  border: 2px solid rgba(244, 179, 36, 0.72);
  border-radius: inherit;
  animation: ringPulse 1.8s ease-out infinite;
  pointer-events: none;
}

.text-phone {
  display: inline-flex;
  border-radius: 6px;
  font-weight: 950;
}

@keyframes phonePulse {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1px);
  }
}

@keyframes ringPulse {
  0% {
    opacity: 0.9;
    transform: scale(0.98);
  }

  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: auto;
  padding: clamp(34px, 5vw, 68px) clamp(18px, 4vw, 56px) 48px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Space Grotesk", Manrope, ui-sans-serif, system-ui, sans-serif;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(36px, 5.5vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(29px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(18, 20, 23, 0.04);
}

.trust-strip div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.trust-strip dd {
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 900;
}

.hero-media {
  position: relative;
  align-self: center;
  aspect-ratio: 725 / 314;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 16px 40px rgba(18, 20, 23, 0.1);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.08) saturate(1.08) brightness(1.03);
  transform: scale(1.015);
}

.section,
.process-band,
.map-section {
  padding: clamp(52px, 7vw, 88px) clamp(18px, 4vw, 56px);
}

.compact {
  padding-top: 40px;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 34px;
}

.section-copy,
.form-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.map-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(320px, 1.26fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
  background: var(--white);
  border-block: 1px solid var(--line);
}

.map-copy {
  align-self: center;
}

.map-copy address {
  margin: 0 0 24px;
  color: var(--ink);
  font-style: normal;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.25;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.map-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 420px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 46px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 850;
}

.social-logo {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.whatsapp-link .social-logo {
  background: #25d366;
}

.facebook-link .social-logo {
  background: #1877f2;
}

.map-frame {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e8edf3;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  pointer-events: none;
}

.map-overlay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--white);
  background: rgba(18, 20, 23, 0.9);
  border-radius: 8px;
  font-weight: 900;
}

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

.repair-card,
.steps li,
.contact-tile,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.repair-card {
  min-height: 224px;
  padding: 24px;
}

.repair-card svg {
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  color: var(--blue);
}

.repair-card p,
.steps p {
  color: var(--muted);
}

.parcel-section {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.parcel-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.parcel-card,
.parcel-note,
.repair-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(18, 20, 23, 0.05);
}

.parcel-card,
.parcel-note {
  padding: clamp(22px, 4vw, 34px);
}

.parcel-card {
  display: grid;
  gap: 20px;
  align-content: start;
}

.parcel-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.parcel-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.parcel-card dd {
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.parcel-card a,
.parcel-note strong,
.repair-form a,
.footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.parcel-note {
  background: #fff7df;
  border-color: rgba(244, 179, 36, 0.58);
}

.parcel-note h3 {
  font-size: clamp(26px, 4vw, 38px);
}

.parcel-note p {
  color: #443b28;
  font-size: 18px;
  font-weight: 750;
}

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

.process-band .eyebrow,
.process-band p {
  color: #c9d4e3;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 24px;
  color: var(--ink);
}

.steps span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  place-items: center;
  background: var(--lemon);
  border-radius: 8px;
  font-weight: 900;
}

.split,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1.16fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.model-columns {
  columns: 2 320px;
  column-gap: clamp(28px, 5vw, 58px);
  padding-top: 8px;
}

.model-columns div {
  break-inside: avoid;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.model-columns h3 {
  margin-bottom: 8px;
}

.model-columns p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.gallery-section {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.gallery-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--lemon) #e8edf3;
}

.gallery-item {
  flex: 0 0 clamp(220px, 24vw, 340px);
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #e7edf4;
  box-shadow: 0 18px 45px rgba(18, 20, 23, 0.16);
  position: relative;
  cursor: pointer;
  padding: 0;
  scroll-snap-align: start;
}

.gallery-item--video {
  flex-basis: clamp(300px, 36vw, 520px);
  aspect-ratio: 16 / 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease, filter 0.45s ease;
  display: block;
}

.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
  display: block;
}

.gallery-item::after {
  content: "Powiększ";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(18, 20, 23, 0.48);
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: contrast(1.08);
}

.gallery-item:hover video {
  transform: scale(1.05);
  filter: contrast(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item--video::after,
.gallery-item--more::after {
  content: "";
}

.play-badge,
.gallery-item--more span {
  position: absolute;
  inset: auto 14px 14px auto;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  padding: 0 14px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(18, 20, 23, 0.82);
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.gallery-item--more::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: rgba(18, 20, 23, 0.34);
}

.gallery-hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.repair-form {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 760px;
  padding: clamp(22px, 4vw, 34px);
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.repair-form label,
label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.repair-form input,
.repair-form textarea,
input,
textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  color: var(--ink);
  border: 1px solid #c8d0db;
  border-radius: 8px;
  background: var(--paper);
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #99a2af;
  opacity: 1;
}

input[type="file"] {
  padding: 10px;
  background: var(--white);
  font-size: 0;
  color: transparent;
}
input[type="file"]::file-selector-button {
  font-size: 13px;
}

.file-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-feedback {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-left: 4px;
}

label small {
  color: var(--muted);
  font-weight: 700;
}

textarea {
  resize: vertical;
}

.repair-form .privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.repair-form .button {
  justify-self: start;
}

.privacy-check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.faq-section {
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 940px;
}

.faq-list details {
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(18, 20, 23, 0.05);
}

.faq-list summary {
  position: relative;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-size: 18px;
  font-weight: 900;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  right: 20px;
  top: 50%;
  content: "+";
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
  overflow: hidden;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox.active {
  display: flex;
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  padding: 72px 86px;
  touch-action: pan-y;
  will-change: transform;
  position: relative;
  z-index: 1;
}

.lightbox-stage img,
.lightbox-stage video {
  width: min(96vw, 1500px);
  height: min(86vh, 920px);
  border-radius: 8px;
  object-fit: contain;
  background: #05070a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.52);
  cursor: default;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-stage img[hidden],
.lightbox-stage video[hidden] {
  display: none !important;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  width: 50px;
  height: 50px;
  font-size: 42px;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translateY(-50%);
  font-size: 54px;
  line-height: 1;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

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

.contact-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(18, 20, 23, 0.07);
}

.contact-tile svg {
  width: 28px;
  height: 28px;
  color: var(--leaf);
}

.contact-tile span,
.contact-tile strong {
  display: block;
}

.contact-tile span {
  color: var(--muted);
}

.contact-tile strong {
  color: var(--ink);
  margin-bottom: 4px;
}

.footer {
  display: grid;
  gap: 18px;
  padding: 36px clamp(18px, 4vw, 56px);
}

.company-footer {
  color: var(--lemon);
  background: var(--ink);
  border-top: 4px solid var(--lemon);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(244, 179, 36, 0.3);
}

.footer-brand {
  width: fit-content;
}

.footer-brand span,
.footer-brand strong,
.footer-brand small {
  display: block;
}

.footer-brand strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.footer-brand small {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 800;
}

.footer p {
  max-width: 980px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.footer-links {
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-domains {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  font-weight: 950;
  font-size: 19px;
  margin-top: 4px;
  line-height: 1.1;
}

.company-footer a {
  color: var(--lemon);
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(32px, 7vw, 82px) clamp(18px, 4vw, 40px);
}

.legal-page h1 {
  margin-bottom: 28px;
  font-size: clamp(38px, 7vw, 68px);
}

.legal-page h2 {
  margin-top: 34px;
  font-size: clamp(24px, 4vw, 34px);
}

.legal-page p {
  color: var(--muted);
  font-size: 18px;
}

.legal-page a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 26px;
}

.legal-date {
  margin-top: 42px;
  font-weight: 900;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Nowe Elementy UI */
.trust-message {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  margin-top: -14px;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 3px solid var(--lemon);
}

.community-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.community-content {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.parcel-checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.parcel-checklist li {
  position: relative;
  padding-left: 24px;
  color: #443b28;
  font-size: 17px;
}

.parcel-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: 900;
}

.no-scroll {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(18, 20, 23, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 3vw, 24px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fffbe6;
  border: 2px solid var(--lemon);
  border-radius: 12px;
  padding: 34px;
  box-shadow: 0 24px 60px rgba(18, 20, 23, 0.25);
}

/* Regulamin w modalu: nagłówek i przyciski stoją, przewija się tylko treść. */
.modal-content--regulamin {
  max-width: 820px;
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3.5vw, 34px);
  background: var(--white);
}

.modal-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: clamp(4px, 1.5vw, 14px);
  margin-right: calc(-1 * clamp(4px, 1.5vw, 14px));
  scrollbar-color: var(--lemon) #e8edf3;
}

.modal-content--regulamin .modal-actions {
  flex: 0 0 auto;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: var(--paper);
  color: var(--ink);
}

.modal-content h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--ink);
}

.modal-content p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 14px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- Regulamin ---------- */

.regulamin {
  --reg-gap: clamp(22px, 3.4vw, 34px);
}

.regulamin-head h1,
.regulamin-head h2 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.1;
}

.regulamin-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 750;
}

.regulamin-ship {
  margin-top: var(--reg-gap);
  padding: clamp(16px, 2.6vw, 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.regulamin-ship h2,
.regulamin-ship h3 {
  margin: 0 0 14px;
  font-size: clamp(18px, 2.4vw, 22px);
}

.regulamin-ship-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 20px;
  margin: 0;
}

.regulamin-ship-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.regulamin-ship-list dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.regulamin-ship-list a {
  color: var(--blue);
  text-decoration: none;
}

.regulamin-ship-list a:hover {
  text-decoration: underline;
}

.regulamin-alert {
  margin-top: 18px;
  padding: clamp(14px, 2.2vw, 20px);
  background: #fffbe6;
  border: 2px solid var(--lemon);
  border-radius: 10px;
}

.regulamin-alert h3,
.regulamin-alert h4 {
  margin: 0 0 8px;
  font-size: clamp(16px, 2.2vw, 19px);
}

.regulamin-alert p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
}

.regulamin-alert p:last-child {
  margin-bottom: 0;
}

.regulamin-sections {
  list-style: none;
  margin: var(--reg-gap) 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.regulamin-section {
  padding: clamp(16px, 2.6vw, 24px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(18, 20, 23, 0.05);
}

.regulamin-section > h2,
.regulamin-section > h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.25;
}

.regulamin-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--lemon);
  border-radius: 9px;
  font-size: 17px;
  font-weight: 950;
}

.regulamin-section ol,
.regulamin-section ul {
  margin: 0;
  padding-left: 1.35em;
}

.regulamin-section > ol > li {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.regulamin-section > ol > li:last-child {
  margin-bottom: 0;
}

.regulamin-section > ol > li::marker {
  color: var(--ink);
  font-weight: 900;
}

.regulamin-section ul {
  margin: 8px 0 4px;
  list-style: none;
  padding-left: 0;
}

.regulamin-section ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 4px;
  font-weight: 750;
}

.regulamin-section ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lemon);
}

.regulamin-section strong {
  color: var(--ink);
}

.regulamin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: var(--reg-gap) 0 0;
  padding: 0;
}

.regulamin-badges span {
  padding: 9px 16px;
  color: var(--lemon);
  background: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.regulamin-page .regulamin-section > ol > li,
.regulamin-page .regulamin-lead {
  font-size: 16px;
}

/* ---------- Menu mobilne ---------- */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  place-items: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(18, 20, 23, 0.5);
  backdrop-filter: blur(2px);
}

.nav-backdrop[hidden] {
  display: none;
}

.form-status {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
}

.form-status.success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.form-status.error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ffcdd2;
}

@media (max-width: 980px) {
  /* Nawigacja staje się szufladą wysuwaną z prawej, sterowaną hamburgerem. */
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 19;
    width: min(300px, 82vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 88px 22px 28px;
    background: var(--white);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 50px rgba(18, 20, 23, 0.18);
    /* visibility zapobiega poziomemu przewijaniu strony przy zamkniętej szufladzie */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.26s ease, visibility 0s linear 0.26s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav a {
    padding: 14px 12px;
    color: var(--ink);
    border-radius: 10px;
    font-size: 17px;
    font-weight: 800;
  }

  .nav a:hover,
  .nav a:focus-visible {
    background: var(--paper);
  }

  .nav--open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.26s ease, visibility 0s;
  }

  .nav-toggle {
    display: grid;
  }

  .header-actions {
    grid-template-columns: auto 44px 44px;
  }

  .hero,
  .split,
  .contact-section,
  .map-section,
  .parcel-grid,
  .form-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 360px;
  }

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

  .gallery-grid {
    margin-inline: -18px;
    padding-inline: 18px;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: center;
    gap: 10px;
  }

  .header-actions {
    grid-template-columns: auto 40px;
    gap: 8px;
  }

  .header-action {
    min-width: 44px;
    padding: 0 12px;
    font-size: 0;
  }

  /* Na wąskich telefonach w nagłówku zostaje tylko telefon i hamburger.
     Facebook jest dostępny w sekcji Mapa i w stopce. */
  .header-social {
    display: none;
  }

  .header-actions {
    grid-template-columns: auto 44px;
  }

  .brand-logo {
    width: clamp(112px, 30vw, 140px);
  }

  .hero {
    padding-top: 30px;
  }

  h1 {
    font-size: 38px;
  }

  .trust-strip,
  .repair-grid,
  .steps,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .button,
  .map-actions .button,
  .repair-form .button {
    width: 100%;
  }

  .gallery-grid {
    gap: 10px;
  }

  .gallery-item {
    flex-basis: 76vw;
  }

  .gallery-item--video {
    flex-basis: 86vw;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 40px;
  }

  .lightbox-stage {
    padding: 66px 12px;
  }

  .lightbox-stage img,
  .lightbox-stage video {
    width: 100vw;
    height: 82vh;
    border-radius: 0;
  }

  .footer-brand strong {
    font-size: 22px;
  }

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

  .footer-links {
    grid-column: auto;
    grid-row: auto;
    text-align: left;
  }

  .footer-domains {
    gap: 4px;
  }

  .modal-content {
    padding: 24px;
  }
  
  .modal-content h2 {
    font-size: 24px;
  }
}
