/* =========================================================
   Stromy Drábek — hlavní styl
   Struktura: 1) tokeny  2) reset  3) typografie  4) komponenty
              5) sekce   6) animace 7) responsive
   ========================================================= */

/* ---------- 1) Design tokeny ---------- */
:root {
  --green:        #22c55e;
  --green-dark:   #16a34a;
  --forest:       #14532d;
  --forest-deep:  #06340f;
  --mint:         #bbf7d0;
  --mint-soft:    #86efac;

  --bg:           #faf9f6;
  --bg-alt:       #f7f9f5;
  --surface:      #ffffff;

  --text:         #1a1a1a;
  --text-soft:    #45544a;
  --text-muted:   #56655a;
  --text-faint:   #66756a;
  --label:        #8a9a8d;

  --line:         rgba(20, 83, 45, 0.10);
  --line-strong:  rgba(20, 83, 45, 0.20);

  --font-head:    'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm:    11px;
  --radius:       18px;
  --radius-lg:    22px;
  --pill:         999px;

  --shell:        1280px;
  --gutter:       clamp(20px, 6vw, 72px);
  --section-y:    clamp(72px, 11vh, 128px);

  --ease:         cubic-bezier(.4, 0, .2, 1);
  --ease-out:     cubic-bezier(.2, .7, .2, 1);

  --header-h:     84px;
}

/* ---------- 2) Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* kotvy nesmí končit pod fixní hlavičkou */
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Pojistka proti vodorovnému posunu.
   `clip` (ne `hidden`) neutváří scrollovací kontejner, takže nerozbíjí
   position: sticky ani plynulé rolování na kotvy. */
html, body { overflow-x: clip; }

h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul { list-style: none; padding: 0; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
/* <picture> negeneruje vlastní box — <img> se pak chová jako přímý potomek */
picture { display: contents; }
button { font: inherit; color: inherit; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }

/* Viditelný focus pro klávesnici — nikdy neodstraňovat bez náhrady */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--forest);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 3) Typografie ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--green);
  flex: none;
}
.eyebrow--dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.eyebrow--light { color: var(--mint-soft); }

.h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(29px, 4.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--forest);
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--forest);
}

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--text-soft);
  text-wrap: pretty;
}

.shell { max-width: var(--shell); margin-inline: auto; }
.section { padding: var(--section-y) var(--gutter); }
.section--white { background: var(--surface); }
.section--sand  { background: var(--bg); }
.section--mint  { background: var(--bg-alt); }
.section--dark  { background: var(--forest); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 6vh, 64px); }
.section-head .lead { margin-top: 16px; }

/* Hlavička sekce s tlačítkem vpravo */
.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head--split > div { max-width: 640px; }

/* ---------- 4) Komponenty ---------- */

/* Tlačítka */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--pill);
  font-weight: 700;
  font-size: 17px;
  padding: 17px 30px;
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease,
              background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn--primary {
  background: var(--green);
  color: var(--forest-deep);
  box-shadow: 0 10px 30px -10px rgba(34, 197, 94, .7);
}
.btn--primary:hover {
  background: var(--green-dark);
  color: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(34, 197, 94, .85);
}
.btn--ghost {
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: var(--forest);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 24px;
  border: 1.5px solid var(--line-strong);
}
.btn--outline:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.btn--sm { font-size: 15px; padding: 11px 22px; }

/* Karta */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(20, 83, 45, .09);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 34px);
  box-shadow: 0 1px 2px rgba(20, 50, 25, .03);
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
/* Odkaz „Ukázka →" — vždy u spodní hrany karty */
.card__link {
  margin-top: auto;
  padding-top: 16px;
  align-self: flex-start;
  font-weight: 600;
  font-size: 15px;
  color: var(--green-dark);
}
.card__link:hover { color: var(--green); }
.card:hover .card__link { text-decoration: underline; }
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, .45);
  box-shadow: 0 22px 44px -26px rgba(15, 60, 25, .5);
}
.card__num {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .04em;
}
.card .h3 { margin: 16px 0 10px; }
.card p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

/* ---------- Hlavička ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gutter);
  transition: padding .35s var(--ease), background-color .35s ease, box-shadow .35s ease;
}
.header.is-scrolled {
  padding-block: 11px;
  background: rgba(250, 249, 246, .9);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 rgba(20, 50, 25, .07), 0 14px 40px -26px rgba(15, 40, 20, .7);
}

.logo { display: flex; align-items: center; gap: 11px; }

/* Logo jako SVG obrázek.
   Na tmavém heru je bílé (invertované), na světlé hlavičce v původních
   zelených barvách značky. */
.logo__img { height: 70px; width: auto; display: block; }
.header .logo__img {
  filter: brightness(0) invert(1);
  transition: filter .35s ease;
}
.header.is-scrolled .logo__img,
.header--solid .logo__img { filter: none; }
/* Otevřené mobilní menu má světlé pozadí → logo zpět do zelené,
   jinak by bílé logo na krémovém pozadí zaniklo. */
