:root {
  --forest: #173f35;
  --leaf: #2f6b4f;
  --sage: #dfe9dc;
  --cream: #f7f4ec;
  --sun: #e4b84b;
  --ink: #1f2b27;
  --white: #fffdf8;
  --line: #ccd8cc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
}
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  padding: 18px 0;
  background: var(--forest);
  color: var(--white);
}
.topbar .wrap, nav, .contact-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; text-decoration: none; }
nav a { font-family: Arial, sans-serif; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
nav a:hover { color: var(--sun); }
.hero {
  min-height: 650px;
  display: grid;
  align-items: center;
  background: var(--forest) center/cover no-repeat; /* fotografie se doplňuje z administrace (sekce Úvod) */
  color: var(--white);
}
.hero-content { max-width: 720px; padding: 82px 0; }
.eyebrow, .section-label { font-family: Arial, sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { color: var(--sun); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 22px; }
h1 { max-width: 760px; font-size: clamp(3rem, 7vw, 6.4rem); font-weight: 400; letter-spacing: -.03em; }
.hero h2 { max-width: 570px; color: #dcebd8; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 400; }
.hero p { max-width: 610px; color: #f0f4e9; font-size: 1.15rem; }
.button { display: inline-block; margin-top: 18px; padding: 13px 22px; background: var(--sun); color: var(--forest); font-family: Arial, sans-serif; font-size: .88rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.button:hover { background: var(--white); }
section { padding: 94px 0; }
.section-heading { max-width: 680px; margin-bottom: 46px; }
.section-label { display: block; margin-bottom: 15px; color: var(--leaf); }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 400; }
h3 { font-size: 1.55rem; font-weight: 400; }
.intro { max-width: 660px; font-size: 1.15rem; }
.benefits, .services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit, .service { padding: 30px; border-top: 4px solid var(--leaf); background: var(--white); }
.benefit strong { display: block; margin-bottom: 10px; color: var(--leaf); font-family: Arial, sans-serif; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.benefit p, .service p { margin: 0; }
#sluzby {
  background: linear-gradient(rgba(223,233,220,.72), rgba(223,233,220,.9));
}
.service { border-top-color: var(--sun); }
.service h3 { margin-bottom: 12px; }
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.about-quote { margin: 0; padding: 28px; border-left: 5px solid var(--sun); color: var(--forest); font-size: 1.45rem; font-style: italic; }
.about-copy p:first-child { margin-top: 0; }
#kontakt { background: var(--forest); color: var(--white); }
#kontakt .section-label { color: var(--sun); }
.contact-row { align-items: flex-end; }
.contact-details { display: flex; flex-wrap: wrap; gap: 28px; }
.contact-details a { color: var(--white); font-size: 1.35rem; text-decoration: none; }
.contact-details a:hover { color: var(--sun); }
footer { padding: 22px 0; background: #102e27; color: #bdd0c0; font-family: Arial, sans-serif; font-size: .8rem; }
@media (max-width: 760px) {
  .topbar .wrap, nav, .contact-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .topbar { padding: 16px 0; }
  .hero { min-height: 610px; }
  section { padding: 68px 0; }
  .benefits, .services, .about { grid-template-columns: 1fr; gap: 16px; }
  .about { gap: 30px; }
  .contact-row { align-items: flex-start; }
  .contact-details { flex-direction: column; gap: 8px; }
}

/* ---- doplňky pro obsah spravovaný v administraci UXS ---- */
.rte > :first-child { margin-top: 0; }
.rte > :last-child { margin-bottom: 0; }
.hero .rte { margin: 1em 0; }
.section-heading .rte { margin-top: 1em; }
.contact-details span { color: var(--white); font-size: 1.35rem; }
#kontakt .rte { margin-top: 1em; }
.about-quote + .rte { margin-top: 24px; }

/* galerie realizací */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.gallery figure { margin: 0; padding: 18px; border-top: 4px solid var(--leaf); background: var(--white); }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { margin-top: 14px; color: var(--leaf); font-family: Arial, sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* stránka nenalezena */
.notfound { padding: 120px 0; text-align: center; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; gap: 16px; }
}

/* ---- prohlížeč fotografií (modal) ---- */
.js-lightbox { cursor: zoom-in; }
html.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 56px 64px; background: rgba(10, 12, 12, .92); }
.lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; padding: 0; border: 0; background: none; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox-img { display: block; max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox-caption { margin: 14px 0 0; padding: 0; color: #f2f2f2; font-family: Arial, sans-serif; font-size: .95rem; font-weight: 400; letter-spacing: 0; text-transform: none; text-align: center; }
.lightbox-close, .lightbox-nav { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-family: Arial, sans-serif; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover, .lightbox-nav:hover, .lightbox-close:focus-visible, .lightbox-nav:focus-visible { background: rgba(255, 255, 255, .28); outline: none; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) {
    .lightbox { padding: 64px 8px 72px; }
    .lightbox-img { max-height: calc(100vh - 190px); }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 12px; transform: none; }
    .lightbox-prev { left: calc(50% - 56px); }
    .lightbox-next { right: calc(50% - 56px); }
}

/* doplňující údaje pod kontakty (adresa, příslušný úřad) */
#kontakt .rte p { margin: 0 0 .7em; }
#kontakt .rte { margin-top: 1.4em; }

/* ---- cookie lišta ---- */
.cookie-lista { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1500; display: none; align-items: center; justify-content: space-between; gap: 24px; max-width: 1120px; margin: 0 auto; padding: 20px 24px; background: var(--white); color: var(--ink); border-top: 4px solid var(--sun); box-shadow: 0 10px 40px rgba(0, 0, 0, .28); font-family: Arial, sans-serif; font-size: .9rem; line-height: 1.5; }
.cookie-lista.is-open { display: flex; }
.cookie-lista-text strong { display: block; margin-bottom: 4px; color: var(--forest); font-size: 1rem; }
.cookie-lista-tlacitka { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 12px 18px; border: 2px solid var(--forest); background: transparent; color: var(--forest); font-family: Arial, sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.cookie-btn-ano { background: var(--forest); color: var(--white); }
.cookie-btn:hover, .cookie-btn:focus-visible { background: var(--sun); border-color: var(--sun); color: var(--forest); outline: none; }
.cookie-odkaz { color: inherit; }
@media (max-width: 760px) {
  .cookie-lista { flex-direction: column; align-items: stretch; gap: 14px; left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .cookie-lista-tlacitka { justify-content: stretch; }
  .cookie-btn { flex: 1; }
}
