/* ============================================================
   Václav Šulc — landing page
   Vychází z V1 návrhu (světlá, žlutý akcent, tmavý hero)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg2: #f7f4ee;
  --ink: #131313;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: rgba(0,0,0,0.08);
  --line-strong: rgba(0,0,0,0.14);
  --accent: #f5b800;
  --dark: #0e0e0e;
  --dark-text: #f5f3ed;
  --dark-muted: rgba(245,243,237,0.65);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.i { width: 14px; height: 14px; flex-shrink: 0; vertical-align: -2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer; transition: transform .15s ease, background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--accent); color: var(--ink); padding: 17px 30px; font-size: 16px; }
.btn-amber:hover { background: #e2a800; }
.btn-light { background: rgba(255,255,255,0.95); color: var(--ink); padding: 17px 30px; font-size: 16px; }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); padding: 12px 22px; font-size: 14.5px; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; padding: 18px 30px; font-size: 16px; }
.btn-white { background: #fff; color: var(--ink); padding: 18px 30px; font-size: 16px; }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--accent); color: var(--ink);
  padding: 10px 0;
  /* Inner padding scaled tak, aby obsah lícoval s 1440px containerem (stejně jako hero) */
  padding-inline: max(40px, calc((100vw - 1440px) / 2 + 40px));
  display: flex; justify-content: flex-end; align-items: center; gap: 28px;
  font-size: 13px; font-weight: 500;
  flex-wrap: wrap;
}
.utility-bar span, .utility-bar a { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 20px 0;
  /* Inner padding scaled tak, aby logo lícovalo s textem v hero a tlačítko s pravým okrajem hero containeru */
  padding-inline: max(40px, calc((100vw - 1440px) / 2 + 40px));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  background: var(--dark); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.brand-mark.amber { background: var(--accent); color: var(--ink); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-logo { height: 48px; width: auto; display: block; flex-shrink: 0; }
.brand-logo-dark {
  /* Logo má tmavé tahy, na tmavém footeru splývá → invert na bílou.
     (Žlutý akcent v logu se tím ztratí; pokud bude k dispozici bílá varianta
     loga, stačí ji použít místo filtru.) */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.brand-text strong { display: block; font-weight: 800; font-size: 17px; letter-spacing: -0.3px; line-height: 1.1; }
.brand-text em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }

.main-nav { display: flex; gap: 4px; font-size: 15px; font-weight: 600; align-items: center; }
.main-nav > a, .main-nav .dropdown-toggle {
  padding: 10px 18px; color: var(--ink); border-radius: 999px;
  transition: background .15s, color .15s;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.main-nav > a:hover, .main-nav .dropdown-toggle:hover { background: var(--bg2); }
.main-nav > a.active, .main-nav .has-dropdown.active .dropdown-toggle { color: var(--accent); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-toggle .caret { display: inline-flex; transition: transform .2s ease; }
.has-dropdown:hover .dropdown-toggle .caret,
.has-dropdown.open .dropdown-toggle .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-4px);
  margin-top: 10px;
  background: #fff; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
  padding: 12px; min-width: 320px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 60;
}
/* Neviditelný most mezi tlačítkem a menu — aby kurzor nepřejel "prázdnou" mezerou */
.dropdown-menu::before {
  content: ""; position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  transition: background .15s;
}
.dropdown-menu a:hover { background: var(--bg2); }
.dropdown-menu a.dropdown-head {
  font-size: 11px; color: var(--muted); font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 14px 6px; border-radius: 0;
}
.dropdown-menu a.dropdown-head:hover { background: transparent; }
.dd-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg2); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px;
  cursor: pointer; color: var(--ink);
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  transition: background .15s ease;
}
.nav-toggle:hover { background: var(--bg2); }

