/* =========================================================
   Zlínská rozvojová společnost — prototyp
   Barvy a typografie dle Sketch návrhu
   ========================================================= */

:root{
  --accent:      #262E3D;
  --accent-soft: #2A3444;
  --navy:        #262E3D;
  --navy-deep:   #1D252E;
  --blue:        #4A60B2;
  --blue-light:  #8199D9;
  --orange:      #E15E30;
  --ink:         #262E3D;
  --muted:       #5B6270;
  --line:        #E3E6EB;
  --bg:          #FFFFFF;
  --bg-soft:     #F2F3F4;
  --bg-tint:     #F5FBFF;
  --radius:      22px;
  --radius-lg:   32px;
  --container:   1200px;
  --ease:        cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:90px; overflow-x:hidden; }
body{
  margin:0; position:relative;
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
blockquote{ margin:0; padding:0; border:none; font-size:inherit; font-style:normal; }

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}
.section{ padding:96px 0; }

/* ---------- Přístupnost ---------- */
:focus-visible{ outline:3px solid var(--blue); outline-offset:3px; border-radius:6px; }
.hero :focus-visible, .site-footer :focus-visible, .bata-card :focus-visible,
.why-bar :focus-visible, .quote-card :focus-visible{ outline-color:#fff; }
.btn:focus-visible, .contact-pill:focus-visible{ border-radius:999px; }
.skip-link{
  position:absolute; left:16px; top:-100px; z-index:100;
  padding:12px 20px; border-radius:999px; background:var(--navy); color:#fff; font-weight:600;
}
.skip-link:focus{ top:12px; }
h2.eyebrow{ line-height:1.4; } /* eyebrow jako nadpis h2 — přebít globální h2 */

/* ---------- Typography helpers ---------- */
.eyebrow{
  font-size:1rem;           /* 16px dle návrhu */
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 18px;
  position:relative;
  padding-bottom:12px;
}
.who-text .eyebrow, .principles-text .eyebrow{ padding-bottom:14px; margin-bottom:8px; } /* opticky stejně nad i pod linkou */
.eyebrow::after{
  content:""; position:absolute; left:0; bottom:0;
  width:46px; height:1px; background:var(--accent);
}
.eyebrow-center{ text-align:center; }
.eyebrow-center::after{ left:50%; transform:translateX(-50%); }
.eyebrow-light{ color:rgba(255,255,255,.85); }
.eyebrow-light::after{ background:var(--accent); }
.eyebrow-white{ color:#fff; text-shadow:0 2px 36px rgba(0,0,0,.85); }
.eyebrow-white::after{ background:#fff; }

.lead{ font-size:clamp(1.25rem, .9rem + 1.5vw, 1.875rem); line-height:1.4; color:#3a4150; margin:0; } /* 20 → 30px */
/* vyrovnané řádky na prapor, bez osamoceného posledního slova
   (Chrome vyrovnává max. 6 řádků, delší odstavce zalomí běžně + JS záloha v main.js) */
.lead, .vision-text, .genesis-text p, .project-text p{ text-wrap:balance; }
/* automatické dělení slov (hyphens) nepoužívat — prohlížeče dělí česky chybně */
.lead strong{ color:var(--ink); font-weight:700; }
.lead p{ margin:0; }
.lead p + p{ margin-top:.6em; }

h1,h2,h3{ line-height:1.1; margin:0; font-weight:500; letter-spacing:-.02em; text-wrap:balance; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:48px; padding:13px 28px; border-radius:999px;
  font-weight:600; font-size:1rem; line-height:1.2;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  cursor:pointer; border:0;
}
.btn-primary{ background:#fff; color:var(--navy); border:2px solid #fff; }
.btn-primary:hover{ background:#E6E9EE; border-color:#E6E9EE; transform:translateY(-2px); }
.btn-secondary{ background:rgba(29,37,46,.25); color:#fff; border:2px solid rgba(255,255,255,.8); }
.btn-secondary:hover{ background:var(--accent); border-color:#fff; transform:translateY(-2px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(12px);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:72px; }

.logo{ display:flex; align-items:center; }
.logo-img{ height:36px; width:auto; display:block; }
.site-header .logo-img{ height:40px; } /* záhlaví +10 % */
/* popisek vedle loga (2 řádky) */
.brand{ display:flex; align-items:center; gap:16px; }
.brand-note{
  margin:0; padding-left:16px; border-left:1px solid var(--line);
  font-size:.75rem; line-height:1.3; color:var(--muted);
}
.brand-note span{ display:block; white-space:nowrap; }
.brand-note{ transition:color .2s; }
.brand-note:hover, .brand-note:focus-visible{ color:var(--navy); } /* jen zvýraznění, bez podtržení */

.main-nav{ display:flex; align-items:center; gap:32px; }
.main-nav a{ font-weight:500; font-size:1rem; color:var(--navy); text-decoration:none; } /* 16px — standard navigace */
.main-nav a:not(.btn){ padding:10px 0; }
.main-nav a:not(.btn){ position:relative; }
.main-nav a:not(.btn)::after{
  content:""; position:absolute; left:0; bottom:7px;
  width:100%; height:2px; background:var(--navy); border-radius:2px;
  transform:scaleX(0); transform-origin:left;
  transition:transform .25s var(--ease);
}
.main-nav a:not(.btn):hover::after{ transform:scaleX(1); }
.main-nav .nav-cta{ padding:12px 24px; font-weight:600; color:#fff; background:var(--accent); border:none; }
.main-nav .nav-cta:hover{ background:#3d4a60; transform:translateY(-2px); box-shadow:0 12px 28px rgba(38,46,61,.45); }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; width:48px; height:48px; margin-right:-10px;
  align-items:center; justify-content:center; background:none; border:0; cursor:pointer;
}
.nav-toggle span{ width:22px; height:2px; background:var(--navy); border-radius:2px; transition:.3s; }
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative; min-height:82vh;
  display:flex; align-items:flex-end;
  color:#fff; overflow:hidden;
  padding:0 0 72px;
  border-radius:var(--radius-lg);
  margin:0 24px;
  z-index:1;
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media img{ width:100%; height:100%; object-fit:cover; }
.hero-overlay{
  position:absolute; inset:0;
  background:
    /* text je vlevo dole → ztmavení jen pod ním, horní část fotky zůstává čistá */
    radial-gradient(ellipse 75% 80% at 18% 100%, rgba(29,37,46,.65) 0%, rgba(29,37,46,.35) 55%, rgba(29,37,46,0) 100%),
    linear-gradient(180deg, rgba(29,37,46,0) 0%, rgba(29,37,46,0) 45%, rgba(29,37,46,.7) 100%);
}
.hero-content{ position:relative; z-index:2; margin-left:0; padding-left:60px; padding-right:40px; }
.hero h1{
  font-size:clamp(2.16rem,3.48vw,3.24rem);
  font-weight:500;
  max-width:none; margin:0 0 50px;
  text-shadow:0 2px 36px rgba(0,0,0,.85);
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

.scroll-hint{
  position:absolute; left:50%; bottom:26px; z-index:3;
  width:26px; height:42px; border:2px solid rgba(255,255,255,.7);
  border-radius:14px; transform:translateX(-50%);
}
.scroll-hint::before{
  content:""; position:absolute; left:50%; top:8px;
  width:4px; height:8px; background:#fff; border-radius:2px;
  transform:translateX(-50%); animation:scrollDot 1.6s infinite;
}
@keyframes scrollDot{ 0%{opacity:0;top:8px}40%{opacity:1}80%{opacity:0;top:20px}100%{opacity:0} }

/* =========================================================
   KDO JSME
   ========================================================= */
.who{ position:relative; overflow:visible; }
.who-grid{
  display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:start;
}
.who-text{ padding-top:80px; }
.who-image{
  position:relative; z-index:5;
  margin-top:-160px; /* přetáhne přes spodní okraj hero */
}
.who-image{
  aspect-ratio:3/4; border-radius:var(--radius);
  box-shadow:0 40px 80px -30px rgba(38,46,61,.45);
}

/* Paralaxa fotek (Kdo jsme, Geneze, projekty): rámeček ořezává, fotka je o 16 % vyšší
   a JS ji posouvá max. ±8 % výšky rámečku → okraj fotky nikdy není vidět */
.who-image, .project-image, .genesis-image{ position:relative; overflow:hidden; }
.who-image img, .project-image img, .genesis-image img{
  position:absolute; left:0; top:-8%; width:100%; height:116%; max-width:none;
  object-fit:cover; will-change:transform;
}

/* principles mind-map */
.principles-grid{
  display:grid; grid-template-columns:1.1fr .9fr; gap:64px; align-items:center;
  margin-top:96px; margin-bottom:84px;
}
.mindmap{ position:relative; height:460px; top:-50px; left:-20px; }
.mindmap-lines{ position:absolute; inset:0; width:100%; height:100%; }
.mindmap-lines line{ stroke:#9AA3AE; stroke-width:1.5; }
.mindmap-center{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:148px; height:148px; border-radius:50%;
  background:var(--accent);
  display:flex; align-items:center; justify-content:center;
  z-index:2;
  box-shadow:0 16px 36px -12px rgba(38,46,61,.7);
}
.mindmap-logo{ width:72px; height:auto; display:block; filter:brightness(0) invert(1); position:relative; left:5px; }
.bubble{
  position:absolute; z-index:2;
  background:var(--accent); color:#fff;
  padding:16px 22px; border-radius:50px;
  font-size:1.18rem; font-weight:600; line-height:1.3; /* 18.8px SemiBold */
  text-align:center;
  box-shadow:0 14px 30px -14px rgba(38,46,61,.25);
}
/* každá bublina sedí ve svém kvadrantu, vnitřní hrana těsně za okrajem středového kruhu */
.bubble-1{ right:calc(50% + 52px); top:calc(6% + 40px); width:43%; max-width:215px; }
.bubble-2{ left:calc(50% + 40px);  top:3%;    width:45%; max-width:225px; }
.bubble-3{ right:calc(50% + 74px); bottom:3%; width:41%; max-width:205px; }
.bubble-4{ left:calc(50% + 52px);  bottom:8%; width:43%; max-width:215px; }

/* proč Zlín */
.why-label{
  font-size:1rem; font-weight:500; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); margin:0 0 14px; display:block; text-align:center;
}
.why-bar{
  background:var(--navy); color:#fff;
  border-radius:var(--radius-lg);
  padding:34px 52px;
  display:flex; justify-content:center;
}
.why-list{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:12px 36px;
}
.why-list li{
  display:flex; align-items:center; gap:10px;
  font-size:1.25rem; font-weight:500; /* 20px dle návrhu */
}
.why-list li span{ font-size:1.4rem; }

/* =========================================================
   VIZE / MISE
   ========================================================= */
.visions{ background:var(--bg-soft); overflow:hidden; }
.vision-grid{ display:grid; grid-template-columns:1fr 1fr; gap:80px; }
.vision{ position:relative; padding-top:40px; }
.vision-b{ margin-top:90px; }
.vision h2{
  position:relative; z-index:1;
  font-size:clamp(3.6rem,7.65vw,8.1rem); font-weight:500; margin-bottom:23px; /* -10 % */
}
.vision h2::after{
  content:""; display:block;
  width:50px; height:1px; background:var(--navy);
  margin-top:11px;
}
/* paralaxa textů (JS) */
.vision h2, .vision-text, .genesis-text{ will-change:transform; }
.vision-text{ position:relative; z-index:1; font-size:1.5rem; color:#3a4150; max-width:30ch; line-height:1.5; }
.vision-text p{ margin:0; }
.vision-text p + p{ margin-top:.6em; }

/* =========================================================
   GENEZE
   ========================================================= */
.genesis-grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.genesis-text h2{ font-size:clamp(2.5rem,4.2vw,3.75rem); font-weight:500; margin-bottom:21px; } /* 60px */
.genesis-text p{ font-size:1.5rem; color:#3a4150; margin:0 0 18px; line-height:1.5; } /* 24px */
.genesis-image{ aspect-ratio:1/1; border-radius:var(--radius); box-shadow:0 28px 56px -28px rgba(38,46,61,.5); }

/* =========================================================
   VEDENÍ / DOZORČÍ RADA
   ========================================================= */
.team{ background:var(--bg); }
/* Geneze → Vedení → Citát jsou bílé sekce za sebou → jen jedna mezera mezi nimi */
.team, .quote-section{ padding-top:0; }

/* záhlaví — stejný 4-sloupcový grid jako team-grid, linky přesně zarovnané se sloupci */
.team-header{
  display:grid; grid-template-columns:repeat(4,1fr); gap:28px;
  margin-bottom:40px;
}
.team-header-vedeni{
  grid-column:1;
  padding-bottom:14px;
  border-bottom:1px solid var(--accent);
}
.team-header-rada{
  grid-column:2 / 5;
  padding-bottom:14px;
  border-bottom:1px solid var(--accent);
}
.team-header .eyebrow{
  font-size:1rem; font-weight:500; letter-spacing:.14em;
  text-transform:uppercase; color:var(--accent);
  margin-bottom:0; padding-bottom:0;
}
.team-header .eyebrow::after{ display:none; }

.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; }
.member{
  display:flex; flex-direction:column;
}
.member-photo{ width:88%; border-radius:18px; overflow:hidden; aspect-ratio:3/4; margin-bottom:20px;
  box-shadow:0 24px 50px -28px rgba(38,46,61,.35); flex-shrink:0; }
.member-photo img{ width:100%; height:100%; object-fit:cover; object-position:center top; }

/* individuální ořezy */
.member-photo--robenek img{ object-position:center top; }

.member-role{
  font-size:.875rem; font-weight:400; line-height:1.4; /* 14px, malá písmena — stejný styl jako funkce v kontaktu */
  color:var(--muted); margin:0 0 16px;
  min-height:2.8em; /* rezerva pro 2 řádky → rámečky s bio vždy ve stejné výšce */
}
.member-name{ font-size:1.5rem; font-weight:500; margin:0 0 6px; color:var(--navy); } /* 24px */
.member-bio{
  font-size:.875rem; color:#4a5160; line-height:1.55; margin:0; /* 14px */
  background:var(--bg-soft); border-radius:14px; padding:16px 18px;
}
.member-bio:empty{ display:none; }
.team-label{ display:none; }

/* =========================================================
   QUOTE (yellow)
   ========================================================= */
.quote-section{ background:#fff; }
.quote-card{
  position:relative; margin:0;
  background:linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  border-radius:var(--radius-lg);
  padding:70px clamp(40px,8vw,110px);
  text-align:center; overflow:hidden;
  box-shadow:0 40px 80px -40px rgba(74,96,178,.6);
}
.quote-card blockquote{
  margin:0 auto; max-width:24ch;
  font-size:clamp(1.75rem,3.5vw,3.125rem); font-weight:400; line-height:1.25; /* 50px */
  color:#fff; letter-spacing:-.01em;
}
.qmark{ font-family:Georgia,serif; line-height:.6; color:#fff; font-weight:700; }
.qmark-open{ position:absolute; left:38px; top:38px; font-size:5rem; }
.qmark-close{ position:absolute; right:38px; bottom:40px; font-size:5rem; }
.quote-author{ display:inline-flex; align-items:center; gap:12px; margin-top:34px; }
.quote-author img{ width:46px; height:46px; border-radius:50%; object-fit:cover; object-position:top; }
.quote-author span{ display:flex; flex-direction:column; text-align:left;
  font-size:.9375rem; color:rgba(255,255,255,.75); line-height:1.3; }
.quote-author strong{ font-size:1.0625rem; color:#fff; }


/* =========================================================
   PROJEKTY
   ========================================================= */
.projects{ background:#F4F5F6; position:relative; overflow:hidden; }
.projects-heading{
  font-size:clamp(2.5rem,4.2vw,3.75rem); font-weight:500; color:var(--navy); /* 60px — jako Geneze */
  text-align:left; margin:0 0 8px; position:relative; z-index:1;
}
.section-title{
  position:relative; padding-bottom:20px; margin-bottom:30px; /* opticky stejná mezera nad i pod linkou */
}
.section-title::after{
  content:""; position:absolute; left:0; bottom:0;
  width:46px; height:1px; background:var(--accent);
}

/* základní layout (Boněcký rybník — bez karty) */
.project{
  display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;
  margin-top:80px; position:relative; z-index:1;
}
.project:first-of-type{ margin-top:54px; }

/* karta (projekty 1 a 3) */
.project--card{
  align-items:center; gap:0; margin-top:100px;
}
.project--card:first-of-type{ margin-top:54px; }
/* karta jako pseudo-element — spustí se až 52px od vrchu, obrázek vyčnívá nad ni */
.project--card::before{
  content:""; position:absolute;
  top:52px; left:0; right:0; bottom:0;
  background:#fff; border-radius:var(--radius-lg);
  z-index:0;
}
.project--card .project-text{
  position:relative; z-index:1;
  align-self:stretch;
  display:flex; flex-direction:column; justify-content:center;
  /* karta začíná 52px od vrchu → pro 75px od okraje karty: 52+75=127px nahoře, 75px dole */
  padding:127px 40px 75px 52px;
}
.project--card .project-image{
  position:relative; z-index:1;
  align-self:start;                /* obrázek začíná od vrchu → vyčnívá nad kartu */
  padding:0 24px 75px 0;          /* 75px dole = mezera od spodního okraje karty */
}

/* text */
.project-text h3{ font-size:clamp(1.75rem,2.8vw,2.5rem); font-weight:700; line-height:1.15; margin-bottom:16px; } /* 40px Bold */
.project-text p{ font-size:1.25rem; color:#3a4150; margin:0; line-height:1.55; } /* 20px */

/* obrázky — na šířku pro projekty, čistý border-radius */
.project-image{
  aspect-ratio:1/1; border-radius:var(--radius);
  box-shadow:0 28px 56px -28px rgba(38,46,61,.5);
}

.project-reverse .project-text{ order:2; }

/* video projektu: fotka s tlačítkem Přehrát → okno s videem */
.video-trigger{
  position:absolute; inset:0; display:block; width:100%; padding:0; border:0;
  background:none; cursor:pointer; overflow:hidden; border-radius:inherit;
}
.video-trigger::after{ /* jemné ztmavení pro kontrast tlačítka */
  content:""; position:absolute; inset:0; background:rgba(29,37,46,.18); transition:background .3s var(--ease);
}
.play-btn{
  position:absolute; left:50%; top:50%; z-index:1;
  width:88px; height:88px; border-radius:50%; transform:translate(-50%,-50%);
  background:rgba(255,255,255,.95); box-shadow:0 18px 40px -12px rgba(0,0,0,.45);
  transition:transform .3s var(--ease), background .3s;
}
.play-btn::before{ /* trojúhelník */
  content:""; position:absolute; left:50%; top:50%; transform:translate(-38%,-50%);
  border-style:solid; border-width:15px 0 15px 25px; border-color:transparent transparent transparent var(--navy);
}
.video-trigger:hover .play-btn, .video-trigger:focus-visible .play-btn{ transform:translate(-50%,-50%) scale(1.08); background:#fff; }
.video-trigger:hover::after{ background:rgba(29,37,46,.3); }
.video-trigger:focus-visible{ outline:3px solid #fff; outline-offset:-6px; }

.video-modal{
  width:min(1200px, 92vw); max-width:none; max-height:none; padding:0; border:0;
  background:#000; border-radius:var(--radius); overflow:visible;
  box-shadow:0 40px 100px -20px rgba(0,0,0,.6);
}
.video-modal::backdrop{ background:rgba(15,20,27,.88); backdrop-filter:blur(4px); }
.video-modal[open]{ animation:videoIn .3s var(--ease); }
@keyframes videoIn{ from{ opacity:0; transform:scale(.96); } to{ opacity:1; transform:none; } }
.video-modal-player{ display:block; width:100%; aspect-ratio:16/9; max-height:84vh; border-radius:var(--radius); background:#000; }
.video-modal-close{
  position:absolute; right:0; top:-56px; width:44px; height:44px; border-radius:50%;
  border:0; background:rgba(255,255,255,.14); cursor:pointer; transition:background .2s;
}
.video-modal-close:hover{ background:rgba(255,255,255,.28); }
.video-modal-close::before, .video-modal-close::after{
  content:""; position:absolute; left:50%; top:50%; width:18px; height:2px; background:#fff; border-radius:2px;
}
.video-modal-close::before{ transform:translate(-50%,-50%) rotate(45deg); }
.video-modal-close::after{ transform:translate(-50%,-50%) rotate(-45deg); }
.video-modal-close:focus-visible{ outline-color:#fff; }
html.modal-open{ overflow:hidden; }

/* =========================================================
   BAŤA QUOTE (dark)
   ========================================================= */
.bata-section{ background:#fff; }
.bata-card{
  position:relative; margin:0;
  background:linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color:#fff; border-radius:var(--radius-lg); overflow:hidden;
  display:grid; grid-template-columns:1.15fr 0.85fr; align-items:stretch;
  min-height:560px;
}
/* uvozovky v rozích — velikost tak aby netlačily na text */
.bata-card .qmark-open{
  position:absolute; left:32px; top:24px;
  font-size:6rem; color:#fff; line-height:1; font-family:Georgia,serif; z-index:2;
}
.bata-card .qmark-close{
  position:absolute; right:28px; bottom:24px;
  font-size:6rem; color:#fff; line-height:1; font-family:Georgia,serif; z-index:2;
}
.bata-text{
  /* padding-top musí být větší než výška uvozovky: 3rem*1 = 48px + 24px top offset = 72px → dáme 88px */
  padding:88px 40px 56px 90px;
  display:flex; flex-direction:column; justify-content:space-between;
  position:relative; z-index:1;
}
/* nadpis jako Geneze / Aktuální projekty, ale o polovinu menší — bílý, s čárou pod ním */
.bata-title{
  font-size:clamp(1.5rem,2.1vw,1.875rem); font-weight:500; color:#fff; text-align:left;
  padding-bottom:19px; margin-bottom:16px;
}
.bata-title::after{ background:rgba(255,255,255,.85); }
.bata-text blockquote{
  margin:0 0 32px; font-size:1rem; line-height:1.75; max-width:62ch;
  color:rgba(255,255,255,.92); font-weight:400; text-align:left; /* dlouhý text → vlevo kvůli čitelnosti */
}
.bata-text blockquote p{ margin:0 0 1em; }
.bata-text blockquote p:last-child{ margin-bottom:0; }
.project-desc p + p{ margin-top:.8em; }
.bata-photo{
  display:flex; align-items:flex-end; justify-content:center;
  align-self:stretch; overflow:hidden;
}
.bata-photo img{
  filter:grayscale(1) contrast(1.05);
  height:700px; width:auto; max-width:unset;
  display:block; flex-shrink:0;
}

/* =========================================================
   KONTAKT
   ========================================================= */
.contact{ background:var(--bg-soft); text-align:center; padding-bottom:128px; }
.contact-title{ font-size:clamp(3rem,7vw,6.25rem); font-weight:500; color:var(--navy); /* 100px */
  margin:0 0 14px; }
.contact-sub{ color:var(--muted); margin:0 auto 54px; max-width:none; font-size:1.125rem; line-height:1.5; text-wrap:balance; } /* desktop na 1 řádek, mobil zalomí vyváženě */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:50px; max-width:880px;
  margin:0 auto; position:relative; }
.contact-grid::before{ content:""; position:absolute; left:50%; top:6%; bottom:6%;
  width:1px; background:var(--line); }
.contact-person{ display:flex; flex-direction:column; align-items:center; gap:22px; }
.contact-head{ display:flex; align-items:center; gap:18px; }
.contact-head img{ width:88px; height:88px; border-radius:50%; object-fit:cover; object-position:top; flex-shrink:0; }
.contact-head span{ display:flex; flex-direction:column; gap:2px; text-align:left; font-size:.875rem; color:var(--muted); } /* funkce 14px — stejně jako u vedení */
.contact-head strong{ font-size:1.5rem; font-weight:500; color:var(--navy); } /* 24px */
.contact-pill{
  width:100%; max-width:400px; padding:16px 28px; border-radius:999px;
  font-weight:500; font-size:1.125rem;
  transition:transform .25s var(--ease), box-shadow .25s, background .25s; /* 18px */
}
.contact-pill:hover{ transform:translateY(-2px); background:#3d4a60; color:#fff; }
.pill-dark{ background:var(--navy); color:#fff; box-shadow:0 16px 34px -16px rgba(38,46,61,.7); }
.pill-light{ background:#fff; color:var(--navy); border:1.5px solid var(--line); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background:var(--accent); color:#fff; padding:56px 0 26px; }
.footer-inner{ display:flex; gap:50px; justify-content:space-between; flex-wrap:wrap;
  align-items:flex-start; }
.logo-footer .logo-mark{ fill:var(--navy); }
.logo-footer .logo-img{ filter:brightness(0) invert(1); }
.footer-cols{ display:grid; grid-template-columns:repeat(4,auto); gap:80px; }
.footer-cols div{ font-size:.9375rem; font-weight:500; line-height:1.5; max-width:26ch; } /* 15px */
.footer-cols div:first-child{ white-space:nowrap; }
.footer-label{ display:block; font-size:.8125rem; font-weight:600; letter-spacing:.1em;
  text-transform:uppercase; opacity:.7; margin-bottom:6px; }
.footer-bottom{ margin-top:40px; padding-top:20px; border-top:1px solid rgba(38,46,61,.18);
  font-size:.9375rem; opacity:.8; display:flex; flex-wrap:wrap; gap:8px 32px; align-items:center;
  justify-content:space-between; }
.footer-link{ display:inline-block; padding:10px 0; text-decoration:underline; text-underline-offset:3px;
  text-decoration-color:rgba(255,255,255,.4); transition:text-decoration-color .2s; }
.footer-link:hover{ text-decoration-color:#fff; }
/* autoři fotek (licence CC) — co nejnenápadněji, ale čitelně */
.footer-credits{ flex-basis:100%; font-size:.6875rem; opacity:.55; }
.footer-credits a{ text-decoration:underline; text-underline-offset:2px; }

/* =========================================================
   PODSTRÁNKY (Ochrana osobních údajů apod.)
   ========================================================= */
.page-content{ padding:96px 0 120px; min-height:60vh; }
.page-container{ max-width:860px; }
.page-title{ font-size:clamp(2.5rem,4.2vw,3.75rem); font-weight:500; line-height:1.1; margin:0; }
.page-body{ font-size:1.125rem; line-height:1.7; }
.page-body h2{ font-size:1.5rem; font-weight:600; line-height:1.3; margin:56px 0 14px; }
.page-body h3{ font-size:1.125rem; font-weight:600; margin:32px 0 8px; }
.page-body p, .page-body ul{ margin:0 0 16px; }
.page-body ul{ padding-left:1.2em; }
.page-body li{ margin-bottom:6px; }
.page-body a{ text-decoration:underline; text-underline-offset:3px; }
.page-body a:hover{ color:var(--blue); }

/* =========================================================
   REVEAL ANIMACE
   ========================================================= */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .scroll-hint::before{ animation:none; }
  html{ scroll-behavior:auto; }
}

/* =========================================================
   RESPONSIVE
   Breakpointy:  ≤1080 (menší desktop) · ≤900 (tablet + mobil menu)
                 ≤760 (tablet na výšku) · ≤560 (mobil) · ≤400 (malý mobil)
   ========================================================= */

/* ---- menší desktop / široký tablet ---- */
@media (max-width:1080px){
  .container{ padding:0 28px; }
  .main-nav{ gap:24px; }
  .who-grid, .principles-grid, .genesis-grid, .project{ gap:48px; }
  .vision-grid{ gap:56px; }
  /* optické mezery nadpis–linka–text při menších nadpisech */
  .vision h2{ margin-bottom:17px; }
  .genesis-text h2{ margin-bottom:18px; }
}

/* ---- tablet: sbalené menu + jednosloupcové bloky ---- */
@media (max-width:900px){
  .section{ padding:76px 0; }

  /* hamburger menu */
  .nav-toggle{ display:flex; }
  .main-nav{
    position:absolute; top:72px; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    background:#fff; border-bottom:1px solid var(--line);
    padding:10px 28px 22px;
    box-shadow:0 24px 40px -28px rgba(38,46,61,.5);
    clip-path:inset(0 0 100% 0); transition:clip-path .35s var(--ease);
  }
  .main-nav.open{ clip-path:inset(0 0 0 0); }
  .main-nav a, .main-nav a:not(.btn){ padding:16px 0; border-bottom:1px solid var(--line); font-size:1.125rem; }
  .main-nav a:not(.btn)::after{ display:none; }
  .main-nav .nav-cta{ margin-top:16px; min-height:52px; border-bottom:0; justify-content:center; font-size:1.0625rem; }

  /* jednosloupcové sekce */
  .who-grid, .principles-grid, .genesis-grid, .vision-grid, .project,
  .bata-card, .contact-grid{ grid-template-columns:1fr; }
  /* vedení: na tabletu 2 sloupce, záhlaví se zjednoduší */
  .team-header{ grid-template-columns:1fr 1fr; }
  .team-header-vedeni{ grid-column:1; }
  .team-header-rada{ grid-column:2; }
  /* kdo jsme: text první, obrázek pod ním na šířku */
  .who-image{ margin-top:0; }
  /* optické mezery nadpis–linka–text pro menší nadpisy na tabletu */
  .vision h2{ margin-bottom:14px; }
  .genesis-text h2{ margin-bottom:18px; }
  .who-image{ aspect-ratio:4/3; }
  .who-text{ padding-top:0; }
  .vision-b{ margin-top:0; }
  .vision{ padding-top:0; }
  .vision-grid{ gap:48px; }
  .vision-text{ max-width:46ch; }
  .project{ gap:34px; }
  /* všechny projekty stejně: text, pod ním obrázek */
  .project-reverse .project-text, .project-reverse .project-image{ order:0; }
  .project, .project:first-of-type{ margin-top:64px; }
  .project-image{ aspect-ratio:4/3; }
  /* karty projektů na tabletu/mobilu */
  .project--card::before{ top:0; border-radius:var(--radius); }
  .project--card .project-text{ padding:32px 24px 32px 24px; }
  .project--card .project-image{ padding:0 16px 20px; }
  .bata-card{ grid-template-columns:1fr; min-height:auto; }
  .bata-text{ padding:64px 48px 8px; }
  /* Baťa na mobilu/tabletu: celá postava, bez paralaxy, stojí na spodní hraně karty */
  .bata-photo{ justify-content:center; align-items:flex-end; overflow:hidden; margin-top:8px; }
  .bata-photo img{ width:min(80%, 380px); height:auto; max-height:none; transform:none !important; }
  .contact-grid{ gap:40px; max-width:440px; }
  .contact-grid::before{ display:none; }
  .footer-cols{ grid-template-columns:repeat(2,1fr); gap:28px; }

  /* mind-mapa principů → čistý seznam pod sebe, text „Naše práce" nad ním */
  .principles-grid{ margin-top:64px; margin-bottom:56px; gap:32px; }
  .principles-text{ order:-1; }
  .mindmap{ height:auto; top:0; left:0; display:flex; flex-direction:column; align-items:center; gap:12px; }
  .mindmap-lines{ display:none; }
  .mindmap-center{ position:static; transform:none; margin-bottom:6px; }
  .bubble{ position:static; inset:auto; width:100%; max-width:360px; font-size:.9rem;
    padding:16px 20px; }

  /* tým: záhlaví nahrazeno nadpisy přímo v mřížce, kompaktní karty (foto vlevo) */
  .team-header{ display:none; }
  .team-grid{ grid-template-columns:repeat(2,1fr); gap:32px 28px; align-items:start; }
  .team-label{
    display:block; grid-column:1 / -1; margin:0; padding-bottom:12px;
    border-bottom:1px solid var(--accent); color:var(--accent);
  }
  .team-label::after{ display:none; }
  .team-label:not(:first-child){ margin-top:16px; }
  .member{ display:grid; grid-template-columns:96px 1fr; column-gap:18px; align-items:center; }
  .member-photo{ grid-row:1 / 3; width:96px; margin:0; border-radius:14px; }
  .member-role{ grid-column:2; min-height:0; margin:6px 0 0; align-self:start; }
  .member-name{ grid-column:2; font-size:1.25rem; margin:0; align-self:end; }
  .member-bio{ grid-column:1 / -1; margin-top:16px; font-size:.875rem; }

  /* sousední bílé sekce — bez zdvojené mezery */
}

/* ---- tablet na výšku ---- */
@media (max-width:760px){
  .hero{ min-height:74vh; padding-bottom:48px; margin:0 16px; }
  .scroll-hint{ display:none; }
  .why-bar{ flex-direction:column; align-items:flex-start; gap:18px; padding:30px 30px; }
  .why-list{ gap:12px 20px; }
}

/* ---- mobil ---- */
@media (max-width:560px){
  .section{ padding:56px 0; }

  /* hero: tlačítka na celou šířku */
  .hero-actions{ gap:12px; }
  .hero-actions .btn{ flex:1 1 auto; justify-content:center; text-align:center; }

  .who-grid{ gap:32px; }
  .principles-grid{ margin-top:48px; margin-bottom:48px; }
  .mindmap-center{ width:112px; height:112px; }
  .mindmap-logo{ width:56px; }
  .bubble{ max-width:none; font-size:1rem; padding:14px 20px; }
  .why-list li{ align-items:flex-start; font-size:1.0625rem; line-height:1.4; }
  .why-list li span{ width:1.6em; flex-shrink:0; font-size:1.2rem; line-height:1.2; }

  .vision-grid{ gap:40px; }
  .vision h2{ font-size:3.15rem; margin-bottom:17px; }
  .vision h2::after{ margin-top:15px; }
  .who-text .eyebrow, .principles-text .eyebrow{ margin-bottom:12px; }
  .vision-text, .genesis-text p{ font-size:1.25rem; }
  .genesis-grid{ gap:32px; }
  .genesis-text h2{ font-size:2.5rem; margin-bottom:20px; }

  .team-grid{ grid-template-columns:1fr; gap:28px; }
  .member{ grid-template-columns:88px 1fr; column-gap:16px; }
  .member-photo{ width:88px; }

  .projects-heading{ font-size:2.25rem; }
  .project, .project:first-of-type{ margin-top:48px; gap:24px; }
  .project-text h3{ font-size:1.5rem; margin-bottom:10px; }
  .project-text p{ font-size:1.0625rem; }

  .bata-card{ padding:0; }
  .bata-text{ padding:48px 22px 4px; }
  .bata-text blockquote{ font-size:.9375rem; line-height:1.7; margin-bottom:24px; }


  .contact-sub{ font-size:1rem; margin-bottom:40px; }
  .play-btn{ width:68px; height:68px; }
  .play-btn::before{ border-width:12px 0 12px 20px; }
  .video-modal{ width:100vw; border-radius:0; }
  .video-modal-player{ border-radius:0; }
  .video-modal-close{ right:12px; }
  .contact-head{ gap:14px; }
  .contact-head img{ width:72px; height:72px; }
  .site-footer{ padding-top:48px; }
  .page-content{ padding:56px 0 72px; }
  .page-body{ font-size:1rem; }
  .page-body h2{ font-size:1.3rem; margin-top:40px; }
  .container{ padding:0 20px; }
  .team-grid{ grid-template-columns:1fr; max-width:340px; margin:0 auto; }
  .why-bar{ padding:26px 22px; }
  .quote-card{ padding:84px 24px 72px; }
  .qmark-open{ left:16px; top:28px; font-size:3rem; }
  .qmark-close{ right:16px; font-size:3rem; }
  .quote-card blockquote{ font-size:1.5rem; }
  .contact-pill{ font-size:1rem; padding:15px 18px; overflow-wrap:anywhere; }
  .footer-cols{ grid-template-columns:1fr 1fr; gap:22px 20px; }
  .footer-cols div:first-child, .footer-cols div:last-child{ grid-column:1 / -1; max-width:none; }
  .footer-inner{ gap:32px; }
}

/* ---- malý mobil ---- */
@media (max-width:400px){
  .brand{ gap:12px; }
  .brand-note{ padding-left:12px; font-size:.6875rem; }
  .site-header .logo-img{ height:34px; }
  .hero h1{ font-size:2rem; }
  .contact-title{ font-size:2.4rem; }
}
@media (max-width:339px){
  .brand-note{ display:none; } /* na velmi úzkých displejích se nevejde vedle menu */
}
