/* ==========================================================
   MARTIN BASTL – kácení a péče o stromy
   Jednoduché CSS bez frameworků. Obsah:
   0 Proměnné · 1 Základ · 2 Hlavička · 3 Hero · 4 Sekce
   5 Služby · 6 Rizikové kácení · 7 Postup · 8 Galerie
   9 Proč · 10 Kontakt · 11 Patička · 12 Animace
   ========================================================== */

/* ---------- 0. PROMĚNNÉ (barvy, písma) ---------- */
:root {
  --ink: #0c0e0d;          /* téměř černá */
  --char: #141816;         /* charcoal */
  --forest: #10231a;       /* tmavá lesní zelená */
  --forest-deep: #0a1710;
  --cream: #f2ecdc;        /* krémová */
  --cream-2: #e6dec7;
  --moss: #a3bf79;         /* mechový akcent (na tmavém) */
  --moss-d: #566f3d;       /* mechový akcent (na světlém) */
  --safety: #ee6a1f;       /* bezpečnostní oranžová – jen střídmě */
  --line-d: rgba(242, 236, 220, .16);
  --f-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-subhead: clamp(1.4rem, 2.2vw, 1.75rem);
  --gut: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --hdr: 68px;
}

/* ---------- 1. ZÁKLAD ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--f-body);
  background: var(--forest-deep);
  color: var(--cream);
  overflow-wrap: break-word;
}
body.nav-open, body.lightbox-open { overflow: hidden; }
main:focus { outline: none; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
section[id] { scroll-margin-top: calc(var(--hdr) - 1px); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--cream); color: var(--ink); padding: .8rem 1.1rem; }
.skip:focus { left: 12px; top: 12px; }

/* Ikony (SVG v index.html) */
.icon { width: 1.35rem; height: 1.35rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Letokruhy – dekorativní kresba na pozadí */
.rings { fill: none; stroke: currentColor; stroke-width: 1.2; pointer-events: none; }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px; padding: .9rem 1.5rem;
  font: 600 1rem/1.2 var(--f-body); text-decoration: none; border-radius: 2px;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn-primary { background: var(--safety); color: #1b0b02; }
.btn-primary:hover { background: #ff7d33; transform: translateY(-2px); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-lg { min-height: 58px; padding: 1rem 1.8rem; font-size: 1.05rem; }

/* Lano na levém okraji — délka odpovídá postupu stránkou. */
.rope-track {
  position: fixed; z-index: 40; pointer-events: none;
  top: var(--hdr); bottom: 48px; left: clamp(7px, 2vw, 32px); width: 4px;
}
.rope {
  position: relative; width: 100%; min-height: 48px;
  height: calc(var(--rope-progress, 0) * 100%);
  background: repeating-linear-gradient(155deg, #ded4b9 0 3px, #655e49 3px 6px);
  border-inline: 1px solid #655e49;
}
.rope-climber {
  position: absolute; bottom: -30.25px; left: calc(50% - 9.625px);
  display: block; width: 44px; height: 66px; overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8));
}
body.nav-open .rope-track { visibility: hidden; }
@media (max-width: 767px) {
  .rope-track { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .rope-climber {
    width: 22px; height: 33px;
    left: calc(50% - 4.8125px); bottom: -15.125px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rope { height: 100%; }
}

/* ---------- 2. HLAVIČKA ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--hdr); background: var(--forest-deep); border-bottom: 1px solid var(--line-d); transition: background-color .3s, box-shadow .3s; }
.nav-open .site-header { background: rgba(10, 23, 16, .96); box-shadow: 0 1px 0 var(--line-d); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; position: relative; z-index: 2; }
.brand-mark { width: 34px; height: 34px; color: var(--moss); fill: none; stroke: currentColor; stroke-width: 1.4; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--f-head); text-transform: uppercase; }
.brand-text strong { font-size: 1.15rem; font-weight: 700; letter-spacing: .05em; }
.brand-text span { font-size: .78rem; font-weight: 600; letter-spacing: .22em; color: var(--moss); margin-top: 4px; }

/* Hamburger (mobil) */
.burger { position: relative; z-index: 2; width: 48px; height: 48px; display: grid; place-content: center; gap: 7px; background: none; border: 0; color: inherit; cursor: pointer; }
.burger span { display: block; width: 28px; height: 2px; background: currentColor; transition: transform .35s, opacity .2s; }
.nav-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobilní navigace */
.nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hdr) + 1.5rem) var(--gut) calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--forest);
  visibility: hidden; overflow-y: auto; gap: 2rem;
}
.nav.open { visibility: visible; }