body.is-locked .header .logo__img { filter: none; }
@media (max-width: 760px) { .logo__img { height: 50px; } }
.logo__mark {
  position: relative;
  width: 32px; height: 32px;
  flex: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background-color .35s ease, border-color .35s ease;
}
.logo__trunk, .logo__crown {
  position: absolute;
  left: 50%;
  display: block;
}
.logo__trunk {
  width: 3px; height: 13px; bottom: 5px;
  background: var(--forest);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: background-color .35s ease;
}
.logo__crown {
  width: 15px; height: 15px; top: 5px;
  background: var(--green);
  border-radius: 50% 50% 50% 12%;
  transform: translateX(-50%) rotate(-2deg);
}
.logo__text {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color .35s ease;
  white-space: nowrap;
}
.logo__text b { font-weight: 800; }

.header.is-scrolled .logo__mark {
  background: #f0f4ee;
  border-color: rgba(20, 83, 45, .12);
}
.header.is-scrolled .logo__trunk { background: var(--forest); }
.header.is-scrolled .logo__text  { color: var(--forest); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav__link {
  font-size: 15.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .94);
  padding-bottom: 5px;
  white-space: nowrap;
  background-image: linear-gradient(var(--green), var(--green));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: color .2s ease, background-size .3s var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { background-size: 100% 2px; color: #eafff0; }
.nav__link[aria-current="true"] { background-size: 100% 2px; }

.header.is-scrolled .nav__link { color: var(--text); }
.header.is-scrolled .nav__link:hover,
.header.is-scrolled .nav__link:focus-visible { color: var(--forest); }

.nav__cta {
  background: var(--green);
  color: var(--forest-deep);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: var(--pill);
  margin-left: 6px;
  white-space: nowrap;
  box-shadow: 0 8px 24px -12px rgba(34, 197, 94, .8);
  transition: transform .2s ease, background-color .2s ease;
}
.nav__cta:hover {
  background: var(--green-dark);
  color: var(--forest-deep);
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  flex: none;
  background: rgba(255, 255, 255, .14);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .35s ease;
}
.burger span {
  width: 20px; height: 2px;
  border-radius: 2px;
  background: #fff;
  display: block;
  transition: transform .3s var(--ease), opacity .2s ease, background-color .35s ease;
}
.header.is-scrolled .burger { background: #f0f4ee; }
.header.is-scrolled .burger span { background: var(--forest); }

/* Burger → křížek */
.burger[aria-expanded="true"] { background: #f0f4ee; }
.burger[aria-expanded="true"] span { background: var(--forest); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobilní menu */
.mobile-menu {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 96px clamp(24px, 7vw, 48px) 40px;
  max-height: 100svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(250, 249, 246, .98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(15, 40, 20, .5);
  transform: translateY(-102%);
  opacity: 0;
  visibility: hidden;
  transition: transform .4s var(--ease), opacity .3s ease, visibility 0s .4s;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .4s var(--ease), opacity .3s ease, visibility 0s;
}
.mobile-menu a {
  font-family: var(--font-head);
  font-size: clamp(21px, 5.5vw, 26px);
  font-weight: 600;
  color: var(--forest);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .45s var(--ease-out);
}
.mobile-menu.is-open a { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open a:nth-child(1) { transition-delay: .12s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: .18s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: .24s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: .30s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: .36s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: .42s; }
.mobile-menu.is-open a:nth-child(7) { transition-delay: .48s; }
.mobile-menu__cta {
  margin-top: 12px;
  background: var(--green);
  color: var(--forest-deep) !important;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: var(--pill);
  text-align: center;
  font-size: 18px !important;
}

/* Zámek scrollu při otevřeném menu */
body.is-locked { overflow: hidden; }

/* ---------- 5) Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  height: 90svh;
  max-height: 900px;
  overflow: hidden;
  background: var(--forest);
  display: flex;
  align-items: center;
}
.hero__media { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0;
  will-change: opacity, transform;
}
/* První snímek je vidět vždy — i bez JS a bez animace */
.hero__slide--1 { opacity: 1; }

/* Animace běží jen když je hero ve viewportu (třídu .is-playing řídí JS) */
.hero.is-playing .hero__slide {
  animation: heroKen 27s var(--ease) infinite;
  opacity: 0;
}
.hero.is-playing .hero__slide--1 { animation-delay: 0s; }
.hero.is-playing .hero__slide--2 { animation-delay: 9s; }
.hero.is-playing .hero__slide--3 { animation-delay: 18s; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,26,13,.35) 0%, rgba(6,26,13,0) 30%,
                            rgba(6,26,13,0) 68%, rgba(6,26,13,.45) 100%),
    linear-gradient(100deg, rgba(8,52,26,.95) 0%, rgba(8,52,26,.88) 40%,
                            rgba(10,58,29,.68) 62%, rgba(10,58,29,.28) 82%,
                            rgba(10,58,29,0) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: var(--header-h) var(--gutter) 0;
}
.hero__content {
  max-width: 620px;
  animation: fadeUp .9s var(--ease-out) both;
}
.hero .eyebrow { color: var(--mint); margin-bottom: 22px; }
.hero .h1 { color: #fff; margin-bottom: 20px; }
.hero__text {
  font-size: clamp(16.5px, 2vw, 22px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 34px;
  text-wrap: pretty;
}
.hero__text b { font-weight: 600; color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Kdo jsme ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.about__figure { position: relative; }
.about__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px rgba(15, 60, 25, .5);
  background: #eef2ec;
}
.about__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.about__badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--forest);
  color: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 18px 40px -22px rgba(15, 60, 25, .7);
}
.about__badge strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--green);
}
.about__badge span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
  margin-top: 5px;
  line-height: 1.3;
}
.about__body p {
  font-size: clamp(16px, 1.6vw, 17.5px);
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 16px;
  text-wrap: pretty;
}
.about__body p b { color: var(--forest); }
.about__body p:last-of-type { margin-bottom: 32px; }

.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.creds li { border-left: 2px solid var(--green); padding: 4px 0 4px 16px; }
.creds strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--forest);
  margin-bottom: 3px;
}
.creds span { font-size: 13px; line-height: 1.4; color: var(--text-faint); }

/* ---------- Video facade (Kdo jsme) ---------- */
.video-wrap { margin-top: clamp(32px, 5vw, 80px); }

.video {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: #0a1f10;
  box-shadow: 0 24px 50px -30px rgba(15, 60, 25, .5);
}
.video__poster {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .3s ease;
}
.video:hover .video__poster { transform: scale(1.03); filter: brightness(.9); }

.video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 8vw, 88px);
  pointer-events: none;
  transition: transform .2s ease;
}
.video__play svg { width: 100%; height: auto; display: block; }
.video__play-bg { fill: #14532d; opacity: .92; transition: fill .2s ease; }
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video:hover .video__play-bg { fill: var(--green-dark); opacity: 1; }

.video__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px clamp(18px, 3vw, 28px) clamp(16px, 2.5vw, 22px);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(15px, 1.8vw, 19px);
  color: #fff;
  text-align: left;
  background: linear-gradient(0deg, rgba(6, 26, 13, .8), rgba(6, 26, 13, 0));
  pointer-events: none;
}
.video:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* Dvě videa vedle sebe (galerie) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }

/* Timelapsy natočené na výšku — užší sloupce, ať nejsou zbytečně obří */
.video-grid--portrait {
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
}
@media (max-width: 640px) {
  .video-grid--portrait { grid-template-columns: minmax(0, 320px); }
}
.video--portrait { aspect-ratio: 9 / 16; }

/* Placeholder, dokud nedodáme odkaz na video */
.video--soon {
  background: linear-gradient(135deg, #14532d, #0a2f18);
  cursor: default;
}
.video--soon .video__play-bg { fill: rgba(255, 255, 255, .18); }
.video--soon:hover .video__play { transform: translate(-50%, -50%); }
.video--soon .video__label { background: none; color: rgba(255, 255, 255, .8); }

/* iframe, který nahradí facade po kliknutí */
.video__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: 0 24px 50px -30px rgba(15, 60, 25, .5);
}
.video__frame--portrait { aspect-ratio: 9 / 16; }

/* ---------- Galerie ---------- */

/* Na velkém displeji dvě kolony: vlevo fotky, vpravo posuvník před/po.
   Fotky před/po jsou na výšku, takže se do pravé kolony vejdou přirozeně. */
/* Nadpis, obsah a tlačítko jako pojmenované oblasti — díky tomu může
   tlačítko na mobilu spadnout pod fotky, aniž bychom ho v HTML duplikovali. */
.gallery-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "head  action"
    "body  body";
  align-items: end;
  column-gap: 24px;
}
.gallery-shell > .section-head { grid-area: head; }
.gallery-shell > .gallery-layout { grid-area: body; }
.gallery-more {
  grid-area: action;
  justify-self: end;
  margin-bottom: clamp(36px, 6vh, 64px); /* zarovnat se spodkem nadpisu */
}

.gallery-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.6vw, 34px);
  /* stretch místo start: pravý sloupec (před/po) se výškou dorovná
     levému sloupci fotek. Fotka uvnitř se dopočítá, ne obráceně. */
  align-items: stretch;
}
/* Karta před/po vyplní přidělenou výšku a snímek se do ní vejde.
   Platí jen pro dvousloupcové rozvržení galerie — na mobilu (viz níže)
   se vrací pevný poměr 3:4. */
