@font-face {
  font-family: "NunitoSans-var";
  src: url(fonts/nunito-sans-full-variable.woff2);
  font-weight: 200 1000;
}
@font-face {
    font-family: "NunitoSans-var";
    src: url(fonts/nunito-sans-latin-ext-full-normal.woff2);
    font-weight: 200 1000;
    unicode-range: U+0100-024F;
}

* img {
  max-width: 100%;
}

* {
  margin: 0 auto;
  max-width: 1920px;
}

body {
  font-family: "nunitosans-var";
  background: #ffffff;
  color: #333;
  /* overflow-x: hidden; */
  max-width: 1920px;
  border-spacing: 60px 30px;
}
html, body, header, .main {
  min-width: 950px;
}

html {
  max-width: 100vw;
  max-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background-color: white;
  scroll-behavior: smooth;
}

.no-js-msg {
  width: 100%;
  display: block;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  text-wrap: nowrap;
  bottom: 0px;
  text-align: center;
  padding: 10px;
  background-color: red;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-style: normal;
  font-size: 0.8em;
  color: rgb(255, 220, 220);
  z-index: 3;
  opacity: 0.8;
}

.header {
  color: white;
  width: 100%;
  height: 200px;
  background: white;
  display: block;
  border-bottom: 1px solid hsl(0, 0%, 92%);

  /* sticky header sect */
  overflow: visible;
  position: fixed;
  top: 0;
  z-index: 3;
}

.header,
.header * {
  transition: 0.7s;
}

.logo {
  display: block;

  width: auto;
  float: left;
  margin: 45px 0 0 45px;
}

.logo img {
  width: 300px;
  padding: 25px;
}

.info {
  display: inline-block;
  position: absolute;
  top: 23%;
  right: 4.5%;
  max-width: 60%;
}

.info-item,
.info-subitem {
  display: block;
  text-align: center;
  float: left;
  width: auto;
}
#infoSubItem .info-nr {
  background-color: hsl(207, 100%, 65%);
}
.info-subitem {
  position: absolute;
  top: 23%;
  right: 19%;
  max-width: 60%;
}

.info-email {
  color: hsl(0, 0%, 40%);
  text-decoration: none;
  font-size: 16px;
  border: 1px solid hsl(0, 0%, 60%);
  border-radius: 6px;
  padding: 10px;
}

.info-email:hover {
  background-color: hsl(0, 0%, 70%);
  color: white;
  font-weight: 600;
}

.info-sub-label {
  color: #aaaaaa;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.6px;
  margin-top: 6px;
}

.info-nr {
  font-size: 36px;
  font-weight: 800;
  /* color: hsl(210, 100%, 76%); */
  color: white;
  display: block;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 18px;
  background-color: hsl(39, 100%, 50%);
}

a.info-nr,
a.info-nr:visited {
  text-decoration: none;
}
a.info-nr:hover {
  scale: 1.06;
}

.info-label {
  color: gray;
  font-size: 15px;
  letter-spacing: 0.4px;
  font-weight: 700;
}

nav {
  position: absolute;
  width: 40%;
  height: 22%;
  left: 23%;
  bottom: 33%;
  text-align: center;
}

nav a {
  width: 20%;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .3px;
  margin: 0 2%;
  text-wrap: nowrap;
  height: 100%;
  vertical-align: top;
  display: inline-block;
  align-content: center;
  border: 2px transparent solid;
  color: #062c4b;
  text-decoration: none;
}

nav a:visited {
  color: #062c4b;
  text-decoration: none;
}

nav a:hover {
  font-weight: 800;
  color: #0c4877;
  scale: 1;
  background-color: white;
  border: 2px solid hsl(0, 0%, 90%);
  border-radius: 5px;
}

.lang {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #062c4b;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}

.lang::before {
  content: "\1F310"; /* 🌐 globus — czytelne oznaczenie zmiany języka */
  font-size: 13px;
  line-height: 1;
}

.lang img { display: none; }

.lang:hover {
  background: #0c4877;
  scale: 1.05;
  cursor: pointer;
}

/* MAIN SECT */

.main {
  background: hsl(0, 0%, 100%);
  display: block;
  position: absolute;
  top: 200px;
  width: 100vw;
  overflow: hidden;
}


/* HERO */
.hero {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
}

.hero img {
  aspect-ratio: 1.833;
  width: 100%;
  height: auto;
  max-width: 1920px;
}

.hero-img {
  display: flex;
  /* overflow: hidden; */
  height: min-content;
}


/* contact form moved to hero section > */
#hp_field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  user-select: none;
  right: 9999px;
  overflow: hidden;
  opacity: 0.000;
}

.contact-section {
  position: absolute;
  background-color: white;
  border-radius: 12px;
  right: 70px;
  top: 40%;
  width: 820px;
  height: 480px;
  padding: 0px 20px;
  box-shadow: 2px 3px 9px black;
}

.contact-section h2 {
  text-align: center;
  color: black;
  margin-bottom: 9px;
  margin-top: 20px;
  font-size: 30px;
}

.contact-section h3 {
  font-size: 16px;
  font-weight: 500;
  position: relative;
  text-align: center;
  margin-bottom: 27px;
}

.contact-section #formMessage {
  color: rgba(0, 0, 0, 0.6);
  position: relative;
  left: 18px;
  cursor: pointer;
  width: fit-content;
  margin-left: 0;
}