.nav li a {
  display: block; padding: .6em 0; border-bottom: 1px solid var(--line-d);
  font: 700 clamp(1.7rem, 6vw, 2.8rem)/1.1 var(--f-head); text-transform: uppercase; text-decoration: none;
}
.nav-cta { display: grid; gap: .8rem; }
.nav-cta .btn { min-height: 62px; font-size: 1.25rem; }
.nav-hours { text-align: center; color: rgba(242, 236, 220, .7); font-size: .95rem; }

/* Desktopová navigace */
@media (min-width: 1000px) {
  .burger { display: none; }
  .nav, .nav.open {
    position: static; inset: auto; z-index: auto; flex-direction: row; align-items: center; gap: 2.2rem;
    padding: 0; background: none; clip-path: none; visibility: visible; transition: none;
  }
  .nav ul { display: flex; gap: clamp(1.2rem, 2.2vw, 2.4rem); }
  .nav li, .nav.open li { opacity: 1; transform: none; transition: none; }
  .nav li a {
    position: relative; padding: .85rem 0; border: 0;
    font: 500 .95rem/1.2 var(--f-body); text-transform: none;
  }
  .nav li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--moss); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
  .nav li a:hover::after { transform: scaleX(1); }
  .nav-cta .btn { min-height: 44px; padding: .55rem 1.1rem; font-size: .98rem; }
  .nav-hours { display: none; }
}

/* ---------- 3. HERO ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 740px; min-height: min(880px, 100svh); background: var(--forest-deep); }
.hero-media { position: absolute; inset: var(--hdr) 0 0 48%; z-index: -3; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(8, 14, 10, .55) 0%, rgba(8, 14, 10, .3) 30%, rgba(8, 14, 10, .9) 100%);
}



.hero-in { padding: calc(var(--hdr) + 3rem) 0 clamp(1.8rem, 4vw, 3rem); }
.eyebrow { display: flex; align-items: center; gap: .8rem; font: 600 .78rem/1.2 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--moss); }
.eyebrow::before { content: ""; width: 2.4rem; height: 2px; background: var(--moss); flex: none; }
.hero h1 {
  max-width: 14ch; margin: 1.1rem 0 1.3rem;
  font: 800 clamp(2.9rem, 8.2vw, 6.9rem)/1 var(--f-head); letter-spacing: -.005em; text-transform: uppercase;
}
.accent { color: var(--moss); }
.hero-lead { max-width: 36em; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: rgba(242, 236, 220, .9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-cta .btn { flex: 1 1 15rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .7rem 2rem; margin-top: clamp(2rem, 5vw, 3.2rem); padding-top: 1.2rem; border-top: 1px solid var(--line-d); font-size: .92rem; color: rgba(242, 236, 220, .82); }
.hero-meta li { display: flex; align-items: center; gap: .55rem; }


@media (min-width: 700px) { .hero-cta .btn { flex: 0 0 auto; } }
@media (min-width: 900px) {
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 14, 10, .92) 0%, rgba(8, 14, 10, .86) 42%, rgba(8, 14, 10, .08) 82%),
      linear-gradient(0deg, rgba(8, 14, 10, .7) 0%, transparent 38%);
  }
  
}
/* ---------- 4. SEKCE – společné ---------- */
.sec { position: relative; overflow: hidden; padding: clamp(4rem, 7vw, 7rem) 0; }
.sec > .wrap { position: relative; z-index: 1; }

.sec-no { --c: var(--moss-d); display: flex; align-items: baseline; gap: .8rem; margin-bottom: .6rem; font-family: var(--f-head); font-weight: 700; line-height: 1; color: var(--c); }
.sec-no b { font-size: clamp(4.5rem, 11vw, 9rem); color: transparent; -webkit-text-stroke: 1.5px var(--c); letter-spacing: 0; }
.sec-no span { font-size: 1.4rem; letter-spacing: .1em; }
.dark { background: var(--forest); color: var(--cream); }
.dark .sec-no { --c: var(--moss); }