/* CSS hamburger — 3 čárky animované na X */
.hamburger {
  position: relative; display: inline-block;
  width: 26px; height: 18px;
}
.hamburger span {
  position: absolute; left: 0; right: 0;
  height: 2.5px; background: var(--ink); border-radius: 2px;
  transition: transform .35s cubic-bezier(.7,.2,.3,1.2),
              top .35s cubic-bezier(.7,.2,.3,1.2),
              opacity .2s ease,
              width .35s ease;
  transform-origin: center;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; width: 70%; right: 0; left: auto; }
.hamburger span:nth-child(3) { top: 16px; }
.nav-toggle:hover .hamburger span:nth-child(2) { width: 100%; }

.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--dark); color: var(--dark-text);
  overflow: hidden; position: relative;
}
/* hero-grid: container pro text omezený na 1440px, foto vystupuje vpravo až k okraji okna */
.hero-grid {
  max-width: 1440px; margin: 0 auto;
  min-height: 680px;
  position: relative;
}
.hero-copy {
  padding: 100px 64px 100px 80px;
  max-width: 700px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2;
}
/* Foto absolutně pozicované — startuje uvnitř containeru, končí na pravém okraji viewportu */
.hero-photo {
  position: absolute;
  top: 0; bottom: 0;
  left: 46.5%;             /* odpovídá původnímu poměru 1fr : 1.15fr */
  right: min(0px, calc((1440px - 100vw) / 2));
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-eyebrow .dash { width: 28px; height: 1.5px; background: var(--accent); display: inline-block; }
.hero h1 {
  font-size: 64px; line-height: 1.05; letter-spacing: -1.5px;
  margin: 0 0 24px; font-weight: 800;
}
.hero h1 .accent { color: var(--accent); }
.hero-copy > p {
  font-size: 17px; line-height: 1.6; color: var(--dark-muted);
  margin: 0 0 40px; max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.trust-strip { display: flex; align-items: center; gap: 16px; margin-top: 56px; }
.avatars { display: flex; }
.avatars span {
  width: 40px; height: 40px; border-radius: 50%;
  background: repeating-linear-gradient(135deg, #2a2a2a 0 4px, #1f1f1f 4px 8px);
  border: 2px solid var(--dark);
  margin-left: -10px;
}
.avatars span:first-child { margin-left: 0; }
.stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin-bottom: 2px; }
.trust-text { font-size: 14px; color: var(--dark-text); font-weight: 600; }

.hero-photo .placeholder { position: absolute; inset: 0; height: 100%; border: 0; border-radius: 0; }
.hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--dark) 0%, transparent 18%);
  pointer-events: none;
}

