:root {
  color-scheme: light;
  --ink: #212121;
  --blue: #026ca8;
  --blue-dark: #064c75;
  --line: #dadfe2;
  --focus: #073e7c;
  --error: #9e2020;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 1rem/1.6 system-ui, sans-serif;
  overflow-wrap: anywhere;
}
[hidden] { display: none !important; }
a { color: var(--blue); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { margin: 0 0 16px; line-height: 1.23; }
h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
ul { padding-inline-start: 24px; }
.shell { width: min(1170px, calc(100% - 48px)); margin-inline: auto; }
.center { text-align: center; }

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 15;
  padding: 8px 16px;
  background: #fff;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.top { position: relative; z-index: 2; background: #fff; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: none; padding-block: 12px; }
.brand img { width: 80px; }
.top nav ul { margin: 0; padding: 0; list-style: none; }
.top nav > ul { display: flex; align-items: center; gap: 4px; }
.top nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: #222;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
}
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; }
.has-sub { position: relative; }
.has-sub > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: 0 0 4px 8px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.has-sub > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 144px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.has-sub:hover > ul, .has-sub:focus-within > ul {
  opacity: 1;
  pointer-events: auto;
}
.facebook { position: relative; }
.facebook img { width: 24px; }
.facebook img + img { position: absolute; opacity: 0; }
.facebook:is(:hover, :focus-visible) img + img { opacity: 1; }
.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--blue-dark);
  border: 1px solid currentColor;
  background: #fff;
  font-weight: 700;
}

.hero {
  min-height: 450px;
  padding: 128px 20px 32px;
  text-align: center;
  background: #243733 url("../img/header.jpg") center / cover no-repeat;
}
.hero-title {
  width: fit-content;
  margin: 0 auto 32px;
  padding: 4px 12px;
  background: rgb(0 0 0 / .58);
  color: #fff;
  font-size: clamp(1.375rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 3px 3px 3px #000;
}
.action {
  display: inline-block;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: .9375rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.action:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.action-voucher { border-color: #e8862d; background: #e8862d; color: var(--ink); }
.action-voucher:hover { border-color: #f2a75e; background: #f2a75e; }
.hero .action:focus-visible, .lightbox button:focus-visible { outline-color: #fff; }

.content { padding-block: 48px 64px; }
.content > section, .content > .photo-strip { margin-block: 0 40px; }
.content > :last-child { margin-bottom: 0; }
.page-heading { margin-bottom: 32px; text-align: center; }
.page-heading::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: 16px auto 0;
  background: var(--blue);
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 32px;
}
.split > img { width: 100%; }
.voucher-promo > img { width: min(100%, 420px); justify-self: center; }
.price-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-block: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.price-pair img { width: min(100%, 220px); margin: 0 auto 16px; }
.service { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.service > img { width: min(100%, 240px); justify-self: center; }
.content > p + .service { margin-top: 40px; }
.route-names {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  font-weight: 700;
  list-style: none;
}
.route-key {
  display: block;
  width: 48px;
  height: 8px;
  margin: 0 auto 8px;
  border: 1px solid #212121;
  background: #dc9203;
}
.route-names li:nth-child(2) .route-key {
  background: linear-gradient(to right, #0345dc 50%, #dc9203 50%);
}
.route-names li:nth-child(3) .route-key {
  background: linear-gradient(to right, #dc9203 50%, #fdfa1d 50%);
}
.route-names li:nth-child(4) .route-key {
  background: linear-gradient(to right, #dc035a 33.33%, #0345dc 33.33% 66.67%, #dc9203 66.67%);
}
.contact address {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(32px, 6vw, 71px);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-style: normal;
  font-weight: 700;
}
.contact-icon {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  fill: #f38320;
}
.legal { max-width: 800px; margin-inline: auto; }
.legal h2, .legal h3 { margin-top: 32px; }
.legal h3 { margin-bottom: 12px; }

.photo-strip { position: relative; }
.photo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--blue) #f1f4f6;
}
.photo-track img {
  flex: 0 0 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  object-fit: cover;
  scroll-snap-align: start;
}
.home-strip { width: min(100%, 900px); margin-inline: auto; }
.home-strip img { aspect-ratio: 16 / 9; }
.sprzet-strip img { flex-basis: calc(100% / 3); aspect-ratio: 16 / 9; }
.strip-back, .strip-next {
  position: absolute;
  top: calc(50% - 24px);
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #fff;
  background: var(--blue-dark);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}
.strip-back { left: 8px; }
.strip-next { right: 8px; }
.strip-back:disabled, .strip-next:disabled { background: #454545; cursor: default; }
.gallery {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 24px 12px;
  text-align: center;
}
.gallery figure { min-width: 0; margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery a { display: block; }
.gallery figcaption { padding-top: 8px; font-size: .875rem; }
.lightbox {
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  padding: 12px;
  color: #fff;
  background: #171717;
  border: 0;
}
.lightbox::backdrop { background: rgb(0 0 0 / .8); }
.lightbox img { width: auto; height: auto; max-height: calc(100dvh - 120px); margin: auto; }
.lightbox-close {
  display: block;
  min-height: 44px;
  margin: 0 0 8px auto;
  padding: 4px 12px;
  color: #171717;
  border: 0;
  background: #fff;
}

.checkout > img { width: min(100%, 580px); margin: 0 auto 24px; }
.checkout-detail { font-weight: 700; }
.order { width: min(100%, 640px); margin-inline: auto; }
.field { min-inline-size: 0; margin: 0 0 20px; padding: 0; border: 0; }
.field label, .field legend { display: block; margin-bottom: 4px; font-weight: 700; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink);
  border: 1px solid #717171;
  border-radius: 0;
  background: #fff;
}
.field textarea { resize: vertical; }
.field .check-label { display: flex; align-items: flex-start; gap: 8px; min-height: 44px; font-weight: 400; }
.check-label input { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; accent-color: var(--blue); }
.hint { margin-top: 4px; color: #555; font-size: .9375rem; }
.field-error, .order-error { color: var(--error); }
.field-error { margin-block: 4px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.terms:not(:target) { display: none; }
.page-footer { padding-block: 24px; background: #202020; color: #fff; font-size: .875rem; text-align: center; }

@media (max-width: 900px), (hover: none) {
  .top-inner { flex-wrap: wrap; gap: 0 16px; }
  .top nav { flex: 0 0 100%; padding-bottom: 8px; }
  .top nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .top nav li + li { border-top: 1px solid var(--line); }
  .top nav a { padding-inline: 8px; }
  .top nav .has-sub > ul { position: static; padding-left: 24px; opacity: 1; border: 0; pointer-events: auto; }
  .has-sub > a::after { display: none; }
  .menu-toggle:not([hidden]) { display: inline-block; }
  .menu-toggle[aria-expanded="false"]:not([hidden]) + nav { display: none; }
  .hero { min-height: 320px; padding-top: 80px; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .content { padding-block: 32px 48px; }
  .hero { min-height: 270px; padding-top: 60px; }
  .hero-title { margin-bottom: 20px; }
  .split, .service, .contact address { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .route-names, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sprzet-strip img { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
