html {
  height: 100%;
  font-size: 62.5%;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #d1d1d1 #000;
  /* scroll-behavior: smooth; */
}

body {
  font: 400 var(--font-size-base)/1.7 var(--font-1);
  color: var(--color-main);
  background: #333;
  min-width: 320px;
  height: 100%;
  overflow-x: hidden;
  position: relative;
}

body::-webkit-scrollbar-track
{
	background-color: #000;
}

body::-webkit-scrollbar
{
	width: 10px;
	background-color: #000;
}

body::-webkit-scrollbar-thumb
{
	background-color: #d1d1d1;
}

body.fixed {
  position: fixed;
  left: 0;
  width: 100%;
}

/* 1. HEADER */
header {
  width: 100%;
  position: relative;
  z-index: 100;
}

.header__inner {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  width: var(--page-width-mobile);
  min-height: 76px;
  margin: 0 auto;
  padding: 10px 0;
  position: relative;
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 60px);
}

.mobile_tools {
  display: flex;
}

.mobile_tools a {
  display: block;
  margin-left: 17px;
}

.mobile_tools a svg {
  display: block;
}

.mobile_tools a svg path {
  transition: fill 300ms ease;
  fill: #000;
}

.mobile_tools a svg:hover path {
  fill: var(--color-1);
}

/* Header - Logo */
.logo {
  display: block;
  width: 40%;
  min-width: 150px;
  max-width: 220px;
  height: auto;
  transition: max-width 300ms ease;
}

.logo img,
.logo svg {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
  transition: opacity 300ms ease;
}

.logo svg.replaced-svg {
  display: block;
}

.logo svg path:nth-child(1) {
  opacity: 0;
}

.logo:hover svg {
  opacity: .5;
}

/* Header - Burger Menu */
.burgermenu {
  display: block;
  order: 4;
  position: relative;
  width: 40px;
  height: 33px;
  padding: 6px 5px;
  animation: 250ms show-burgermenu;
}

.page .burgermenu {
  position: fixed;
  top: 22px;
  right: 15px;
  z-index: 600;
  margin: 0;
  background: rgba(255, 255, 255, .9);
}

