/* Common styles for Zklidníme to */

:root{
  --bg:#fcfcfc;
  --fg:#0f172a;
  --muted:#5b5b58;
  --accent:#d39b3c;
  --accent-original: #3f3a2f;
  --accent-contrast:#ffffff;
  --border:#e6e2da;
  --beige:#f7f3ed;
  --shadow:0 10px 36px rgba(0,0,0,.06);
  --max:1200px;
  --bp:700px;
}

*{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
html{scroll-behavior:smooth;}
body{
  margin:0;background:var(--bg);color:var(--fg);
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  line-height:1.65;letter-spacing:.01em
}
a{color:inherit;text-decoration:underline;}
h1,h2{color:inherit}
.container{max-width:var(--max);margin:0 auto;padding:0 24px}

/* kam se má zarovnat nadpis při kliknutí na navigaci */
h2[id]{scroll-margin-top:40px;}

/* HLAVIČKA */
header{
  background:var(--beige);
  border-bottom:none;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 24px;
}

.brand{
  padding: 10px 0;
}
.brand a{text-decoration:none;}

/* desktop menu odkazy */
.navlinks{
  display:flex;
  gap:16px;
  font-size:.95rem;
}
.navlinks a{
  padding:8px 0;
  text-decoration:none;
}
.navlinks a.nav-page-link{
  border-left:1px solid var(--border);
  padding-left:16px;
}
.navlinks a:focus-visible{
  outline:2px solid #b6b0a6;
  outline-offset:2px;
}

/* hamburger tlačítko (mobil) */
.menu-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  width: 28px;
  height:28px;
  border:none;
  background:transparent;
  cursor:pointer;
  padding:0;
}
.menu-toggle span{
  display:block;
  width:100%;
  height:2px;
  background-color:var(--fg);
  border-radius:2px;
  transition:transform .25s ease, opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2){
  opacity:0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

/* mobilní rozbalovací panel */
.mobile-wrap{
  background:var(--beige);
  border-bottom:1px solid var(--border);
}
.mobile-menu{
  display:none;
  max-height:0;
  overflow:hidden;
  transition:max-height .25s ease;
  font-size:1rem;
}
.mobile-menu a{
  display:block;
  padding:14px 24px;
  text-decoration:none;
  border-top:1px solid var(--border);
}
.mobile-menu a.nav-page-link{
  padding-top:14px;
  border-top:1px solid var(--border);
}
.mobile-menu.open{
  display:block;
  max-height:320px;
}

/* OBECNÉ SEKCE */
section{
  padding:40px 0 64px;
  border-top:1px solid var(--border);
  background:var(--bg);
  color:var(--fg);
}
section.alt{
  background:var(--beige);
  border-top:0;
}

h2{
  font-size:22px;
  margin:0 0 12px;
  color:var(--fg);
  font-weight:600;
  line-height:1.3;
}
p{margin:0 0 12px}
.card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  background:#fff;
  box-shadow:var(--shadow)
}

footer{
  border-top:1px solid var(--border);
  padding:28px 0 40px;
  color:var(--muted);
  text-align:left;
  background:var(--bg);
  font-size:.9rem;
  line-height:1.4;
}

img,video{
  max-width:100%;
  height:auto;
  display:block
}
:where(h1,h2,h3,p,li,a){
  overflow-wrap:break-word;
  hyphens:auto
}

/* Back to top button */
.back-to-top{
  display:none;
  position:fixed;
  bottom:24px;
  right:24px;
  width:48px;
  height:48px;
  background:var(--accent);
  color:var(--accent-contrast);
  border:none;
  border-radius:8px;
  cursor:pointer;
  font-size:1.2rem;
  z-index:999;
  box-shadow:var(--shadow);
  transition:opacity 0.3s ease, transform 0.3s ease;
  align-items:center;
  justify-content:center;
}
.back-to-top.show{
  display:flex;
}
.back-to-top:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 40px rgba(0,0,0,.1);
}
.back-to-top:focus-visible{
  outline:2px solid #b6b0a6;
  outline-offset:2px;
}

/* Consent banner */
.consent-banner{
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:1000;
  background:#fff;
  color:var(--fg);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.consent-banner[hidden]{
  display:none !important;
}
.consent-banner p{
  margin:0;
  font-size:.95rem;
  color:var(--fg);
}
.consent-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.consent-btn{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--beige);
  color:var(--fg);
  cursor:pointer;
  font-weight:600;
  font-size:.95rem;
}
.consent-btn.primary{
  background:var(--accent);
  color:var(--accent-contrast);
  border-color:color-mix(in oklab,var(--accent),#000 12%);
}
.consent-manage{
  color:var(--muted);
  font-size:.85rem;
  text-decoration:underline;
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
  align-self:flex-start;
}

/* MOBIL */
@media (max-width:700px){
  .back-to-top{
    bottom:20px;
    right:20px;
    width:44px;
    height:44px;
    font-size:1.1rem;
  }
  .navlinks{display:none;}
  .menu-toggle{display:flex;}

  .nav{
    padding:12px 20px;
  }
  .brand{
    font-size:1rem;
    font-weight:600;
  }

  .container{
    padding:0 18px;
  }

  section{
    padding:48px 0;
  }

  header{
    background:var(--beige);
    border-bottom:none;
  }
  .mobile-wrap{
    background:var(--beige);
    border-bottom:1px solid var(--border);
  }
}

@media (min-width:701px){
  .back-to-top{
    display:none !important;
  }
}

@media (min-width:760px){
  .consent-banner{
    left:auto;
    right:24px;
    bottom:24px;
    max-width:520px;
  }
}
