@import url("./_config.css");

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--titleWeight);
  color: var(--titleColor);
}
b,
strong {
  font-weight: var(--boldWeight);
}

.container {
  max-width: 90%;
  width: var(--containerWidth);
}

.btn {
  padding: 1.3em 2.5em;
  border-radius: 50px;
  font-weight: bold;
}

/*
			N A V B A R
*/

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  transition: all 0.3s;
}

.affix {
  background-color: hsl(222, 32%, 16%, 0.85);
  backdrop-filter: blur(3px);
}

p {
	text-align: justify;
	hyphens: auto;
	-ms-hyphens: auto;
	-moz-hyphens: auto;
	-webkit-hyphens: auto;
  }

  .text-center p {
	text-align: center;
  }

  .text-justify p {
	text-align: justify;
  }

.navbar-logo {
  margin: 15px 0;
  transition: all 0.3s;
}

.affix .navbar-logo {
  margin: 10px 0;
}

.navbar-logo-image {
  display: block;
  height: 107.7px;
  transition: all 0.3s;
}

.affix .navbar-logo-image {
  height: 40px;
}

.affix .btn {
  padding: 1em 2em;
}

/*
			N A V B A R   N A V
*/

.navbar-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.navbar-nav li {
  list-style: none;
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
}

.navbar-nav > li:not(:first-child) {
  padding-left: var(--navMargin);
}

.navbar-nav a {
  will-change: auto;
}

.navbar-nav > li > a {
  color: hsl(0, 0%, 100%);
  display: inline-flex;
  text-decoration: none;
  padding: 10px 0;
  transition: all 0.2s;
  outline: none;
  position: relative;
  overflow: hidden;
}

.nav-dropdown > a::after {
  filter: invert(1);
}

.navbar-nav a::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: -101%;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  will-change: transform;
  background-color: var(--primary);
  transition: all 0.2s var(--ease);
}

.navbar-nav a:focus::before,
.navbar-nav a:hover::before,
.navbar-nav .nav-active::before {
  left: 0;
}

.navbar-nav .nav-active {
  color: white;
}

.navbar-nav ul {
  position: absolute;
  display: none;
  top: 100%;
  left: var(--navMargin);
  margin: 0;
  padding: 10px;
  min-width: 250px;
  background-color: white;
  box-shadow: 0 10px 30px hsla(0, 0%, 0%, 0.2);
}

.navbar-nav ul a {
  padding: 10px 15px;
  display: flex;
  font-size: 0.875rem;
  color: var(--textColor);
  justify-content: space-between;
  text-decoration: none;
  overflow: hidden;
  line-height: 1.3;
  transition: all 0.3s var(--ease);
}

.navbar-nav ul a::after {
  transform: rotate(-90deg);
}

.navbar-nav ul a::before {
  content: ">";
  font-family: monospace;
  font-weight: bold;
  font-size: 1rem;
  width: auto;
  height: auto;
  display: block;
  transform: translateX(0) !important;
  visibility: visible;
  background: none;
  position: absolute;
  top: 8px;
  left: 0;
  opacity: 0;
  color: var(--primary);
}

.navbar-nav ul a:hover::before {
  transform: translateX(10px) !important;
  opacity: 1;
}
.navbar-nav ul a:hover {
  padding-left: 25px;
  padding-right: 5px;
}

.navbar-nav ul .active > a,
.navbar-nav ul a.active {
  color: var(--primary);
}

.navbar-nav > li > .open,
.navbar-nav .nav-dropdown:hover > ul {
  display: block;
  animation: showDropdown 0.3s 1 forwards;
}

.navbar-nav .open .open,
.navbar-nav ul .nav-dropdown:hover > ul {
  display: block;
  animation: showNextDropdown 0.3s 1 forwards;
}

.navbar-nav ul ul {
  top: 0;
  left: 100%;
}

/* mobile menu */

.mobile-menu-toggler {
  width: 32px;
  height: 24px;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  background: none;
  transition: all var(--fastSpeed) var(--easeOutBack);
  outline: none;
}

.mobile-menu-toggler div {
  display: block;
  height: 2px;
  width: 32px;
  background-color: white;
  transition: all var(--fastSpeed) var(--easeOutBack);
  transform-origin: right;
}

.mobile-menu-toggler div:last-child {
  width: 70%;
}

.mobile-menu-toggler.active-toggler div:first-of-type {
  transform: rotate(-45deg);
}

.mobile-menu-toggler.active-toggler div:last-child {
  transform: rotate(45deg);
  width: 100%;
}

.mobile-menu-toggler.active-toggler div:nth-of-type(2) {
  display: none;
}

