* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: "Quicksand", serif;
  font-optical-sizing: auto;
}

.content {
  flex-grow: 1;
  padding: 4vh;
  margin: 0;
}

.section {
  margin-top: 0;
  height: fit-content;
  display: flex;
  justify-content: center;
  font-size: 3em;
  width: 100%;
  color: white;
  flex-direction: column;
}

.section--1 {
  background: url("../obrazky/Interier/20250729_185405.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  align-items: center;
  height: 100vh;
}

.blur {
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(3px);
  z-index: 0;
}

.text {
  display: flex;
  margin-top: 40vh;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.text p {
  color: white;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  font-size: 1em;
}

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  background-color: rgb(232, 232, 232);
  padding: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.container .text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 30px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  color: black;
  .provoz{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    p {
      margin-top: 5px !important;
    }
  }
  a {
    color: black;
    font-size: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    font-weight: bold;
    margin-top: 15px;
    &:hover {
      color: #38db1f;
    }

    span {
      transition: all 0.3s ease;
    }

    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -3px;
      width: 100%;
      height: 2px;
      background-color: black;
      transform: scaleX(0);
      transition: transform 0.3s ease-in-out;
    }

    &:hover::after {
      transform: scaleX(1);
      transform-origin: left;
    }
  }
}

.container .text h2 {
  font-size: 30px;
}

.container .text p {
  margin-top: 15px;
  font-size: 22px;
  color: black;
  line-height: 40px;
}

.fade-gallery {
  overflow: hidden;
  width: 100%;
  margin: auto;
  position: relative;
  user-select: none;
  white-space: nowrap;
}

.fade-gallery-track {
  display: flex;
  width: 100%;
  overflow-x: auto; 
  overflow: hidden;     /* Důležité pro scrollování */
  scroll-behavior: smooth;
  user-select: none;
  cursor: grab;          /* Přesunuto sem */
  /* transition: transform 0.3s ease;  - odebráno */
}

.fade-gallery-track:active {
  cursor: grabbing;
}

.fade-gallery-track img {
  flex: 0 0 auto;
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}


@media only screen and (max-width: 1024px) {
  .section {
    height: fit-content;
  }

  .section--1 {
    height: 100vh;
  }

  .blur {
    height: 100vh;
  }

  .text p {
    font-size: 0.5em;
  }

  .container {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    background-color: rgb(232, 232, 232);
    padding: 10px;
  }

  .container .text {
    margin-top: 10px;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    height: auto;

    a {
      font-size: 15px;
    }
  }

  .container .text h2 {
    font-size: 20px;
  }

  .container .text p {
    margin-top: 30px;
    font-size: 15px;
    color: black;
    line-height: 20px;
  }

  .container .obrazky {
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    width: auto;
    height: auto;
  }
}

.to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  width: 50px;
  height: 50px;
  background-color: green;
  color: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.to-top.show {
  display: flex;
  opacity: 1;
}

.to-top:hover {
  opacity: 70%;
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  .to-top {
    width: 40px;
    height: 40px;
  }

  .to-top svg {
    width: 30px;
    height: 30px;
  }
}