* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Segoe UI, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #E3E2E0;
  color: #121212;
  line-height: 1.6;
}

main {
  margin: 60px 0 0 0;
}

img {
  width: 100%;
  height: auto;
}

a {
  color: #121212;
  text-decoration: none;
  cursor: pointer;
}

.scale {
  transform: translateX(0) scale(1);
  transition: all .4s ease-in-out;
}

.scale:hover {
  transform: translateX(0) scale(1.03);
  transition: all .4s ease-in-out;
  z-index: 0;
}

.shadow {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75)
}

.shadow:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75)
}

/* =========================
   HLAVNÍ NAVIGACE
========================= */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #E3E2E0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.main-nav.hide {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 4vw;
  /*box-shadow: 0 8px 10px -10px gray;*/
}

.navshadow {
  box-shadow: 0 8px 10px -10px gray;
}

.logo {
  justify-content: center;
  align-content: center;
  display: grid;
  max-width: 170px;
}

.logoim {
  width: 30%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #121212;
  transition: color 0.2s;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-links a.active {
  font-weight: 900;
  border-bottom: 2px solid #121212;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.langdiv {
  margin: 0 0 8px 5px;
  font-weight: 900;
  font-size: 1.1rem;
  color: #121212;
}

/* =========================
   SEKCE
========================= */

.secblock {
  max-width: 1200px;
  margin: 100px auto;
}

#o-nas.secblock {
  margin: 150px auto 100px auto;
}

h1 {
  font-size: clamp(1.6rem, 5vw, 3rem);
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  margin: 50px 0px 50px 0px;
}

/* =========================
   ABOUT BLOCK
========================= */

.about_block {
  width: 100%;
  margin: 0 auto 120px auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.about_block:last-child {
  margin-bottom: 0;
}

.about_img,
.about_text {
  grid-area: 1 / 1;
}

.about_img {
  display: flex;
  justify-content: flex-end;
  z-index: 1;
}

.about_img img {
  width: 55%;
  height: auto;
  display: block;
}

.about_text {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  width: 44%;
  max-width: 90%;
  justify-self: start;
  margin-left: 6%;
  background: #D9DADA;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.about_text p {
  text-align: left;
  padding: 0;
  margin: 0 40px 20px 70px;
}

.txthead {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 30px;
}

.txthead .plus {
  font-size: 103px;
  font-weight: 100;
  line-height: 16px;
  width: 54px;
  margin: 0 10px 0 0;
}

.txthead h2 {
  font-size: calc(1.2rem + 0.5vw);
  text-align: left;
  padding: 0;
  margin: 0 0 0 0;
  text-transform: uppercase;
}

/* otočené bloky */
#jak-pracujeme .about_img, #umime-drevostavby .about_img,
#detail .about_img {
  justify-content: flex-start;
}

#jak-pracujeme .about_text, #umime-drevostavby .about_text,
#detail .about_text {
  justify-self: end;
  margin-left: 0;
  margin-right: 6%;
}

/* poslední samostatný obrázek */
section.about_block {
  display: block;
  margin: 0 auto;
}

section.about_block img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================
   SWIPER
========================= */

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #D9DADA;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  max-width: 1200px;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 20s linear;
  transform: scale(1);
}

.swiper-slide.swiper-slide-active img {
  transform: scale(1.3);
}

.slide-text {
  display: none;
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}

.swiper-pagination {
  position: relative;
  margin-top: 5px;
}

.swiper-horizontal > .swiper-pagination-bullets {
  bottom: auto;
}

:root {
  --swiper-theme-color: #262626;
}

.swiper-lazy-preloader-white {
  --swiper-preloader-color: #262626;
}

.swiper-lazy-preloader-black {
  --swiper-preloader-color: #262626;
}

/* =========================
   FOOTER
========================= */

.footer {
  max-width: 70%;
  padding: 2rem 0 4rem 0;
  margin: 2rem auto;
  text-align: center;
  font-size: 0.9rem;
  background: #E3E2E0;
}

.footer a {
  color: #121212;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .lang {
  display: flex;
  justify-content: center;
  align-content: center;
}

.footer .lang a {
  margin: 5px;
}

.footer .lang a.active {
  font-weight: 900;
}

.footer .langdiv {
  margin: auto;
  font-weight: normal;
  font-size: 1rem;
  color: #121212;
}

.bc_f {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  margin: 40px auto 30px auto;
  gap: 0;
}

.blockfooter {
  padding: 0;
  margin: 0;
  display: block;
}

.blockfooter:first-child {
  width: 25%;
  padding: 0 20px 0 0;
  text-align: left;
  margin: 0;
  display: block;
  line-height: 1.2;
}

.blockfooter:first-child .logoim {
  margin: 0 auto 13px auto;
  width: 100px;
  height: auto;
}

.blockfooter.md {
  width: 30%;
}

.blockfooter.kd {
  width: 45%;
}

.blockfooter.kd img {
  width: 100%;
  height: 100%;
}

.blockfooter .mapa {
  width: 100%;
  height: 100%;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  main {
    padding: 0 5vw 0 5vw;
  }

  .about_block {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 3rem auto;
  }

  .about_img,
  .about_text {
    grid-area: auto;
  }

  .about_img {
    order: 1;
    justify-content: flex-start;
  }

  .about_img img {
    width: 100%;
  }

  .about_text,
  #o-nas .about_text, #umime-drevostavby .about_text,
  #detail .about_text {
    position: static;
    width: 100%;
    max-width: 100%;
    order: 2;
    margin: 0;
    padding: 25px;
  }

  .txthead {
    margin: 20px 0 50px 0;
  }

  .about_text p {
    line-height: 1.4;
    margin: 0 0 20px 0;
  }

  .footer {
    max-width: 100%;
    padding: 0 5vw 0 5vw;
  }

  .blockfooter:first-child {
    width: 30%;
    padding: 40px 0;
    order: 2;
  }

  .blockfooter.md {
    width: 70%;
    order: 3;
    padding: 40px 0;
  }

  .blockfooter.kd {
    width: 100%;
    order: 1;
  }
}

@media (max-width: 1096px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #E3E2E0;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    display: none;
    box-shadow: 0 8px 10px -10px gray;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links.show li {
    padding: 0 0 7px 0;
    border-bottom: 1px solid #e9e9e0;
  }

  .nav-links.show li:last-child {
    padding: 0;
    border-bottom: 0;
  }

  .main-nav {
    background: #D9DADA;
  }
}

@media (max-width: 794px) {
  .footer {
    max-width: 100%;
    padding: 0 5vw 0 5vw;
  }

  .blockfooter:first-child {
    width: 100%;
    padding: 40px;
    order: 2;
    text-align: center;
  }

  .blockfooter.md {
    width: 100%;
    order: 3;
    padding: 0;
  }

  .blockfooter.kd {
    width: 100%;
    order: 1;
  }
  
  .txthead .plus {
    font-size: 90px;
    width: 40px;
  }
  
  .txthead h2 {
    margin: 0 0 0px 0;
  }
  .txthead {
    margin: 20px 0 30px 0;
  }
}