.mobile-nav {
  transition: transform var(--fastSpeed) var(--easeOutQuart);
  transform: translateX(-100%);
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  max-width: 80vw;
  width: 300px;
  /* background-color: hsla(0, 0%, 0%, 0.8);
	backdrop-filter: blur(10px); */
  background-color: var(--primary);
  margin: 0;
  padding: 0;
  z-index: 99999;
  overflow-y: auto;
}

.mobile-nav.show {
  transform: translateX(0);
}

.mobile-nav ul,
.mobile-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav ul {
  background-color: hsla(0, 0%, 0%, 0.3);
}

.mobile-nav a {
  display: block;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 700;
  color: white;
  box-sizing: border-box;
  padding: 10px 15px;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.2);
}

.mobile-nav ul a {
  font-size: 0.875rem;
  font-weight: normal;
  padding-left: 30px;
}

.mobile-nav ul ul a {
  padding-left: 45px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary);
  background-color: #fff;
}

/*
			H E A D E R
*/

.header-top {
  background: radial-gradient(
    circle,
    hsl(222 32% 16% / 0.4),
    rgb(23 17 35 / 90%)
  );
}

.header-top,
.header-top h1 {
  color: white;
}

.header-top h1 {
  font-size: 4.5rem;
}


/* SIDE SOCIALS */

.side-social {
	position: fixed;
	right: 0;
	bottom: 0;
	padding: 20px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-end;
  }

  .side-social a {
	display: flex;
	width: 48px;
	overflow: hidden;
	align-items: center;
	justify-content: flex-start;
	border-radius: 100vmax;
	background-color: #fff;
	color: var(--primary);
	text-decoration: none;
	transition: all 0.6s var(--ease);
	box-shadow: 0 5px 10px 0px hsl(0deg 0% 0% / 10%);
  }

  .side-social a:hover {
	width: 235px;
  }

  .side-social a + a {
	margin-top: 10px;
  }

  .social-icon {
	height: 48px;
	width: 48px;
	transition: 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
  }

  .social-icon img {
	background: white;
	padding: 4px;
	height: 48px;
	border-radius: 50%;
	margin-right: 10px;
	transition: 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
  }

  .social-icon:hover img {
	filter: brightness(1.2);
  }

  .side-social a strong {
	font-size: 0.725em;
	line-height: 1;
	padding-left: calc(1.5em - 4px);
	padding-right: 1.5em;
	display: block;
	white-space: nowrap;
  }


/*
			M A I N   S E C T I O N S
*/

main {
  position: relative;
  z-index: 200;
}

#ogloszenia {
  margin-top: -100px;
}

.shadow {
  background-color: #fff;
  box-shadow: 0 15px 30px -5px hsla(0, 0%, 0%, 0.1);
}

.shadow .flex {
  flex-wrap: nowrap;
}

.shadow .btn {
  flex-shrink: 0;
}

.home .shadow h4 {
  margin-inline: 2rem;
}

.shadow .uppercase {
  color: var(--primary);
  font-weight: bold;
  flex-grow: 0;
  padding: 1.5rem 0;
  margin-right: 2rem;
  border-right: 2px solid var(--borderColor);
}

/* KARTY 3D */

.c-example__demo {
  -webkit-box-flex: 0;
  -ms-flex: 0 1 15%;
  flex: 0 1 15%;
  width: 100%;
  height: 100px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.c-example__tilt {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  background-color: #ffffff;
  transform-style: preserve-3d;
  transform: perspective(300px);
  border-radius: calc(var(--borderRadius) / 2);
  box-shadow: 0 15px 30px -5px hsla(0, 0%, 0%, 0.1);
}

.c-example__tilt-inner {
  transform: translateZ(40px);
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  filter: drop-shadow(0px 15px 30px #0000001a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}

.c-example__tilt .background {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: 2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.c-example__tilt:hover .background {
  background: #ebeef5;
  opacity: 1;
}

.c-example__tilt .background img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  filter: grayscale(1);
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    black 0%,
    rgb(0 0 0 / 30%) 80%
  );
  mask-image: radial-gradient(
    circle at 50% 50%,
    black 0%,
    rgb(0 0 0 / 30%) 80%
  );
  mix-blend-mode: multiply;
  opacity: 0.4;
}

.link-absolute {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 3;
}

#zakres-uslug .swiper-wrapper {
  align-items: stretch !important;
}

#zakres-uslug .swiper-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

#zakres-uslug .swiper-button-prev::after,
#zakres-uslug .swiper-button-next:after {
  display: none;
}

#zakres-uslug .swiper-button-prev,
#zakres-uslug .swiper-button-next {
  width: 72px !important;
  height: 72px !important;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  top: 0 !important;
  right: auto !important;
  left: auto !important;
  transition: all 0.25s;
}

