/* === Design tokens === */
:root{
  --bg: #ffffff;
  --ink: #161615;
  --ink-weak: #444444;
  --ink-faint: #777777;
  --accent: #d51116;
  --accent-ink: #ffffff;
  --line: #e9e9e9;
  --maxw: 1180px;
  --radius: 18px;
  --radius-lg: 22px;
  --shadow: 0 6px 30px rgba(0,0,0,.06);
}

/* === Reset & base === */
*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust:100%; }
body{ margin:0; font-family: "Segoe UI Variable","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif; line-height:1.5; color:var(--ink); background:var(--bg); }
img,picture,video{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }

/* Utilities */
.wrap{ max-width:var(--maxw); margin-inline:auto; padding-inline: clamp(16px,4vw,28px); }
.cluster{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.grid{ display:grid; gap: clamp(16px, 2.5vw, 24px); }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:.6rem; border:0; cursor:pointer; border-radius:12px; padding:.85rem 1.15rem; font-weight:600; text-decoration:none; }
.btn--primary{ background:var(--accent); color:var(--accent-ink); }
.btn--primary:hover{ filter:brightness(.92); }
.btn--ghost{ border:1px solid var(--line); background:#fff; color:var(--ink); }
.btn--ghost:hover{ background:#fafafa; }
.section{ padding-block: clamp(32px, 6vw, 72px); }
.lead{ font-size: clamp(1.05rem, 2.2vw, 1.25rem); color:var(--ink-weak); max-width:70ch; }
.eyebrow{ text-transform:uppercase; letter-spacing:.08em; font-weight:700; font-size:.78rem; color:var(--accent); }
.h1{ font-size: clamp(2rem, 5.2vw, 3.2rem); line-height:1.1; margin:0; }
.h2{ font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height:1.1; margin:0 0 .5rem; }
.h3{ font-size: clamp(1.05rem, 2.2vw, 1.2rem); margin:0 0 .4rem; }
.card {
  background: rgba(255, 255, 255, 0.8); /* bílé pozadí s 80% krytím */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: clip;
}.muted{ color:var(--ink-faint); font-size:.92rem; }
.sep{ border:0; border-top:1px solid var(--line); margin:14px 0; }
.hp{ display:none; }

/* Header & nav */
header.site-header{ position:sticky; top:0; z-index:50; background:rgba(255,255,255,.92); -webkit-backdrop-filter:saturate(1.2) blur(8px); backdrop-filter:saturate(1.2) blur(8px); border-bottom:1px solid #f2f2f2; }
.nav{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; min-height:64px; }
.brand{ font-weight:800; letter-spacing:.2px; }
.brand b{ color:var(--accent); }
.nav__links{ display:none; gap:6px; justify-content:center; }
.nav__links a{ padding:.6rem .8rem; border-radius:10px; }
.nav__links a:hover{ background:#f6f6f6; }
.nav__cta{ display:none; }
.burger{ justify-self:end; display:inline-flex; flex-direction:column; gap:4px; padding:10px; border-radius:10px; border:1px solid var(--line); background:#fff; }
.burger span{ width:22px; height:2px; background:var(--ink); display:block; }
.mobile-menu{ display:none; border-top:1px solid #f0f0f0; padding:10px 0 16px; }
.mobile-menu a{ display:block; padding:.7rem 0; border-radius:8px; }
.mobile-menu a:hover{ background:#f7f7f7; }

@media (min-width: 900px){
  .burger{ display:none; }
  .nav__links{ display:inline-flex; }
  .nav__cta{ display:inline-flex; }
  .mobile-menu{ display:none !important; }
}

/* --- Hero panel (merged) --- */
.hero .wrap { max-width: none; padding-inline: 0; }
.hero__layout { width: min(1100px, 100% - 48px); margin-inline: auto; }

.hero-panel{
  background: rgba(255,255,255,0.80);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  padding: clamp(18px, 4vw, 32px);
  max-width: 800px;
  text-align: center;
}

.hero-panel h1{
  font-weight: 700;
  color: var(--accent);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.05;
  margin: 0 0 .15rem;
}

.hero-panel .sub{
  color: #555;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  line-height: 2.15;
  margin: .15rem 0 .8rem;
  text-align: center;
}

.hero-panel .divider{
  width: 140px;
  height: 6px;
  border-radius: 6px;
  background: var(--accent);
  margin: clamp(10px, 2vw, 16px) auto;
  opacity: .9;
}

.hero-panel .lead{
  color: #333;
  font-weight: 600;
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

.hero-panel .cta{
  display: flex;
  justify-content: center;
  margin-top: clamp(12px, 2vw, 18px);
}

.hero .btn{ border-radius: 10px; padding: .9rem 1.25rem; font-size: 1.05rem; }

/* Services */


/* Služby: adaptivní grid, max 3 sloupce */
.services .grid{
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.service{
  padding:18px;
  display:grid;
  gap:6px;
  justify-items:center;  /* vycentruje obsah v gridu */
  text-align:center;     /* zarovná text na střed */
}

.service__title{ 
  font-weight:800; 
  color: black; 
  text-align: center;
  margin: 0;            /* defaultní odstup <p> pryč */
  line-height: 2; 
  
}

/* About */
.about .layout{ display:grid; gap: clamp(16px, 3vw, 24px); grid-template-columns: 1fr; }
.about .card{ padding: clamp(16px, 2.2vw, 24px); }
.about-rows{ justify-content: space-between; }
@media (min-width: 900px){ .about .layout{ grid-template-columns: 1fr 1fr; } }
/* ===== O mně / Kdo jsem ===== */
#omne .layout {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Opravíme flex chování a dáme rozumný strop */
#omne .about-card { flex: 1 1 0; }          /* text může růst */
#omne .about__photo {
  flex: 0 0 auto;                            /* fotka se NEROZTÁHNE */
  width: clamp(160px, 20vw, 240px);          /* plynulé, max 240px */
  max-width: 240px;                          /* pojistka */
  height: auto;
}

/* Mobilní verze: fotka nad textem */
@media (max-width: 900px) {
  #omne .layout {
    flex-direction: column;   /* pod sebe */
    text-align: center;       /* text na střed (volitelné) */
  }

  #omne .about__photo {
    order: -1;                /* fotka se přesune nad text */
    max-width: 280px;         /* můžeš omezit šířku fotky, ať není moc velká */
    margin: 0 auto;           /* vycentrování fotky */
  }
}


/* References */
.refs .grid{ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.thumb{ aspect-ratio:4 / 3; background:#f3f3f3; border-radius:var(--radius); border:1px solid var(--line); overflow:hidden; }

/* Contact */
.contact .layout{ display:grid; gap: clamp(16px, 3vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 900px){ .contact .layout{ grid-template-columns: .9fr 1.1fr; } }
.contact-card{ padding: clamp(16px, 2.2vw, 24px); }
.contact-form{ display:grid; gap:12px; padding: clamp(16px, 2.2vw, 24px); }
.field{ display:grid; gap:6px; }
.field label{ font-weight:600; }
.field input,.field textarea{ border:1px solid var(--line); border-radius:12px; padding:.8rem 1rem; font:inherit; }
.field textarea{ min-height:140px; resize:vertical; }
.form-msg{ margin:0; font-weight:600; }
.form-msg--ok{ color: #127c36; }
.form-msg--err{ color: #a10e12; }

/* Footer */
footer{ border-top:1px solid var(--line); padding-block:24px; color:var(--ink-faint); font-size:.92rem; }

/* Anchor offset for sticky header */
:target{ scroll-margin-top:84px; }


/* Icons */
.icon{ width: 20px; height: 20px; display:inline-block; }
.icon--chip{ width: 30px; height: 30px; }
.service__icon{ width: 60px; height: 60px; border-radius: 10px; margin: 0; }
.contact-chip{ display:inline-flex; align-items:center; gap:10px; padding:.6rem .8rem; border:1px solid var(--line); border-radius:12px; background:#fff; }


/* Hero background */


.hero__layout {
  position: relative;
  z-index: 1;
}

/* About background */
.about{
  position: relative;
  background: url('../img/pozadi_omne.jpg') center 40% / cover no-repeat; /* cover = ořez na šířku */
  /* nebude zbytečně vysoké, ale když je obsah větší, sekce se zvětší */
  min-height: clamp(200px, 26vh, 400px);
  padding-block: clamp(28px, 5vh, 64px);  /* menší svislé okraje */
}
.about::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,.55); /* tmavý filtr pro čitelnost */
}
.about .wrap, .about .layout{ position: relative; z-index: 1; }
.about .layout {
  position: relative;
  z-index: 1;
}
.about h2, .about p, .about .muted, .about strong {
  color: #fff;
}




/* === OVERRIDES (do not remove) === */

/* === GLOBAL THEME === */
body{ background-color:#131313; }

/* === BRAND LOGO (responsive) === */
.brand__logo{ display:block; height:auto; width:auto; max-height:clamp(15px,6vw,60px); max-width:50vw; }

/* === NAVIGATION === */
.main-nav{ justify-self:end; }
.main-nav ul{ display:flex; align-items:center; gap:2rem; list-style:none; margin:0; padding:0; justify-content:flex-end; }

/* Only text items */
.main-nav .nav-link{
  text-decoration:none;
  font-weight:700;
  color:#000;
  position:relative;
  padding-bottom:.35rem;
}
.main-nav .nav-link::after{
  content:""; position:absolute; left:0; bottom:0;
  width:100%; height:4px; background:#d51116; border-radius:3px;
  transform:scaleX(0); transform-origin:left; transition:transform .25s ease;
}
.main-nav .nav-link.active::after,
.main-nav .nav-link:hover::after{ transform:scaleX(1); }

/* CONTACT button */
.main-nav .contact-link{
  display:inline-block;
  background:#d51116;
  color:#fff !important;
  font-weight:600;
  padding:.55rem 1.1rem;
  border-radius:10px;
  letter-spacing:.02em;
  text-transform:uppercase;
  text-decoration:none;
}
.main-nav .contact-link:link,
.main-nav .contact-link:visited,
.main-nav .contact-link:hover,
.main-nav .contact-link:active{ color:#fff !important; }

/* === HERO (fixed height, crop horizontally) === */
.hero{
  position:relative;
  height:65vh;
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  background-image:url('../img/pozadi_uvod.jpg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.hero::before{ content:""; position:absolute; inset:0; background:rgba(0,0,0,0.35); }
.hero-panel{ position:relative; z-index:1; }





/* === HOTFIX: responzivní logo se stropem === */
header.site-header .brand{
  display:flex;
  align-items:center;        /* srovná logo na výšku */
}

header.site-header .brand img{
  display:block;
  height:auto !important;
  width:auto !important;

  max-height: clamp(60px, 10vw, 80px) !important; /* větší min. výška */
  max-width: 60vw;   /* dovolíme i víc místa */
}

/* ať header nepřeroste kvůli vnitřním mezerám */
.nav{ min-height:64px; align-items:center; }

/* ===== Kontakt – vzhled jako na maketě ===== */

/* Nadpis uprostřed, bílý, velký */
#contact-title{
  text-align:center;
  color:#fff;
  font-weight:700;
  letter-spacing:.02em;
  margin-bottom: clamp(16px,2.5vw,24px);
}

/* Dvousloupcové rozložení (už ho máš, jen zachovat) */
@media (min-width: 900px){
  .contact .layout{ grid-template-columns: .9fr 1.1fr; }
}

/* Levý sloupec – bez karty, bílý text */
.contact-card{
  background: transparent;
  border: 0;
  box-shadow: none;
  color:#fff;
  padding:0; /* zruší card padding */
}
.contact-card .lead{ color:#ddd; font-size: 1rem; }

/* Řádky s ikonou – bez rámečku a bílý text */
.contact-chip{
  border:0;
  background: transparent;
  padding:0;
  color:#fff;
  gap:12px;
}

/* Pravý sloupec – formulář bez „karty“ */
.contact-form{
  background: transparent;
  border:0;
  box-shadow:none;
  padding:0;
  gap:14px;
}
.contact-form .field label{ color:#fff; }

/* Inputy: světle šedé, kulaté rohy */
.contact-form .field input,
.contact-form .field textarea{
  background:#a9a9a9;
  border:0;
  border-radius:12px;
  padding:.9rem 1rem;
  color:#141414;


}


/* Tlačítko */
.contact .btn.btn--primary{
  background:#d51116;
  color:#fff;
  border-radius:12px;
  padding:.8rem 1.3rem;
}

.section-title{
  display: block;
  width: fit-content;       /* šířka přesně podle textu */
  margin: 0 auto 18px;      /* vycentrování + stejná mezera pod nadpisem */
  padding-bottom: 18px;      /* VZDÁLENOST TEXT ↔ ČÁRA (změň podle chuti) */
  line-height: 1.1;         /* sjednocená výška řádku */
  color:#fff;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.2rem);
  position: relative;
  text-align: center;
}
.section-title::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:100%;
  height:4px;
  background: var(--accent);
  border-radius:3px;
}

h4{
  font-size: 1.8rem;
  line-height:0;
}

/* === ABOUT jako na maketě === */

/* Sekce má stejné chování pozadí jako hero (už máš), jen trochu víc vzduchu */

.about .layout{
  display: grid;
  grid-template-columns: auto 1fr;    /* vlevo fotka, vpravo panel */
  align-items: center;
  gap: clamp(16px, 4vw, 36px);
}

/* Kulatá fotka vlevo, „zajíždí“ do panelu */
.about__photo{
  width: clamp(160px, 20vw, 240px); 
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
  margin-right: clamp(-36px, -4vw, -48px); /* lehčí překrytí */
  position: relative;
  z-index: 2;
}

/* Červený poloprůhledný panel s textem */
.about-card{
  background: rgba(213,17,22, .20);   /* #d51116 s průhledností */
  border: 0;
  box-shadow: none;
  border-radius: 22px;
  color: #fff;
  padding: clamp(18px, 3.2vw, 28px);
  overflow: visible; /* neschová odstavce na mobilech */
}
.about-card p{ color:#fff; }

/* (Pokud nechceš pravý box s kontakty) skryj aside v této sekci */
.about aside{ display: none; }

/* Responzivně: na mobilu pod sebe, fotku doprostřed a bez překryvu */
@media (max-width: 900px){
  .about .layout{ grid-template-columns: 1fr; }
  .about__photo{
    margin: 0 auto -12px;    /* fotka nad panelem, vystředěná */
  }
}

/* === ABOUT (final) – nižší, ale responzivní === */
.about{
  position: relative;
  background: url('../img/pozadi_omne.jpg') center 40% / cover no-repeat;
  /* nižší výška, ale když je obsah větší, sekce se roztáhne */
  min-height: clamp(300px, 42vh, 480px);
  padding-block: clamp(20px, 4vh, 40px);
}

.about::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
}

/* rozvržení fotka + panel (ponecháš) */
.about .layout{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(16px, 4vw, 36px);
}

/* Reference – centrální CTA tlačítko */
.refs-cta{
  text-align: center;
  margin-top: clamp(12px, 2vw, 20px);
}
.refs-more{
  padding: .85rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  /* .btn--primary už má červené pozadí a bílý text */
}

:root{ --topbar-h: 34px; }

/* Top lišta nad menu */
.topbar{
  background:#0f1114;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar__inner{
  min-height: var(--topbar-h);
  display:flex;
  align-items:center;
  gap: 24px;
  justify-content: flex-end;   /* vpravo jako na maketě */
}
.topbar__item{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-weight:600;
  font-size: .95rem;
}
.topbar__icon{ width:25px; height:25px; display:inline-block; }

/* Responsivita: na užších šířkách zmenšíme, případně skryjeme text e-mailu */
@media (max-width: 700px){
  .topbar__inner{ gap:14px; }
  .topbar__item span{ display:none; }   /* ponechá jen červené ikonky */
}

/* Posun anchorů (kvůli vyššímu headeru) */
:target{ scroll-margin-top: calc(84px + var(--topbar-h)); }

/* Miniatury referencí */
.refs-grid{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ref-thumb{ display:block; border-radius: var(--radius); overflow:hidden; background:#f3f3f3; }
.ref-thumb img{
  width:100%; height:100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}
.ref-thumb:hover img{ transform: scale(1.03); }

/* Lightbox */
.lightbox[hidden]{ display:none; }
.lightbox{
  position:fixed; inset:0; 
  background: rgba(0,0,0,.85);
  display:flex; align-items:center; justify-content:center;
  padding: clamp(12px, 3vw, 32px);
}
.lightbox__img{
  max-width: min(1100px, 92vw);
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  border-radius: 10px;
}
.lightbox__close{
  position:fixed; top:14px; right:14px;
  width:40px; height:40px; border-radius: 999px;
  border:0; cursor:pointer; font-size:24px; line-height:40px;
  background:#fff; color:#111;
  box-shadow: var(--shadow);
}

/* Lightbox navigace */
.lightbox__nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 0; cursor: pointer;
  background: rgba(255,255,255,.95);
  color: #111; font-size: 26px; line-height: 44px;
  box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox__prev{ left: 16px; }
.lightbox__next{ right: 16px; }
.lightbox__nav:focus{ outline: 2px solid #d51116; }

/* na menších displejích o něco větší „terč“ */
@media (max-width: 640px){
  .lightbox__nav{ width: 52px; height: 52px; font-size: 30px; }
}

/* --- Stránka Realizace --- */
.case{ margin-bottom: clamp(20px, 4vw, 32px); }
.case__title{
  margin: 0 0 .35rem;
  color: #fff;
  font-weight: 700;
}
.case__desc{ color:#ddd; }

/* Mřížka fotek (stejně jako thumbnails na HP) */

.ref-thumb{ display:block; border-radius: var(--radius); overflow:hidden; background:#f3f3f3; }
.ref-thumb img{
  width:100%; height:100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}
.ref-thumb:hover img{ transform: scale(1.03); }

/* Lightbox navigace (pokud už nemáš z HP) */
.lightbox[hidden]{ display:none; }
.lightbox{
  position:fixed; inset:0; 
  background: rgba(0,0,0,.85);
  display:flex; align-items:center; justify-content:center;
  padding: clamp(12px, 3vw, 32px);
}
.lightbox__img{
  max-width: min(1100px, 92vw);
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  border-radius: 10px;
}
.lightbox__close{
  position:fixed; top:14px; right:14px;
  width:40px; height:40px; border-radius: 999px;
  border:0; cursor:pointer; font-size:24px; line-height:40px;
  background:#fff; color:#111;
  box-shadow: var(--shadow);
}
.lightbox__nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 0; cursor: pointer;
  background: rgba(255,255,255,.95);
  color: #111; font-size: 26px; line-height: 44px;
  box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox__prev{ left: 16px; }
.lightbox__next{ right: 16px; }
.lightbox__nav:focus{ outline: 2px solid #d51116; }
@media (max-width: 640px){
  .lightbox__nav{ width: 52px; height: 52px; font-size: 30px; }
}

/* štíhlé svislé odsazení sekce */
.section--tight{ padding-block: clamp(8px, 2vw, 16px); }
/* menší mezera mezi H1 a úvodem */
.section--tight .lead{ margin: .3rem auto 0; }

/* === MOBILE DROPDOWN NAV (sjednocená verze) === */

/* Mobil ≤ 900px: jen burger + dropdown dolů pod headerem */
@media (max-width: 900px){
  /* řádek s logem a burgerem je kotva pro dropdown */
  .wrap.nav{ position: relative; display: flex; align-items: center; }

  /* desktop menu pryč, burger viditelný vpravo */
  .main-nav{ display: none !important; }
  .burger{ display: inline-flex !important; margin-left: auto; }

  /* dokud má [hidden], menu je skutečně skryté */
  .mobile-menu[hidden]{ display: none !important; }

  /* dropdown panel pod headerem (žádný vnitřní scroll, ukáže vše) */
  .mobile-menu{
    position: absolute;      /* pod .wrap.nav, ne fixed */
    top: 100%; left: 0; right: 0;
    display: block;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    border-radius: 0 0 12px 12px;
    padding: .5rem 0;

    height: auto; max-height: none; overflow: visible;

    /* animace shora dolů */
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .2s ease;

    z-index: 1500;
  }
  .mobile-menu.open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* burger zůstane kliknutelný nad obsahem */
  header.site-header{ position: relative; z-index: 2000; }
  .burger{ position: relative; z-index: 2001; }

  /* vzhled položek v dropdownu (volitelné) */
  .mobile-menu a{
    display: block;
    padding: .9rem 1rem;
    font-size: 1.05rem;
    line-height: 1.3;
    border-top: 1px solid var(--line, #eee);
  }
  .mobile-menu a:first-child{ border-top: 0; }
}

/* Desktop > 900px: klasické menu, burger pryč */
@media (min-width: 900px){
  .burger{ display: none !important; }
  .main-nav{ display: flex !important; }
  .mobile-menu{ display: none !important; } /* dropdown na desktopu neschovávej */
}

/* Popisky realizací na homepage */
.ref-thumb{
  position: relative;
  display: block;
}

.ref-caption{
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(255,255,255,80%);
  color: #000;
  font-weight: 600;
  text-align: center;
  padding: .4rem .6rem;
  font-size: 0.95rem;
}

@media (max-width: 900px){
  .mobile-menu{
    position: relative;     /* už ne absolute – posune obsah dolů */
    display: grid;          /* připravené na animaci */
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    border-radius: 0 0 12px 12px;
    padding: 0;             /* počáteční stav */
    max-height: 0;          /* menu schované */
    overflow: hidden;       /* schová vnitřek */
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .mobile-menu.open{
    padding: .5rem 0;
    max-height: 500px;      /* dostatečně velké, aby se menu celé ukázalo */
  }

  .mobile-menu a{
    display: block;
    padding: .9rem 1rem;
    font-size: 1.05rem;
    line-height: 1.3;
    border-top: 1px solid var(--line, #eee);
  }

  .mobile-menu a:first-child{
    border-top: 0;
  }
}

#kontakt, #kontakt .card.contact-form, #kontakt .card.contact-form .btn {
  z-index: auto !important;
  position: static !important;
}

#kontakt .card.contact-form * {
  pointer-events: auto !important;
}
/* Make hidden overlays truly non-interactive */
.lightbox[hidden], .overlay[hidden], .nav-overlay[hidden] {
  display: none !important;
  pointer-events: none !important;
  z-index: 2147483647 !important;
}

/* === Responsive grid for Realizace photos === */
/* Mobile-first: 1 column, then 2 on tablets, 4 on large screens */
.case-photos {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
  grid-template-columns: 1fr; /* default: 1 per row */
}

@media (min-width: 640px) {
  .case-photos { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .case-photos { grid-template-columns: repeat(4, 1fr); }
}


.lightbox {
  z-index: 2147483647 !important; /* max */
}

@media (max-width: 768px) {
  .refs-grid a {
    pointer-events: none;
    cursor: default;
  }
}