.gallery-layout .ba { display: flex; flex-direction: column; }
.gallery-layout .ba__stage { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
/* První fotka přes obě kolony — jinak by poslední zbyla osamocená */
.gallery__item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #eef2ec;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }

.gallery__link {
  display: block;
  width: 100%; height: 100%;
  cursor: zoom-in;
}
.gallery__link:focus-visible { outline-offset: -4px; }

/* Před / po */
.ba {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f4f6f2;
  /* Vlastní odsazení kolem dokola — posuvník nesmí sedět na spodní hraně */
  padding: clamp(14px, 2vw, 22px);
}
.ba__head { padding: 0 0 clamp(10px, 1.4vw, 14px); }
.ba__head .eyebrow { margin-bottom: 0; font-size: 12.5px; }
.ba__head p {
  font-size: clamp(13px, 1.2vw, 14.5px);
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 560px;
  line-height: 1.45;
}
.ba__stage {
  position: relative;
  width: 100%;
  /* Fotky stromů jsou na výšku — 3:4 ukáže celý strom místo ořezu přes kmen */
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  background: #eef2ec;
}
.ba__stage img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba__before { clip-path: inset(0 calc(100% - var(--ba, 50%)) 0 0); }
.ba__tag {
  position: absolute;
  bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--pill);
  pointer-events: none;
}
.ba__tag--before { left: 20px; background: rgba(6, 26, 13, .7); color: #fff; }
.ba__tag--after  { right: 20px; background: rgba(34, 197, 94, .9); color: var(--forest-deep); font-weight: 700; }

.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba, 50%);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
  pointer-events: none;
}
.ba__handle::after {
  content: '⇄';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  font-size: 18px;
  font-weight: 700;
}
/* Neviditelný, ale plně ovladatelný posuvník — klávesnice + čtečky */
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 100%; }
.ba__range::-moz-range-thumb { width: 46px; height: 100%; border: 0; background: transparent; }
.ba__stage:has(.ba__range:focus-visible) { outline: 3px solid var(--green); outline-offset: -3px; }

/* ---------- Podstránka galerie ---------- */

/* Hlavička na podstránkách nemá pod sebou tmavý hero, takže musí být
   plná od začátku — jinak by byl bílý text na světlém pozadí. */
.header--solid {
  background: rgba(250, 249, 246, .92);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 rgba(20, 50, 25, .07);
}
.header--solid .logo__text { color: var(--forest); }
.header--solid .logo__mark { background: #f0f4ee; border-color: rgba(20, 83, 45, .12); }
.header--solid .nav__link { color: var(--text); }
.header--solid .nav__link:hover,
.header--solid .nav__link:focus-visible { color: var(--forest); }
.header--solid .burger { background: #f0f4ee; }
.header--solid .burger span { background: var(--forest); }

.page-head {
  padding: calc(var(--header-h) + clamp(36px, 7vh, 72px)) var(--gutter) clamp(28px, 5vh, 48px);
  background: var(--bg);
}
.page-head__title { color: var(--forest); margin: 6px 0 16px; }
.page-head__lead { max-width: 620px; }

.drobky {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.drobky a { color: var(--green-dark); }
.drobky [aria-current] { color: var(--text-muted); }

/* Filtr galerie podle služby */
/* Filtr připnutý pod hlavičku — zůstává po ruce i při scrollování galerií.
   --header-now nastavuje JS podle aktuální výšky hlavičky. */
.gal-filterbar {
  position: sticky;
  top: var(--header-now, 90px);
  z-index: 30;
  background: var(--surface);
  padding: 12px 0;
  margin-bottom: clamp(14px, 2.5vh, 24px);
  box-shadow: 0 10px 16px -12px rgba(15, 60, 25, .22);
}
/* Rozbalovací tlačítko filtru — jen na mobilu (viz níže) */
.gal-filter__toggle { display: none; }

.gal-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gal-filter__btn {
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--forest);
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 18px;
  border-radius: var(--pill);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.gal-filter__btn:hover { border-color: var(--green); color: var(--green-dark); }
.gal-filter__btn.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
/* Na mobilu: z pilulek rozbalovací tlačítko s aktivní položkou */
@media (max-width: 760px) {
  .gal-filter__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--forest);
    font-size: 15px;
    cursor: pointer;
  }
  .gal-filter__icon { width: 20px; height: 20px; flex: none; color: var(--green-dark); }
  .gal-filter__toggle-label { flex: 1; text-align: left; font-weight: 500; color: var(--text-muted); }
  .gal-filter__current { color: var(--forest); font-weight: 700; }
  .gal-filter__chev { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
  .gal-filter__toggle[aria-expanded="true"] .gal-filter__chev { transform: rotate(180deg); }

  .gal-filter {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    z-index: 20;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 22px 44px -20px rgba(15, 60, 25, .45);
    overflow: hidden;
  }
  .gal-filter.is-open { display: flex; }
  .gal-filter__btn {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    text-align: left;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .gal-filter__btn:last-child { border-bottom: 0; }
  .gal-filter__btn.is-active::after { content: "✓"; font-weight: 700; }
}

/* Skrytá dlaždice při filtrování */
.photo.is-hidden,
.photo.is-over { display: none; }
.gal-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(18px, 2.5vw, 28px);
}
.gal-more[hidden] { display: none; }
.gal-more__count { opacity: .7; font-weight: 500; }
.gal-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 16px;
}

/* Fotogalerie ve zděném rozvržení — fotky si nechají vlastní proporce,
   nic se neořezává a mezi nimi nezůstávají díry. */
.photos {
  columns: 3;
  column-gap: clamp(10px, 1.2vw, 16px);
}
.photo {
  break-inside: avoid;
  margin-bottom: clamp(10px, 1.2vw, 16px);
}
.photo .gallery__link {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2ec;
  height: auto;
}
.photo img {
  width: 100%;
  height: auto;
  transition: transform .5s var(--ease);
}
.photo .gallery__link:hover img { transform: scale(1.04); }

@media (max-width: 900px) { .photos { columns: 2; } }
@media (max-width: 520px) { .photos { columns: 1; } }
@media (hover: none) { .photo .gallery__link:hover img { transform: none; } }

/* Několik posuvníků před/po vedle sebe */
.ba-grid {
  display: grid;
  /* dva sloupce — dvojice ve stejné orientaci vedle sebe mají stejnou výšku */
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
  align-items: start;
}
@media (max-width: 640px) {
  .ba-grid { grid-template-columns: 1fr; }
}
/* Fotky na šířku (4:3) vs. výchozí 3:4 */
.ba--wide .ba__stage { aspect-ratio: 4 / 3; }
.ba__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--forest);
}