#formMessageContent {
  cursor: default;
  opacity: 0.0;
  transition: 0.3s ease;
  transition-delay: 0s;
  position: absolute;
  border: 1px solid lightslategray;
  border-radius: 3px;
  padding: 5px;
  font-size: 70%;
  color: hsl(0, 0%, 40%);
  background-color: white;
  width: 400px;
}

#formMessageContent a,
a:visited {
  color: unset;
}

#formMessage:hover #formMessageContent {
  transition: 0.3s ease;
  transition-delay: 0.4s;
  opacity: 1.0;
}

.contact-form {
  max-width: 900px;
  max-height: 300px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  margin: 6px;
  border: 1px solid gray;
  border-radius: 6px;
  font-size: 17px;
}

.contact-form input:focus {
  outline: 2px solid blue;
}

.contact-form #dest_from,
#dest_to {
  width: 200px;
}

.form-labels {
  position: relative;
  margin: 0;
  left: 12px;
  width: 340px;
  text-wrap: nowrap;
  color: gray;
}

#date_to_label {
  position: relative;
  left: 116px;
  opacity: 0;
}

.contact-form #date,
#phone,
#email,
#ppl_quantity {
  width: 440px;
}

/* Data końcowa: węższe pole obok daty początkowej (desktop). */
.contact-form #date_to {
  width: 200px;
}

/* "Jeden dzień": chowamy datę końcową i zwężamy datę początkową. */
#contactForm.form-oneday #date {
  width: 200px;
}

.contact-form .field-error {
  display: block;
  position: relative;
  left: 12px;
  margin: -2px 0 4px;
  max-width: 440px;
  color: #c0261b;
  font-size: 13px;
  font-style: normal;
}

.contact-form .field-error[hidden] {
  display: none;
}

/* Etykiety tylko dla czytników ekranu (wizualnie ukryte). */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.contact-form .field-hint {
  display: block;
  position: relative;
  left: 12px;
  margin: 2px 0 6px;
  max-width: 300px;
  color: #6a7a88;
  font-size: 12px;
  font-style: normal;
}

/* Stały nagłówek nie zasłania kotwiczonych sekcji. */
#wycena, #autokary, #kontakt, .footer {
  scroll-margin-top: 210px;
}

.contact-form #is_oneday,
label {
  position: relative;
  left: 14px;
  font-size: 16px;
  color: black;
  font-style: normal;
}

.contact-form .block2 {
  position: relative;
  left: 245px;
  top: -280px;
  width: 350px;
}

.contact-form #message {
  width: 300px;
  height: 240px;
  resize: none;
}

.contact-form .chars_count {
  color: #777777;
  position: absolute;
  bottom: 50px;
  left: 202px;
  font-size: 12px;
}

.contact-form button {
  /* background-color: hsl(0, 100%, 55%); */
  background-color: hsl(39, 100%, 50%);
  color: white;
  position: relative;
  left: 70px;
  margin-top: 20px;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.4s;
  display: block;
  /* z-index: 1; */
}

.contact-form button:hover {
  background: hsl(39, 100%, 50%);
  transition: 0.3s ease;
  scale: 1.08;
}

.contact-form .cta-subline {
  margin: 8px 0 0;
  color: #6a7a88;
  font-size: 12.5px;
  font-style: normal;
  text-align: center;
}

/* Wybór preferowanego kontaktu */
.contact-form .contact-pref {
  left: 12px;
  position: relative;
  margin: 2px 0 6px;
  padding: 6px 10px 8px;
  max-width: 340px;
  border: 1px solid #d7e3ee;
  border-radius: 8px;
}
.contact-form .contact-pref legend {
  padding: 0 6px;
  color: #4a627a;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  left: auto;
}
.contact-form .contact-pref label {
  left: auto;
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 12px;
  color: #33506a;
  font-size: 14px;
  font-style: normal;
}
.contact-form .contact-pref input[type="radio"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: hsl(39, 100%, 50%);
}

/* Mobilny przyklejony pasek CTA (Zadzwoń | Sprawdź dostępność) — tylko telefon */
.mobile-cta-bar { display: none; }

/* Pasek zaufania pod hero/formularzem */
.trust-strip {
  width: 100%;
  background: #f2f7fb;
  border-top: 1px solid #e2ecf4;
  border-bottom: 1px solid #e2ecf4;
}
.trust-strip ul {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 4%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  list-style: none;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #33506a;
  font-size: 15px;
  font-weight: 600;
}
.trust-strip li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: hsl(39, 100%, 50%);
  flex: 0 0 auto;
}

/* contact form moved to hero section > */

.hero-text-overlay {
  position: absolute;
  color: white;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-wrap: nowrap;
  margin-top: 50px;
  max-height: 340px;
}

.hero-text-overlay #title {
  margin: 0;
  font-weight: 800;
  font-style: italic;
  font-size: 350%;
  text-align: center;
}

.hero-text-overlay #subtext {
  font-size: 170%;
  font-weight: 400;
  font-style: italic;
  opacity: 1;
  text-shadow: 2px 1px 4px black;
  text-align: center;
  margin-top: 40px;
  width: 70%;
  text-wrap: wrap;
  overflow: auto;
  max-height: 220px;
}


/* WHY US */


.why-us {
  width: 99%;
  text-align: center;
  height: 380px;
  margin-top: 100px;
}

.blocks {
  vertical-align: top;
  width: 18vw;
  min-width: 300px;
  max-width: 420px;
  height: 90%;
  display: inline-block;
  margin: 0 10px;
  padding: 6px;
  position: relative;
}

