html {
  box-sizing: border-box;
}
*,
::after,
::before {
  box-sizing: inherit;
}

body {
  background-color: #eeeae4;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat";
  font-size: 18px;
  padding: 0;
  align-items: center;
  margin: 0;
  max-width: 100%;
  font-family: montserrat;
  font-weight: 400;
  /*overflow-x: hidden;*/
}

.line {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  right: 0;
  background-color: #070c12;
  height: 45px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media only screen and (max-width: 500px) {
  /*.menu {
    max-width: fit-content;
    font-size: 2rem;
    margin-right: 2%;
  }*/
}
@media only screen and (min-width: 500px) {
  .line {
    height: 45px;
  }
}

.menu {
  /* max-width: fit-content;*/
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 2vw;
  font-family: forum, serif;
  font-weight: 300;
  border-left: solid 1px #c69b34;
  padding-left: 0.3em;
  padding-right: 0.2em;
  margin: 1vw;
}

@media only screen and (max-width: 800px) {
  .bio,
  .kontakt,
  .maloobchod,
  .velkoobchod {
    display: none;
  }
}

a.kontakt {
  color: #c69b34;
  font-weight: 300;
}

.ham {
  /*hamburger a krizek*/
  position: absolute;
  right: 15px; /* Pevná vzdálenost od pravého okraje */
  top: 7px; /* Vertikálně vycentrovaný */

  width: 30px; /* Pevná šířka místo 3vw */
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
  z-index: 9999;
}
.cara1,
.cara2,
.cara3 {
  width: 100%;
  flex-shrink: 0;
  height: 2px;
  background-color: white;
  /*background-color: #ccbd71;*/
}
.cara2 {
  background-color: #c69b34;
}
@media only screen and (min-width: 800px) {
  .ham,
  .cara1,
  .cara2,
  .cara3 {
    display: none;
  }
}
@media only screen and (min-width: 500px) {
  .ham {
    right: 20px; /* Na mobilu trochu blíž ke kraji */
    width: 30px; /* Na mobilu trochu menší */
  }
}
.caraB {
  display: none;
}
.caraA {
  transform: rotate(45deg);
  position: relative;
  top: 20%;
}
.caraC {
  transform: rotate(-45deg);
  position: relative;
  bottom: 30%;
}

/*logo small v navigaci*/

.logoS {
  width: auto;
  height: 30px;
  padding: 5px;
  box-sizing: border-box; /* padding se počítá dovnitř */
  position: absolute;
  left: 32px; /* stejná vzdálenost jako má .ham od pravého okraje */
  top: 50%;
  transform: translateY(-50%); /* vycentrované vertikálně */

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.logoS.visible {
  opacity: 1;
  visibility: visible;
}

.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.visible {
  opacity: 1;
  visibility: visible;
}

/* Language Switcher Styles */
.lang-switcher {
  display: inline-flex;
  gap: 0.3em;
  margin-left: 1em;
  align-items: center;
  vertical-align: middle;
  padding-bottom: 1%;
}

.lang-btn {
  background-color: transparent;
  color: white;
  border: 1px solid #c69b34;
  font-size: 1.6vw;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 3px;
  margin: 0;
}

.lang-btn:hover {
  background-color: #c69b34;
  color: #070c12;
}

.lang-btn.active {
  background-color: #c69b34;
  color: #070c12;
  font-weight: 600;
}

/* Mobile Language Switcher */
.lang-switcher-mobile {
  display: flex;
  justify-content: center;
  gap: 1em;
  padding: 1em 0;
  border-top: 1px solid #c69b34;
  margin-top: 1em;
}

.lang-switcher-mobile .lang-btn {
  font-size: 1.2rem;
  padding: 0.5em 1.2em;
}

/* Hide desktop language switcher on mobile */
@media only screen and (max-width: 800px) {
  .menu .lang-switcher {
    display: none;
  }
}

/* Hide mobile language switcher on desktop */
@media only screen and (min-width: 801px) {
  .lang-switcher-mobile {
    display: none;
  }
}

/*navigace na klik*/
.nav {
  background-color: #070c12;
  position: fixed;
  z-index: 9000;
  width: 100%;
  height: 100vh;
  left: 0;
  top: 0;
  margin-top: 0;
  padding: 10%;
  padding-top: 30%;
}
ul {
  list-style: none;
  line-height: 300%;
  display: flex;
  flex-direction: column;
}
a.nav-link {
  color: #c69b34;
}
.nav-link {
  text-align: left;
  text-decoration: none;
  font-family: quicksand;
  font-size: 1.6rem;
  color: #c69b34;

  /*border-bottom: 1px solid #07192f;*/
}

@media only screen and (min-width: 800px) {
  .nav {
    display: none;
  }
}

.hidden {
  display: none;
}

.stop {
  height: 45px;
  position: relative;
  z-index: 0;
}
.upperlogobox {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 50vh;
}

.logobox {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100vw;
  height: 50vh;
  background-color: #070c12;
}

.logobox,
.eko,
.styl {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.logobox:hover,
.eko:hover,
.styl:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.logobox .front,
.logobox .back,
.eko .front,
.eko .back,
.styl .front,
.styl .back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.6s ease;
}

.logobox .front {
  left: 0;
  transform: translateX(0);
  justify-content: center;
}

.eko .front,
.styl .front {
  left: 0;
  transform: translateX(0);
  justify-content: space-between;
}

.styl .front {
  height: 50vh;
}

.styl .front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.eko .front {
  height: 50vh;
}

.eko .front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.logobox.slided .front,
.eko.slided .front,
.styl.slided .front {
  transform: translateX(-100%);
}

.logobox .back,
.eko .back,
.styl .back {
  transform: translateX(100%);
  background-color: #070c12;
  align-items: center;
  justify-content: center;
  padding: 7%;
  color: #eeeae4;
}

.logobox.slided .back,
.eko.slided .back,
.styl.slided .back {
  transform: translateX(0);
}

.logo {
  width: 100vw;
  height: 50%;
  padding: 0% 7% 3% 7%;
  opacity: 0;
  animation: fadeIn 4s ease-in-out forwards;
  align-self: center;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.odkaz {
  display: flex;
  flex-direction: row;
  color: #c69b34;
  text-align: right;
  padding: 0 7% 0 7%;
  justify-content: right;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.sipka {
  width: 80px;
}

@media only screen and (min-width: 800px) {
  .logobox {
    height: 80vh !important;
    min-height: 80vh;
  }

  .upperlogobox {
    height: 80vh;
    z-index: 2;
  }

  .logobox .front {
    height: 100%;
    min-height: 80vh;
    justify-content: space-between;
    padding-bottom: 5%;
  }
  .logo {
    width: auto;
    height: 60%;
    max-width: 80%;
    padding: 0% 7% 0 7%;
    align-self: center;
    margin: auto;
  }

  .sipka {
    width: 150px;
  }
  .odkaz {
    padding: 7% 10% 3% 10%;
  }
  .odkaz p {
    font-size: 2vw;
  }
}

.back h2 {
  font-family: Montserrat;
  font-weight: 300;
  color: #c69b34;
  font-size: 15px;
  padding: 10% 10% 2% 10%;
  margin: 0;
}
.logobox .back h2,
.eko .back h2,
.styl .back h2 {
  border-top: 1px solid #eeeae4;
  padding-top: 12px;
}

.back p {
  font-family: Montserrat;
  font-weight: 400;
  color: #eeeae4;
  font-size: 14px;
  line-height: 1.5;
  padding: 0 8% 0 8%;
}

/*překrytí logoboxu obsahem:*/
.content-wrapper {
  width: 100%;
  position: relative;
  z-index: 3;
  background-color: #eeeae4;
}
/*-*/

/*.eko {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("img/ksilt800x350PS.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}*/

.hero-image {
  width: 100%;
  height: 50vh;
  object-fit: cover;
}

.eko-wrapper,
.styl-wrapper {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 50vh;
}

.eko,
.styl {
  width: 100%;
  height: 70vh;
  position: relative;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-items: baseline;
  overflow: hidden;
  cursor: pointer;
  background-repeat: no-repeat;
}
.eko h2,
.styl h2 {
  padding: 10% 10% 2% 10%;
  margin: 0;
  font-size: 40px;
  font-family: forum;
  font-weight: 400;
  color: #eeeae4;
  text-transform: uppercase;
  text-decoration: overline 1px #c69b34;
}

.styl h2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.eko h2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.eko .shipka,
.styl .shipka {
  width: 120px;
  position: absolute;
  left: 70%;
  bottom: 0%;
  padding-top: 0;
  z-index: 10;
}
.eko h3,
.styl h3 {
  padding: 10% 10% 2% 10%;
  margin: 0;
  font-size: 15px;
  font-family: montserrat;
  font-weight: 300;
  color: #c69b34;
}
.eko h3 {
  border-top: 1px solid #eeeae4;
  padding-top: 12px;
}
.styl h3 {
  border-top: 1px solid #eeeae4;
  padding-top: 12px;
}
.eko p,
.styl p {
  font-size: 14px;
  color: #eeeae4;
  padding: 0 8% 0 8%;
}

@media only screen and (min-width: 800px) {
  .eko-wrapper,
  .styl-wrapper {
    height: 70vh;
  }
  .eko .front,
  .styl .front {
    height: 70vh;
  }
  .hero-image {
    height: 70vh;
  }
  .eko {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url("img/ksilt1350.jpg");
  }
  .eko,
  .styl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: contain;
  }
  .eko:hover,
  .styl:hover {
    transform: scale(1.1);
  }
  .eko h2,
  .styl h2 {
    padding: 5% 10% 2% 10%;
  }
  .eko .shipka,
  .styl .shipka {
    position: absolute;
    width: 150px;
    left: 77%;
    bottom: 5%;
  }

  .eko h3,
  .styl h3 {
    font-size: 28px;
  }
  .eko p,
  .styl p {
    font-size: 18px;
  }
  .back p {
    font-size: 18px;
  }

  .back h2 {
    font-size: 28px;
  }
}

@media only screen and (max-width: 799px) {
  .logobox,
  .eko,
  .styl,
  .shops {
    transform: scale(0.95);
    opacity: 0.8;
    transition: transform 0.6s ease, opacity 0.6s ease;
  }

  .logobox.visible,
  .eko.visible,
  .styl.visible,
  .shops.visible {
    transform: scale(1);
    opacity: 1;
  }

  .eko .back,
  .styl .back {
    justify-content: flex-start;
    padding-top: 10%;
  }
}

.shops {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-self: center;
  position: sticky;
  top: 0;
  z-index: 3;
}
.shops h2 {
  padding: 2% 10% 2% 10%;
  font-size: 25px;
  font-family: montserrat;
  font-weight: 500;
  color: #eeeae4;
  text-decoration: overline 1px #c69b34;
}
.vobox-link {
  text-decoration: none;
  display: flex;
}

.vobox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #1a2d44 0%, #243c5a 50%, #2d4a70 100%);
  width: 100%;
  height: 40vh;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-shadow: #070c12 2px 1px 5px;
}
.vobox:hover {
  transform: scale(1.1);
}
.vobox h4,
.vobox p,
.mobox h4,
.mobox p {
  padding: 0 10% 0 10%;
  font-size: 16px;
  font-family: montserrat;
  font-weight: 400;
  color: #eeeae4;
  margin-top: 1em;
  margin-bottom: 1em;
}
.mobox h2,
.vobox h2 {
  font-family: forum;
  padding: 0 10% 0 10%;
  margin-top: 1em;
  margin-bottom: 1em;
}
.mobox h2 {
  text-decoration: overline 1px #1a2d44;
}
.mobox {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 40vh;
  background: linear-gradient(135deg, #a07825 0%, #c69b34 50%, #d4ab4a 100%);
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-shadow: #070c12 2px 1px 5px;
}
.mobox:hover {
  transform: scale(1.1);
}

@media only screen and (min-width: 800px) {
  .shops {
    display: flex;
    flex-direction: row;
  }
  .vobox,
  .mobox {
    height: 50vh;
    width: 50vw;
  }
  .vobox h4,
  .vobox p,
  .mobox h4,
  .mobox p {
    font-size: 20px;
  }
}

/* Pop-up okno */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 12, 18, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.popup-overlay.hidden {
  display: none;
  opacity: 0;
}

.popup-content {
  background-color: #eeeae4;
  padding: 3rem 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  color: #243c5a;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
}

.popup-close:hover {
  color: #c69b34;
}

.popup-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.popup-content p {
  font-size: 20px;
  color: #243c5a;
  font-family: montserrat;
  font-weight: 500;
  margin: 0;
}

.mobox {
  cursor: pointer;
}

/*banner*/
.banner {
  margin: 0;
  padding: 0;
}

.banner-link {
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.banner-link:hover {
  opacity: 0.95;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 0 10px; /* volitelné zaoblení */
}

/*kontaktni formular*/
.contact {
  grid-area: contact;
  background-color: #070c12;
  position: sticky;
  top: 0;
  z-index: 4;
}

.facebook,
.instagram {
  width: 20%;
  margin: 4% 15% 13% 13%;
}

.forms {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #eeeae4;
  font-style: bold;
}
.forms p {
  padding: 0 10% 5% 10%;
}
@media only screen and (min-width: 800px) {
  .contact {
    display: grid;
    grid-template-areas: "form all";
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
  }
  .all {
    grid-area: all;
    height: 100%;
  }
  .forms {
    grid-area: form;
    margin: 5%;
  }
}

.forms input,
textarea {
  width: 90%;
  height: 2rem;
  margin: 1%;
  background-color: #eeeae4;
  border-radius: 0 0 0 10px;
  border-color: #243c5a;
}

textarea {
  height: auto;
}
label {
  padding: 1% 0 1% 0;
}
.forms button {
  background-color: #c69b34;
  width: 20%;
  height: 3rem;
  border-radius: 2px 2px 2px 10px;
  margin: 2rem;
  margin-bottom: 3rem;
  color: white;
  font-size: 17px;
}
.forms button:hover {
  opacity: 0.4;
}
.all {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: #eeeae4;
  border: 10px solid #243c5a;
  border-radius: 0 0 0 10px;
  box-shadow: 0 0 10px #243c5a;
  color: #243c5a;
  align-items: flex-start;
}

.all p[data-key="follow"] {
  margin-bottom: 10px;
}

/* Telefon odkaz */
.all a[href^="tel"] {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #070c12;
}

.all a[href^="tel"]:hover {
  opacity: 0.4;
}

.phone-icon {
  flex-shrink: 0;
}

/* E-mail sekce */
.mail {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mail p {
  margin: 0;
}

.mail-icon {
  flex-shrink: 0;
}

/* Sociální sítě */
.soc {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 3rem;
}

.soc[hidden] {
  display: none !important;
}

.soc a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.soc a:hover {
  transform: scale(1.1);
}

.facebook-icon,
.instagram-icon {
  display: block;
}
.address {
  padding-top: 3rem;
}
.footer {
  width: 100%;
  padding: 10% 10% 0 10% 0;
  text-align: center;
  font-size: 14px;
  margin: 1rem 0 1rem 0;
  position: relative;
  z-index: 9999;
}

.footer p {
  background-color: #070c12;
  color: #eeeae4;
  margin: 0;
  padding: 5%;
  text-align: center;
  font-size: 10px;
  z-index: 15;
}

.footer a {
  color: #eeeae4;
  text-decoration: underline;
  cursor: pointer;
  pointer-events: auto;
  z-index: 15;
}

.footer a:hover {
  color: #ffffff;
}
@media only screen and (min-width: 800px) {
  .footer p {
    width: 100vw;
    padding: 2% 5% 0 5%;
  }
}

/* Fix styles for viewports 1350px and above */
@media only screen and (min-width: 1350px) {
  body {
    font-size: 20px;
    background-color: #e2e0e0;
  }

  .line {
    overflow: visible;
    max-width: 1350px;
    margin: 0 auto;
    height: 60px;
    left: 0;
    right: 0;
  }

  .menu a {
    font-size: 24.3px;
    margin: 13.5px;
  }

  .lang-btn {
    font-size: 21.6px;
  }

  .stop {
    max-width: 1350px;
    margin: 0 auto;
    height: 60px;
    background-color: #e2e0e0;
  }

  .upperlogobox {
    max-width: 1350px;
    margin: 0 auto;
    height: 80vh;
  }

  .logobox {
    width: 1350px;
    max-width: 100%;
    height: 80vh;
    display: flex;
    background-color: #070c12;
    margin: 0 auto;
  }

  .content-wrapper {
    max-width: 1350px;
    margin: 0 auto;
  }

  .eko-wrapper {
    max-width: 1350px;
    margin: 0 auto;
    max-height: max-content;
  }

  .eko {
    background-repeat: no-repeat;
    width: 100%;
  }

  .styl-wrapper {
    max-width: 1350px;
    margin: 0 auto;
    max-height: max-content;
  }

  .styl {
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
  }

  .styl .hero-image {
    object-position: 54% 50%;
  }

  .shops {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .vobox,
  .mobox {
    width: 675px;
    height: 40vh;
  }

  .contact {
    max-width: 1350px;
    margin: 0 auto;
  }

  .footer {
    padding-top: 3rem;
    text-align: center;
    max-width: 1350px;
    margin: 0 auto;
  }

  .footer p {
    padding: 1rem;
    font-size: 17px;
    text-align: center;
    width: 100%;
  }

  .logobox:hover {
    transform: none;
  }

  .logo {
    transition: transform 0.3s ease;
  }

  .logobox:hover .logo {
    transform: scale(1.4);
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #070c12;
    color: #eeeae4;
  }
  .logobox {
    background-color: #243c5a97;
  }
  .stop {
    background-color: #070c12;
  }
  .content-wrapper {
    background-color: #070c12;
    color: #eeeae4;
  }
  .biotext h2 {
    color: #c69b34;
  }

  .contact {
    background-color: #070c12;
    color: #eeeae4;
  }

  .forms input,
  textarea {
    background-color: #eeeae4;
  }
  .all {
    background-color: #070c12;
    border-color: #eeeae4;
    box-shadow: 0 0 5px #eeeae4;
    color: #eeeae4;
  }
  .all a[href^="tel"] {
    color: #eeeae4;
  }

  .popup-content {
    background-color: #070c12;
    color: #eeeae4;
  }

  .popup-content p {
    color: #eeeae4;
  }

  .popup-close {
    color: #eeeae4;
  }

  .popup-close:hover {
    color: #c69b34;
  }
}

.address {
  pointer-events: none;
}

.address * {
  pointer-events: auto;
}