/* Závěrečná výzva */
.vyzva { text-align: center; }
.vyzva p {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(16px, 1.6vw, 19px);
  margin: 14px 0 28px;
}
.vyzva__akce {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
@media (max-width: 520px) {
  .vyzva__akce .btn { flex: 1 1 100%; }
}

/* ---------- Textová (dokumentová) stránka: GDPR ap. ---------- */
.doc { max-width: 760px; }
.doc p { margin-bottom: 16px; line-height: 1.7; color: var(--text-soft); text-wrap: pretty; }
.doc__intro { font-size: clamp(16px, 1.7vw, 18.5px); color: var(--text); }
.doc__h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin: clamp(28px, 4vh, 40px) 0 12px;
}
.doc__list { margin: 0 0 16px; padding-left: 4px; }
.doc__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  line-height: 1.6;
  color: var(--text-soft);
}
.doc__list li::before {
  content: '';
  position: absolute;
  left: 4px; top: 10px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--green);
}
.doc__box {
  font-style: normal;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 14px;
  padding: 18px 22px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.doc__box b { color: var(--forest); }
.doc__meta { font-size: 14px; color: var(--text-faint); margin-top: 32px; }
.doc__back { margin-top: 8px; font-weight: 600; }

/* ---------- Lightbox ---------- */
.lb {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  /* Plná barva, ne průsvit: i 6 % průhlednosti nechá prosvítat bílý
     tučný text hera a fotka pak ztrácí klid. */
  background: #071409;
  overflow: hidden;
}
.lb::backdrop { background: #071409; }

.lb__figure {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(48px, 7vh, 76px) clamp(12px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.lb__img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.lb__caption {
  color: rgba(255, 255, 255, .82);
  font-size: 14.5px;
  text-align: center;
  max-width: 60ch;
  flex: none;
}
.lb__pozice { color: rgba(255, 255, 255, .55); }

.lb__close, .lb__nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.lb__close:hover, .lb__nav:hover { background: rgba(255, 255, 255, .26); }
.lb__close svg, .lb__nav svg { width: 22px; height: 22px; }

.lb__close { top: 14px; right: 14px; width: 46px; height: 46px; }
.lb__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
}
.lb__nav:hover { transform: translateY(-50%) scale(1.06); }
.lb__nav--prev { left: 14px; }
.lb__nav--next { right: 14px; }

@media (max-width: 620px) {
  .lb__nav { width: 44px; height: 44px; }
  .lb__nav--prev { left: 8px; }
  .lb__nav--next { right: 8px; }
  .lb__figure { padding: 62px 8px 54px; }
}

/* ---------- Tlačítko zpět nahoru ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: calc(clamp(14px, 3vw, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 50px; height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(6, 52, 15, .7);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--green-dark); }
.to-top svg { width: 22px; height: 22px; }
.to-top[hidden] { display: none; }

/* ---------- Arboristův rok ---------- */
/* Náznak, že tabulka pokračuje doprava: mizející gradient s šipkou.
   JS zapíná .can-scroll, dokud je kam scrollovat. */
.year-scroll-wrap { position: relative; }
.year-fade {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  pointer-events: none;
  border-radius: 0 16px 16px 0;
  background: linear-gradient(to right, rgba(250, 249, 246, 0), var(--bg) 94%);
  color: var(--green-dark);
  opacity: 0;
  transition: opacity .25s ease;
}
.year-fade svg { width: 26px; height: 26px; animation: year-nudge 1.5s ease-in-out infinite; }
.year-scroll-wrap.can-scroll .year-fade { opacity: 1; }
@keyframes year-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .year-fade svg { animation: none; } }

.year-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  /* Žádný vnitřní odsazení — jinak by pod ulepeným prvním sloupcem
     prosvítal proužek podjíždějících buněk. */
  border-radius: 16px;
  /* Bez `contain` prosakuje vnitřní minimální šířka mřížky (~580 px)
     do předků a roztahuje celý layout viewport na mobilu. */
  contain: content;
}
/* Focus prstenec musí kreslit dovnitř — `contain` by ho vně ořízl */
.year-scroll:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.year-table {
  min-width: 860px;
  border: 1px solid var(--line);
  border-radius: 16px;
  /* `clip`, ne `hidden` — `hidden` by tu založilo vlastní scrollport
     a ulepený první sloupec by přestal fungovat. */
  overflow: clip;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 50, 25, .04);
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(12, 1fr);
}
/* Řádky jsou obalové elementy jen kvůli sémantice — mřížku tvoří buňky uvnitř */
.year-table__row { display: contents; }