.blocks img {

  width: 20%;
  height: min-content;
  margin: 6% 0;
}

.title {
  font-weight: 750;
  font-size: 150%;
  margin-bottom: 7%;
}

.content {
  font-size: 110%;
  font-weight: 450;
  position: absolute;
  bottom: 0;
}

.content b {
  font-weight: 800;
}


/* BUS SECTION */

#gallery-bgrnd {
  z-index: 3;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.8);
  transition: 0.4s ease;
  user-select: none;
}

#gallery-close {
  position: absolute;
  top: 40px;
  right: 40px;
  padding: 5px 15px;
}

#closeHint {
  opacity: 1;
  position: absolute;
  z-index: 2;
  top: 114px;
  right: 53px;
  color: white;
  font-size: 12.5px;
  font-weight: bold;
  letter-spacing: 1px;
}

#gallery-previous {
  position: absolute;
  left: 50px;
  top: 45%;
}

#gallery-next {
  position: absolute;
  right: 50px;
  top: 45%;
}

#gallery-previous,
#gallery-next {
  padding: 180px 70px;
  transform: translateY(-50%);
}

#gallery-close,
#gallery-previous,
#gallery-next {
  z-index: 3;
  font-size: 40px;
  color: hsl(0, 0%, 100%);
  background-color: hsla(0, 0%, 90%, 0.3);
  border-radius: 14px;
  cursor: pointer;
  transition: 0.2s ease;
  user-select: none;
}

#currentImg {
  z-index: 2;
  max-width: 60%;
  max-height: 90vh;
  position: relative;
  margin: 0 auto;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  /* aspect-ratio: 1.33; */
  transition: 0.2s ease;
}

#gallery-close:hover {
  scale: 1.08;
  background-color: hsla(0, 0%, 90%, 0.45);
  transition: 0.2s ease;
}

#gallery-previous:hover,
#gallery-next:hover {
  transform: translateY(-50%) scale(1.05);
  background-color: hsla(0, 0%, 90%, 0.45);
  transition: 0.2s ease;
}

.no-scroll {
  width: 100%;
  overflow: hidden;
}

/* bus images gallery ^ */

.bus-section h2 {
  text-align: center;
  color: black;
  font-size: 45px;
  font-style: italic;
  font-weight: 800;
}

/* VDL front card */

.bus-frontpage {
  width: 100%;
  min-width: 950px;
  height: fit-content;
  position: relative;
  margin: 120px 0 120px 0;
}

#vdl-img {
  display: inline-block;
  position: relative;
  width: 50%;
  margin-left: 3%;
}

#vdl-img img {
  aspect-ratio: 1.33;
  max-width: 100%;
  outline: 4px solid transparent;
  transition: 0.3s ease;
}

#vdl-img img:hover {
  transform: scale(0.98);
  box-shadow: 1px 1px 20px black inset;
  transition: 0.3s ease;
  outline: 8px solid white;
  cursor: pointer;

}
.buses-wrapper {
  width: 100%;
  height: 350px;
  margin: 100px 0;
  position: relative;
  background-color: hsl(207, 92%, 90%);
}
.buses-ref-img {
  height: 100%;
}
.buses-ref-img img {
  max-height: 100%;
}
.buses-reflink {
  position: relative;
  display: block;
  width: 60%;
  height: 100%;
  margin: 0 auto;
}
.buses-reflink p {
  position: absolute;
  bottom: 3%;
  left: 32%;
  font-size: 200%;
  color: white;
  font-weight: 300;
}

