@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lobster&display=swap");
@import url("header.css");
@import url("footer.css");
@import url("gallery.css");
*, *:before, *:after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding-bottom: 30px;
  flex: 1 0 auto;
}

.main_top {
  margin: 0;
}

.main_top img {
  width: 100%;
  height: auto;
  max-height: 50rem;
  transition: opacity 0.5s ease;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.overlay-text {
  text-shadow: 10px 10px 10px #000000;
  font-family: "Osald", sans-serif;
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(252, 252, 252, 0.832);
  font-size: 7rem;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  transition-delay: 2s;
  z-index: 10;
  padding: 20px;
}

.overlay-text.show {
  opacity: 1;
}

#sliderImage {
  transition: opacity 1s ease-in-out;
}

#sliderImage.fade-out {
  opacity: 0;
}

.sluzby_block h2 {
  margin-bottom: 7%;
  text-align: center;
}

.sluzby_wrapper {
  background-image: linear-gradient(to bottom right, hsl(0, 0%, 0%), #080808, #000000, #1c1b1f, rgba(8, 8, 8, 0.9803921569), rgba(10, 10, 10, 0.9803921569), rgba(11, 11, 11, 0.9803921569), rgba(0, 0, 0, 0.9803921569));
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0 7rem;
  width: 100%;
  min-height: 400px;
}

h1 {
  color: rgba(200, 192, 192, 0.8431372549);
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: 3rem;
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.sluzby_wrapper.visible h1 {
  opacity: 1;
  transform: translateY(0);
}

.sluzby {
  font-family: "Oswald", sans-serif;
  flex-wrap: wrap;
  display: flex;
  margin: 0 auto;
  justify-content: center;
  gap: 10px;
}

.sluzby_wrapper h1 {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity var(--title-duration, 800ms) var(--title-easing, ease), transform var(--title-duration, 800ms) var(--title-easing, ease);
}

.sluzby_wrapper h1.in {
  opacity: 1;
  transform: translateY(0);
}

.sluzby_block {
  font-size: 1.1rem;
  text-align: center;
  padding: 20px;
  max-width: 20rem;
  opacity: 0;
  border-radius: 10%;
  color: #867f7f;
  background-color: rgba(5, 8, 92, 0.2078431373);
  cursor: pointer;
  transition: 1s transform var(--appear-duration, 800ms) var(--appear-easing, ease), opacity var(--appear-duration, 800ms) var(--appear-easing, ease), box-shadow 200ms ease;
  will-change: transform, opacity;
}

.sluzby_block h2 {
  transition: 0.4s;
}

.sluzby_block:hover h2 {
  color: #51fb02;
}

.sluzby_block:hover h2 {
  color: #51fb02;
  transform: scale(1.05);
  transition: 1s;
}

.sluzby_block:nth-child(1),
.sluzby_block:nth-child(3) {
  transform: translateX(-100px);
}

.sluzby_block:nth-child(2),
.sluzby_block:nth-child(4) {
  transform: translateX(100px);
}

.sluzby_block.in {
  opacity: 1;
  transform: translateX(0);
}

.sluzby_block:hover {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition-delay: 0s !important;
}

.nashe_prace h2 {
  margin-bottom: 3%;
}

.nashe_prace p {
  margin-bottom: 8%;
}

.nashe_prace-wrapper {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.nashe_prace-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.nashe_prace-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
}

.nashe_prace {
  padding: 5%;
  font-family: "Oswald", sans-serif;
  text-align: center;
  font-size: 2rem;
  background: #ffffff;
}

.nashe_prace-links {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.nashe_prace-links {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  margin: 0 0 0 15%;
}

.nashe_prace-links li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 1rem;
  border-bottom: 1px solid #ccc;
  position: relative;
  cursor: pointer;
  transition: color 0.3s ease;
  color: rgba(157, 155, 155, 0.9176470588);
}

.nashe_prace-links li::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: #51fb02;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
  z-index: 1;
}

.nashe_prace-links li:hover::after {
  transform: scaleX(1);
}

.nashe_prace-links li:hover {
  color: rgb(0, 0, 0);
}

.nashe_prace-links li:nth-child(odd)::before {
  content: attr(data-category);
  margin-right: 20px;
}

.nashe_prace-links li:nth-child(even) {
  border-bottom: none;
}

.onas {
  font-family: "Oswald", sans-serif;
  text-align: center;
  background: #000;
  color: #ffffff;
  padding: 5rem 1rem;
  width: 100%;
  min-height: 600px;
  position: relative;
}

.onas_h2 {
  color: #51fb02;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  font-weight: bold;
  margin-bottom: 2rem;
}

.onas_p {
  max-width: 80%;
  margin: 0 auto 2rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.5;
}

.onas {
  padding: 10% 5%;
}

.onas_wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  min-height: 400px;
}