/* První sloupec zůstává při vodorovném posunu na místě, aby bylo pořád
   vidět, o jaký zásah jde. */
.year-table__corner,
.year-table__label {
  position: sticky;
  left: 0;
  z-index: 2;
}
.year-table__label::after {
  /* jemný stín na hraně, aby bylo poznat, že sloupec „stojí" nad obsahem */
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 12px;
  transform: translateX(100%);
  background: linear-gradient(90deg, rgba(20, 50, 25, .10), transparent);
  pointer-events: none;
}
.year-table__corner { background: var(--forest); z-index: 3; }
.year-table__month {
  background: var(--forest);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12.5px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 4px;
  border-left: 1px solid rgba(255, 255, 255, .08);
}
.year-table__label {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--forest);
  line-height: 1.3;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  background: #fff;
  border-top: 1px solid rgba(20, 83, 45, .07);
}
.year-table__row:nth-child(even) .year-table__label { background: var(--bg-alt); }
.year-table__cell {
  min-height: 48px;
  border-left: 1px solid rgba(255, 255, 255, .5);
  border-top: 1px solid rgba(255, 255, 255, .5);
}
.year-table__cell--g { background: #15803d; }
.year-table__cell--o { background: #e69a1f; }
.year-table__cell--r { background: #dc2626; }

.year-hint {
  font-size: 14px;
  color: var(--text-faint);
  margin-top: 12px;
}
.year-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.year-legend li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
}
.year-legend i {
  width: 18px; height: 18px;
  border-radius: 5px;
  flex: none;
}

/* ---------- Reference ---------- */
.h2--light { color: #fff; }
.lead--light { color: rgba(255, 255, 255, .82); }

/* Seznam institucí (10 let praxe) */
.refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin-bottom: clamp(44px, 6vh, 72px);
}
.ref {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(18px, 2vw, 24px);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
}
.ref__mark {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: var(--forest-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref__mark svg { width: 17px; height: 17px; }
.ref b {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  margin-bottom: 3px;
}
.ref span span,
.ref > span > span { display: block; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .7); }
.ref--more {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: none;
  border-style: dashed;
  color: rgba(255, 255, 255, .75);
  font-size: 15px;
}

.refs-quotes-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(19px, 2.4vw, 26px);
  color: #fff;
  margin-bottom: clamp(18px, 2.5vh, 26px);
}

/* Výzva k recenzi pod recenzemi (na tmavém pozadí) */
.reviews-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(28px, 4vh, 44px);
  padding-top: clamp(24px, 3.5vh, 34px);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.reviews-cta p {
  font-size: clamp(16px, 1.7vw, 18px);
  color: rgba(255, 255, 255, .85);
  margin: 0;
}
/* Varianta obrysového tlačítka na tmavém pozadí */
.btn--onDark {
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}
.btn--onDark:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--forest-deep);
}

/* Dva sloupce místo čtyř — recenze mají velmi různou délku
   a ve čtyřech úzkých sloupcích by se text lámal po dvou slovech. */
/* Záměrně NE grid: ten by srovnal řádky podle nejvyšší karty a pod kratší
   recenzí by zela díra. Vícesloupcový layout skládá karty těsně pod sebe. */
