html {
  box-sizing: border-box;
  overflow-x: clip;
  max-width: 100%;
}
*,
::after,
::before {
  box-sizing: inherit;
}

body {
  background-color: #f2ecec;
  display: flex;
  flex-direction: column;
  font-family: montserrat, sans-serif;
  font-size: 18px;
  padding: 0;
  align-items: center;
  margin: 0;
  max-width: 100%;
  width: 100%;
  font-weight: 400;
  overflow-x: clip;
}

.line {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  right: 0;
  background-color: #f2ecec;
  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: #070c12;
  text-decoration: none;
  font-size: 1.8vw;
  font-family: rubik distressed;
  font-weight: 300;
  padding-left: 0.3em;
  padding-right: 0.2em;
  margin: 1vw;
}

.menu a::before {
  content: "/";
  color: #cb2026;
  font-weight: 900;
  font-size: 1.2em;
  margin-right: 0.3em;
  -webkit-text-stroke: 0.5px #cb2026;
}

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

.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: #070c12;
  /*background-color: #ccbd71;*/
}
.cara2 {
  background-color: #cb2026;
}
@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: 45px;
  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: #070c12;
  border: 1px solid #cb2026;
  font-size: 1.6vw;
  font-family: rubik distressed;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 3px;
  margin: 0;
}

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

.lang-btn.active {
  background-color: #cb2026;
  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 #cb2026;
  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: #cb2026;
}
.nav-link {
  text-align: left;
  text-decoration: none;
  font-family: sansation, sans-serif;
  font-size: 1.6rem;
  color: #cb2026;

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

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

.hidden {
  display: none;
}

.poradatel {
  width: 100%;
  text-align: center;
  padding: 2rem 0;
  background-color: #f2ecec;
  color: #070c12;
}
h2 {
  font-family: sansation, sans-serif;
  font-size: 18px;
  text-align: center;
  text-transform: uppercase;
  padding-top: 65px;
}

h3 {
  font-family: sansation, sans-serif;
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  padding-top: 65px;
}

.poradatel a{
  text-decoration: none;
  font-size: 1.3rem;
  color: #070c12;
}
.poradatel a:hover {
  color: #cb2026;
}

.contact {
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  background-color: #070c12;
  color: #f2ecec;
}
.contact h2 {
  font-family: sansation, sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  padding: 1rem;
}
.contact img {
  width: 50px;
  height: auto;
  margin-bottom: 1rem;
}
.socialmedia {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
}

@media only screen and (min-width: 800px) {
  .contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    padding: 2rem 0;
    justify-items: center;
  }

  .socialmedia {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
  }

  .contact img {
    width: 60px;
  }
}

footer {
  width: 100%;
  text-align: center;
  padding: 2rem 0;
  background-color: #070c12;
  color: #f2ecec;
  font-size: 14px;
}

footer a {
  color: #cb2026;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #f2ecec;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #070c12;
  }

  .line {
    background-color: #070c12;
  }

  .menu a {
    color: #f2ecec;
  }

  .cara1,
  .cara3 {
    background-color: #f2ecec;
  }

  .lang-btn {
    color: #f2ecec;
  }

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

  .lang-btn.active {
    color: #070c12;
  }

  .nav {
    background-color: #070c12;
  }
  .poradatel {
    background-color:#070c12;
    color: #f2ecec;
  }
  .poradatel a{
    color: #f2ecec;
    }

  h2{
    color: #f2ecec;
  }
  h3{
    color:#cb2026;
  }
  .contact {
    background-color: #363636;
    color: #f2ecec;
  }

  footer {
    background-color: #363636;
    color: #f2ecec;
  }

  footer a:hover {
    color: #f2ecec;
  }}

  /* Fix styles for viewports 1350px and above */
@media only screen and (min-width: 1350px) {
  body {
    overflow-x: clip;
    font-size: 20px;
  }

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

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

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

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

  footer {
    max-width: 1350px;
    margin: 0 auto;
  }
  footer p {
    font-size: 18px;
  }}