@keyframes show-burgermenu {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.burgermenu span {
  display: block;
  width: calc(100% - 10px);
  height: 3px;
  position: absolute;
  background: var(--color-main);
  border-radius: 4px;
  transition-property: transform, opacity, background;
  transition-duration: 250ms;
  transition-timing-function: ease-in-out;
}

.burgermenu:hover span {
  background: var(--color-1);
}

.burgermenu span:first-child {
  transform: translateY(0);
}

.burgermenu span.middle {
  transform: translateY(9px);
}

.burgermenu span:last-child {
  transform: translateY(18px);
}

/* .header .burgermenu.sticky {
  position: fixed;
  top: 22px;
  right: 15px;
  z-index: 600;
  margin: 0;
  background: rgba(255, 255, 255, .9);
} */

.burgermenu.open span:first-child {
  transform: translateY(9px) rotate(45deg);
}

.burgermenu.open span:last-child {
  transform: translateY(9px) rotate(-45deg);
}

.burgermenu.open .middle {
  opacity: 0;
  transform: translate(-9px, 9px);
}

.burgermenu.open span {
  background: var(--color-1);
}



/* 2. SPLASH */
.splash {
  display: flex;
  flex-flow: column;
  justify-content: space-around;
  width: 100%;
  min-height: 180px;
  height: calc(100vw / 2.2);
  max-height: 230px;
  position: relative;
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: cover;
  overflow: hidden;
}

.no-webp .splash { background-image: url('/gfx/header-bg.jpg'); }
.webp .splash { background-image: url('/gfx/header-bg.webp'); }

/* Splash - Map */
.splash__map {
  width: 220px;
  height: 168px;
  position: absolute;
  top: 40%;
  right: 0;
  z-index: 1;
  transform: translateY(-50%);
  background: url('/gfx/map-eu.png') no-repeat;
  background-size: contain;
  mix-blend-mode: overlay;
}

/* Splash - Header */
.splash__header {
  margin: 20px 20px 0;
}

.splash__header span {
  display: block;
  margin: 0 auto;
  text-align: left;
  line-height: 1.2;
  animation-play-state: paused;
}

.loaded .splash__header span {
  animation-play-state: running;
}

.splash__header span:first-child {
  font-size: 2rem;
  font-weight: 400;
}

.splash__header span:last-child {
  margin: 2px 0 20px 20px;
  font-size: 2.3rem;
  font-weight: 700;
}

/* Splash - Route */
.splash__route {
  --splash-delay: 500ms;
  flex: 1;
  width: var(--page-width-mobile);
  min-width: 300px;
  max-width: 1060px;
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

.splash__route img { display: none; }
.splash__route svg { display: block; }

img.splash__route--loading {
  display: block;
  z-index: 100;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -78%);
  transition: opacity 300ms ease;
}

.loaded img.splash__route--loading {
  opacity: 0;
}

/* Route - Road */
.route--road {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
}
.loaded .route--road { animation: show_road 300ms ease-out calc(var(--splash-delay)) both; }

.route--road .road-lanes {
  stroke-dasharray: 10;
}
.loaded .route--road .road-lanes { animation: draw_road_lanes 2s linear infinite var(--splash-delay); }

.page-hide .route--road .road-lanes { animation-play-state: paused; }
.route-stop .route--road .road-lanes { animation-play-state: paused; }
.route--road.large { display: none; animation-play-state: paused; }

/* Route - City */
.route__city {
  position: absolute;
  z-index: 4;
  transform: scale(.5);
  transform-origin: bottom;
}

.route__city::after {
  content: "";
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 30px;
  position: absolute;
  bottom: 15%;
  left: 40px;
  padding: 3px 20px 3px 30px;
  background: var(--color-1);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  border-top-left-radius: 30px;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  transform-origin: left;
  opacity: 0;
}

.route__city.last::after {
  justify-content: flex-end;
  left: auto;
  right: 40px;
  padding: 3px 30px 3px 20px;
  border-top-right-radius: 30px;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 0;
  transform-origin: right;
  text-align: right;
}

.loaded .city-a::after { animation: swap_city_a 10s ease both infinite calc(var(--splash-delay) + 1500ms); }
.loaded .city-b::after { animation: swap_city_b 10s ease both calc(var(--splash-delay) + 1500ms); }
.loaded .city-c::after { animation: swap_city_c 10s ease both infinite calc(var(--splash-delay) + 1500ms); }

.page-hide .city-a::after { animation-play-state: paused; }
.page-hide .city-c::after { animation-play-state: paused; }

.route--city-shadow {
  display: block;
  width: 24px;
  height: 2px;
  position: relative;
  z-index: 0;
  margin: -1px 0 0 20px;
  background: #000;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0;
}

.city-a {
  left: -15px;
  bottom: calc(-5px + (100vw / 1 * .15));
}

.city-b {
  display: none;
  left: 30%;
}

.city-c {
  right: -13px;
  bottom: calc(0px + (100vw / 1.1 * .12));
}

.route--city-pin {
  position: relative;
  z-index: 1;
  opacity: 0;
}

.loaded .route--city-pin { animation: show_pin 300ms ease-out forwards; transform-origin: bottom; }
.loaded .pin-a { animation-delay: calc(var(--splash-delay) + 300ms) }
.loaded .pin-b { animation-delay: calc(var(--splash-delay) + 600ms) }
.loaded .pin-c { animation-delay: calc(var(--splash-delay) + 900ms) }

.loaded .route--city-shadow { animation: show_pin_shadow 300ms ease-in both; }
.loaded .shadow-a { animation-delay: calc(var(--splash-delay) + 450ms) }
.loaded .shadow-b { animation-delay: calc(var(--splash-delay) + 750ms) }
.loaded .shadow-c { animation-delay: calc(var(--splash-delay) + 1050ms) }

/* Route - Arrows */
svg.route--arrow {
  display: none;
  position: absolute;
}

.route--arrow path { opacity: 0; }

.loaded .route--arrow [class*='part-'] { animation: show_arrow_parts 300ms ease-out forwards; }

.loaded .route--arrow .part-1 { animation-delay: calc(var(--splash-delay) + var(--arrow-delay) + 100ms) }
.loaded .route--arrow .part-2 { animation-delay: calc(var(--splash-delay) + var(--arrow-delay) + 150ms) }
.loaded .route--arrow .part-3 { animation-delay: calc(var(--splash-delay) + var(--arrow-delay) + 200ms) }
.loaded .route--arrow .part-4 { animation-delay: calc(var(--splash-delay) + var(--arrow-delay) + 250ms) }
.loaded .route--arrow .part-5 { animation-delay: calc(var(--splash-delay) + var(--arrow-delay) + 300ms) }
.loaded .route--arrow .part-6 { animation-delay: calc(var(--splash-delay) + var(--arrow-delay) + 350ms) }
.loaded .route--arrow .part-7 { animation-delay: calc(var(--splash-delay) + var(--arrow-delay) + 400ms) }

.arrow-1 {
  left: 60px;
  bottom: 130px;
  --arrow-delay: 750ms;
}

.arrow-2 {
  right: 60px;
  bottom: 110px;
  transform: scaleX(-1);
  --arrow-delay: 1500ms;
}

/* Route - Bus */
.route--bus {
  position: absolute;
  bottom: calc(-55px + (100vw / 1.4 * 0.28));
  left: calc(100% - 62vw);
  z-index: 2;
  transform-origin: center;
  width: calc( (100vw / 7 * 2) );
  max-width: 200px;
  opacity: 0;
}
.loaded .route--bus {
  opacity: 1;
  animation:
    show_bus 400ms ease-out both calc(var(--splash-delay) + 200ms),
    bus_jump 4000ms ease-out forwards infinite calc(var(--splash-delay) + 600ms);
}
.page-hide .route--bus { animation-play-state: paused; }

.loaded .route--bus .wheel {
  animation: bus_wheel 200ms linear infinite var(--splash-delay);
  transform-origin: center;
  transform-box: fill-box;
}
.page-hide .route--bus .wheel { animation-play-state: paused; }

@keyframes show_bus {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bus_jump {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes bus_wheel { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

@keyframes show_road {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw_road_lanes { 0% { stroke-dashoffset: 100 } 100% { stroke-dashoffset: 0; } }

@keyframes show_arrow_parts { 0% { opacity: 0; } 100% { opacity: 1; } }

@keyframes show_pin {
  0% {
    opacity: 0;
    transform: translateY(-70px) scaleY(1);
  }
  80% {
    opacity: 1;
    transform: translateY(0) scaleY(.8);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes show_pin_shadow {
  30% {
    opacity: 0;
    transform: translateY(10px) scale(2.3);
  }
  100% {
    opacity: .6;
    transform: translateY(0) scale(1);
  }
}

@keyframes swap_city_a {
  0%, 52% {
    content: "Jastrzębie Zdrój";
    opacity: 0;
    transform: scaleX(0) translateX(15px);
    width: 0;
  }
  3%, 50% {
    opacity: 1;
    transform: scaleX(1) translateX(0);
    width: 181px;
  }
  53%, 100% {
    content: "Katowice";
    opacity: 0;
    transform: scaleX(0) translateX(15px);
    width: 0;
  }
  56%, 97% {
    opacity: 1;
    transform: scaleX(1) translateX(0);
    width: 124px;
  }
  100% {
    opacity: 0;
    transform: scaleX(0) translateX(15px);
    width: 0;
  }
}

@keyframes swap_city_b {
  0%, 100% {
    content: "Żory";
  }
  0% {
    opacity: 0;
    transform: scaleX(0) translateX(15px);
    width: 0;
  }
  3%, 100% {
    opacity: 1;
    transform: scaleX(1) translateX(0);
    width: 87px;
  }
}

@keyframes swap_city_c {
  0%, 52% {
    content: "Katowice";
    opacity: 0;
    transform: scaleX(0) translateX(-15px);
    width: 0;
  }
  3%, 50% {
    opacity: 1;
    transform: scaleX(1) translateX(0);
    width: 124px;
  }
  53%, 100% {
    content: "Wisła";
    opacity: 0;
    transform: scaleX(0) translateX(-15px);
    width: 0;
  }
  56%, 97% {
    opacity: 1;
    transform: scaleX(1) translateX(0);
    width: 95px;
  }
  100% {
    opacity: 0;
    transform: scaleX(0) translateX(-15px);
    width: 0;
  }
}



/* 3. SEARCH */
.search {
  width: var(--page-width-mobile);
  min-height: 342px;
  margin: 30px auto 0;
  position: relative;
  z-index: 10;
  border-radius: 15px;
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, .1);
  background: linear-gradient(45deg, #fcd900 50%, #ffe43f 50%);
}

.search > div:first-child {
  padding: 5px 10px;
}


main {
  position: relative;
}


/* 4. HOMEPAGE - homepage.css */


/* 5. FOOTER */
.footer {
  position: relative;
  z-index: 1;
  background: #333;
  padding: 25px 0 20px;
  clear: both;
}

.footer__inner {
  width: var(--page-width-mobile);
  margin: 0 auto;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, .4);
}

.footer__inner .rwd {
    max-width: 100%;
    height: auto;;
}

.footer__inner a {
  color: rgba(255, 255, 255, .4);
  text-decoration: none;
  transition: color 300ms ease;
}

.footer__inner a:hover {
  color: #fff;
}

.footer__inner p {
  margin: 7px 0;
}

.footer__inner .sep {
  display: inline-block;
  margin: 0 10px;
}

.footer__copy {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.footer__copy p:first-child {
  padding-right: 20px;
}

.footer__copy-design a {
  color: #fff;
  font-weight: 500;
}

.footer__copy-design a:hover {
  color: var(--color-1);
}

.footer__extra {
  margin-top: 15px;
  font-size: 1.2rem;
}


/* 6. SUBPAGE */

/* Offers */
.offer__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 30px;
}

.offer__wrapper .box + .box {
  margin: 0;
}










/* OTHERS */

/* Headers */
.headers {
  margin: 0;
  padding: 0 0 7px;
  display: block;
  position: relative;
  font-size: 2.4rem;
  font-weight: 500;
}

.headers::before {
  content: "";
  width: 40px;
  height: 3px;
  background: var(--color-1);
  position: absolute;
  left: 0;
  bottom: 0;
  transition: background 300ms ease, transform 300ms ease;
  transform-origin: left;
}

.headers a {
  text-decoration: none;
  color: inherit;
  transition: color 300ms ease;
}

.headers a:hover {
  color: var(--color-1);
}

/* Hr */
hr {
  position: relative;
  width: 100%;
  height: 2px;
  border: none;
  background: #e6e6e6;
  margin: 40px 0;
  clear: both;
}

/* Box */
.box {
  display: flow-root;
  clear: both;
  padding: 30px 30px 10px;
  background: #e9e9e9;
  text-shadow: 1px 1px 0 #fff;
  border-radius: 15px;
}

.box__photo {
  display: block;
  margin: 0 0 20px;
}

.box__photo picture {
  display: block;
  overflow: hidden;
  background: #fff;
  transition: background 300ms ease;
  will-change: opacity, transform;
}

.box__photo picture img {
  display: block;
  width: 100%;
  transition: opacity 300ms ease, transform 300ms ease;
}

a.box__photo:hover picture {
  background: var(--color-1);
}

a.box__photo:hover img {
  opacity: .4;
  transform: scale(1.15);
}

.box__content .desc-more {
  display: flex;
  align-items: center;
  margin: 20px 0;
  text-align: right;
}

.box__content .desc-more hr {
  position: relative;
  flex: 1;
  width: 100%;
  height: 2px;
  border: none;
  background: none;
  margin: 0;
  overflow: hidden;
}

.box__content .desc-more hr::before {
  content: "";
  width: calc(100% - 25px);
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
}

.box__content .desc-more .btn {
  margin: 0;
}

.box__content time {
  margin-bottom: 5px;
}

.box__header {
  margin: 0 0 30px;
  font-size: calc(2.4rem + 5 * ((100vw - 360px) / 500));
}

.subpage .box__header a {
  color: var(--color-main);
  text-decoration: none;
  transition: color 300ms ease;
}

.subpage .box__header a:hover {
  color: var(--color-1);
}

.box__desc {
  text-align: left;
  hyphens: auto;
}

.box__desc li {
  margin: 0 !important;
}

time {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  color: var(--color-3);
  margin: 0;
  padding: 0;
}

time .fa {
  display: block;
  margin-right: 5px;
  font-size: 120%;
}

.box + .box {
  margin-top: 30px;
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin: 10px 10px 10px 0;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: var(--color-1);
  font: 400 calc(var(--font-size-base) - .1rem)/1 var(--font-1);
  color: #fff;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  outline: none;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, .2);
  transition:
        background 200ms ease-in-out,
        color 200ms ease-in-out,
        padding 250ms ease-in-out;
  -webkit-user-select: none;
  user-select: none;
}

hr + .btn {
  margin-top: 0;
}

.btn:last-child {
  margin-right: 0;
}

.btn::after {
  content: "";
  display: inline-block;
  margin-left: 10px;
  width: 10px;
  height: 20px;
  background: url('/gfx/arrow.svg') no-repeat;
  background-size: contain;
  transition:
        opacity 250ms ease,
        transform 250ms ease-in-out;
}

.btn:hover {
  padding-left: 31px;
  padding-right: 9px;
  background: #fff;
  color: var(--color-1);
}

.btn:hover::after {
  transform: translateX(10px) scale(0);
  opacity: 0;
}

/* button - style 2 */
.btn.style-2 {
  background: #fff;
  color: var(--color-main);
}

.btn.style-2:hover {
  color: var(--color-1);
}

.btn.style-2::after {
  background-image: url('/gfx/arrow-2.svg');
}

/* button - previous */
.btn.prev {
  flex-direction: row-reverse;
}

.prev:hover {
  padding-left: 9px;
  padding-right: 31px;
}

.btn.prev::after {
  margin-left: 0;
  margin-right: 10px;
  transform: rotate(180deg);
}

.btn.prev:hover::after {
  transform: rotate(180deg) translateX(10px) scale(0);
}

/* button - disabled */
.btn:disabled,
.btn.disabled {
  pointer-events: none;
  opacity: .4;
  background: #ccc;
}


/* Social */
.social {
  display: none;
}


/* Image border */
.img-b {
  border: 7px solid #fff;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1);
}

/* Image align */
.img--left,
.img--right {
  float: left;
  display: block;
  margin: 0 0 30px 0;
  position: relative;
  z-index: 1;
}

.img--right {
  float: right;
}

.img--left a, .img--right a {
  display: block;
}


/* Photo zoom */
.photo-zoom {
  display: inline-flex;
  position: relative;
  margin: 0 auto;
}

.photo-zoom::before {
  content: "";
  width: 30%;
  max-width: 60px;
  height: 30%;
  max-height: 60px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.6);
  z-index: 1;
  opacity: 0;
  background: url("/gfx/zoom.svg") no-repeat 50%;
  background-size: contain;
  transition: opacity 300ms ease-in-out, transform 300ms ease;
}

.photo-zoom picture {
  display: block;
  background: var(--color-1);
  overflow: hidden;
}

.photo-zoom picture img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  transition: opacity 300ms ease, transform 300ms ease;
}

.photo-zoom:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(90deg) scale(1);
}

.photo-zoom:hover picture img {
  opacity: .4;
  transform: scale(1.15);
}


/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
  justify-content: center;
  clear: both;
}

.innerGall {
  margin: 30px 0;
  clear: both;
}