.onas_text {
  max-width: 60%;
  min-width: 300px;
  text-align: center;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.onas_text.in {
  opacity: 1;
  transform: translateX(0);
}

.onas_img,
.onas_img.left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: absolute;
  width: clamp(200px, 30vw, 360px);
  max-width: 400px;
}

.onas_img img,
.onas_img.left img {
  width: 100%;
  height: auto;
  max-height: clamp(200px, 25vw, 350px);
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.onas_img {
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  align-items: flex-end;
}

.onas_img img {
  padding: 4px;
  border: 2px solid #51fb02;
  padding-left: 1.2%;
  margin-bottom: 7%;
  width: 100%;
  max-width: 350px;
  height: auto;
  max-height: 400px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 4%;
  -o-object-position: center;
     object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.onas_img.left img:nth-child(1) {
  transform: translateX(-100px);
}

.onas_img img:nth-child(1) {
  transform: translateX(100px);
}

.onas_img img:nth-child(2) {
  transform: translateX(100px);
}

.onas_img img.in {
  opacity: 1;
  transform: translateX(0);
}

.onas_img.left {
  position: absolute;
  width: clamp(200px, 30vw, 360px);
  max-width: 400px;
  left: 5%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
}

.onas_img.left img {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 500px;
  max-height: 500px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.onas_img.left img.in {
  opacity: 1;
  transform: translateX(0);
}

.chemumy {
  background-color: #000;
  font-family: "Oswald", sans-serif;
  display: flex;
  width: 100%;
  margin: 0 auto;
  min-height: 500px;
  max-height: 400px;
  align-items: stretch;
  position: relative;
}

.chemumy_h2 {
  margin-bottom: 3%;
  font-size: 3rem;
}

.chemumy_text {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  text-align: center;
  padding: 2rem;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.chemumy_text img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  z-index: 1;
}

.chemumy_text div,
.chemumy_text p {
  color: #000;
  font-weight: bold;
  position: relative;
  z-index: 2;
}

.chemumy_vid video {
  width: 100%;
  max-width: 600px;
  min-width: 0;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}

.chemumy_2024,
.chemumy_2025 {
  text-align: center;
  min-height: 100px;
}

.counter-number {
  font-size: 3rem;
  font-weight: bold;
}

.counter-text {
  font-size: 1.9rem;
  margin: 0.5rem 0;
}

.year-text {
  font-size: 1.2rem;
}

.zapitannya_block {
  margin: 0 auto;
  background-color: #000000;
  padding: 20px;
  font-family: "Oswald", sans-serif;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

.zapitannya_item {
  margin: 0 auto;
  max-width: 90%;
  background-color: rgba(5, 8, 92, 0.2078431373);
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-rows: auto auto;
  position: relative;
  transition: 0.5s;
  overflow: hidden;
}

.zapitannya_item:hover {
  transform: scale(102%);
}

.zapitannya_block .zapitannya_item:nth-child(2) {
  max-width: 80%;
}

.zapitannya_block .zapitannya_item:nth-child(3) {
  max-width: 70%;
}

.zapitannya_block .zapitannya_item:nth-child(4) {
  max-width: 60%;
}

.zapitannya_block .zapitannya_item:nth-child(5) {
  max-width: 50%;
}

.zapitannya_block .zapitannya_item:nth-child(6) {
  max-width: 40%;
}

.zapitannya_item h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 0px 0;
  color: #333;
}

.zapitannya_item p {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.zapitannya_item .arrow {
  font-size: 1.4rem;
  color: #51fb02;
  cursor: pointer;
  margin-top: 10px;
  display: block;
  text-align: right;
  transition: transform 0.5s ease-in-out, font-size 0.3s ease;
  transition: 0.5s;
}

.zapitannya_item .details {
  margin-top: 10px;
  padding-top: 0;
  border-top: 1px solid #51fb02;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.zapitannya_item .details.active {
  max-height: 200px;
  padding: 10px 0;
}

.zapitannya_item .arrow.active {
  transform: rotate(180deg);
  font-size: 1.4rem;
}

.h4 {
  display: flex;
  font-family: "Oswald", sans-serif;
  background-color: #000;
  color: rgba(255, 255, 255, 0.816);
  font-size: 3rem;
  justify-content: center;
  gap: 3rem;
  padding-top: 5%;
  padding-bottom: 5%;
  align-items: center;
  color: #51fb02;
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  transform: translateY(-50%);
  pointer-events: none;
}

.slider-btn {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.nav-links_right {
  padding-right: 18.5px;
}

@media (max-width: 1285.6px) {
  .sluzby_block {
    max-width: 90%;
    border-radius: 0px;
    margin-bottom: 10px;
  }
}
@media (max-width: 768px) {
  .sluzby_block {
    font-size: 1.2rem;
  }
  .overlay-text {
    font-size: 2rem;
    top: 4%;
  }
  .main_top img {
    height: 24rem;
  }
  h1 {
    max-width: 15%;
    margin: 0 auto;
    margin-bottom: 10%;
    font-size: 2rem;
    color: rgb(215, 205, 205);
  }
  h1:hover {
    color: rgb(166, 162, 154);
    transition: 0.3s;
  }
  .sluzby_wrapper {
    padding: 3rem 0 5rem;
  }
  .sluzby {
    display: flex;
    gap: 15px;
  }
  .sluzby_block {
    margin-bottom: 3%;
    max-width: 90%;
    border-radius: 0%;
  }
  .sluzby_wrapper {
    background-size: cover;
  }
  h2 {
    font-size: 2rem;
  }
  p {
    font-size: 1.4rem;
  }
  .nashe_prace {
    padding-top: 5%;
    padding: 0;
    margin: 0 auto;
  }
  .nashe_prace-wrapper {
    padding: 0 1%;
    flex-wrap: wrap;
  }
  .nashe_prace-links li {
    display: none;
    border: 1px solid #000;
  }
  .nashe_prace-image {
    width: 100vw;
    max-width: 99vw;
    height: 400px;
    margin-left: calc((100vw - 100%) / -2);
    margin-right: calc((100vw - 100%) / -2);
    border-radius: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
  }
  .nashe_prace-image img {
    width: 100%;
    height: 100%;
    display: block;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 0;
  }
  .zapitannya_block {
    grid-template-columns: 1fr;
  }
  .onas_wrapper {
    flex-direction: column;
    align-items: center;
  }
  .onas_h2 {
    font-size: 1.4rem;
  }
  .onas_p {
    max-width: 100%;
  }
  .onas_text {
    max-width: 100%;
  }
  .onas_img,
  .onas_img.left {
    position: static;
    transform: none;
    max-width: 100%;
  }
  .onas_img img {
    max-width: 100%;
    max-height: 300px;
    width: 100%;
  }
  .onas_img.left {
    display: none;
  }
  .onas_img {
    width: 100%;
    max-width: 100%;
    align-items: center;
  }
  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}
@media (max-width: 960px) {
  .nashe_prace-links li {
    font-size: 0.7rem;
  }
}
@media (max-width: 1040px) {
  .onas_h2 {
    font-size: 1.6rem;
  }
  .onas_text {
    max-width: 50%;
  }
  .onas_p {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .zapitannya_block {
    height: auto;
  }
  .zapitannya_block .zapitannya_item:nth-child(1) {
    max-width: 100%;
  }
  .zapitannya_block .zapitannya_item:nth-child(2) {
    max-width: 100%;
  }
  .zapitannya_block .zapitannya_item:nth-child(3) {
    max-width: 100%;
  }
  .zapitannya_block .zapitannya_item:nth-child(4) {
    max-width: 100%;
  }
  .zapitannya_block .zapitannya_item:nth-child(5) {
    max-width: 100%;
  }
  .zapitannya_block .zapitannya_item:nth-child(6) {
    max-width: 100%;
  }
}
.zapitannya_item .details.active {
  overflow: visible;
}