#zakres-uslug .swiper-button-prev:active,
#zakres-uslug .swiper-button-next:active {
  transform: scale(0.98);
  filter: brightness(0.98);
}

#zakres-uslug .karta {
  transform-style: preserve-3d;
}

#zakres-uslug .swiper-slide {
  height: auto !important;
}

#zakres-uslug .karta a {
  padding: 30px;
  height: 100%;
  text-align: center;
  line-height: 1.3;
  color: var(--titleColor);
  transform: translateZ(20px);
}

#zakres-uslug .karta a:hover {
  color: var(--primary);
  box-shadow: 0 20px 20px -10px hsla(0, 0%, 0%, 0.15);
}

#zakres-uslug .c-example__tilt-inner img {
  height: 100px;
  width: 100px;
}

#zakres-uslug span {
  display: none;
}

/* KARTY 3D */

#rejestracja .bg-light {
  background: url(/assets/img/boxbg.png) right center no-repeat;
  background-size: cover;
  height: 400px;
}

#rejestracja .bg-light img {
  margin-top: -100px;
  margin-right: 15%;
}

#mapa {
  overflow: hidden;
}

#mapa iframe {
  width: 100%;
  height: 500px;
  display: block;
  margin-top: -70px;
}

/*
			F O O T E R
*/

.madeby {
  color: white;
  text-decoration: none;
  line-height: 1;
  display: inline-block;
}

.madeby small {
  float: left;
  margin: 4px 4px 0 0;
  font-size: 0.6875rem;
}

footer {
  background-color: hsl(228, 60%, 44%);
  color: white;
}

footer hr {
  opacity: 0.2;
  background-color: #fff;
  margin: 0;
}

footer a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

footer a:hover {
  opacity: 0.6;
}

footer .container > .flex:not(.last) {
  margin-left: -30px;
  margin-right: -30px;
}

footer .md\:w-6-12 {
  padding-left: 30px !important;
  padding-right: 30px !important;
}

footer table {
  width: 100%;
  margin-top: 30px;
}

footer .simple td {
  border-color: hsl(0, 0%, 100%, 0.2);
  padding: 1em 0;
}

footer .simple td:last-child {
  text-align: right;
}

footer .simple tr:first-child td {
  border-top: 1px solid hsl(0, 0%, 100%, 0.2);
}

/*
			K E Y F R A M E S
*/

@keyframes showDropdown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes showNextDropdown {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media screen and (max-width: 1199px) {
  :root {
    --navMargin: 15px !important;
  }

  .nav-dropdown > a::after {
    width: 6px;
    height: 6px;
    margin-left: 5px;
  }

  .navbar-logo-image {
    height: 75px;
  }

  .btn {
    padding: 1.1em 1.8em;
  }

  .navbar-nav > li > a {
    font-size: 0.875rem;
  }

  .header-top h1 {
    font-size: 3rem;
  }

  #rejestracja .bg-light img {
    margin-right: 5%;
  }
}

@media screen and (max-width: 1020px) {
  h2 {
    font-size: var(--h3);
  }

  [class*="md:w"]:not([class*="sm:w"]) {
    padding-left: 0;
    padding-right: 0;
  }

  footer .md\:w-6-12 {
    margin-bottom: 30px;
  }

  footer .last {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (max-width: 960px) {
  #rejestracja .bg-light {
    padding: 0 20px;
  }
  #rejestracja .bg-light img {
    margin-right: -6%;
  }
}

@media screen and (max-width: 760px) {
  #zakres-uslug .justify-between.pb-sp {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #zakres-uslug .justify-between.pb-sp h2 {
    margin-bottom: 30px;
  }

  #rejestracja .bg-light img {
    margin-right: 0;
    max-width: 50%;
    margin-top: -43px;
  }
}

@media screen and (max-width: 635px) {
  #rejestracja .bg-light {
    height: auto;
    padding: 30px;
    text-align: center;
  }

  #rejestracja .bg-light img {
    margin-top: 30px;
  }

  .w-full {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media screen and (max-width: 590px) {
  .navbar .btn {
    font-size: 0.8125rem;
  }

  .header-top h1 {
    font-size: 2.5rem;
  }

  .header-top .lead {
    line-height: 1.5;
    font-size: 1.125rem;
  }

  #zakres-uslug h2 {
    text-align: center;
  }

  main,
  footer {
    overflow: hidden;
  }
}

@media screen and (max-width: 390px) {
  .navbar-logo-image {
    height: 65px;
  }

  .navbar .btn {
    padding: 1em 1.3em;
    font-size: 0.75rem;
  }

  .header-top h1 {
    font-size: 2rem;
  }

  #rejestracja .bg-light {
    padding: 15px;
  }
}