.quotes {
  columns: 2;
  column-gap: clamp(14px, 1.6vw, 22px);
}
.quotes > li {
  break-inside: avoid;
  margin-bottom: clamp(14px, 1.6vw, 22px);
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: #fbbf24;
}
.stars svg { width: 19px; height: 19px; flex: none; }

.quote {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
}
.quote__mark {
  font-family: var(--font-head);
  font-size: 46px;
  line-height: .6;
  color: var(--green);
  margin-bottom: 18px;
}
.quote blockquote {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
  margin: 0 0 22px;
  text-wrap: pretty;
  flex: 1;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 18px;
}
.quote__avatar {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--av, var(--green));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote__avatar--photo { background: none; overflow: hidden; padding: 0; }
.quote__avatar--photo img { width: 100%; height: 100%; object-fit: cover; }

.quote__name { font-weight: 600; font-size: 15.5px; color: #fff; }
.quote__role { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .68); }

/* ---------- Mapa ---------- */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(20, 83, 45, .12);
  box-shadow: 0 20px 44px -30px rgba(15, 60, 25, .4);
  height: clamp(320px, 52vh, 520px);
  background: #f4f6f2;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  /* Bez tohoto se formulář natáhne na výšku levého sloupce a jeho pozadí
     zbyde napůl prázdné. Takhle má každý sloupec svou přirozenou výšku. */
  align-items: start;
}
.contact__intro {
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 34px;
  max-width: 460px;
  text-wrap: pretty;
}
/* Příslib „ozveme se do 24 h" */
.pledge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  padding: 12px 18px 12px 14px;
  background: #eaf6ee;
  border: 1px solid rgba(34, 197, 94, .25);
  border-radius: var(--pill);
  font-size: 15.5px;
  color: var(--text-soft);
}
.pledge__icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--forest-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pledge__icon svg { width: 19px; height: 19px; }
.pledge b { color: var(--forest); font-weight: 600; }

.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: opacity .2s ease;
}
.contact-list a:hover { opacity: .72; }
.contact-list__icon {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 12px;
  background: #f0f4ee;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
}
.contact-list__icon svg { width: 21px; height: 21px; }
.contact-list__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--label);
}
.contact-list__value {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(16px, 3.6vw, 19px);
  color: var(--forest);
  word-break: break-word;
}
.billing {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.billing__title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 12px;
}
.billing address {
  font-style: normal;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-soft);
}
.billing address b { color: var(--forest); font-weight: 600; }
.billing__note { color: var(--text-faint); font-size: 14px; }

/* ---------- Poznámka v rámečku (pod mapou) ---------- */
.note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
  padding: clamp(16px, 2vw, 22px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 50, 25, .03);
}
.note__icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #eaf6ee;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.note__icon svg { width: 20px; height: 20px; }
.note p {
  font-size: clamp(14.5px, 1.4vw, 16px);
  line-height: 1.6;
  color: var(--text-soft);
  text-wrap: pretty;
}

/* Formulář */
.form {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.form input,
.form textarea {
  width: 100%;
  min-width: 0;
  font-family: var(--font-body);
  /* 16px = iOS Safari nezoomuje při fokusu */
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(20, 83, 45, .16);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .15);
}
.form input:focus-visible,
.form textarea:focus-visible { outline: none; }
.form input:user-invalid,
.form textarea:user-invalid { border-color: #dc2626; }
.form__submit { margin-top: 4px; font-size: 16px; padding: 15px 26px; }
.form__note { font-size: 13px; color: var(--text-faint); line-height: 1.5; }
.form__status {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--green-dark);
  margin: -4px 0 0;
}
.form__status:empty { display: none; }
.form__status--chyba { color: #b91c1c; }
.form__submit:disabled { opacity: .65; cursor: default; }
/* Anti-spam honeypot */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Partneři ---------- */
/* Fotka vlevo, texty vpravo — kompaktní karta bez prázdných míst */
.partner {
  display: grid;
  grid-template-columns: 88px 1fr;
  column-gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(20, 83, 45, .09);
  border-radius: var(--radius);
  padding: clamp(18px, 1.8vw, 24px);
  box-shadow: 0 1px 2px rgba(20, 50, 25, .03);
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.partner:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, .45);
  box-shadow: 0 22px 44px -26px rgba(15, 60, 25, .5);
}
.partner__photo {
  grid-column: 1;
  grid-row: 1 / 4;
  width: 88px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #eef2ec;
  border: 2px solid rgba(34, 197, 94, .35);
}
.partner__photo[hidden] { display: none; }
.partner__photo img { width: 100%; height: 100%; object-fit: cover; }

.partner .h3,
.partner__town,
.partner__web { grid-column: 2; }
.partner .h3 { margin-bottom: 4px; font-size: clamp(20px, 2vw, 22px) !important;}
.partner__town { display: block; font-size: 15px; color: var(--text-faint); margin-bottom: 8px; }
.partner__web {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green-dark);
  word-break: break-word;
}