.bus-info-first {
  position: absolute;
  left: 55%;
  right: 3%;
  display: inline-block;
  width: auto;
  height: 99%;
  background-color: hsl(210, 100%, 20%);
  background-image: linear-gradient(150deg, hsl(210, 100%, 20%) 40%, hsl(210, 100%, 35%) 100%);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Ukrycie białego tła paska przewijania w panelach floty */
.bus-info,
.bus-info-first,
.bus-features {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bus-info::-webkit-scrollbar,
.bus-info-first::-webkit-scrollbar,
.bus-features::-webkit-scrollbar {
  display: none;
}

.bus-info-first h3 {
  color: white;
  position: absolute;
  left: 6%;
  top: 8%;
  text-align: left;
  font-size: 32px;
  font-weight: 600;
}

.bus-info-first>.bus-features {
  left: 3%;
}

.bus-info-first>.bus-features li {
  list-style-type: "-  ";
  font-size: 130%;
  color: white;
  font-weight: 300;
  font-style: italic;
}

/* ^VDL front card */

.bus-list {
  position: relative;
  left: 1%;
  width: 92%;
  min-width: 860px;
  display: block;
}

.bus-card {
  position: relative;
  margin-bottom: 2%;
  display: inline-block;
  width: 820px;
  height: 380px;
  margin: 2% 20px;
  background: hsl(0, 0%, 100%);
  box-shadow: -3px 6px 90px hsla(200, 100%, 50%, 0.4);
}

.bus-img-holder {
  height: 100%;
  aspect-ratio: 1.33;
  max-width: 62%;
  display: inline-block;
  position: relative;
  margin: 0;
  transition: 0.3s ease;
  cursor: pointer;
}

.bus-image {
  height: 100%;
  width: max-content;
  transition: 0.3s ease;
  cursor: pointer;
}
.bus-popup {
  position: absolute;
  bottom: -3%;
  cursor: initial;
  font-size: 80%;
  font-weight: 700;
  color: white;
  text-align: center;
  width: 100%;
  opacity: 0;
  transition: 0.4s ease;
  user-select: none;
  pointer-events: none;
}

.bus-image:hover {
  transform: scale(0.98);
  transition: 0.3s ease;
}
.bus-image:hover + .bus-popup, #vdl-img img:hover + .bus-popup {
  bottom: 2%;
  opacity: 1;
  transition: 0.4s ease;
}
img.bus-image:hover {
  filter: brightness(0.84);
}

.bus-img-wrapper {
  position: absolute;
  left: 2%;
  bottom: 2%;
  height: 26%;
  max-width: 60%;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  border-radius: 5px;
}
.bus-img-small {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: initial;
  border: 1px solid white;
  border-radius: 5px;
  margin: 0;
  padding: 0;
  user-select: none;
}

.bus-info {
  position: absolute;
  right: 0;
  display: inline-block;
  width: 38%;
  height: 100%;
  background-color: hsl(210, 100%, 20%);
  background-image: linear-gradient(150deg, hsl(210, 100%, 20%)40%, hsl(210, 100%, 35%)100%);
  overflow-y: auto;
  overflow-x: hidden;
}

.bus-info h3 {
  color: white;
  position: absolute;
  left: 6%;
  top: 8%;
  text-align: left;
  font-size: 30px;
  font-weight: 600;
}

.bus-features {
  position: absolute;
  top: 34%;
  bottom: 33%;
  width: 80%;
  overflow-y: auto;
  height: auto;
}

.bus-features li {
  list-style-type: "-  ";
  font-size: 110%;
  color: white;
  font-weight: 200;
  font-style: italic;
}

.bus_seats {
  position: absolute;
  top: 22%;
  right: 4%;
  width: 80px;
  height: 30px;
  opacity: .9;
  display: block;
  user-select: none;
}

.bus_seats img {
  display: inline-block;
  position: absolute;
  left: 0;
  width: 40%;
  max-width: 25px;
  aspect-ratio: 1;
  filter: invert(1);
}

.bus_seats p {
  display: inline-block;
  color: white;
  font-size: 120%;
  height: auto;
  position: absolute;
  left: 25px;

  width: fit-content;
  max-width: 48px;
}

/* Dolna część karty floty: primary CTA „Zapytaj o dostępność" (złoty) nad
   drugorzędnym „Rozkład siedzeń" (niebieski). Oba na całą szerokość panelu. */
a.quote-btn {
  display: block;
  position: absolute;
  bottom: calc(5% + 40px);
  left: 4%;
  width: 92%;
  box-sizing: border-box;
  padding: 7px 6px;
  border-radius: 8px;
  background: hsl(39, 100%, 50%);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-style: normal;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.15;
  text-wrap: nowrap;
  transition: 0.3s ease;
}

a.quote-btn:hover {
  background: hsl(39, 100%, 46%);
  scale: 1.02;
}

a.seats_btn {
  position: absolute;
  bottom: 5%;
  left: 4%;
  width: 92%;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 6px 4px;
  color: #eaf4ff;
  background-color: hsl(210, 70%, 47%);
  text-decoration: none;
  font-style: normal;
  font-weight: 600;
  font-size: 12.5px;
  text-align: center;
  text-wrap: nowrap;
  transition: 0.3s ease;
}

a.seats_btn:hover {
  background-color: hsl(210, 100%, 42%);
}

/* CTA BANNER */

.cta-banner {
  width: 100%;
  background-color: hsl(207, 92%, 29%);
  color: white;
  height: 220px;
  position: relative;
  margin: 32px 0;
}

.upper-text {
  position: relative;
  top: 32%;
  left: 12%;
  font-size: 120%;
  font-weight: 300;
}

.strong {
  font-size: 220%;
  font-weight: 700;
  position: relative;
  top: 35%;
  left: 12%;
}

.cta-number {
  position: absolute;
  width: 19%;
  min-width: 350px;
  height: 80px;
  background-color: hsl(39, 100%, 50%);
  border-radius: 10px;
  right: 10%;
  top: 35%;
  font-size: 45px;
  font-weight: 800;
  text-align: center;
  align-content: center;
  transition: 0.3s ease;
  text-wrap: nowrap;
}

.cta-number a {
  padding: 8px 42px;
}

.cta-number a,
a:visited {
  color: white;
  text-decoration: none;
}

.cta-number:hover {
  scale: 1.06;
  transition: 0.3s ease;
}

/* FOOTER */


footer img {
  display: block;
  padding: 0;
  margin: 0;
  width: 100dvw;
  position: relative;
  top: 0px;
  user-select: none;
}

#copyrights {
  position: absolute;
  bottom: 2px;
  font-size: 10px;
  color: hsl(0, 0%, 90%);
  user-select: none;
  width: 100%;
  text-align: center;
  word-spacing: normal;
}

#mapWidget {
  position: absolute;
  max-width: 60vw;
  max-height: 60vw;
  right: 2%;
  bottom: 20px;
  padding: 5px;
}

/* RESPONSIVE */