/* ---------- Placeholders ---------- */
.placeholder {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-radius: 0;
}
.placeholder-mid { background: repeating-linear-gradient(135deg, #2a2a2a 0 14px, rgba(255,255,255,0.05) 14px 28px); border: 1px solid rgba(255,255,255,0.1); }
.placeholder-warm { background: repeating-linear-gradient(135deg, #e9e2d4 0 14px, rgba(0,0,0,0.03) 14px 28px); border: 1px solid rgba(0,0,0,0.08); border-radius: 20px; }
.placeholder .cap {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.4px;
  text-align: center; padding: 6px 12px;
  text-transform: uppercase;
  max-width: 85%;
  backdrop-filter: blur(2px);
}
.placeholder-mid .cap { color: rgba(255,255,255,0.75); background: rgba(0,0,0,0.5); }
.placeholder-warm .cap { color: rgba(0,0,0,0.55); background: rgba(255,255,255,0.7); }

/* ---------- Sections ---------- */
.section { padding: 120px 80px; }
.section-light { background: var(--bg); }
.section-cream { background: var(--bg2); }
.section.bordered { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  text-align: center;
  max-width: 720px; margin: 0 auto 72px;
}
.kicker {
  font-size: 13px; font-weight: 700; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px;
}
.section-head h2,
.why-text h2,
.area-grid h2 {
  font-size: 52px; line-height: 1.1; letter-spacing: -1.2px;
  margin: 0 0 20px; font-weight: 800; color: var(--ink);
}
.why-text h2, .area-grid h2 { font-size: 48px; margin-bottom: 16px; }
.section-head p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: var(--max); margin: 0 auto;
}
/* Service card je celý <a> — klikatelný kdekoliv */
.service-card {
  background: var(--bg2); border-radius: 20px;
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  color: inherit; text-decoration: none;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.08);
  background: #f1ebe0;
}
.service-card:hover .more span { transform: translateX(4px); }
.service-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.service-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.service-card:hover .service-icon { transform: scale(1.06) rotate(-4deg); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 22px; margin: 0; font-weight: 700; letter-spacing: -0.4px; }
.service-card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; flex: 1; }
.more { font-size: 14px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.more > span { transition: transform .2s ease; display: inline-block; }
a.more:hover > span { transform: translateX(4px); }

/* ---------- Why ---------- */
.why { position: relative; overflow: hidden; }
.why-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.6;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 20% 50%, transparent, #000 80%);
          mask-image: radial-gradient(ellipse 70% 50% at 20% 50%, transparent, #000 80%);
  pointer-events: none;
}
.why-grid {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px;
  align-items: center; max-width: var(--max); margin: 0 auto;
}
.why-photos { position: relative; }
.ph-collage {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  grid-template-rows: 200px 200px;
}
.ph-collage .tall { grid-row: 1 / 3; }
.stat-badge {
  position: absolute; top: 40%; left: 30%;
  background: var(--accent); color: var(--ink);
  padding: 28px 36px; border-radius: 18px; text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.stat-badge .big { font-size: 42px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; }
.stat-badge .lbl { font-size: 13px; font-weight: 600; margin-top: 6px; }
.stat-badge hr { border: 0; height: 1px; background: rgba(0,0,0,0.15); margin: 16px 0; }

.why-text > p { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 0 36px; max-width: 480px; }
.why-list { display: flex; flex-direction: column; gap: 22px; }
.why-row { display: flex; gap: 18px; align-items: flex-start; }
.why-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%; background: rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.why-icon svg { width: 22px; height: 22px; }
.why-row h3 { font-size: 18px; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.2px; }
.why-row p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- Steps ---------- */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: var(--max); margin: 0 auto; position: relative;
}
.step-connector {
  position: absolute; top: 44px; left: 16.66%; right: 16.66%;
  border-top: 2px dashed var(--line-strong); opacity: 0.4;
}
.step { position: relative; text-align: center; padding: 0 16px; }
.step-num {
  width: 88px; height: 88px; margin: 0 auto 28px;
  border-radius: 50%; background: var(--bg);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; letter-spacing: -1px; color: var(--ink);
  position: relative; z-index: 1;
}
.step h3 { font-size: 24px; margin: 0 0 14px; font-weight: 700; letter-spacing: -0.5px; }
.step p { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0 auto; max-width: 320px; }

/* ---------- Area + map ---------- */
.area-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px;
  align-items: center; max-width: var(--max); margin: 0 auto;
}
.area-grid > div > p { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 0 32px; max-width: 460px; }
.region-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.region-pills span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: var(--bg); border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line);
}
.region-pills i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.map-wrap {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
#map { width: 100%; height: 500px; background: #eee; }
.map-pill {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(255,255,255,0.95); border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 500;
}
.map-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--accent); padding: 80px; }
.cta-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap;
}
.cta-inner h3 { font-size: 40px; margin: 0 0 12px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; color: var(--ink); }
.cta-inner p { font-size: 17px; color: rgba(0,0,0,0.7); margin: 0; font-weight: 500; }
.cta-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 72px 80px 32px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.brand-footer .brand-text em { color: var(--dark-muted); }
.brand-footer .brand-text strong { color: var(--dark-text); }
.footer-about { font-size: 14px; color: var(--dark-muted); line-height: 1.6; margin: 20px 0 0; max-width: 320px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin: 0 0 18px; }
.footer-col a { display: block; font-size: 14px; color: var(--dark-muted); margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: var(--dark-text); }
.footer-col .ic { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--dark-text); }
.footer-col .ic.muted { color: var(--dark-muted); }
.footer-col .ic svg { width: 15px; height: 15px; color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between;
  font-size: 13px; color: var(--dark-muted); flex-wrap: wrap; gap: 12px;
}
.credit {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--dark-muted); opacity: 0.7;
  transition: opacity .2s ease;
}
.credit:hover { opacity: 1; }
.credit img {
  height: 16px; width: auto; display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* ============================================================
   Sticky volací tlačítko (mobile only)
   Vždy viditelné, jeden tap = hovor. Hlavní conversion booster.
   ============================================================ */
.fab-call {
  display: none; /* default skryto, zobrazit jen na mobilu (přes media query) */
  position: fixed;
  bottom: 20px; left: 20px;
  z-index: 1100; /* nad Leaflet controls (z-index 1000) i další overlay */
  align-items: center; gap: 10px;
  padding: 14px 22px 14px 18px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 800; font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.15);
  /* Default: skryto, vynoří se až po scrollu (JS přidá .visible) */
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(.4,0,.2,1), box-shadow .15s ease;
}
.fab-call.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab-call.visible:hover, .fab-call.visible:active {
  transform: translateY(-2px);
}
.fab-call svg { color: var(--ink); }
/* Jemná pulzující aureola, aby tlačítko vstoupilo do vědomí. */
.fab-call::before {
  content: ""; position: absolute; inset: -4px;
  border-radius: 999px; background: var(--accent);
  opacity: 0.4; z-index: -1;
  animation: fab-pulse 2.2s ease-out infinite;
}
@keyframes fab-pulse {
  0%   { transform: scale(1);    opacity: 0.45; }
  70%  { transform: scale(1.35); opacity: 0;    }
  100% { transform: scale(1.35); opacity: 0;    }
}
@media (prefers-reduced-motion: reduce) {
  .fab-call::before { animation: none; }
  .main-nav, .main-nav > *, .hamburger span { transition: none !important; }
}