.sec h2 { max-width: 16ch; margin-bottom: 1.4rem; font: 800 clamp(2.5rem, 6.2vw, 5.4rem)/1 var(--f-head); letter-spacing: 0; text-transform: uppercase; }
.lead { max-width: 38em; font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.muted { opacity: .7; font-size: .92em; }
.text-link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.bg-rings { position: absolute; z-index: 0; width: min(90vw, 900px); aspect-ratio: 1; left: -26vw; top: 4%; color: var(--ink); opacity: .06; }
.dark .bg-rings { color: var(--cream); opacity: .07; }
.bg-rings--right { left: auto; right: -30vw; top: auto; bottom: -10%; }

/* ---------- 5. SLUŽBY ---------- */
.services { background: var(--cream); color: var(--ink); }
.service-list { margin-top: clamp(2.5rem, 5vw, 4rem); }
.service {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem 1rem; align-items: start;
  padding: clamp(1.6rem, 3vw, 2.6rem) 0; border-top: 2px solid var(--ink);
}
.service:last-child { border-bottom: 2px solid var(--ink); }
.service-no { padding-top: .45rem; font: 700 1.5rem/1 var(--f-head); letter-spacing: .05em; color: var(--moss-d); }
.service h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; font: 700 var(--f-subhead)/1.2 var(--f-head); text-transform: uppercase; letter-spacing: 0; }

.service p { max-width: 34em; }
.service-fig { grid-column: 1 / -1; aspect-ratio: 16 / 9; margin-top: .5rem; overflow: hidden; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 84%, 90% 100%, 0 100%); }
.service-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.service:hover .service-fig img { transform: scale(1.025); }

@media (min-width: 900px) {
  .service { grid-template-columns: 3rem minmax(0, 1fr) minmax(240px, 32%); gap: 2rem; align-items: center; }
  .service-fig { grid-column: auto; margin: 0; aspect-ratio: 4 / 3; }
}

/* ---------- 6. RIZIKOVÉ KÁCENÍ ---------- */
.risk { background: var(--char); }
.risk-grid { display: grid; gap: 3rem; }
.risk-visual { position: relative; padding-bottom: 14%; }

.risk-main { aspect-ratio: 4 / 5; overflow: hidden; background: var(--forest);  }
.risk-main img, .risk-second img { width: 100%; height: 100%; object-fit: cover; }

.risk-second { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; overflow: hidden; background: var(--forest);  }
.risk-text h2 { max-width: 14ch; }
.risk-list { margin: 2.2rem 0 2.4rem; border-top: 1px solid var(--line-d); }
.risk-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line-d); }

.risk-list h3 { margin-bottom: .25rem; font: 700 var(--f-subhead)/1.2 var(--f-head); text-transform: uppercase; letter-spacing: 0; }
.risk-list p { color: rgba(242, 236, 220, .82); max-width: 32em; }
.risk .btn { width: 100%; }

@media (min-width: 700px) { .risk .btn { width: auto; } }
@media (min-width: 960px) {
  .risk-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .risk-visual { padding-bottom: 12%; }
  .risk-second { right: -8%; }
}

/* ---------- 7. POSTUP ---------- */
.process { background: var(--cream); color: var(--ink); }
.steps { position: relative; display: grid; gap: 2.2rem; margin-top: 3rem; padding-left: 2.2rem; }
/* lano – svisle na mobilu, vodorovně na desktopu */
.steps::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 5px;
  background: repeating-linear-gradient(160deg, var(--ink) 0 3px, rgba(12, 14, 13, .22) 3px 6px);
}
.step { position: relative; }
.step::before { content: ""; position: absolute; left: -2.2rem; top: .5rem; width: 17px; height: 17px; margin-left: -1px; border: 4px solid var(--safety); border-radius: 50%; background: var(--cream); }
.step-no { display: block; font-size: 1rem; color: var(--moss-d); margin-bottom: .8rem; }
.step h3 { font: 700 var(--f-subhead)/1.2 var(--f-head); margin-bottom: .5rem; }
.step p { max-width: 24em; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; padding: 3rem 0 0; }
  .steps::before { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 5px; background: repeating-linear-gradient(70deg, var(--ink) 0 3px, rgba(12, 14, 13, .22) 3px 6px); }
  .step::before { left: 0; top: -3rem; margin-left: 0; margin-top: -4px; }
}