@media (max-width: 1600px) {
  /* LAPTOP: kompaktowa karta formularza unosząca się z prawej strony,
     częściowo na zdjęciu hero (zwarta wersja, dopasowana do mniejszych
     ekranów). */
  .contact-section {
    position: absolute;
    transform: none;
    right: 2.5%;
    top: 22%;
    left: auto;
    display: block;
    width: 420px;
    max-width: 43%;
    height: auto;
    max-height: none;
    padding: 6px 18px 16px;
  }

  .contact-section h2 {
    font-size: 22px;
    margin: 10px 0 2px;
  }

  .contact-section h3 {
    display: none;
  }

  /* Układ pól: dwa w rzędzie tam, gdzie to możliwe — dzięki temu karta jest
     niska i mieści się nad zdjęciem. */
  .contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: none;
    max-height: none;
  }

  .contact-form br {
    display: none;
  }

  .contact-form input,
  .contact-form textarea {
    margin: 0;
    font-size: 14px;
    padding: 8px;
  }

  .contact-form #dest_from,
  .contact-form #dest_to,
  .contact-form #date,
  .contact-form #date_to {
    width: calc(50% - 3px);
    box-sizing: border-box;
  }

  #contactForm.form-oneday #date,
  .contact-form #ppl_quantity,
  #phone,
  #email {
    width: 100%;
    box-sizing: border-box;
  }

  .form-labels {
    width: 100%;
    left: 0;
    margin: 2px 0 -2px;
    font-size: 13px;
  }

  #date_to_label {
    left: 0;
  }

  .contact-form .field-error {
    width: 100%;
    left: 0;
    margin: 0;
  }

  .contact-form #is_oneday,
  label[for="is_oneday"] {
    left: 0;
    font-size: 14px;
  }

  /* kolumna z uwagami / przyciskiem wraca do normalnego przepływu */
  .contact-form .block2 {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
  }

  .contact-form #message {
    width: 100%;
    box-sizing: border-box;
    height: 64px;
  }

  .contact-form .chars_count {
    position: static;
    left: auto;
    bottom: auto;
    margin: 2px 0;
  }

  .contact-form button {
    left: 0;
    width: 100%;
    margin-top: 8px;
    padding: 10px 20px;
  }

  .contact-section #formMessage {
    left: 0;
    margin: 6px 0 0;
    font-size: 13px;
  }

  /* NAGŁÓWEK: mniejsze logo i numery telefonów, aby zmieściły się bez
     nachodzenia na laptopie. */
  .logo img {
    width: 220px;
    padding: 16px;
  }

  .logo {
    margin: 42px 0 0 24px;
  }

  .info-nr {
    font-size: 24px;
    margin-bottom: 10px;
    padding: 6px 12px;
  }

  .info-label {
    font-size: 12px;
  }

  /* Numery pozycjonujemy w px (procenty nie skalują się i powodowały
     nachodzenie numerów na siebie na węższych ekranach). */
  .info {
    right: 20px;
  }

  .info-subitem {
    right: 220px;
  }

  nav {
    left: 24%;
    width: 40%;
    bottom: 30%;
  }

  nav a {
    font-size: 15px;
    margin: 0 1%;
  }

  /* DLACZEGO MY: kafelki 2 w rzędzie, ikona i tekst w normalnym przepływie
     (bez pozycjonowania absolutnego, które powodowało nachodzenie tekstu). */
  .why-us {
    height: auto;
    margin-top: 74px;
  }

  .blocks {
    width: 42%;
    min-width: 260px;
    max-width: 480px;
    height: auto;
    margin: 14px 12px;
    vertical-align: top;
  }

  .blocks img {
    width: 56px;
    height: auto;
    margin: 8px auto 4px;
  }

  .blocks .content {
    position: static;
  }

  /* Laptop: dwa autobusy w rzędzie (jak na szerokim ekranie).
     Karta staje się płynna i zachowuje proporcje 820:380, a węższe
     ekrany zwijają ją do jednej kolumny dzięki min-width. */
  .bus-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 28px 24px;
    left: 0;
    width: 94%;
    min-width: 0;
    margin: 0 auto;
  }
  .bus-card {
    scale: none;
    flex: 1 1 44%;
    min-width: 380px;
    max-width: 680px;
    width: auto;
    height: auto;
    aspect-ratio: 820 / 380;
    margin: 0;
  }

  /* Tekst hero przenosimy na lewą stronę (kolumna ~52%), żeby nie chował
     się pod kartą formularza po prawej. */
  .hero-text-overlay {
    left: 4%;
    transform: none;
    width: 52%;
    text-align: left;
    text-wrap: wrap;
    top: 96px;
    margin-top: 0;
    max-height: none;
  }

  .hero-text-overlay #title {
    font-size: 210%;
    text-align: left;
  }

  #closeHint {
    opacity: 0;
  }

  .why-us table {
    max-width: 1400px;
  }

  .hero-text-overlay #subtext {
    margin-top: 22px;
    font-size: 128%;
    text-align: left;
    width: 100%;
    text-wrap: wrap;
  }

  .bus-frontpage {
    font-size: 70%;
  }

  #vdl-img {
    width: 40%;
    margin-left: 12%;
  }

  .bus-info-first {
    width: 36%;
  }

  .footer img {
    width: 160%;
    max-width: max-content;
    overflow: hidden;
  }
}

@media (max-width: 1390px) {
  .why-us {
    height: max-content;
  }

  .blocks {
    margin: 0 1%;
  }
}

