* {
    box-sizing: border-box;
    letter-spacing: 0.25rem;
  }

  html, body {
    height:100%;
    margin: 0;
    padding: 0;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    overflow-y: scroll;
    overflow-x: hidden;
    line-height: 1.3;
  }

  body::-webkit-scrollbar{
    display:none;
  }

  body {
    display: flex;
    flex-direction: column;
     font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
  }

  .header {
    position: relative;
    height: 25vw;
    background-color: #2e293c;
    z-index: 1009;
  }

  .slideshow-container {
    top: 0; left: 0;
    height: 25vw;
    width: 100%;
    display: flex;
    transition: transform 1s ease-in-out;
  }

  .slide {
    display: flex;
    flex: 1 0 100%;
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: space-around;
    
  }

  .slide img{
    max-width: 100%;
  height: auto;
  display: block;
  }

  .slide-cont{
    position: relative;
    top:10%;
    transition: transform 0.5s ease-in-out;
    color: #d4ccf2;
  }

   .slide-cont:hover{
    transform: scale(1.1);
  }

  .slide-cont h3 i{
    transition: transform 1.5s ease;
    transform: rotate(0deg);
  }

  .slide-cont:hover i{
    transform: rotate(360deg);
  }

  .icon-cont{
    color:#ffffff;
     background-color: #da0505;
     font-size: clamp(1.25rem, 3vw, 4rem);
     padding: 10px;
  }

  .slide-cont h3{
    display:flex;
    flex-wrap: nowrap;
     font-size: clamp(1rem, 3vw, 4rem);
     align-items: center;
     justify-content: center;
     text-transform: uppercase;
     background-color: #2e293c;
     background-image: url(../pole-bg.png);
     background-size: auto;
     padding-right: 1vw;
  }

  .slide-box{
    display: flex;
    flex-direction: column;
    gap:0;
    align-items: flex-start;
    text-align: center;
    width:50%;
  }

  .slide-box h1{
    background-color: #da0505;
    padding-inline: 3%;
    color: #ffffff;
    margin: 0;
    font-size: clamp(2rem, 4vw, 5rem);
    padding-block: 1%;
  }

  .slide-box p{
    background-color: #2e293c;
    background-image: url(../pole-bg.png);
    background-size: auto;
    color:#d4ccf2;
    margin: 0;
    width: 100%;
    font-size: clamp(1rem, 2vw, 2.5rem);
    padding-block: 1%;
  }

  .navbar {
    display: flex;
    position: sticky;
    top: 0;
    background-color: #2e293c;
    z-index: 1005;
    border-top: 5px solid #da0505;
    box-shadow: 0px 5px 20px #231f2e6f;
  }

 .navbar a{
  flex: 1;
  appearance: none;
  background-color: #2e293c;
  background-image: url(../pole-bg.png);
  background-size: auto;
  border-width: 0;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-size: clamp(0.5rem, 1vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1em;
  margin: 0;
  opacity: 1;
  outline: 0;
  padding: 1%;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-rendering: geometricprecision;
  text-transform: uppercase;
  transition: opacity 300ms cubic-bezier(.694, 0, 0.335, 1),background-color 100ms cubic-bezier(.694, 0, 0.335, 1),color 100ms cubic-bezier(.694, 0, 0.335, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  white-space: nowrap;
}

.navbar .selected{
  background-color: #da0505;
  background-image: none;
  box-shadow: none;
}

.navbar .unselected:before {
  animation: opacityFallbackOut .5s step-end forwards;
  backface-visibility: hidden;
  background-color: #da0505;
  color: #ffffff;
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transform: translateZ(0);
  transition: clip-path .5s cubic-bezier(.165, 0.84, 0.44, 1), -webkit-clip-path .5s cubic-bezier(.165, 0.84, 0.44, 1);
  width: 100%;
}

.navbar .unselected:hover:before {
  animation: opacityFallbackIn 0s step-start forwards;
  clip-path: polygon(-1% -1%, 101% -1%, 101% 101%, -1% 101%);
}

.navbar .unselected:after {
  background-color: #2e293c;
}

.navbar .unselected span {
  z-index: 1;
  position: relative;
}

.main {
  flex:1;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: url(../bg.png);
  background-size: auto;
}

  .footer {
    display: flex;
    justify-content: space-between;
    padding-block: 1%;
    width: 100%;
    background: #2e293c;
    background-image: url(../pole-bg.png);
    background-size: auto;
    color: #d4ccf2;
    border-top: 5px solid #da0505;
    flex-wrap:nowrap;
    align-items: center;
    box-shadow:inset 0px 5px 20px #0e0c13;
  }

  .footer-logo{
    align-items: center;
  }

  .footer-address, .footer-info, .footer-bank{
    font-size: clamp(0.4rem, 0.8vw, 2rem);
    margin:1% 2%;
  }


  .footer-logo img{
    height: clamp(4rem, 10vw, 10rem);
     user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  }

  .footer > div {
  flex: 1;
}

.pole-kontakt {
  margin-block: 5%;
    display: flex;
    flex-direction: row;
    background-color: transparent;
    background-size: auto;
    color:white;
    transition: transform 0.5s ease-in-out;
  }

  .text-kontakt{
    flex:23%;
    color: #2e293c;
    font-size: clamp(0.4rem, 1vw, 2rem);;
    text-align: center;
    margin-inline: 2%;
  }

  .title-kontakt{
    color: #2e293c;
    text-transform: uppercase;
    font-size: clamp(0.5rem, 1.2vw, 3.5rem);
    padding: 5%;
    border-bottom: 3px solid #da0505;
  }

  .formular{
    flex:30%;
    margin:2%;
    font-size: clamp(0.4rem, 1vw, 2rem);
  }
  form{
    display: flex;
    flex-direction: column;
  }

  input, textarea{
    width:100%;
    font-size: clamp(0.4rem, 1vw, 2rem);
    resize:none;
    background-color: #92929261;
    color: #0e0c13;
    border:none;
    border-bottom: 3px solid #da0505;
    margin-bottom:10px;
  }

  button{
  appearance: none;
  background-color: #da0505;
  border-width: 0;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-size: clamp(0.5rem, 1vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.25rem;
  line-height: 1em;
  margin: 0;
  outline: 0;
  padding-top: 5%;
  padding-bottom: 5%;
  text-align: center;
  text-decoration: none;
  text-rendering: geometricprecision;
  text-transform: uppercase;
  width:100%;
  transition: background-color 0.3s ease;
  }
    
    button:hover{
      background-color: #e12f2f;
    }

  .pole1 {
    display: flex;
    flex-direction: row;
    margin:0;
    background-color: transparent;
    color:white;
  }

  .pole1 h2{
    color:#000;
    font-size: clamp(0.5rem, 1.2vw, 3.5rem);
    margin-bottom: 1%;
  }

  .text-cont1{
    flex:1;
  }

  .text-cont1, .text-cont2, .text-cont3 , .text-cont4 , .text-cont5 , .text-cont6 {
    padding-block: 1%;
  }


   .text-cont1 p, .text-cont2 p, .text-cont3 p, .text-cont4 p, .text-cont5 p, .text-cont6 p, li{
    color:#2e293c;
    font-size: clamp(0.4rem, 1vw, 2rem);
  }

  .pole-title1{
    color:#ffffff;
    display: flex;
    background-image: url(../subsites/img/dom1.jpg);
    justify-content: center;
    align-items: center;
    background-color:transparent;
    background-size: cover;
    background-position: center;
    width:35%;
    height: 100%;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 3vw, 4rem);
    font-weight: 700;
    line-height: 1em;
  }

   .pole2 {
    display: flex;
    flex-direction: row-reverse;
    margin:0;
    background-color: transparent;
  }

  .text-cont2{
    flex:1;
  }
  
  .pole-title2{
    color:#ffffff;
    display: flex;
    background-image: url(../subsites/img/dom2.jpg);
    justify-content: center;
    align-items: center;
    background-color:transparent;
    background-size: cover;
    background-position: center;
    width:35%;
    height: 100%;
    text-transform: uppercase;
     font-size: clamp(1.25rem, 3vw, 4rem);
    font-weight: 700;
    line-height: 1em;
  }

   .pole3 {
    display: flex;
    flex-direction: row;
    margin:0;
    background-color: transparent;
    color:white;
  }

  .text-cont3{
    background-repeat: no-repeat;
    background-size:cover;
    flex:1;
  }

  .pole-title3{
    color:#ffffff;
    display: flex;
    background-image: url(../subsites/img/obrabanie.jpg);
    justify-content: center;
    align-items: center;
    background-color:transparent;
    background-size: cover;
    background-position: center;
    width:35%;
    height: 100%;
    text-transform: uppercase;
     font-size: clamp(1.25rem, 3vw, 4rem);
    font-weight: 700;
    line-height: 1em;
  }

  .pole4 {
    display: flex;
    flex-direction: row;
    margin:0;
    background-color: transparent;
    color:white;
  }

  .text-cont4{
    background-repeat: no-repeat;
    background-size:cover;
    flex:1;
  }
  
  .pole-title4{
    color:#ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color:transparent;
    background-image: url(../subsites/img/montaz.jpg);
    background-size: cover;
    background-position: center;
    width:35%;
    height: 100%;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 3vw, 4rem);
    font-weight: 700;
    line-height: 1em;
  }

   .pole5 {
    display: flex;
    flex-direction: row;
    margin:0;
    background-color: transparenttransparent;
    color:white;
  }

  .text-cont5{
    background-repeat: no-repeat;
    background-size:cover;
    flex:1;
  }

  .pole-title5{
    color:#ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color:transparent;
    background-image: url(../subsites/img/dizajn.jpg);
    background-size: cover;
    background-position: center;
    width:35%;
    height: 100%;
    text-transform: uppercase;
     font-size: clamp(1.25rem, 3vw, 4rem);
    font-weight: 700;
    line-height: 1em;
  }

  .pole6 {
    display: flex;
    flex-direction: row;
    margin:0;
    background-color: transparent;
    color:white;
  }

  .text-cont6{
    background-repeat: no-repeat;
    background-size:cover;
    flex:1;
  }
  
  .pole-title6{
   color:#ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color:transparent;
    background-image: url(../subsites/img/dizajn.jpg);
    background-size: cover;
    background-position: center;
    width:35%;
    height: 100%;
    text-transform: uppercase;
     font-size: clamp(1.25rem, 3vw, 4rem);
    font-weight: 700;
    line-height: 1em;
  }

  .text {
    margin-top:2%;
    margin-inline: 5%;
    display:flex;
    flex-direction: column;
  }

  .mid{
    height: 25vw;
    position: relative;
    overflow:hidden;
    background-color: #2e293c;
    box-shadow: 0px 5px 20px #0e0c13;
  }

  .mid:hover .gallery-container {
    filter: brightness(1);
  }

  .mid:hover .foto-title {
    filter:opacity(0);
    z-index:0
  }

  .mid .foto-title{
    color: #ffffff;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 3vw, 4rem);
    font-weight: 700;
    text-align: center;
    position: absolute;
    left: 50%;
    top:30%;
    transform: translateX(-50%);
    transition: filter 0.25s ease-in-out;
    z-index: 1001;
  }

   .gallery-container {
    top: 0; left: 0;
    height: 25vw;
    width: 100%;
    display: flex;
    transition: transform 1s ease-in-out, filter 0.25s ease-in-out;
    filter: brightness(0.25);
  }

  .gallery {
    position:relative;
    display: flex;
    flex: 1 0 calc(100%/3);
  }

  .gallery a{
    height: 100%;
    width: 100%;
    position: absolute;
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: space-around;
    transition: filter 0.25s ease-in-out;
  }

  .gallery:hover a{
    filter: brightness(0.5);
  }

  .gallery:hover .fa-search-plus{
    filter: opacity(1);
  }

  .lang{
    display: flex;
    position: absolute;
    bottom: 1vh;
    right: 1vh;
    width: 13vh;
    height: auto;
    justify-content: space-between;
    z-index:1002;
  }

  .lang img{
    width: 6vh;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease-in-out;
    filter:brightness(50%);
    z-index:1003;
  }

  .lang img:hover{
    filter: brightness(100%);
    transform:scale(1.1);
  }

  .prev, .next {
  position:absolute;
  top: 0;
  height: 100%;
  width: 5vh;
  color: white;
  font-size: 3vh;
  cursor: pointer;
  z-index: 1001;
  border: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.prev {
  left: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.next {
  right: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.6);
}

  .gal-prev, .gal-next {
  position: absolute;
  top: 0;
  height: 100%;
  width: 5vh;
  color: white;
  font-size: 3vh;
  cursor: pointer;
  z-index: 1001;
  border: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.gal-prev {
  left: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.gal-next {
  right: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.gal-prev:hover, .gal-next:hover {
  background-color: rgba(0,0,0,0.6);
}

.checkbox-container{
  cursor: pointer;
  display:flex;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}

.checkbox{
  cursor: pointer;
  margin-block: 0px;
  margin-left: 0px;
  margin-right: 2px;
  width: 1vw;
  height: auto;
  align-self: baseline;
  accent-color: #da0505;
}

.checkbox-text{
  color:#2e293c;
  font-size: clamp(0.2rem, 0.7vw, 2rem);
} 

.title-foto{
    color: #2e293c;
    text-align: center;
    padding-bottom: 1%;
    margin-bottom: 0;
    text-transform: uppercase;
    font-size: clamp(0.5rem, 1.5vw, 3.5rem);
    border-bottom: 5px solid #da0505;
    z-index: 1001;
  }

.fotogaleria-sp{
  display: grid;
  grid-template-columns:1fr 1fr 1fr 1fr ;
  grid-template-areas:
    "photo6 photo7 photo11 photo12"
    "photo15 photo16  photo17 photo18";
  box-shadow: 0px 5px 20px #231f2e6f;
}

.fotogaleria-pr{
  display: grid;
  grid-template-columns:1fr 1fr 1fr 1fr ;
  grid-template-areas:
    "photo4 photo4 photo9 photo13"
    "photo4 photo4  photo8 photo14"
    "photo10 photo1 photo5 photo5"
    "photo3 photo2 photo5 photo5";
  box-shadow: 0px 5px 20px #231f2e6f;
}

.photo1 img, .photo2 img, .photo3 img, .photo4 img, .photo5 img, .photo6 img, .photo7 img, .photo8 img, .photo9 img, .photo10 img, .photo11 img, .photo12 img, .photo13 img, .photo14 img , .photo15 img, .photo16 img, .photo17 img, .photo18 img{
width:100%;
height:auto;
object-fit:cover;
display: block;
}

.fotogaleria-sp a, .fotogaleria-pr a{
  position: relative;
  aspect-ratio: 1.35 / 1;  
  overflow: hidden;
}

.fotogaleria-sp a img, .fotogaleria-pr a img{
  transition: filter 0.25s ease-in-out;
}

.fotogaleria-sp a:hover img, .fotogaleria-pr a:hover img{
  filter: brightness(0.5);
}

.fotogaleria-sp a:hover .fa-search-plus, .fotogaleria-pr a:hover .fa-search-plus{
  filter: opacity(1);
}

.fa-search-plus{
  position: absolute;
  text-decoration: none;
  top: 52%;
  left: 52%;
  transform: translate(-50%, -50%);
  color:#ffffff;
  font-size: clamp(1.25rem, 3vw, 4rem);
  filter:opacity(0);
  transition: filter 0.25s ease-in-out;
  cursor: pointer;
}

.photo1{
  grid-area: photo1;
}

.photo2{
  grid-area: photo2;
}

.photo3{
  grid-area: photo3;
}

.photo4{
  grid-area: photo4;
}

.photo5{
  grid-area: photo5;
}

.photo6{
  grid-area: photo6;
}

.photo7{
  grid-area: photo7;
}

.photo8{
  grid-area: photo8;
}

.photo9{
  grid-area: photo9;
}

.photo10{
  grid-area: photo10;
}

.photo11{
  grid-area: photo11;
}

.photo12{
  grid-area: photo12;
}

.photo13{
  grid-area: photo13;
}

.photo14{
  grid-area: photo14;
}

.photo15{
  grid-area: photo15;
}

.photo16{
  grid-area: photo16;
}

.photo17{
  grid-area: photo17;
}

.photo18{
  grid-area: photo18;
}

  @media screen and (max-width: 650px) {
    html, body {
      height: auto;
    }

    .header{
      max-height: 40vh;
      height:40vh
    }

    .slideshow-container {
      height: 40vh;
    }

    .slide{
      flex-direction: column;
    }

    .slide-cont{
      top: 0;
    }

    .slide-box{
      width:80%;
    }

    .navbar {
      position: relative;
      flex-direction: column;
      box-shadow: none;
    }

    .navbar a{
      font-size:2vh;
      padding: 1.2vh;
    }

    .pole-kontakt{
      flex-direction: column;
    }

    .text-kontakt{
      font-size: 2vh;
      margin-inline: 10%;
    }

    .title-kontakt{
      font-size: 2.5vh;
    }


    button, label, input, textarea,.checkbox-text{
      font-size: 2vh;
    }

    .checkbox{
      width: 2vh;
    }

    .pole1, .pole2, .pole3, .pole4, .pole5, .pole6{
      flex-direction: column;
    }

    .pole-title1, .pole-title2, .pole-title3, .pole-title4, .pole-title5, .pole-title6{
      width: 100%;
      min-height: 40vh;
      font-size: 4vh;
    }
    
    .pole1 h2{
      font-size:3vh;
    }

    .text-cont1 p, .text-cont2 p , .text-cont3 p, .text-cont4 p, .text-cont5 p, .text-cont6 p{
      font-size:2vh;
    }

    li{
      font-size:2vh;
    }

    .text{
      margin: 5%;
    }

    .gallery-container{
      height: 40vh;
    }

    .gallery{
        flex: 1 0 100%;
    }

    .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size:2vh;
  }

  .footer-logo {
    order: -1;
    margin-top: 1%;
  }
  .footer-logo img{
    max-width: 150px;
  }

  .footer-address p,
  .footer-info p {
    margin: 0.25rem 0;
  }
   .footer-address, .footer-info, .footer-bank{
    font-size: 2vh;
  }


  .mid{
    height: 40vh;
  }
  .title-foto{
    font-size: 2vh;
  }
    .fotogaleria-sp{
  grid-template-columns:1fr;
  grid-template-areas:
    "photo6"
    "photo7"
    "photo11"
    "photo12"
    "photo15"
    "photo16"
    "photo17"
    "photo18";
  }

  .fotogaleria-pr{
  grid-template-columns:1fr;
  grid-template-areas:
    "photo1"
    "photo2"
    "photo3"
    "photo4"
    "photo5"
    "photo8"
    "photo9"
    "photo10"
    "photo13"
    "photo14";
  }

  
}
@media (pointer: coarse) {
  .gallery-container{
    filter: none;
  }

  .foto-title{
    visibility: hidden;
  }

  .slide-cont:hover{
    transform: none;
  }

  .slide-cont:hover i{
    transform: none;
  }

  .navbar .unselected:hover:before {
  animation: none;
  clip-path: none;
  background-color: transparent;
  }

  .lang img{
    filter: none;
  }

  .gallery:hover a{
    filter: none;
  }

  .gallery:hover .fa-search-plus{
    visibility: hidden;
  }

  .fotogaleria a img:hover{
    filter:none;
  }

  .fotogaleria a:hover .fa-search-plus{
  filter: opacity(0);
}
}