/* ---------- 8. GALERIE ---------- */
.gallery-sec h2 { max-width: none; }

/* Před / Po */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2.5rem 0 12px; max-width: 760px; }
.ba figure { position: relative; }
.ba figcaption { position: absolute; left: 0; top: 14px; z-index: 2; padding: .35rem .9rem; background: var(--safety); color: #1b0b02; font: 700 1.05rem/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }

/* Nepravidelná mřížka, pořadí snímků odpovídá pořadí v HTML. */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.gallery-item { position: relative; display: block; margin: 0; overflow: hidden; background: var(--forest-deep); }
.gallery-item a { display: block; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:has(a:focus-visible) { outline: 3px solid currentColor; outline-offset: 4px; }
.gallery > .gallery-item { aspect-ratio: 3 / 4; }
@media (hover: hover) { .gallery-item:hover img { transform: scale(1.025); } }
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 20vw, 290px); gap: 16px; }
  .gallery > .gallery-item { aspect-ratio: auto; }
  .gallery > .gallery-item:nth-child(4n + 1) { grid-row: span 2; }
}

/* Lightbox */
.lb { width: 100%; height: 100%; max-width: 100vw; max-height: 100vh; padding: 0; border: 0; background: transparent; color: var(--cream); }
.lb::backdrop { background: rgba(5, 9, 6, .95); }
.lb[open] { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.lb-fig { display: grid; justify-items: center; gap: .8rem; grid-column: 2; grid-row: 1; min-width: 0; }
.lb-fig img { max-width: 100%; max-height: 82vh; max-height: 82dvh; width: auto; height: auto; object-fit: contain; }
.lb-fig figcaption { font-size: .95rem; color: rgba(242, 236, 220, .8); text-align: center; }
.lb-btn { background: none; border: 0; color: inherit; font: 300 3rem/1 var(--f-body); cursor: pointer; width: 56px; height: 56px; display: grid; place-items: center; opacity: .85; transition: opacity .2s, color .2s; }
.lb-btn:hover { opacity: 1; color: var(--safety); }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
.lb-close { position: absolute; top: 10px; right: 10px; z-index: 3; font-size: 2.6rem; }

/* ---------- 9. PROČ ---------- */
.why { background: var(--cream); color: var(--ink); }
.why h2 { max-width: none; }
.why-list { display: grid; gap: 0; margin-top: 2.5rem; }
.why-list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0 .8rem; align-content: start; padding: 1.6rem 0; border-top: 2px solid var(--ink); }
.why-list li:last-child { border-bottom: 2px solid var(--ink); }
.why-no { grid-column: 1; grid-row: 1 / span 2; padding-top: .1em; color: var(--moss-d); font: 700 1.4rem/1 var(--f-head); }
.why-list h3 { grid-column: 2; margin-bottom: .6rem; font: 700 var(--f-subhead)/1.2 var(--f-head); }
.why-list p { grid-column: 2; max-width: 30em; }
.reviews-embed { width: 100%; margin-top: clamp(2.5rem, 5vw, 4rem); }
.reviews-embed h3 { margin-bottom: .8rem; font: 700 var(--f-subhead)/1.2 var(--f-head); }
.reviews-embed iframe { display: block; width: 100%; height: clamp(480px, 70vh, 640px); border: 0; }