@media (max-width: 1120px) {
  /* Mniejsze ekrany laptopów: węższa karta formularza wyżej (krótsze hero),
     węższy tekst hero — bez nachodzenia i bez wychodzenia poza zdjęcie. */
  .contact-section {
    top: 12%;
    right: 2%;
    width: 380px;
  }

  .hero-text-overlay {
    width: 46%;
    top: 78px;
  }

  .hero-text-overlay #title {
    font-size: 176%;
  }

  .hero-text-overlay #subtext {
    font-size: 108%;
    margin-top: 16px;
  }

  .cta-number {
    margin: 0 auto;
    bottom: 6%;
    right: 33%;
    top: unset;
  }

  #gallery-previous,
  #gallery-next {
    padding: 120px 40px;
  }


  .logo img {
    width: 178px;
    padding: 12px;
  }

  .logo {
    margin: 48px 0 0 16px;
  }

  .info-nr {
    font-size: 19px;
    padding: 5px 10px;
    margin-bottom: 8px;
  }

  .info-label {
    font-size: 11px;
  }

  .info {
    right: 16px;
  }

  .info-subitem {
    right: 188px;
  }

  nav a {
    width: auto;
    max-width: none;
    font-size: 13px;
    margin: 0 6px;
    padding: 0 2px;
    font-weight: 800;
  }

  nav {
    bottom: 26%;
    width: 39%;
    left: 24%;
  }
}

