/* Roadside photography, asphalt black and the existing yellow identity. */
body[data-rescue-design] {
  --rescue-yellow: #facc15;
  --rescue-ink: #10110f;
  --rescue-ease: cubic-bezier(.23, 1, .32, 1);
  background: var(--rescue-ink);
}

#hero.rescue-hero {
  position: relative;
  display: block;
  min-height: 850px;
  min-height: max(850px, 100svh);
  overflow: hidden;
  padding: 154px max(32px, calc((100vw - 1240px) / 2)) 168px;
  background: #10110f;
  isolation: isolate;
}

.rescue-hero__media {
  position: absolute;
  inset: 0 0 0 29%;
  z-index: -2;
  overflow: hidden;
}

.rescue-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #10110f 0%, #10110fcc 12%, #10110f28 45%, #10110f05 75%), linear-gradient(0deg, #10110f 0%, transparent 33%, #10110f50 100%);
}

.rescue-hero__photo {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 48%;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 220ms ease, transform 700ms var(--rescue-ease);
  filter: brightness(.82) saturate(.85);
}

.rescue-hero__photo.is-active {
  opacity: 1;
  transform: scale(1);
}

.rescue-hero.is-keyboard .rescue-hero__photo {
  transition: none;
}

.rescue-hero__content {
  position: relative;
  max-width: 650px;
}

#hero h1 {
  margin: 0;
  font-size: clamp(64px, 6.5vw, 96px);
  font-weight: 900;
  line-height: .97;
  letter-spacing: -.04em;
  color: #fff;
  text-shadow: 0 4px 24px #0005;
}

#hero h1 span {
  display: block;
  margin-top: 15px;
  font-size: .68em;
  color: var(--rescue-yellow);
  letter-spacing: -.03em;
}

.rescue-hero__location {
  margin: 25px 0 0;
  font-size: 19px;
  font-weight: 600;
  color: #faf9f2;
}

.rescue-hero__description {
  max-width: 440px;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: #deded5;
}

.rescue-hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  color: var(--rescue-yellow);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.rescue-hero__phone i {
  font-size: 23px;
}

.rescue-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.rescue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid #ffffff60;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 150ms ease, transform 140ms var(--rescue-ease);
}

.rescue-button--primary {
  background: var(--rescue-yellow);
  border-color: var(--rescue-yellow);
  color: #15160f;
}

.rescue-button--secondary {
  background: #10110fb8;
  color: #fff;
}

.rescue-button svg, .rescue-hero__scroll svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rescue-button:active {
  transform: scale(.97);
}

.rescue-hero__scene-caption {
  position: absolute;
  right: max(32px, calc((100vw - 1240px) / 2));
  bottom: 168px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  padding: 13px 16px;
  background: #10110fe8;
  border: 1px solid #ffffff26;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 12px 30px #0004;
}

.rescue-hero__scene-caption a {
  width: 100%;
  color: var(--rescue-yellow);
  text-underline-offset: 4px;
  text-decoration: underline;
}

.rescue-hero__scene-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rescue-yellow);
}

.rescue-hero__bottom {
  position: absolute;
  right: max(32px, calc((100vw - 1240px) / 2));
  left: max(32px, calc((100vw - 1240px) / 2));
  bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-top: 25px;
  border-top: 1px solid #ffffff30;
}

.rescue-hero__bottom p {
  margin: 0;
  color: #d6d6ce;
  font-size: 13px;
  line-height: 1.6;
}

.rescue-hero__bottom strong {
  color: #fff;
  font-weight: 600;
}

.rescue-hero__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border: 1px solid #ffffff2b;
  background: #10110fcc;
  border-radius: 6px;
}

.rescue-hero__choices[hidden] {
  display: none;
}

.rescue-hero__choices button {
  min-height: 44px;
  padding: 10px 20px;
  color: #e6e6df;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  transition: color 140ms ease, background-color 140ms ease;
}

.rescue-hero__choices button[aria-pressed="true"] {
  background: var(--rescue-yellow);
  color: #14150f;
}

.rescue-hero__scroll {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border: 1px solid #ffffff45;
  border-radius: 50%;
  color: var(--rescue-yellow);
}

body[data-rescue-design] main > section:not(#hero) {
  padding-top: 110px;
  padding-bottom: 110px;
}

body[data-rescue-design] main h2 {
  max-width: 950px;
  text-align: left;
  font-size: clamp(32px, 4.1vw, 58px);
  line-height: 1.13;
  letter-spacing: -.035em;
}