@media (min-width: 800px) {
  .why-list { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 6vw, 6rem); }
  .why-list li:nth-child(3) { border-bottom: 2px solid var(--ink); }
}
/* ---------- 10. KONTAKT ---------- */
.contact { background: var(--forest-deep); }
.contact h2 { max-width: 15ch; }
.big-phone {
  display: inline-flex; align-items: center; gap: clamp(.7rem, 2vw, 1.5rem);
  margin: .4rem 0 1.6rem; text-decoration: none; color: var(--safety);
  font: 700 clamp(1.7rem, 6.5vw, 6rem)/1.2 var(--f-head); letter-spacing: -.005em;
  transition: color .25s;
}
.big-phone:hover { color: #ff8a4d; }
.big-phone .icon { width: .62em; height: .62em; stroke-width: 1.4; }
.big-phone small { font-size: .38em; font-weight: 600; letter-spacing: .08em; color: var(--cream); opacity: .75; }

.contact-grid { display: grid; gap: 0; margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line-d); }
.review-widget { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.5rem; }
.review-widget p { color: var(--moss); font: 600 .78rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
.review-widget a { display: inline-flex; align-items: center; max-width: 100%; }
.review-widget img { display: block; width: min(220px, 100%); height: auto; }
.contact-grid > div { padding: 1.3rem 0; border-bottom: 1px solid var(--line-d); text-align: center; }
.contact-grid dt { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: .4rem; font: 600 .78rem/1.2 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--moss); }

.contact-grid dd { font-size: 1.12rem; }
.contact-grid a { text-underline-offset: 3px; }
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.5rem; }
}
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 1.6vw, 1.5rem); }
}

/* ---------- 11. PATIČKA + STICKY TLAČÍTKO ---------- */
.site-footer { background: var(--ink); color: rgba(242, 236, 220, .7); font-size: .9rem; padding: 1.6rem 0; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; }
.footer-in a { text-decoration: none; font-weight: 600; color: var(--cream); }

.sticky-call { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .sticky-call {
    position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center; gap: .7rem;
    min-height: 56px; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--safety); color: #1b0b02; text-decoration: none;
    font: 600 1.1rem/1 var(--f-body); border-top: 1px solid var(--ink);
  }
  .sticky-call strong { font: 700 1.1rem/1 var(--f-head); letter-spacing: .04em; }
  body.nav-open .sticky-call { display: none; }
}

/* ---------- 12. INTRO ---------- */
.intro { display: none; }
.intro-active .intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--forest-deep); pointer-events: none; animation: intro-out 1.05s ease both; }
.intro > div { text-align: center; padding: 24px; }
.intro strong { display: block; font-size: clamp(1.6rem, 5vw, 3rem); letter-spacing: .12em; }
.intro span { display: block; margin-top: 12px; font-size: .65rem; letter-spacing: .16em; color: var(--moss); }
.intro svg { width: 104px; height: 104px; margin: 0 auto 20px; stroke: var(--moss); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.intro use { stroke-dasharray: 1; transform: rotate(-90deg); transform-origin: 12px 12px; animation: logo-draw .65s ease both; }
@keyframes logo-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes intro-out { 0%, 65% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro-active .intro { display: none; }
}

@media (max-width: 699px) {
  .hero { min-height: auto; }
  .hero-media { inset: var(--hdr) 0 auto 28%; height: 420px; }
  .hero-shade { background: linear-gradient(90deg, rgba(10,23,16,.8), rgba(10,23,16,.35)), linear-gradient(0deg, var(--forest-deep) 20%, transparent 90%); }
  .hero-in { padding-top: calc(var(--hdr) + 3rem); }
  .hero h1 { max-width: 15ch; }
  .eyebrow { font-size: .65rem; letter-spacing: .12em; line-height: 1.6; }
  .eyebrow::before { width: 1.2rem; }
  .hero-meta { font-size: .8rem; }
  .big-phone { gap: .5rem; }
  .big-phone .icon { display: none; }
  .lb[open] { grid-template-columns: 44px minmax(0,1fr) 44px; }
  .lb-btn { width: 44px; height: 48px; }
  .lb-fig figcaption { font-size: .8rem; }
}
@media (min-width: 900px) { .service:not(:has(.service-fig)) .service-body { grid-column: 2 / -1; } }
/* Odkazy fungují i bez JavaScriptu. */
@media (max-width: 999px) {
  html:not(.js) .site-header { position: relative; height: auto; }
  html:not(.js) .header-in { display: block; padding-block: 1rem; }
  html:not(.js) .burger { display: none; }
  html:not(.js) .nav { position: static; visibility: visible; padding: 1rem 0 0; }
  html:not(.js) .nav ul { display: flex; flex-wrap: wrap; gap: 1rem; }
  html:not(.js) .nav li a { font-size: 1rem; }
  html:not(.js) .nav-cta { display: none; }
}