/* =====================  WERSJA MOBILNA  ===================== */
@media (max-width: 760px) {
  /* Zdejmujemy sztywne min-width, aby strona mogła się zwężać na telefonie. */
  html, body, header, .main,
  .bus-frontpage, .bus-list {
    min-width: 0 !important;
  }
  body { max-width: 100%; }

  /* ----- NAGŁÓWEK: statyczny, ułożony pionowo ----- */
  .header {
    position: static !important;
    height: auto !important;
    padding: 12px 0 20px !important;
    text-align: center;
    overflow: visible;
  }
  /* Treść płynie za nagłówkiem (nie jest już przyklejona na 200 px),
     więc nagłówek nie nachodzi na hero i pigułki nawigacji są całe. */
  .main {
    position: static !important;
    top: auto !important;
    width: 100% !important;
  }
  .logo {
    position: static;
    float: none;
    display: block;
    width: auto !important;
    margin: 0 auto !important;
  }
  .logo img { width: 190px !important; padding: 6px !important; margin: 0 !important; }

  .info, .info-subitem {
    position: static !important;
    float: none !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    max-width: none !important;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    margin: 4px 6px 0;
  }
  .info .info-item, .info-subitem .info-item { float: none !important; }
  .info-nr {
    font-size: 17px !important;
    margin: 0 0 2px !important;
    padding: 5px 12px !important;
    display: block;
  }
  .info-label { font-size: 10px !important; }

  nav {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 0 8px;
    box-sizing: border-box;
  }
  /* Nawigacja między podstronami jako czytelne, klikalne "pigułki". */
  nav a {
    width: auto !important;
    height: auto !important;
    font-size: 13px !important;
    margin: 0 !important;
    padding: 8px 15px !important;
    line-height: 1.1;
    text-align: center;
    text-wrap: wrap;
    color: #062c4b !important;
    background: #eef4f9;
    border: 1px solid #cfe0ee !important;
    border-radius: 999px !important;
    font-weight: 700;
  }
  /* Jeden spójny styl aktywności dla wszystkich linków nawigacji:
     bieżąca strona, hover, focus i tap — ten sam granatowy wygląd. */
  nav a.currentActive,
  nav a:hover,
  nav a:focus,
  nav a:active {
    background: #062c4b;
    color: #fff !important;
    border-color: #062c4b !important;
  }

  .lang {
    position: static;
    display: inline-flex;
    width: auto;
    height: auto;
    min-height: 40px;
    padding: 8px 16px;
    margin: 10px auto 2px;
    opacity: 1;
    font-size: 14px;
  }
  .lang img { display: none; }

  /* ----- DOSTĘPNOŚĆ: pola dotykowe min. 44 px na telefonach ----- */
  nav a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .info-nr { min-height: 44px; display: inline-flex; align-items: center; }
  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    min-height: 46px;
    box-sizing: border-box;
  }
  .contact-form input[type="checkbox"] { min-height: 0; width: 22px; height: 22px; }
  .contact-form label[for="is_oneday"] { display: inline-flex; align-items: center; min-height: 44px; }
  a.seats_btn, a.quote-btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }

  /* ----- Zapobieganie poziomemu „wychodzeniu" bloków (box-sizing) ----- */
  .fleet-cta,
  .fleet-cta-inner,
  .fleet-cta-media,
  .fleet-cta-body,
  .fleet-photos,
  .fleet-btn,
  .fphone,
  .contact-section,
  .cta-banner,
  .footer-info-inner,
  #copyrights,
  #formMessageContent { box-sizing: border-box; max-width: 100%; }

  /* Na telefonie nagłówek jest statyczny — mniejszy margines kotwic. */
  #wycena, #autokary, #kontakt, .footer { scroll-margin-top: 16px; }
  .contact-form .field-hint { left: 0; max-width: 100%; text-align: center; }

  /* ----- HERO + FORMULARZ (strona główna) ----- */
  .hero-img { flex-direction: column; }
  .hero-text-overlay {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: 92% !important;
    margin: 18px auto 0 !important;
    text-align: center !important;
    text-wrap: wrap !important;
    max-height: none !important;
    color: #062c4b;
  }
  .hero-text-overlay #title {
    font-size: 150% !important;
    text-align: center !important;
    text-shadow: none;
  }
  .hero-text-overlay #subtext {
    font-size: 100% !important;
    text-align: center !important;
    width: 100% !important;
    margin-top: 12px !important;
    text-shadow: none;
    color: #3f5468;
  }

  .contact-section {
    position: static !important;
    transform: none !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    width: 92% !important;
    max-width: 460px !important;
    height: auto !important;
    max-height: none !important;
    margin: 22px auto 30px !important;
    padding: 8px 16px 20px !important;
  }
  .contact-section h3 { display: block; font-size: 13px; margin-bottom: 12px; }

  /* ----- DLACZEGO MY: jedna kolumna ----- */
  .why-us { height: auto; margin-top: 30px; }
  .blocks {
    width: 88% !important;
    min-width: 0 !important;
    max-width: 420px !important;
    height: auto !important;
    margin: 18px auto !important;
    display: block;
  }
  .blocks img { width: 54px !important; }
  .blocks .content { position: static !important; }

  /* ----- FLOTA: karty autokarów w pionie ----- */
  .bus-frontpage { margin: 30px 0; }
  #vdl-img { display: block; width: 90%; max-width: 440px; margin: 0 auto 16px; }
  #vdl-img > img { aspect-ratio: 1.33; width: 100%; }
  .bus-info-first {
    position: static !important;
    left: auto !important;
    right: auto !important;
    width: 90% !important;
    max-width: 440px;
    height: auto !important;
    margin: 0 auto !important;
    padding: 16px 18px 20px;
    box-sizing: border-box;
    border-radius: 0;
  }
  .bus-info-first h3 { position: static !important; font-size: 22px; margin: 0 0 10px; }
  .bus-info-first > .bus-features { position: static !important; left: auto; width: 100%; }

  .bus-list { left: 0 !important; width: 100% !important; }
  .bus-card {
    width: 92% !important;
    max-width: 440px !important;
    height: auto !important;
    margin: 22px auto !important;
    display: block;
  }
  .bus-img-holder {
    display: block;
    max-width: 100% !important;
    width: 100%;
    aspect-ratio: 1.33;
    height: auto;
  }
  .bus-image { height: 100%; width: 100%; object-fit: cover; }
  .bus-info {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    padding: 16px 0 20px;
  }
  .bus-info h3 { position: static !important; font-size: 22px; margin: 0 0 4px 6%; }
  .bus-features { position: static !important; top: auto !important; width: 88%; margin: 0 auto; }
  /* Liczba miejsc: ikona + liczba w jednym rzędzie, wyrównane do pierwszej
     litery nazwy autokaru (ten sam lewy margines co nagłówek). */
  .bus_seats {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: block;
    width: auto;
    height: auto;
    margin: 2px 0 12px 6%;
    white-space: nowrap;
    text-align: left;
  }
  .bus_seats img {
    position: static !important;
    left: auto !important;
    display: inline-block;
    vertical-align: middle;
    width: 18px !important;
    max-width: 18px;
    height: 18px;
    margin: 0 6px 0 0 !important;
  }
  .bus_seats p {
    position: static !important;
    left: auto !important;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    max-width: none;
    font-size: 118%;
  }

  /* Na telefonie chowamy "Rozkład siedzeń", pokazujemy "Zapytaj o wycenę". */
  a.seats_btn { display: none !important; }
  a.quote-btn {
    display: block;
    position: static;
    bottom: auto;
    left: auto;
    width: 76%;
    margin: 16px auto 0;
    padding: 11px 8px;
    background: hsl(39, 100%, 50%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
  }
  a.quote-btn:active { background: hsl(39, 100%, 45%); }

  /* ----- STOPKA: mapa pod danymi ----- */
  /* Stopka: dane firmy → mapa → drobny copyright na samym dole. */
  .footer {
    display: flex;
    flex-direction: column;
  }
  .footer-info { order: 1; }
  #mapWidget {
    order: 2;
    position: static !important;
    display: block;
    width: 92% !important;
    max-width: 420px;
    height: 240px !important;
    margin: 22px auto 6px !important;
    right: auto !important;
    bottom: auto !important;
    border-radius: 10px;
  }
  #copyrights {
    order: 3;
    position: static;
    padding: 14px 12px 20px;
  }

  /* ----- BANER "ZADZWOŃ": pionowo, mniejszy numer ----- */
  .cta-banner {
    height: auto;
    padding: 26px 16px;
    text-align: center;
    margin: 26px 0;
  }
  .upper-text {
    position: static;
    top: auto;
    left: auto;
    font-size: 100%;
  }
  .strong {
    position: static;
    top: auto;
    left: auto;
    font-size: 128%;
    display: block;
    margin: 8px auto 18px;
    padding: 0 8px;
    max-width: 340px;
    white-space: normal;
    overflow-wrap: break-word;
  }
  .cta-number {
    position: static;
    width: auto;
    min-width: 0;
    height: auto;
    right: auto;
    top: auto;
    margin: 0 auto;
    display: inline-block;
    font-size: 30px;
  }
  .cta-number a { padding: 8px 22px; display: inline-block; }

  /* ----- ROZKŁADY: podglądy nieco niższe ----- */
  .schedules { margin-top: 20px; }
  .sched-thumb img { height: 240px; }

  /* ----- MOBILNY PASEK CTA na dole ekranu ----- */
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200; /* pod banerem zgody, który znika po wyborze */
    gap: 8px;
    padding: 8px;
    background: #fff;
    border-top: 1px solid #dbe6ef;
    box-shadow: 0 -4px 16px rgba(6, 44, 75, .16);
  }
  .mobile-cta-bar a {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
  }
  .mobile-cta-bar svg { width: 18px; height: 18px; flex: 0 0 auto; }
  .mcb-call { background: #062c4b; color: #fff; }
  .mcb-avail { background: hsl(39, 100%, 50%); color: #fff; }
  /* Zapas na dole, żeby pasek nie zasłaniał treści stopki. */
  #copyrights { padding-bottom: 84px; }
}

/* ===== Szeroki ekran (>1600 px): formularz w jednym, czystym układzie
   (jak na laptopie), aby dodatkowe pola nie wychodziły poza białą kartę. ===== */
@media (min-width: 1601px) {
  /* Tekst hero po lewej i zwężony, żeby formularz po prawej go nie zasłaniał. */
  .hero-text-overlay {
    left: 4%;
    transform: none;
    width: 52%;
    text-align: left;
    top: 96px;
    margin-top: 0;
    max-height: none;
    text-wrap: wrap;
  }
  .hero-text-overlay #title { font-size: 300%; text-align: left; }
  .hero-text-overlay #subtext { width: 100%; text-align: left; margin-top: 20px; }

  .contact-section {
    right: 4%;
    top: 20%;
    left: auto;
    width: 470px;
    max-width: 40%;
    height: auto;
    max-height: none;
    padding: 12px 24px 20px;
  }
  .contact-section h2 { margin: 8px 0 2px; }
  .contact-section h3 { display: none; }
  .contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-width: none;
    max-height: none;
  }
  .contact-form br { display: none; }
  .contact-form input,
  .contact-form textarea { margin: 0; }
  .contact-form #dest_from,
  .contact-form #dest_to,
  .contact-form #date,
  .contact-form #date_to { width: calc(50% - 4px); box-sizing: border-box; }
  #contactForm.form-oneday #date,
  .contact-form #ppl_quantity,
  #phone, #email { width: 100%; box-sizing: border-box; }
  .form-labels { width: 100%; left: 0; margin: 2px 0 -2px; }
  #date_to_label { left: 0; }
  .contact-form .field-error { width: 100%; left: 0; margin: 0; }
  .contact-form .field-hint { left: 0; max-width: none; }
  .contact-form #is_oneday,
  label[for="is_oneday"] { left: 0; }
  .contact-form .contact-pref { position: relative; left: 0; width: 100%; max-width: none; box-sizing: border-box; }
  .contact-form .block2 { position: static; left: auto; top: auto; width: 100%; }
  .contact-form #message { width: 100%; box-sizing: border-box; height: 92px; }
  .contact-form .chars_count { position: static; left: auto; bottom: auto; margin: 2px 0; }
  .contact-form button { left: 0; width: 100%; margin-top: 8px; }
  .contact-form .cta-subline { text-align: center; }
  .contact-section #formMessage { left: 0; margin: 6px 0 0; font-size: 13px; }
}