/* ---------- Patička ---------- */
.footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, .75);
  padding: clamp(52px, 8vh, 80px) var(--gutter) 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(40px, 6vh, 60px);
}
.footer__brand { max-width: 320px; }
.footer__brand .logo { margin-bottom: 18px; }
.footer__brand .logo__mark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); }
.footer__brand .logo__trunk { background: var(--mint); }
/* Logo v patičce je na tmavém pozadí → bílé */
.footer__brand .logo__img { height: 100px; width: auto; filter: brightness(0) invert(1); }
.footer__brand p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .72);
  text-wrap: pretty;
}
.footer h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mint-soft);
  margin-bottom: 16px;
}
.footer ul { display: flex; flex-direction: column; gap: 11px; }
.footer a { font-size: 15px; color: rgba(255, 255, 255, .75); transition: color .18s ease; }
.footer a:hover { color: var(--mint); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .6);
}
/* Kredit autora webu */
.credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .55);
  font-size: 13.5px;
  transition: color .2s ease;
}
.credit:hover { color: rgba(255, 255, 255, .9); }
.credit img { height: 20px; width: auto; display: block; }

/* ---------- 6) Animace ---------- */
@keyframes heroKen {
  0%   { opacity: 0; transform: scale(1); }
  4%   { opacity: 1; }
  30%  { opacity: 1; transform: scale(1.08); }
  36%  { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Odhalování při scrollu.
   Skryje se JEN když běží JS (třída .js na <html>) — bez JS je vše vidět. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 7) Responsive ---------- */

/* Tablet / menší notebook — přepnutí na burger menu */
@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: flex; }
}

/* Galerie: pod 1000 px se dvousloupec rozpadá pod sebe */
@media (max-width: 1000px) {
  .gallery-layout { grid-template-columns: 1fr; }
  /* zpět na pevný poměr — bez druhého sloupce nemá co dorovnávat */
  .gallery-layout .ba__stage { aspect-ratio: 3 / 4; flex: none; max-width: 560px; }
}

/* „Kdo jsme": jakmile sloupce nevyjdou, stackujeme v pořadí foto → text
   (přání klienta). Fotku zmenšíme, ať úvod sekce nezabere celou obrazovku. */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .about__figure {
    order: 1;
    max-width: 380px;
    width: 100%;
    margin-inline: auto;
  }
  .about__body { order: 2; }
  .about__frame { aspect-ratio: 4 / 4.4; }
  .about__badge { left: 10px; bottom: 10px; }
}

/* Recenze: jeden sloupec, jakmile by dva byly příliš úzké */
@media (max-width: 900px) {
  .quotes { columns: 1; }
}

@media (max-width: 760px) {
  :root { --header-h: 76px; --section-y: clamp(56px, 9vh, 88px); }

  body { font-size: 16px; }

  /* Tlačítko u nadpisu sekce jde pod nadpis a přes celou šířku */
  .section-head__action { width: 100%; }

  /* Galerie: tlačítko sjede pod fotky a roztáhne se na celou šířku */
  .gallery-shell {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "body" "action";
  }
  .gallery-more {
    justify-self: stretch;
    margin-bottom: 0;
    margin-top: 22px;
  }

  /* Ulepený sloupec tabulky nesmí sežrat půl obrazovky */
  .year-table { grid-template-columns: minmax(150px, 1.2fr) repeat(12, 1fr); }
  .year-table__label { padding: 12px 12px; font-size: 13.5px; }

  .hero { height: auto; min-height: 0; padding: calc(var(--header-h) + 40px) 0 56px; }
  .hero__inner { padding-top: 0; }
  .hero__actions .btn { flex: 1 1 100%; }

  .ba__stage { max-width: none; }
  .ba__tag--before { left: 12px; }
  .ba__tag--after  { right: 12px; }

  .section-head--split { align-items: flex-start; }

  .about__badge {
    left: 12px;
    bottom: 12px;
    padding: 14px 18px;
  }
  .about__badge strong { font-size: 26px; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery__item { border-radius: 12px; }

  .form__row { grid-template-columns: 1fr; }

  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; }
  .logo__text { font-size: 18px; }
}

/* Ukazovací zařízení bez hoveru (dotyk) — žádné hover efekty */
@media (hover: none) {
  .card:hover, .partner:hover { transform: none; box-shadow: 0 1px 2px rgba(20, 50, 25, .03); }
  .gallery__item:hover img { transform: none; }
}

/* Respekt k systémovému nastavení „omezit pohyb" */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero.is-playing .hero__slide { animation: none; opacity: 0; }
  .hero.is-playing .hero__slide--1 { opacity: 1; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ---------- Tisk ---------- */
@media print {
  .header, .mobile-menu, .burger, .hero__media, .map-frame, .form { display: none !important; }
  body { background: #fff; }
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; }
}
