:root {
  --bg: #fbf8f2;
  --surface: #ffffff;
  --ink: #1d2a24;
  --ink-soft: #46544c;
  --green-dark: #2c513c;
  --green: #467a5f;
  --orange: #e27635;
  --orange-ink: #a54a14;
  --tint: #e9f1ec;
  --line: #d6dfd9;
  --btn: #2c513c;
  --btn-hover: #1f3a2b;
  --btn-ink: #ffffff;
  --logo-bg: transparent;
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(1rem, 0.97rem + 0.1vw, 1.0625rem);
  --step-0: clamp(1.1875rem, 1.14rem + 0.2vw, 1.3125rem);
  --step-1: clamp(1.4rem, 1.3rem + 0.5vw, 1.7rem);
  --step-2: clamp(1.75rem, 1.5rem + 1.2vw, 2.4rem);
  --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 18px;
  --maxw: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a16;
    --surface: #1a2520;
    --ink: #f1f5f2;
    --ink-soft: #bccac1;
    --green-dark: #8fc7a9;
    --green: #6fb08d;
    --orange: #f09a62;
    --orange-ink: #f4aa7c;
    --tint: #1f2e27;
    --line: #34463d;
    --btn: #8fc7a9;
    --btn-hover: #a8d7bf;
    --btn-ink: #10201a;
    --logo-bg: #ffffff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; color: var(--green-dark); margin: 0 0 .5em; }
h1 { font-size: var(--step-3); font-weight: 800; }
h2 { font-size: var(--step-2); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--green-dark); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--btn); color: var(--btn-ink); padding: .7rem 1rem; border-radius: 10px; z-index: 10;
}
.skip:focus { top: .5rem; }

/* Záhlaví */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--green-dark); font-family: var(--font-display); font-weight: 800; font-size: var(--step-0); line-height: 1.15; }
.brand img { width: 52px; height: auto; background: var(--logo-bg); border-radius: 10px; padding: 2px; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: .4rem 1rem;
  border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink);
}
.nav a:hover { background: var(--tint); color: var(--green-dark); }
.nav a[aria-current="page"] { background: var(--tint); color: var(--green-dark); box-shadow: inset 0 -3px 0 var(--orange); }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: .7rem 1.6rem; border-radius: 999px; background: var(--btn); color: var(--btn-ink);
  font-weight: 700; font-size: var(--step-0); text-decoration: none; transition: background .15s;
}
.btn:hover { background: var(--btn-hover); color: var(--btn-ink); }
.btn.ghost { background: transparent; color: var(--green-dark); box-shadow: inset 0 0 0 2px var(--green-dark); }
.btn.ghost:hover { background: var(--tint); color: var(--green-dark); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* Sekce */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: 1.1fr 1fr; } }
.hero .lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.hero figure { margin: 0; }
.photo { border-radius: var(--radius); box-shadow: 0 10px 30px rgb(0 0 0 / .12); width: 100%; object-fit: cover; }

.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section.tint { background: var(--tint); }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split.rev > :first-child { order: 2; }
}
.split figure { margin: 0; }

.cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 1.5rem 0 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card h3 { margin-bottom: .3em; }
.card p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.card .num { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--orange); color: #1d1208; font-family: var(--font-display); font-weight: 800; margin-bottom: .7rem; }

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 1.5rem 0; }
.gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.video { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; max-width: 52rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cta { background: var(--green-dark); color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: var(--tint); color: var(--ink); } }
.cta h2 { color: inherit; }
.cta p { color: inherit; }
.cta .btn { background: #fff; color: #1f3a2b; }
.cta .btn:hover { background: #f1e3d6; color: #1f3a2b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta .btn { background: var(--btn); color: var(--btn-ink); } }

.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); max-width: 34rem; font-style: normal; }
.contact-box dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.2rem; }
.contact-box dt { font-weight: 700; color: var(--ink-soft); }
.contact-box dd { margin: 0; }

/* Patička */
.site-footer { margin-top: 3rem; background: var(--surface); border-top: 1px solid var(--line); padding-block: 2rem; font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: center; }
.site-footer img { width: 84px; background: var(--logo-bg); border-radius: 10px; padding: 3px; }
.site-footer p { margin: 0; color: var(--ink-soft); }
.site-footer a { display: inline-block; padding-block: .4rem; }
