/* ===== Písmo Nunito (uložené přímo na webu, nic se nestahuje z Googlu) ===== */
@font-face {
  font-family: "Nunito";
  font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Barvy a rozměry – úpravy se dělají tady ===== */
:root {
  --accent: #8bc34a;         /* zelená (tlačítko, aktivní menu, kontakty) */
  --accent-dark: #76a83d;
  --ink: #373f51;            /* nadpisy a text na bílém pozadí */
  --ink-soft: #4a5264;
  --menu: #6b7280;           /* neaktivní položka menu */
  --line: #e6e8eb;
  --side-w: 300px;
  --font: "Nunito", "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.5;
  color: var(--ink-soft); background: #fff; -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ===== Postranní panel (logo + menu) ===== */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w);
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border-right: 1px solid var(--line); z-index: 20;
  padding: 5.5rem 1.25rem 7rem;
}
.logo {
  display: block; max-width: 240px; text-align: center; text-decoration: none;
  font-size: 25px; line-height: 1.4; font-weight: 700; color: var(--ink);
}
.nav { flex: 1; display: flex; align-items: center; }
.nav ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.nav li + li { margin-top: .8rem; }
.nav a {
  display: block; padding: .2rem 1rem; text-decoration: none;
  font-size: 16px; font-weight: 700; letter-spacing: .05em; color: var(--menu);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

.side-foot {
  position: fixed; left: 0; bottom: 0; width: var(--side-w); z-index: 21;
  padding: 0 1rem 1.6rem; text-align: center; font-size: 14px; line-height: 1.9; color: var(--menu);
}
.side-foot p { margin: 0; }
.side-foot a { text-decoration: underline; text-underline-offset: 2px; }
.side-foot a:hover { color: var(--accent-dark); }

/* ===== Hlavní část ===== */
.main { margin-left: var(--side-w); min-height: 100vh; }
.inner { max-width: 1000px; padding: 0 40px; margin: 0 auto 0 0; }

h1, h2, h3 { font-family: var(--font); margin: 0; }
h1 { font-size: 48px; line-height: 1.3; font-weight: 800; }
h2 { font-size: 35px; line-height: 1.35; font-weight: 700; color: var(--ink); }
h3 { font-size: 24px; line-height: 1.35; font-weight: 800; }
p { margin: 0 0 1rem; }

/* Hero */
.hero, .dark {
  position: relative; isolation: isolate; color: rgba(255,255,255,.92); text-align: center;
  background-color: #111; background-size: cover; background-position: center;
}
.hero::before, .dark::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); z-index: -1; }
.hero { background-image: url("images/hero.webp"); min-height: 511px; display: flex; align-items: center; justify-content: center; padding: 4rem 1.5rem; }
.hero h1 { color: #fff; margin-bottom: 1.6rem; }
.hero p { max-width: 38rem; margin-left: auto; margin-right: auto; }
.hero .btn { margin-top: 2.2rem; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-size: 17.2px; font-weight: 800; padding: 12px 32px; border-radius: 0; transition: background .15s;
}
.btn:hover { background: var(--accent-dark); }

/* Obsah na bílém pozadí */
.content { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.content h2 { margin-bottom: 1.3rem; }
.content h2:not(:first-child) { margin-top: 2.6rem; }
.content p, .content ul { max-width: 52rem; }
.dash { list-style: none; margin: 0 0 1rem; padding: 0; }
.dash li::before { content: "- "; }

/* Fotky */
.inner.wide { max-width: none; }
.gallery { display: flex; flex-wrap: wrap; gap: 2rem 2.5rem; align-items: flex-start; padding-bottom: 5rem; }
.gallery img { height: 180px; width: auto; max-width: 100%; object-fit: cover; }

/* Tmavá sekce Kontakt na úvodní stránce */
.dark { background-image: url("images/kontakt-pozadi.webp"); text-align: left; padding: 4rem 0 5rem; }
.dark::before { background: rgba(0,0,0,.8); }
.dark h1 { color: #fff; margin-bottom: 4rem; }

/* Kontaktní údaje (obě stránky) */
.lead-text { max-width: 31rem; }
.contact { margin: 3.2rem 0 0 3rem; }
.contact h3, .contact a { color: var(--accent); text-decoration: none; }
.contact .name { margin-bottom: .2rem; }
.contact .addr { font-size: 16px; margin-bottom: .7rem; }
.contact h3.row { margin-bottom: .55rem; }
.contact a:hover { text-decoration: underline; }

/* Samostatná stránka Kontakt */
.page-contact { padding-top: 7.8rem; padding-bottom: 4rem; }
.page-contact h1 { color: var(--ink); margin-bottom: 3.8rem; }
.page-contact .lead-text { color: var(--ink-soft); }
.page-contact hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0 2.5rem; }
.map { position: relative; padding-bottom: 38%; background: #eef0f2; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link { font-size: 15px; margin: .7rem 0 0; }

/* ===== Mobil a tablet: panel se přesune nahoru ===== */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .side {
    position: static; width: auto; inset: auto; flex-direction: column; border-right: 0;
    border-bottom: 1px solid var(--line); padding: 1.2rem 1rem .6rem;
  }
  .logo { font-size: 22px; max-width: none; }
  .nav { flex: none; }
  .nav ul { display: flex; gap: .5rem; }
  .nav li + li { margin-top: 0; }
  .side-foot { position: static; width: auto; padding: 1.6rem 1rem; border-top: 1px solid var(--line); }
  .main { margin-left: 0; min-height: 0; }
  .inner { padding: 0 1.25rem; }
  h1 { font-size: 34px; }
  h2 { font-size: 27px; }
  h3 { font-size: 21px; }
  .hero { min-height: 420px; }
  .content { padding-top: 3rem; padding-bottom: 2.5rem; }
  .gallery { gap: 1.2rem; padding-bottom: 3rem; }
  .gallery img { height: auto; width: 100%; aspect-ratio: 3 / 2; }
  .dark { padding: 3rem 0 3.5rem; }
  .dark h1, .page-contact h1 { margin-bottom: 2rem; }
  .contact { margin-left: 0; }
  .page-contact { padding-top: 3rem; }
  .map { padding-bottom: 70%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