/* ===== Stopka z danymi firmy — podstrony flota/rozkłady (spójna ze stroną główną) ===== */
.footer-info { width: 100%; min-height: 300px; display: flex; align-items: center; background: linear-gradient(90deg, #0c5fa8 0%, #5cb8e9 100%); color: #fff; }
.footer-info-inner { max-width: 1400px; margin: 0 auto; padding: 40px 6%; width: 100%; box-sizing: border-box; }
.footer-title { font-size: 2.1rem; font-weight: 800; letter-spacing: .3px; margin: 0 0 26px; max-width: 600px; text-align: right; }
.footer-details { margin: 0; display: grid; grid-template-columns: 1fr; gap: 12px; width: 600px; max-width: 100%; }
.footer-row { display: grid; grid-template-columns: max-content max-content; justify-content: end; width: 100%; column-gap: 12px; align-items: baseline; font-size: 1.15rem; }
.footer-row dt { font-weight: 700; font-size: .74rem; letter-spacing: .7px; text-transform: uppercase; opacity: .78; align-self: center; text-align: right; }
.footer-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.footer-row dd a { color: #fff; text-decoration: none; }
.footer-row dd a:hover { text-decoration: underline; }
.footer-phones { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 10px; margin: 30px 0 0 0; max-width: 600px; }
.fphone { display: flex; flex-direction: column; align-items: center; flex: 1 1 0; min-width: 0; margin: 0; padding: 10px 12px; border-radius: 14px; text-decoration: none; border: 2px solid rgba(255, 255, 255, .22); box-shadow: 0 8px 20px rgba(6, 44, 75, .28); transition: transform .2s ease, box-shadow .2s ease; }
.fphone:hover { transform: translateY(-3px); box-shadow: 0 13px 26px rgba(6, 44, 75, .36); }
.fphone-nr { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: .5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fphone-label { margin-top: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: rgba(255, 255, 255, .96); }
.fphone-main { background: #062c4b; }
.fphone-info { background: #2e9be6; }
.fphone-rent { background: hsl(39, 100%, 50%); }
@media (max-width: 760px) {
  .footer-info-inner { padding: 30px 6%; text-align: right; }
  .footer-title { font-size: 1.5rem; margin-bottom: 18px; max-width: none; }
  .footer-details { max-width: 320px; margin-left: auto; margin-right: 0; gap: 9px; }
  .footer-row { font-size: 1rem; }
  .footer-phones { flex-wrap: wrap; flex-direction: column; align-items: flex-end; gap: 12px; margin-top: 26px; max-width: none; }
  .fphone { flex: 0 0 auto; width: 100%; max-width: 300px; padding: 10px 16px; }
  .fphone-nr { font-size: 1.5rem; }
}