/* ============================================================
   Subpage layouts (O mně, Kontakt, Reference, Služby/detail)
   ============================================================ */

.subpage-hero {
  background: var(--bg2);
  padding: 96px 80px 72px;
  border-bottom: 1px solid var(--line);
}
.subpage-hero.with-icon .service-hero-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--accent); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.subpage-inner { max-width: var(--max); margin: 0 auto; }
.subpage-hero h1 {
  font-size: 56px; line-height: 1.05; letter-spacing: -1.5px;
  margin: 12px 0 20px; font-weight: 800; color: var(--ink);
}
.subpage-hero > .subpage-inner > p {
  font-size: 17px; line-height: 1.65; color: var(--muted);
  margin: 0; max-width: 640px;
}
.subpage-hero .hero-cta { margin-top: 28px; }
.subpage-hero .btn-outline { background: transparent; }

.content-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; max-width: var(--max); margin: 0 auto;
}
.content-grid.reverse { grid-template-columns: 1fr 1fr; }
.content-grid.reverse .content-text { order: 1; }
.content-grid.reverse .content-photos { order: 2; }
.content-text h2 { font-size: 40px; line-height: 1.1; letter-spacing: -1px; margin: 0 0 20px; font-weight: 800; }
.content-text p { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 16px; }
.content-photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  grid-template-rows: 220px 220px;
}
.content-photos .tall { grid-row: 1 / 3; }

/* Foto z reálných fotek (vs_photo_img) — vyplní grid cell, zaoblený roh,
   jemný rámeček a stín aby i méně povedené fotky vypadaly jako záměr. */
.content-photos .ph-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: block;
  cursor: zoom-in;
  transition: transform .2s ease;
}
.content-photos .ph-img:hover { transform: scale(1.02); }

