* {
  padding: 0;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
  font-optical-sizing: auto;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

:root {
  --bg-clr: #fdfdfd;
  --main-color: #02133d;
  --secondary-color: #fbbc43;
}

body {
  font-size: 1rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  background-color: var(--bg-clr);
  color: var(--black);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.bg {
  position: relative;
}

main {
  width: 100%;
}

body,
html {
  position: relative;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  width: calc(100% - 25px);
}

img {
  display: block;
}

.fl {
  display: flex;
}
.load {
  opacity: 0;
  transition: opacity 1200ms ease-in-out;
}

.load.sl {
  transition-delay: 200ms;
}

.visible {
  opacity: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  color: var(--secondary-color);
  font-size: 50px;
  font-weight: 800;
}

h2 {
  font-size: 40px;
  font-weight: 600;
}

h3 {
  font-size: 23px;
}

p,
a {
  font-size: 18px;
}

a {
  font-weight: 800;
}

#open_preferences_center {
  display: none;
  border-radius: 100px;
  background-color: var(--secondary-color);
  position: fixed;
  z-index: 20;
  bottom: 20px;
  left: 20px;
  padding: 10px;

  img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
  }
}

.flip-card .flip-card-inner .flip-card-back p::-webkit-scrollbar {
  width: 5px;
}

.flip-card .flip-card-inner .flip-card-back p::-webkit-scrollbar-thumb {
  background: #fbbc43;
  border-radius: 5px;
  width: 3px;
}

.main-logo {
  width: 400px;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

footer {
  text-align: center;
  background-color: #040010;
  color: white;
  padding: 2em 0;
  font-size: 18px;
  width: 100%;
}

header {
  width: 100%;
  position: fixed;
  z-index: 9999;
  border-bottom: 1px solid var(--secondary-color);
  background-color: var(--main-color);
}

nav.container {
  padding: 1.5rem 0;
  max-width: 1340px;
}

nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

nav ul li:first-of-type {
  margin: 0 auto 0 0;
}

nav ul li {
  padding-right: 1rem;
  margin: 0 0 0 1rem;
  list-style-type: none;
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

nav ul li a img {
  width: 15px;
  object-fit: contain;
}

nav img.mobile-logo {
  height: 20px;
  display: none;
  margin-left: 25px;
}

nav ul li:first-of-type a img {
  height: 25px;
  width: auto;
}

nav ul li:not(:first-of-type)::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  bottom: 0;
  left: 0;
  transform: translateY(10px);
  transition: width 300ms ease;
}

nav ul li:not(:first-of-type):hover::after {
  width: 90%;
  height: 3px;
  background-color: var(--secondary-color);
}

.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
}

.realization .container {
  padding-block: 4rem;
}

.intro .container {
}
/* Úvod na stránce - modré pozadí (začátek sekce) */
.intro {
  background-color: var(--main-color);
  color: white;
  padding-block: 5rem 2rem;
  position: relative;
  overflow-y: hidden;
}

.intro::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: url(../img/png/crystal-kwok-28U1dQ9FUSg-unsplash.webp);
  background-size: cover;
}

.intro .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  padding-block: 4rem;
  position: relative;
}

.flip-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3em;
  width: 100%;
  margin-block: 2rem;
}

.flip-card {
  background-color: transparent;
  flex: 1 0 250px;
  height: 350px;
  perspective: 500px;
}

.flip-card:hover {
  transform: scale(1.06);
}

.flip-card.hovered .flip-card-inner .flip-card-front,
.flip-card.hovered .flip-card-inner .flip-card-back {
  box-shadow: 0px 0px 15px 5px #afafaf;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.4s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card:hover {
  will-change: transform;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: 2px solid white;
  border-radius: 15px;
  transition: all 300ms ease;
}

.flip-card-front {
  color: white;
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: center;
  flex-direction: column;
}

.flip-card-back {
  background-color: transparent;
  color: white;
  transform: rotateY(180deg);
  padding: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  text-align: start;
}

