@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600&display=swap');
/* ukradenaobec.cz – hlavní styl */
:root {
  --green-900: #13291d;
  --green-800: #1b3a2a;
  --green-700: #24503a;
  --green-500: #3f7a5a;
  --cream-50: #fbf8f1;
  --cream-100: #f4eee0;
  --cream-200: #e8dfc8;
  --cream-400: #cdbd94;
  --ink: #22261f;
  --muted: #5f6659;
  --line: #e2dccb;
  --sidebar-w: 260px;
  --radius: 6px;
  --font-head: "Merriweather", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-100);
}

img { max-width: 100%; display: block; }

a { color: var(--green-700); }
a:hover { color: var(--green-500); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--green-800);
  line-height: 1.3;
  margin: 0 0 .6em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }

/* ---------- Levý panel ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--green-800);
  background-image: linear-gradient(180deg, var(--green-800) 0%, var(--green-900) 100%);
  color: var(--cream-100);
  display: flex;
  flex-direction: column;
  z-index: 50;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 20px 28px;
  text-align: center;
  text-decoration: none;
  color: var(--cream-100);
  border-bottom: 1px solid rgba(232, 223, 200, .15);
}
.brand:hover { color: #fff; }
.brand svg { width: 72px; height: auto; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand-tag {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--cream-400);
}

.menu {
  list-style: none;
  margin: 0;
  padding: 24px 0;
}
.menu a {
  display: block;
  padding: 12px 28px;
  color: var(--cream-200);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.menu a strong {
  display: block;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.menu a span {
  display: block;
  font-size: .82rem;
  color: var(--cream-400);
}
.menu a:hover,
.menu a.active {
  background: rgba(255, 255, 255, .06);
  border-left-color: var(--cream-400);
  color: #fff;
}

.sidebar-foot {
  margin-top: auto;
  padding: 20px 28px;
  font-size: .8rem;
  color: var(--cream-400);
}

/* Mobilní lišta */
.topbar {
  display: none;
}

/* ---------- Hlavní část ---------- */
.page {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--green-900);
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 41, 29, 0) 40%, rgba(19, 41, 29, .75) 100%);
}
.hero-text {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 36px;
  z-index: 1;
  color: #fff;
}
.hero-text h1 {
  color: #fff;
  margin: 0;
  font-size: 2.4rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.hero-text p {
  margin: .3em 0 0;
  font-size: 1.15rem;
  color: var(--cream-200);
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 450px;
  gap: 40px;
  padding: 48px;
  max-width: none;
  width: 100%;
}

.main section {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 28px;
}
.main section h2 {
  padding-bottom: .4em;
  border-bottom: 2px solid var(--cream-200);
}

.placeholder {
  color: var(--muted);
  font-style: italic;
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(205, 189, 148, .12) 10px 20px);
  border: 1px dashed var(--cream-400);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0;
}

/* ---------- Pravý sloupec ---------- */
.aside .box {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green-700);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.aside h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.news {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.news li:last-child { border-bottom: 0; }
.news time {
  display: block;
  font-size: .8rem;
  color: var(--muted);
}
.meeting-date {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--green-800);
  margin: 0;
}
.meeting-info {
  margin: .2em 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .95rem;
}
.contact-list li { padding: 4px 0; }

/* ---------- Diskuze ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 4px;
}
input, textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--cream-400);
  border-radius: var(--radius);
  background: #fff;
}
input:focus, textarea:focus {
  outline: 2px solid var(--green-500);
  outline-offset: 1px;
}
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 11px 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green-700);
  color: var(--cream-50);
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--green-800); }

.form-note {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--cream-100);
  border-left: 4px solid var(--green-500);
}
.form-note.show { display: block; }

.post {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.post:last-child { border-bottom: 0; }
.post-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.post-head strong { color: var(--green-800); font-size: 1rem; }
.post p { margin: 0; }

/* ---------- Patička ---------- */
.footer {
  margin-top: auto;
  padding: 24px 48px;
  background: var(--cream-200);
  color: var(--muted);
  font-size: .88rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Obsahové prvky ---------- */
.main section p { margin: 0 0 1em; }
.main section p:last-child { margin-bottom: 0; }

.steps {
  margin: 0;
  padding-left: 1.4em;
}
.steps li { margin-bottom: .8em; padding-left: .3em; }
.steps li:last-child { margin-bottom: 0; }
.steps li::marker { color: var(--green-700); font-weight: 700; }

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checks li {
  position: relative;
  padding: 0 0 .8em 1.8em;
}
.checks li:last-child { padding-bottom: 0; }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green-500);
  border-bottom: 2px solid var(--green-500);
  transform: rotate(-45deg);
}

.compare { margin-bottom: 28px; }
.compare:last-child { margin-bottom: 0; }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.compare figure { margin: 0; }
.compare img,
.photo-ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-style: italic;
  font-size: .9rem;
  border: 1px dashed var(--cream-400);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(205, 189, 148, .12) 10px 20px);
}
.compare-caption {
  margin: 8px 0 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--green-800);
  text-align: center;
}
.compare + .compare {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step-note {
  margin: .5em 0 0 !important;
  padding: 10px 14px;
  background: var(--cream-100);
  border-left: 3px solid var(--cream-400);
  font-size: .95rem;
}

.signature {
  margin-top: 1.4em !important;
  text-align: right;
}
.signature-name {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-800);
}
.signature-ballot {
  display: block;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.compare figcaption {
  margin-top: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--green-800);
}

/* ---------- Responzivita ---------- */
@media (max-width: 1100px) {
  .content-wrap {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .aside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }
  .aside .box { margin-bottom: 0; }
}

@media (max-width: 860px) {
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 60;
    height: 60px;
    padding: 0 16px;
    background: var(--green-800);
    color: var(--cream-100);
  }
  .topbar .brand-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cream-100);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
  }
  .topbar svg { width: 34px; height: auto; }
  .burger {
    background: none;
    border: 0;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
  }
  .burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--cream-100);
    transition: transform .25s, opacity .25s;
  }
  .nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .burger span:nth-child(2) { opacity: 0; }
  .nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .sidebar {
    top: 60px;
    transform: translateX(-100%);
    transition: transform .3s ease;
    width: min(300px, 85vw);
  }
  .sidebar .brand { display: none; }
  .nav-open .sidebar { transform: translateX(0); }

  .page { margin-left: 0; }
  .hero { height: 260px; }
  .hero-text { left: 16px; right: 16px; bottom: 20px; }
  .hero-text h1 { font-size: 1.7rem; }
  .hero-text p { font-size: 1rem; }
  .content-wrap { padding: 20px 16px; gap: 24px; }
  .main section { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .footer { padding: 20px 16px; }
}

/* Novinky v postranním panelu – rozbalovací text */
.news-item p { margin: 6px 0 0; font-size: .95rem; }
.news-title { display: block; margin-top: 2px; font-size: 1rem; }
.news details { margin-top: 6px; }
.news summary { cursor: pointer; color: var(--green-700); font-weight: 600; }
.news details p { margin: 8px 0 0; font-size: .95rem; }

/* Pravý box: užší písmo pro novinky */
.news-item,
.news-item p,
.news-title,
.news summary,
.news details p {
  font-family: 'Barlow Condensed', 'Source Sans 3', sans-serif;
}
.news-item p,
.news details p { font-size: 1.12rem; line-height: 1.35; }
.news-title { font-size: 1.3rem; line-height: 1.2; }
.news summary { font-size: 1.1rem; }