body[data-rescue-design] main h2 + p {
  margin-left: 0;
  text-align: left;
  max-width: 750px;
  line-height: 1.8;
}

#uslugi .grid {
  grid-template-columns: 1fr;
  gap: 0;
}

#uslugi article {
  display: grid;
  grid-template-columns: 60px minmax(200px, .75fr) 1fr;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  background: none;
  border: 0;
  border-top: 1px solid #ffffff26;
  border-radius: 0;
  box-shadow: none;
}

#uslugi article .icon-tile {
  margin: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

#uslugi article h3 {
  font-size: 23px;
  letter-spacing: -.025em;
  line-height: 1.3;
}

#uslugi article p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #bcbdb3;
}

#akcje {
  background: #191b17;
}

#akcje .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#akcje figure {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #10110f;
}

#akcje figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

#akcje figure picture {
  position: absolute;
  inset: 0;
  display: block;
}

#akcje figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#akcje figure figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 44px 20px 18px;
  background: linear-gradient(transparent, #000e);
  color: #f7f7ed;
  line-height: 1.5;
  font-size: 13px;
  pointer-events: none;
}

#obszar {
  background: #facc15;
}

#obszar h2, #obszar h2 span, #obszar > div > p,
#obszar > div > p strong, #obszar > div > div > h3,
#obszar > div > div > p, #obszar a.text-brand {
  color: #15160f;
}

#obszar a.text-brand {
  text-decoration-color: #15160f80;
}

#obszar .coverage-map {
  margin-top: 44px;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 24px 50px #63520e40;
}

#kontakt {
  background: #20231b;
}

@media (hover: hover) and (pointer: fine) {
  .rescue-button--primary:hover { background: #ffdf4d; }
  .rescue-button--secondary:hover { background: #ffffff1a; }
  .rescue-hero__choices button:hover { background: #ffffff14; }
  .rescue-hero__choices button[aria-pressed="true"]:hover { background: #ffdf4d; }
  #uslugi article:hover { transform: none; background: #ffffff03; }
}

@media (max-width: 767px) {
  #hero.rescue-hero {
    min-height: auto;
    padding: 107px 24px 0;
  }
  .rescue-hero__media {
    inset: 0 0 auto;
    height: 600px;
  }
  .rescue-hero__media::after {
    background: linear-gradient(90deg, #10110ff0, #10110f99), linear-gradient(0deg, #10110f, transparent 65%);
  }
  .rescue-hero__photo { object-position: 58% center; }
  #hero h1 { font-size: clamp(54px, 13.5vw, 88px); }
  #hero h1 span { margin-top: 12px; font-size: .65em; }
  .rescue-hero__location { font-size: 16px; margin-top: 22px; }
  .rescue-hero__description { font-size: 13px; line-height: 1.75; max-width: 350px; }
  .rescue-hero__phone { margin-top: 24px; font-size: 29px; gap: 12px; }
  .rescue-hero__actions { gap: 10px; }
  .rescue-button { padding: 13px 16px; gap: 15px; font-size: 12px; min-height: 50px; }
  .rescue-hero__scene-caption {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 26px;
    max-width: none;
  }
  .rescue-hero__bottom {
    position: relative;
    inset: auto;
    margin-top: 30px;
    padding: 22px 0 30px;
    flex-wrap: wrap;
    gap: 20px;
  }
  .rescue-hero__bottom > p { flex: 1; }
  .rescue-hero__choices { order: 3; width: 100%; gap: 2px; }
  .rescue-hero__choices button { flex: 1; padding: 10px 6px; font-size: 11px; }
  .rescue-hero__scroll { width: 44px; height: 44px; }
  body[data-rescue-design] main > section:not(#hero) { padding-top: 64px; padding-bottom: 64px; }
  body[data-rescue-design] main h2 { font-size: 34px; }
  #uslugi article { grid-template-columns: 44px 1fr; gap: 10px 16px; padding: 24px 0; }
  #uslugi article .icon-tile { grid-row: span 2; width: 44px; }
  #uslugi article h3 { font-size: 20px; }
  #uslugi article p { grid-column: 2; font-size: 13px; }
  #akcje .grid { display: grid; grid-template-columns: 1fr; overflow: visible; }
  #akcje figure, #akcje figure:first-child { grid-column: auto; grid-row: auto; min-height: 280px; width: 100%; scroll-snap-align: none; }
  #akcje > div > p.sm\:hidden { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rescue-hero__photo, .rescue-button, .rescue-hero__choices button { transition: none; }
  .rescue-button:active { transform: none; }
}