.flip-card-back p {
  position: relative;
  font-size: 18px;
  margin-top: 15px;
  max-height: 80%;
  overflow-y: scroll;
  overflow-x: hidden;
}

.flip-card-back span {
  font-weight: 700;
  font-size: 30px;
}

.flip-card .flip-card-back::before {
  content: "";
  width: 80%;
  height: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  background-repeat: no-repeat;
  background-position: center;
}

.flip-card:nth-of-type(1) .flip-card-back::before {
  background-image: url(../img/svg/elements/voda.svg);
}
.flip-card:nth-of-type(2) .flip-card-back::before {
  background-image: url(../img/svg/elements/topeni.svg);
}
.flip-card:nth-of-type(3) .flip-card-back::before {
  background-image: url(../img/svg/elements/plyn.svg);
}
.flip-card:nth-of-type(4) .flip-card-back::before {
  background-image: url(../img/svg/elements/servis.svg);
}

.flip-card-front img {
  height: 70px;
  object-fit: contain;
  display: block;
}

.flip-card-front h3 {
  text-transform: uppercase;
  font-size: 25px;
  font-weight: 700;
}

.information-need {
  padding-bottom: 80px;
  font-size: 23px;
  color: white;
  text-decoration: none;
  position: relative;
}

.information-need::before {
  animation: animateUpDown 2s infinite;
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  bottom: 150px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border-right: 5px white solid;
  border-bottom: 5px white solid;
}
/* Úvod na stránce - modré pozadí (konec sekce) */

/* Linie na stránce kontakt - bílé pozadí (začátek sekce) */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  position: relative;
}

.banner a {
  background-color: var(--secondary-color);
  padding: 25px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 23px;
  color: white;
  position: relative;
  z-index: 2;
  border: 2px solid white;
  box-shadow: 0px 10px 0px 0px rgba(230, 230, 230, 1);
}

.banner a::before,
.banner a::after {
  position: absolute;
  content: "";
  background-color: var(--secondary-color);
  width: 70px;
  height: 60px;
  border-radius: 5px;
  box-shadow: 0px 10px 0px 0px rgba(230, 230, 230, 1);
}