/* ============================================================
   Lightbox — klik na fotku otevře fullscreen overlay
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }

.lb-content {
  max-width: 92vw;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transform: scale(0.96);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.lightbox.open .lb-content { transform: scale(1); }

.lb-img {
  max-width: 92vw; max-height: 80vh;
  object-fit: contain; display: block;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  background: #1a1a1a;
}

.lb-caption {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.4px;
  text-align: center;
  max-width: 640px;
  text-transform: uppercase;
}
.lb-counter {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,0.2);
}
.lb-close svg, .lb-prev svg, .lb-next svg { width: 22px; height: 22px; }

.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-next:hover { transform: translateY(-50%) scale(1.06); }

/* Pokud je ve skupině jen jedna fotka, šipky nemají smysl */
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

@media (max-width: 820px) {
  .lb-close, .lb-prev, .lb-next { width: 44px; height: 44px; }
  .lb-close { top: 16px; right: 16px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-img { max-height: 70vh; border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lb-content { transition: none; }
}

/* KV grid (klíč → hodnota) */
.kv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px;
  margin: 28px 0 0; padding: 0;
}
.kv { padding: 14px 0; border-top: 1px solid var(--line); }
.kv dt { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 4px; }
.kv dd { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; }
.kv dd em { font-style: normal; color: var(--muted); font-weight: 500; }

/* Check list (rozsah služby) */
.check-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
}
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15.5px; line-height: 1.5; color: var(--text);
}
.check-list .ck {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.check-list .ck svg { width: 12px; height: 12px; }

/* Reference / galerie */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: var(--max); margin: 0 auto;
}
.ref-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.ref-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0,0,0,0.08); }
.ref-card .placeholder { border-radius: 0; }
.ref-card .ref-body { padding: 22px 24px; }
.ref-card h3 { font-size: 18px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.3px; }
.ref-card p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }

/* Kontakt */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px;
  max-width: var(--max); margin: 0 auto; align-items: start;
}
.contact-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; background: var(--bg2); border-radius: 18px;
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
a.contact-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.06); }
.cc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cc-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px; }
.cc-value { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.contact-meta h2 { font-size: 32px; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.6px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1200px) {
  .main-nav { gap: 2px; font-size: 14px; }
  .main-nav > a, .main-nav .dropdown-toggle { padding: 9px 12px; }
}

@media (max-width: 1100px) {
  .content-grid, .content-grid.reverse { grid-template-columns: 1fr; gap: 48px; }
  .content-grid.reverse .content-text { order: 0; }
  .content-grid.reverse .content-photos { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .subpage-hero { padding: 72px 48px 56px; }
  .subpage-hero h1 { font-size: 44px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .check-list { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .hero h1 { font-size: 52px; }
  .section-head h2, .why-text h2, .area-grid h2, .cta-inner h3 { font-size: 40px; }
  .why-grid, .area-grid { grid-template-columns: 1fr; gap: 56px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 96px 48px; }
  .cta-banner { padding: 64px 48px; }
  .site-footer { padding: 64px 48px 32px; }
}

@media (max-width: 820px) {
  /* Utility bar na mobilu: ponechat jen telefon, vystředěný a větší
     (adresa + email jsou v hamburger menu i ve footeru). */
  .utility-bar {
    padding: 12px 20px;
    gap: 0;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
  }
  .utility-bar > span,
  .utility-bar > a[href^="mailto:"] { display: none; }
  .utility-bar > a[href^="tel:"] {
    gap: 10px;
    padding: 4px 14px;
    border-radius: 999px;
    transition: background .15s ease;
  }
  .utility-bar > a[href^="tel:"]:hover,
  .utility-bar > a[href^="tel:"]:active {
    background: rgba(0,0,0,0.08);
  }
  .utility-bar .i { width: 16px; height: 16px; }
  .site-header { padding: 16px 20px; flex-wrap: wrap; }
  .site-header { padding-inline: 20px; }

  /* === Glass mobile menu === */
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
            backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    flex-direction: column; align-items: stretch;
    gap: 2px;
    padding: 16px 20px 100px; /* spodní padding nechává místo nad FAB */
    width: auto;
    /* Scrollování pokud se menu nevejde do viewportu */
    max-height: calc(100vh - 100%);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Animované zobrazení */
    display: flex;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .25s ease, transform .3s cubic-bezier(.4,0,.2,1);
  }
  .main-nav.open {
    opacity: 1; transform: translateY(0);
    pointer-events: auto;
  }
  /* Staggered fade-in jednotlivých položek */
  .main-nav > * {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .3s ease, transform .35s cubic-bezier(.4,0,.2,1);
  }
  .main-nav.open > * { opacity: 1; transform: translateX(0); }
  .main-nav.open > *:nth-child(1) { transition-delay: 0.06s; }
  .main-nav.open > *:nth-child(2) { transition-delay: 0.12s; }
  .main-nav.open > *:nth-child(3) { transition-delay: 0.18s; }
  .main-nav.open > *:nth-child(4) { transition-delay: 0.24s; }
  .main-nav.open > *:nth-child(5) { transition-delay: 0.30s; }

  .main-nav > a, .main-nav .dropdown-toggle {
    padding: 14px 18px; border-radius: 14px;
    justify-content: space-between;
    font-size: 16px;
    transition: background .15s ease;
  }
  .main-nav > a:hover, .main-nav .dropdown-toggle:hover { background: rgba(0,0,0,0.05); }
  .has-dropdown { width: 100%; }
  .dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    pointer-events: auto; box-shadow: none; border: 0;
    padding: 4px 0 8px 8px; margin-top: 4px;
    min-width: 0; background: transparent;
    max-height: 0; overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
    display: flex;
  }
  /* Důležité — přebíjí desktop rule transform: translateX(-50%) které
     by jinak posunulo položky o půl šířky doleva mimo viewport. */
  .has-dropdown.open .dropdown-menu,
  .has-dropdown:hover .dropdown-menu {
    transform: none;
  }
  .has-dropdown.open .dropdown-menu { max-height: 600px; }
  .has-dropdown:hover .dropdown-menu { max-height: 0; } /* hover na touch nedělat */
  .has-dropdown.open .dropdown-menu { max-height: 600px; }
  .dropdown-menu::before { display: none; } /* most je tady zbytečný */
  .dropdown-menu a { font-size: 15px; padding: 11px 14px; }
  .has-dropdown .dropdown-toggle .caret { transition: transform .25s ease; }
  .has-dropdown.open .dropdown-toggle .caret { transform: rotate(180deg); }
  .subpage-hero { padding: 56px 24px 40px; }
  .subpage-hero h1 { font-size: 32px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .kv-grid { grid-template-columns: 1fr; }
  .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .fab-call { display: inline-flex; }
  .hero-grid { display: flex; flex-direction: column-reverse; min-height: 0; }
  .hero-copy { padding: 64px 28px 48px; max-width: none; }
  .hero-photo { position: relative; left: auto; right: auto; height: 380px; min-height: 380px; }
  .hero-fade { background: linear-gradient(180deg, transparent 60%, var(--dark) 100%); }
  .hero h1 { font-size: 40px; }
  .section { padding: 72px 24px; }
  .section-head { margin-bottom: 48px; }
  .section-head h2, .why-text h2, .area-grid h2 { font-size: 32px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .ph-collage { grid-template-rows: 160px 160px; }
  .stat-badge { position: relative; top: auto; left: auto; margin: 24px auto 0; max-width: 220px; }
  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .step-connector { display: none; }
  .cta-banner { padding: 56px 24px; }
  .cta-inner h3 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding: 56px 24px 32px; }
  #map { height: 360px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  .btn-amber, .btn-light, .btn-dark, .btn-white { padding: 14px 22px; font-size: 14.5px; }
}