.banner a::before {
  left: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.banner a::after {
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.banner .line {
  position: absolute;
  width: 100%;
  height: 45px;
  background-color: var(--secondary-color);
  box-shadow: 0px 10px 0px 0px rgba(230, 230, 230, 1);
}

.banner.grey .line,
.banner.grey .line::before,
.banner.grey .line::after {
  background-color: #cccccc;
}

.banner .line div {
  height: 5px;
  width: 100%;
  background-color: white;
  position: absolute;
  top: 20%;
}

.banner .line::before,
.banner .line::after {
  content: "";
  position: absolute;
  background-color: var(--secondary-color);
  width: 70px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: 0px 10px 0px 0px rgba(230, 230, 230, 1);
}

.banner .line::before {
  left: 0;
  border-radius: 0 5px 5px 0;
}

.banner .line::after {
  right: 0;
  border-radius: 5px 0 0 5px;
}
/* Linie na stránce kontakt - bílé pozadí (konec sekce) */

/* Realizace - bílé pozadí (začátek sekce) */

.realization .container {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.realization h2 {
  font-size: 40px;
  color: var(--main-color);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 2rem;
}

/* Realizace - bílé pozadí (konec sekce) */

/* Swiper styles (začátek stylů) */
.swiper {
  width: 100%;
  height: 300px;
  position: relative;
  overflow-x: clip;
  overflow-y: initial;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  transition: transform 300ms ease;
}

.swiper-slide::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0.4;
  background-color: #02133d;
  transition: all 200ms ease;
}

.swiper-slide::after {
  content: "REGAS Servis";
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: var(--main-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  font-weight: 800;
  opacity: 1;
  z-index: 3;
  transition: all 300ms ease;
}

.swiper-pagination {
  bottom: -30px !important;
}
.swiper-slide:hover::after {
  opacity: 0;
  bottom: 0;
}

.swiper-slide:hover::before {
  opacity: 0;
}

.swiper-slide:hover img {
  transform: scale(1.2);
}

/* Swiper styles (Konec stylů) */

/* Spolupráce - modré pozadí (začátek sekce) */

.cooperation-text {
  background-color: var(--main-color);
  color: white;
}

.cooperation-text .container {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding-block: 4rem;
}

.cooperation-text line {
  height: 2px;
  width: 30%;
  background-color: var(--secondary-color);
}

.cooperation-items {
  padding-block: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.cooperation-item {
  flex: 1 0 20%;
  min-width: 150px;
}

.cooperation-item img {
  display: block;
  object-fit: contain;
  width: 80%;
  opacity: 0.7;
  transition: opacity 500ms ease;
}

.cooperation-item img:hover {
  opacity: 1;
}

/* Spolupráce - modré pozadí (konec sekce) */

/* Kontakt - bílé pozadí (začátek sekce) */
.contact {
  padding-block: 4rem;
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url(../img/png/khara-woods-mZ2CfzfUdhk-unsplash.webp);
  background-size: cover;
  opacity: 0.1;
}

.contact .container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding-block: 60px;
  margin: auto;
  position: relative;
}

.form-section {
  flex: 1;
  width: 100%;
}

.form-section h2 {
  margin-bottom: 10px;
  color: var(--main-color);
}

.underline {
  width: 100%;
  height: 3px;
  background: var(--secondary-color);
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-x: hidden;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  width: 100%;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-section button {
  background: var(--secondary-color);
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: none;
  padding: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #e09f10;
}

.text-section {
  flex: 1;
}

.text-section h2 {
  margin-bottom: 10px;
  color: var(--main-color);
}

.text-section .underline {
  margin-bottom: 20px;
}

.text-section p {
  margin-bottom: 15px;
}

.text-section .btn {
  display: inline-block;
  background: #f9b21a;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.text-section .btn:hover {
  background: var(--secondary-color);
}

/* Kontakt - bílé pozadí (konec sekce) */

.contacts-information {
  text-align: center;
  padding-block: 4rem;
  background-color: var(--main-color);
  color: white;
  margin-top: 60px;
}

.contacts-information h2 {
  margin-bottom: 40px;
  color: var(--secondary-color);
}

.contacts-box {
  border: 3px solid #f9b21a;
  border-radius: 12px;
  padding: 40px 20px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin: auto;
}

.contact-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.contact-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  margin-bottom: 15px;
  stroke: #fff;
}

.contact-item a {
  color: #fff;
  text-decoration: underline;
}

.contact-item a:hover {
  color: #f9b21a;
}

.contact-item p {
  margin: 5px 0;
}

.message {
  height: 100vh;
  overflow: hidden;
  background-color: var(--main-color);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.message img {
  width: 200px;
}

.message p {
  margin-top: 35px;
  font-size: 25px;
  font-weight: 700;
}

@keyframes animateUpDown {
  0% {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  50% {
    transform: translate(-50%, -80%) rotate(45deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(45deg);
  }
}

@media screen and (max-width: 1300px) {
}

@media screen and (max-width: 1100px) {
}

@media screen and (max-width: 950px) {
  nav {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
  }
  nav ul {
    flex-direction: column;
    background-color: var(--main-color);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    transform: translateX(150%);
    transition: 500ms ease;
    gap: 0.5em;
  }
  nav ul.show {
    transform: translateX(0%);
  }
  nav img.mobile-logo {
    display: block;
  }
  nav ul li:first-of-type {
    display: none;
  }
  .hamburger {
    display: block;
    margin-right: 25px;
    z-index: 9999999;
  }
  nav ul li {
    margin: 1rem 0;
    padding-right: 0;
  }
}

@media screen and (max-width: 768px) {
  .contact .container {
    flex-direction: column;
    gap: 40px;
  }
  .contacts-box {
    flex-direction: column;
    gap: 30px;
  }
  .flip-card:hover {
    transform: scale(1);
  }
}

@media screen and (max-width: 540px) {
  .flip-card {
    flex: 1 0 100%;
    height: 250px;
  }
  .banner {
    overflow-y: hidden;
  }
}
