/* ==========================================================================
   HHpasport v3 – design systém
   Brand: #22343B (tmavá) + #C99E67 (zlatá) · Kanit (nadpisy) + Open Sans (text)
   ========================================================================== */

:root {
  --ink: #22343B;
  --ink-2: #2D444E;
  --ink-3: #3E5864;
  --gold: #C99E67;
  --gold-hi: #D9B382;
  --gold-text: #8A6636;          /* zlatá pro text na světlém pozadí (kontrast AA) */
  --bg: #FFFFFF;
  --bg-soft: #F6F3EE;
  --bg-ink: #1B2A30;
  --line: #E4DED3;
  --line-dark: rgba(255, 255, 255, .14);
  --text: #22343B;
  --muted: #5B6B72;
  --ok: #2E7D5B;
  --err: #B3402F;

  --font-head: 'Kanit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', system-ui, sans-serif;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --shadow-s: 0 2px 10px rgba(34, 52, 59, .07);
  --shadow-m: 0 12px 36px rgba(34, 52, 59, .12);
  --shadow-l: 0 24px 60px rgba(34, 52, 59, .22);

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 10px 16px; z-index: 1000; border-radius: var(--r-s); font-weight: 700; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.container { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .lead { color: rgba(255, 255, 255, .72); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head);
  font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section--ink .eyebrow, .hero .eyebrow, .page-head .eyebrow, .contact .eyebrow { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; letter-spacing: .02em;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent; text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 48px; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(201, 158, 103, .35); }
.btn--primary:hover { background: var(--gold-hi); box-shadow: 0 10px 26px rgba(201, 158, 103, .45); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 10px 20px; min-height: 40px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { font-family: var(--font-head); font-weight: 500; color: var(--gold-text); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-s); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { height: 44px; width: auto; }
.brand-word { font-family: var(--font-head); font-size: 1.35rem; font-weight: 500; letter-spacing: .08em; color: var(--ink); line-height: 1; }

.nav-desktop ul { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 26px); list-style: none; margin: 0; padding: 0; }
.nav-desktop a:not(.btn), .nav-dd-trigger {
  text-decoration: none; font-weight: 600; font-size: .94rem; padding: 8px 2px; position: relative; color: var(--ink);
  background: none; border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px;
}
.nav-desktop a:not(.btn)::after, .nav-dd-trigger::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-desktop a:not(.btn):hover::after, .nav-desktop a[aria-current="page"]::after, .nav-dd-trigger:hover::before, .nav-dd.is-active .nav-dd-trigger::before { transform: scaleX(1); }
.nav-dd-trigger svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-dd { position: relative; }
.nav-dd:hover .nav-dd-trigger svg, .nav-dd.is-open .nav-dd-trigger svg { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 6px); left: -18px; min-width: 270px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-m); box-shadow: var(--shadow-m); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.nav-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu, .nav-dd.is-open .nav-dd-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-dd-menu a { display: block; padding: 11px 14px; border-radius: var(--r-s); }
.nav-dd-menu a::after { display: none; }
.nav-dd-menu a:hover, .nav-dd-menu a[aria-current="page"] { background: var(--bg-soft); }
.nav-dd-menu small { display: block; font-weight: 600; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); margin-top: 1px; }

.nav-burger { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; border-radius: var(--r-s); position: relative; z-index: 101; }
.nav-burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .3s ease, opacity .2s, top .3s ease; }
.nav-burger span:nth-child(1) { top: 16px; } .nav-burger span:nth-child(2) { top: 23px; } .nav-burger span:nth-child(3) { top: 30px; }
.nav-open .nav-burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* Celoobrazovkové mobilní menu (převzato z draftu) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(255, 255, 255, .98); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center; padding: calc(var(--header-h) + 8px) 24px 24px;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease; overflow-y: auto;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; margin: auto; padding: 8px 0; }
.mobile-menu nav a { font-family: var(--font-head); font-size: 1.35rem; font-weight: 500; color: var(--ink); text-decoration: none; padding: 4px 8px; transition: color .2s; }
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { color: var(--gold-text); }
.mobile-menu .mm-label { font-family: var(--font-head); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin-top: 8px; }
.mobile-menu nav a.mm-sub { font-size: 1.1rem; font-weight: 400; color: var(--ink-3); margin-top: -8px; }
.mobile-menu nav a.mm-cta { margin-top: 14px; background: var(--gold); color: var(--ink); padding: 14px 36px; border-radius: 999px; font-size: 1.05rem; }
.mobile-menu .mm-phone { margin-top: -4px; font-size: 1rem; font-weight: 600; font-family: var(--font-body); color: var(--muted); }
body.nav-open { overflow: hidden; }
@media (max-width: 1060px) { .nav-desktop { display: none; } .nav-burger { display: block; } }
@media (min-width: 1061px) { .mobile-menu { display: none; } }

/* ---------- Hero (video loop) ---------- */
.hero { position: relative; color: #fff; background: var(--bg-ink); overflow: hidden; isolation: isolate; min-height: min(88svh, 800px); display: flex; align-items: center; padding: clamp(56px, 8vw, 110px) 0; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img, .hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg video { opacity: 0; transition: opacity .9s ease; }
.hero-bg video.is-on { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(27,42,48,.9) 0%, rgba(27,42,48,.66) 48%, rgba(27,42,48,.2) 100%), linear-gradient(0deg, rgba(27,42,48,.5), transparent 45%); }
.hero-content { max-width: 720px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.hero .lead { color: rgba(255,255,255,.86); margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: rgba(255,255,255,.9); }
.hero-trust li { display: flex; gap: 8px; align-items: center; }
.hero-trust li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-right: 14px; }
.hero-trust .star { color: var(--gold); }
@media (max-width: 760px) {
  .hero { min-height: calc(100svh - var(--header-h) - 64px); align-items: flex-end; padding: 40px 0 44px; }
  .hero::before { background: linear-gradient(0deg, rgba(27,42,48,.95) 0%, rgba(27,42,48,.78) 55%, rgba(27,42,48,.5) 100%); }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-trust li + li::before { margin-right: 12px; }
}

/* ---------- Trust strip ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 26px 20px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.trust-item span { font-size: .88rem; color: var(--muted); }
.clients { padding: 22px 0 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: center; }
.clients-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.clients span:not(.clients-label) { font-family: var(--font-head); font-size: 1.1rem; font-weight: 500; color: var(--ink-3); opacity: .85; }
@media (max-width: 720px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Audience tabs ---------- */
.tabs { display: flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; margin: 0 auto clamp(28px, 4vw, 44px); overflow-x: auto; }
.tab {
  border: 0; background: transparent; cursor: pointer; padding: 12px 24px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--muted); transition: background .2s, color .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.panel { display: none; }
.panel.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-media img { border-radius: var(--r-l); aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; box-shadow: var(--shadow-m); }
.panel h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.check { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check li { display: flex; gap: 12px; align-items: flex-start; }
.check svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--gold-text); }
.deliver { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.section--soft .tag { background: #fff; }
.panel-cta { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
@media (max-width: 860px) { .panel.is-active { grid-template-columns: 1fr; } .panel-media { order: -1; } }

/* ---------- Before / after flow ---------- */
.flow-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.flow-tab { border: 1px solid var(--line-dark); background: transparent; color: rgba(255,255,255,.75); border-radius: 999px; padding: 9px 20px; cursor: pointer; font-family: var(--font-head); font-size: .95rem; transition: all .2s; }
.flow-tab:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.flow-tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.flow { display: none; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 18px; align-items: stretch; }
.flow.is-active { display: grid; animation: fade .4s ease; }
.flow figure { margin: 0; position: relative; background: #fff; border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; }
.flow figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; cursor: zoom-in; }
.flow figure.is-drawing img { object-fit: contain; padding: 6px; }
.flow figcaption { padding: 14px 16px 16px; color: var(--ink); font-size: .9rem; line-height: 1.4; display: flex; gap: 12px; align-items: flex-start; }
.flow figcaption b { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--ink); color: var(--gold); font-family: var(--font-head); font-size: .95rem; }
.flow figcaption span { display: block; color: var(--muted); font-size: .84rem; }
.flow-note { margin-top: 22px; color: rgba(255,255,255,.7); font-size: .95rem; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px 24px 26px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-size: 2.4rem; font-weight: 600; color: var(--gold); line-height: 1; display: block; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.step-time { display: inline-block; margin-top: 14px; font-size: .8rem; font-weight: 700; color: var(--gold-text); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Equipment ---------- */
.equip-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.equip-list { display: grid; gap: 16px; }
.equip { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 24px; }
.equip h3 { margin-bottom: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.equip h3 small { font-family: var(--font-body); font-size: .82rem; font-weight: 600; color: var(--gold-text); text-transform: uppercase; letter-spacing: .06em; }
.equip p { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.specs div { border-top: 2px solid var(--gold); padding-top: 8px; }
.specs dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.specs dd { margin: 2px 0 0; font-family: var(--font-head); font-size: 1.05rem; font-weight: 500; line-height: 1.25; }
.equip-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.equip-photos img { border-radius: var(--r-m); width: 100%; object-fit: cover; box-shadow: var(--shadow-s); }
.equip-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 11; object-position: center 30%; }
.equip-photos img:not(:first-child) { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .equip-grid { grid-template-columns: 1fr; } .equip-photos { position: static; order: -1; } }
@media (max-width: 520px) { .specs { grid-template-columns: 1fr; } }

/* ---------- Counter ---------- */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-dark); border-radius: var(--r-l); overflow: hidden; background: rgba(255,255,255,.04); }
.counter { padding: clamp(26px, 4vw, 44px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--line-dark); text-align: center; }
.counter:first-child { border-left: 0; }
.counter-num { font-family: var(--font-head); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.counter-label { margin-top: 10px; font-size: .92rem; color: rgba(255,255,255,.75); line-height: 1.4; }
.counters-note { margin-top: 14px; font-size: .8rem; color: rgba(255,255,255,.5); text-align: center; }
@media (max-width: 760px) { .counters { grid-template-columns: 1fr 1fr; } .counter:nth-child(3) { border-left: 0; } .counter:nth-child(n+3) { border-top: 1px solid var(--line-dark); } }

/* ---------- Reference cards ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ref-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ref-card {
  display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  overflow: hidden; cursor: pointer; padding: 0; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.ref-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--gold); }
.ref-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.ref-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ref-card:hover .ref-card-img img { transform: scale(1.05); }
.ref-badge { position: absolute; left: 12px; top: 12px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.ref-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ref-card h3 { margin: 0; font-size: 1.2rem; }
.ref-meta { font-size: .84rem; color: var(--gold-text); font-weight: 700; }
.ref-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.ref-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.ref-card--compact .ref-card-body { padding: 16px 18px 18px; }
.ref-card--compact h3 { font-size: 1.05rem; }
.ref-card--compact { cursor: default; }
.ref-card--compact:hover { transform: none; box-shadow: none; border-color: var(--line); }
.ref-card--compact:hover .ref-card-img img { transform: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter, .blog-filter { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 20px; cursor: pointer; font-family: var(--font-head); font-size: .95rem; transition: all .2s; }
.filter:hover, .blog-filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"], .blog-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sub-title { margin: clamp(48px, 7vw, 80px) 0 24px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sub-title h2 { margin: 0; }
.sub-title p { margin: 0; color: var(--muted); }
@media (max-width: 1000px) { .ref-grid, .ref-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ref-grid, .ref-grid--4 { grid-template-columns: 1fr; } }

/* ---------- Modal (case study) ---------- */
dialog.case { border: 0; padding: 0; border-radius: var(--r-l); width: min(1000px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: var(--shadow-l); color: var(--ink); overflow: hidden; background: #fff; }
dialog.case::backdrop { background: rgba(20, 31, 36, .72); backdrop-filter: blur(3px); }
.case-scroll { max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain; position: relative; }
.case-close { position: absolute; right: 14px; top: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: var(--shadow-s); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.case-close:hover { background: #fff; }
.case-hero { position: relative; aspect-ratio: 16 / 7; background: var(--ink); }
.case-hero img { width: 100%; height: 100%; object-fit: cover; }
.case-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,42,48,.85), transparent 60%); }
.case-hero-text { position: absolute; left: clamp(20px, 4vw, 40px); right: 70px; bottom: clamp(16px, 3vw, 28px); z-index: 2; color: #fff; }
.case-hero-text h2 { margin: 0 0 4px; font-size: clamp(1.5rem, 3.2vw, 2.4rem); }
.case-hero-text .ref-meta { color: var(--gold-hi); }
.case-body { padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); }
.case-body h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-text); font-weight: 600; }
.case-body ul { margin: 0 0 24px; padding-left: 20px; }
.case-body li { margin-bottom: 6px; }
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.case-fact { background: var(--bg-soft); border-radius: var(--r-s); padding: 12px 14px; }
.case-fact b { display: block; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.case-fact span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.case-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.case-gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: #fff; }
.case-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.case-gallery figure.is-drawing img { object-fit: contain; padding: 6px; }
.case-gallery figcaption { padding: 10px 14px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); }
.case-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: var(--r-m); padding: 22px 26px; }
.case-cta p { margin: 0; font-family: var(--font-head); font-size: 1.15rem; }
@media (max-width: 760px) { .case-body { grid-template-columns: 1fr; } .case-hero { aspect-ratio: 16 / 11; } }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(10, 16, 19, .92); }
dialog.lightbox img { max-width: 96vw; max-height: 92vh; background: #fff; border-radius: var(--r-s); }
dialog.lightbox button { position: fixed; right: 16px; top: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.review-stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; }
.review blockquote { margin: 0; font-size: 1rem; flex: 1; }
.review-who { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.review-who b { display: block; }
.review-who span { color: var(--muted); font-size: .8rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; flex: none; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-photos img { width: 100%; object-fit: cover; border-radius: var(--r-m); }
.about-photos img:first-child { grid-row: span 2; height: 100%; min-height: 320px; }
.about-photos img:not(:first-child) { aspect-ratio: 4 / 3; }
.quote { border-left: 4px solid var(--gold); padding: 4px 0 4px 22px; margin: 28px 0; font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.35; color: var(--ink); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.person { text-align: center; }
.person-photo { aspect-ratio: 4 / 5; border-radius: var(--r-m); background: linear-gradient(160deg, var(--ink-2), var(--ink)); display: grid; place-items: center; color: var(--gold); font-family: var(--font-head); font-size: 3rem; font-weight: 500; margin-bottom: 14px; position: relative; overflow: hidden; }
.person-photo::after { content: "Foto již brzy"; position: absolute; bottom: 10px; left: 0; right: 0; font-family: var(--font-body); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.person h3 { font-size: 1.05rem; margin: 0; }
.person p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .team { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--gold); box-shadow: var(--shadow-s); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--gold-text); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 24px 22px; color: var(--muted); }
.faq .ans p:last-child { margin: 0; }

/* ---------- Contact + form ---------- */
.contact { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(200deg, #000 10%, transparent 70%); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact .lead { color: rgba(255,255,255,.78); }
.contact-people { display: grid; gap: 14px; margin: 32px 0; }
.contact-person { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line-dark); border-radius: var(--r-m); background: rgba(255,255,255,.04); }
.contact-person .avatar { background: var(--gold); color: var(--ink); width: 48px; height: 48px; }
.contact-person b { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; display: block; line-height: 1.2; }
.contact-person small { display: block; color: rgba(255,255,255,.65); font-size: .82rem; margin-bottom: 4px; }
.contact-person a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; display: inline-block; margin-right: 14px; }
.contact-person a:hover { color: var(--gold); }
.contact-meta { display: grid; gap: 14px; font-size: .95rem; color: rgba(255,255,255,.8); }
.contact-meta b { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.contact-meta a { color: #fff; }
.form-card { background: #fff; color: var(--ink); border-radius: var(--r-l); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-l); }
.form-card h3 { font-size: 1.6rem; margin-bottom: 4px; }
.form-card > p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .88rem; padding: 0; }
.field label i, .field legend i { color: var(--err); font-style: normal; }
.field input:not([type=radio]), .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid #cfc8bb; border-radius: var(--r-s); background: #fff; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,158,103,.25); }
.field .err { display: none; color: var(--err); font-size: .82rem; }
.field.has-error input:not([type=radio]), .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field.has-error .err { display: block; }
.segr { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; position: relative; }
.segr input { position: absolute; opacity: 0; pointer-events: none; }
.segr label { text-align: center; border: 1.5px solid #cfc8bb; border-radius: var(--r-s); padding: 11px 6px; cursor: pointer; font-size: .88rem; font-weight: 600; transition: all .2s; display: flex; align-items: center; justify-content: center; min-height: 48px; line-height: 1.2; }
.segr input:checked + label { border-color: var(--ink); background: var(--ink); color: #fff; }
.segr input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-top: 20px; }
.form-foot small { color: var(--muted); font-size: .8rem; max-width: 34ch; }
.form-foot small a { color: var(--gold-text); }
.form-status { margin-top: 14px; font-size: .92rem; }
.form-status.is-err { color: var(--err); }
.form-ok { text-align: center; padding: 28px 8px; }
.form-ok svg { width: 64px; height: 64px; color: var(--ok); margin: 0 auto 14px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } .segr { grid-template-columns: 1fr; } }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--gold); color: var(--ink); padding: clamp(36px, 5vw, 56px) 0; }
.cta-band .container { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band .btn--primary { background: var(--ink); color: #fff; box-shadow: none; }
.cta-band .btn--primary:hover { background: var(--ink-3); }
.site-footer { background: var(--bg-ink); color: rgba(255,255,255,.7); padding: 48px 0 28px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: inherit; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand-word { color: #fff; }
.footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.5); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page head (sub pages) ---------- */
.page-head { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(110deg, #000 20%, transparent 80%); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 12px; }
.page-head .lead { color: rgba(255,255,255,.78); margin: 0; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--gold); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--gold); }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { margin: 0; font-size: 1.15rem; }
.post-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.post-meta { font-size: .8rem; color: var(--gold-text); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.prose { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; } .prose li { margin-bottom: .45em; }
.prose img { border-radius: var(--r-m); margin: 1.6em 0; }
.prose a { color: var(--gold-text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }
.prose blockquote { border-left: 4px solid var(--gold); margin: 1.6em 0; padding: 4px 0 4px 20px; color: var(--ink-3); }
.prose figure { margin: 1.6em 0; } .prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.article-cta { max-width: 760px; margin: 48px auto 0; background: var(--ink); color: #fff; border-radius: var(--r-l); padding: 32px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.article-cta h3 { margin: 0; } .article-cta p { margin: 4px 0 0; color: rgba(255,255,255,.75); }

/* ---------- Prvky uvnitř blogových článků ---------- */
.prose .tldr-box, .prose .fact-box { background: var(--bg-soft); border-left: 4px solid var(--gold); border-radius: 0 var(--r-m) var(--r-m) 0; padding: 20px 24px; margin: 1.6em 0; font-size: .98rem; }
.prose .tldr-box > strong:first-child { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 8px; }
.prose .tldr-box ul { margin: 0; }
.prose .fact-label { font-family: var(--font-head); color: var(--gold-text); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.prose .blog-image { margin: 2em 0 !important; }
.prose .blog-image img { margin: 0; width: 100%; height: auto; }
.prose .blog-image__caption { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.prose .faq-section { margin-top: 2.4em; }
.prose .faq-item { border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 22px; margin-bottom: 12px; background: #fff; }
.prose .faq-item h3 { margin: 0 0 6px; font-size: 1.1rem; }
.prose .faq-item p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Cookie banner (consent.js) ---------- */
#cookieBanner { font-family: var(--font-body); }
.cb-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cb-text { flex: 1; min-width: 260px; }
.cb-text strong { display: block; font-size: 15px; margin-bottom: 4px; }
.cb-text p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.cb-text a { color: var(--gold-text); text-decoration: underline; }
.cb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cb-btn { padding: 11px 18px; border: 1.5px solid transparent; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; font-family: inherit; min-height: 44px; }
.cb-btn--accept { background: var(--ink); color: #fff; }
.cb-btn--analytics { background: #fff; color: var(--ink); border-color: var(--line); }
.cb-btn--reject { background: transparent; color: var(--muted); border-color: var(--line); }
@media (max-width: 640px) { .cb-inner { flex-direction: column; gap: 12px; align-items: stretch; } .cb-actions { flex-wrap: nowrap; } .cb-btn { flex: 1; padding: 10px 6px; } }

/* ---------- Mobile CTA bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.1); padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px; transition: transform .3s; }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  body { padding-bottom: 70px; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   v4 – nové komponenty
   ========================================================================== */

/* ---------- Co je pasport ---------- */
.what { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.what-define { font-family: var(--font-head); font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 500; line-height: 1.3; color: var(--ink); margin: 0 0 18px; }
.what-define b { color: var(--gold-text); font-weight: 600; }
.law { background: var(--ink); color: #fff; border-radius: var(--r-l); padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; box-shadow: var(--shadow-m); }
.law-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; }
.law h3 { font-size: 1.15rem; margin-bottom: 6px; }
.law p { margin: 0; color: rgba(255,255,255,.82); font-size: .95rem; }
.law strong { color: var(--gold); white-space: nowrap; }
@media (max-width: 860px) { .what { grid-template-columns: 1fr; } }

/* ---------- Pro koho + Co děláme (kompaktní) ---------- */
.section--tight { padding: clamp(24px, 2.8vw, 36px) 0; }
.seg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.seg-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.seg-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.seg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: clamp(20px, 2.4vw, 28px); }
.seg { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.seg:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--gold); }
.seg-img { aspect-ratio: 16 / 6.2; overflow: hidden; background: var(--bg-soft); }
.seg-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.seg:hover .seg-img img { transform: scale(1.05); }
.seg-body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 4px; }
.seg-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.seg-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; line-height: 1.2; margin: 0; }
.seg-desc { margin: 2px 0 8px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.seg-more { margin-top: auto; font-family: var(--font-head); font-weight: 500; color: var(--gold-text); display: inline-flex; gap: 8px; align-items: center; font-size: .95rem; }
.seg-more::after { content: "→"; transition: transform .2s; }
.seg:hover .seg-more::after { transform: translateX(4px); }
.does { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.does-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; }
.does-item svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--gold-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.does-item b { display: block; font-family: var(--font-head); font-weight: 500; font-size: .98rem; line-height: 1.2; }
.does-item span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.does-note { margin: 12px 0 0; font-size: .84rem; color: var(--muted); }
@media (max-width: 1000px) { .does { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .seg-grid { grid-template-columns: 1fr; gap: 10px; }
  .seg { grid-template-columns: 96px 1fr; grid-template-rows: auto; }
  .seg-img { aspect-ratio: auto; height: 100%; min-height: 110px; }
  .seg-body { padding: 12px 14px; }
  .seg-desc { font-size: .86rem; margin-bottom: 4px; }
  .does { grid-template-columns: 1fr 1fr; gap: 8px; }
  .does-item { padding: 10px 12px; gap: 10px; }
  .does-item svg { width: 24px; height: 24px; }
  .does-item b { font-size: .9rem; } .does-item span { display: none; }
}

/* ---------- Slider recenzí ---------- */
.rv { position: relative; }
.rv-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 6px 2px 14px; }
.rv-track::-webkit-scrollbar { display: none; }
.rv-track .review { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; margin: 0; }
.rv-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.rv-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #cfc8bb; cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.rv-dot[aria-current="true"] { background: var(--gold); transform: scale(1.3); }
.rv-btns { display: flex; gap: 8px; }
.rv-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.rv-btn:hover { background: var(--ink); color: #fff; }
.rv-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rv-ctx { display: block; font-size: .76rem; color: var(--gold-text); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: -6px; }
.rv-src { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.rv-src a { color: var(--gold-text); font-weight: 600; }
@media (max-width: 760px) { .rv-track .review { flex-basis: 100%; } .rv-track { gap: 14px; } .rv-btns { display: none; } .rv-ctrl { justify-content: center; } }

/* ---------- Postup (časová osa s tečkami) + výstupy ---------- */
.how { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; counter-reset: tl; }
.timeline::before { content: ""; position: absolute; left: 25px; top: 24px; bottom: 24px; width: 2px; background: repeating-linear-gradient(to bottom, var(--gold) 0 6px, transparent 6px 12px); }
.tl-step { position: relative; padding: 0 0 30px 74px; counter-increment: tl; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: counter(tl); position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); color: var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; box-shadow: 0 0 0 6px var(--bg); transition: background .3s, color .3s; }
.section--soft .tl-step::before { box-shadow: 0 0 0 6px var(--bg-soft); }
.tl-step:hover::before { background: var(--gold); }
.tl-step h3 { margin: 4px 0 4px; font-size: 1.2rem; }
.tl-step p { margin: 0; color: var(--muted); font-size: .96rem; }
.gets { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-s); position: sticky; top: calc(var(--header-h) + 20px); }
.gets h3 { font-size: 1.3rem; margin-bottom: 14px; }
.gets dl { margin: 0; }
.gets .row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.gets dt { font-family: var(--font-head); font-weight: 600; color: var(--gold-text); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; padding-top: 3px; }
.gets dd { margin: 0; font-size: .96rem; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } .gets { position: static; } }
@media (max-width: 480px) { .tl-step { padding-left: 64px; } .tl-step::before { width: 44px; height: 44px; font-size: 1.15rem; } .timeline::before { left: 21px; } .gets .row { grid-template-columns: 78px 1fr; gap: 10px; } }

/* ---------- Videa (lazy loop) ---------- */
.lv { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink-2); }
.vtile { position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--ink-2); box-shadow: var(--shadow-s); isolation: isolate; }
.vtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(34,52,59,.45), rgba(34,52,59,0) 55%); pointer-events: none; }
.vtile figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; font-family: var(--font-head); font-size: .95rem; font-weight: 500; }
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.vgrid .vtile { aspect-ratio: 4 / 3; margin: 0; }
.vgrid .vtile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (max-width: 900px) { .vgrid { position: static; order: -1; } }

/* ---------- O nás teaser ---------- */
.about-teaser { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-media .am-main { grid-column: 1 / -1; margin: 0; border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-s); }
.about-media .am-main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.about-media .vtile { aspect-ratio: 4 / 3; margin: 0; }
@media (max-width: 860px) { .about-teaser { grid-template-columns: 1fr; } }

/* ---------- FAQ teaser ---------- */
.faq-t { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-t a.fq { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; min-height: 64px; transition: border-color .2s, box-shadow .2s, opacity .4s, transform .4s; }
.faq-t a.fq:hover { border-color: var(--gold); box-shadow: var(--shadow-s); }
.faq-t a.fq::after { content: "→"; color: var(--gold-text); flex: none; }
.faq-t a.fq[hidden] { display: none; }
.faq-t.is-swapping a.fq { opacity: 0; transform: translateY(6px); }
.faq-more { text-align: center; margin-top: 22px; }

/* ---------- Partneři ---------- */
.partners { padding: clamp(36px, 5vw, 56px) 0; background: #fff; text-align: center; border-top: 1px solid var(--line); }
.partners h2 { font-size: 1.1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.partner { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; padding: 14px 24px; border: 1px solid var(--line); border-radius: var(--r-m); transition: border-color .2s; text-align: left; }
.partner:hover { border-color: var(--gold); }
.partner img { height: 44px; width: auto; }
.partner b { display: block; font-family: var(--font-head); font-weight: 500; }
.partner span { color: var(--muted); font-size: .86rem; }

/* ---------- Stránky služeb ---------- */
.svc-hero { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 84px) 0; position: relative; overflow: hidden; isolation: isolate; }
.svc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(110deg, #000 20%, transparent 80%); }
.svc-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.svc-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.svc-hero .lead { color: rgba(255,255,255,.82); margin-bottom: 26px; }
.svc-hero img { border-radius: var(--r-l); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow-l); }
@media (max-width: 860px) { .svc-hero-grid { grid-template-columns: 1fr; } .svc-hero img { aspect-ratio: 16 / 9; order: -1; } }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px 24px; }
.card .num { font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: var(--gold); line-height: 1; display: block; margin-bottom: 10px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.section--soft .card { background: #fff; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; gap: 12px; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.abcd { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.abcd li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.abcd .l { width: 44px; height: 44px; border-radius: var(--r-s); background: var(--ink); color: var(--gold); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.abcd b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.abcd span { color: var(--muted); font-size: .93rem; }
.rt { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.rt th, .rt td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rt thead th { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 500; }
.rt tbody th { width: 34%; font-family: var(--font-head); font-weight: 500; color: var(--ink); background: var(--bg-soft); }
.rt tr:last-child th, .rt tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { .rt thead { display: none; } .rt, .rt tbody, .rt tr, .rt th, .rt td { display: block; } .rt tr { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid var(--line); } .rt tbody th { width: auto; border: 0; padding: 12px 14px; font-size: .9rem; } .rt td { border: 0; padding: 12px 14px; font-size: .94rem; } }
.also { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 18px 22px; background: var(--bg-soft); border-radius: var(--r-m); border-left: 4px solid var(--gold); font-size: .96rem; }
.also span { color: var(--muted); }
.also a { color: var(--gold-text); font-weight: 600; }
.mini-refs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .mini-refs { grid-template-columns: 1fr; } }

/* ---------- FAQ stránka ---------- */
.faq-nav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.faq-nav .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.faq-nav a { white-space: nowrap; text-decoration: none; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-head); font-size: .95rem; transition: all .2s; }
.faq-nav a:hover, .faq-nav a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-group { margin-bottom: clamp(36px, 5vw, 56px); scroll-margin-top: calc(var(--header-h) + 70px); }
.faq-group > h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 4px; }
.faq-group > p { color: var(--muted); margin-bottom: 18px; }
.faq details { scroll-margin-top: calc(var(--header-h) + 80px); }

/* ---------- Blog filtr ---------- */
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.post-card.is-hidden { display: none; }
.post-card .badge { display: inline-block; align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.blog-empty { padding: 32px; text-align: center; background: var(--bg-soft); border-radius: var(--r-m); color: var(--muted); }
.notice { max-width: 760px; margin: 0 auto 28px; background: var(--bg-soft); border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 0 var(--r-m) var(--r-m) 0; font-size: .95rem; }

/* ---------- O nás & Kontakty ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery > * { margin: 0; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 5; position: relative; background: var(--ink-2); }
.gallery img, .gallery video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery .wide { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.people .person { text-align: left; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); border-radius: var(--r-m); padding: 14px; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.people .person-photo { aspect-ratio: 1; font-size: 1.5rem; margin: 0; }
.people .person-photo::after { display: none; }
.people .person h3 { color: #fff; font-size: 1rem; }
.people .person p { color: rgba(255,255,255,.65); font-size: .8rem; margin: 2px 0 4px; }
.people .person a { color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; display: block; overflow-wrap: anywhere; }
.people .person a:hover { color: var(--gold); }
@media (max-width: 960px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .people { grid-template-columns: 1fr; } }
.map-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 1px solid var(--line-dark); border-radius: var(--r-m); padding: 16px 20px; background: rgba(255,255,255,.04); }
.map-card b { display: block; font-family: var(--font-head); font-weight: 500; }
.cta-card { background: #fff; color: var(--ink); border-radius: var(--r-l); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-l); }
.cta-card h3 { font-size: 1.6rem; }
.cta-card p { color: var(--muted); }

/* ---------- Mobilní lišta: větší dotykové plochy ---------- */
@media (max-width: 720px) { .mobile-cta .btn { min-height: 48px; } }

/* ==========================================================================
   v4.1 – úpravy ÚVODNÍ STRÁNKY (body.page-home) + sdílené drobnosti
   ========================================================================== */

/* ---------- Logo v hlavičce: celé, nedeformované ---------- */
.brand svg { height: 40px; width: auto; flex: none; overflow: visible; }
@media (max-width: 380px) { .brand svg { height: 36px; } .brand-word { font-size: 1.2rem; } }

/* ---------- Úvod: spodní mobilní lišta se nezobrazuje ---------- */
.page-home .mobile-cta { display: none !important; }
.page-home { padding-bottom: 0 !important; }

/* ---------- Hero: vše vycentrované ---------- */
.page-home .hero { align-items: center; text-align: center; min-height: min(88svh, 800px); }
.page-home .hero::before { background: radial-gradient(ellipse at center, rgba(27,42,48,.6) 0%, rgba(27,42,48,.86) 100%); }
.page-home .hero .container { display: flex; justify-content: center; }
.page-home .hero-content { text-align: center; margin-inline: auto; max-width: 820px; }
.page-home .hero .eyebrow { justify-content: center; }
.page-home .hero .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold); }
.page-home .hero-cta { justify-content: center; margin-bottom: 0; margin-top: 8px; }
@media (max-width: 760px) {
  .page-home .hero { align-items: center; min-height: calc(100svh - var(--header-h)); padding: 48px 0; }
  .page-home .hero::before { background: rgba(27,42,48,.74); }
  .page-home .hero-cta .btn { flex: 0 1 auto; width: 100%; max-width: 340px; }
}

/* ---------- Společné: video pozadí (hero, technika) ---------- */
.vbg video { opacity: 0; transition: opacity .9s ease; }
.vbg video.is-on { opacity: 1; }

/* ---------- Pro koho: 2 karty ---------- */
.page-home .seg-grid { grid-template-columns: repeat(2, 1fr); }
.page-home .seg-img { aspect-ratio: 16 / 5; }
.seg { position: relative; }
.seg-link { color: inherit; text-decoration: none; }
.seg-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.seg-sub { position: relative; z-index: 2; align-self: flex-start; margin-top: 6px; font-size: .88rem; font-weight: 600; color: var(--gold-text); text-decoration: none; }
.seg-sub:hover { text-decoration: underline; }
.swipe-dots { display: none; }

/* ---------- Počítadlo: 3 položky, vycentrované ---------- */
.counters { grid-template-columns: repeat(3, 1fr); max-width: 960px; margin-inline: auto; }

/* ---------- Technika: videa v pozadí vpravo + béžový gradient zprava doleva ---------- */
.tech { position: relative; overflow: hidden; isolation: isolate; }
.tech-bg { position: absolute; inset: 0; z-index: -1; }
.tech-bg img, .tech-bg video { position: absolute; top: 0; right: 0; width: 64%; height: 100%; object-fit: cover; }
.tech-bg video { background: transparent; }
.tech-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(246,243,238,0) 0%, rgba(246,243,238,0) 20%, rgba(246,243,238,.8) 44%, #F6F3EE 62%); }
.tech .section-head, .tech .equip-list, .tech-note { max-width: 560px; }
.tech .equip-list { display: grid; gap: 16px; }
.tech .equip { background: rgba(255,255,255,.93); backdrop-filter: blur(2px); }
.tech-note { color: var(--muted); font-size: .92rem; margin: 18px 0 0; }

/* ---------- O nás: vizuály vlevo v pozadí + světlý gradient zleva doprava, text vpravo ---------- */
.about { position: relative; overflow: hidden; isolation: isolate; background: #fff; min-height: 560px; display: flex; align-items: center; }
.about-bg { position: absolute; inset: 0; z-index: -1; }
.about-bg .slide { position: absolute; top: 0; left: 0; width: 56%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; background: var(--ink-2); }
.about-bg .slide.is-on { opacity: 1; }
/* Měkký fade (smoothstep): maska na samotné fotce/videu zjemní pravý okraj (obličeje do ~84 % šířky fotky zůstávají ≥80 % viditelné),
   překryv ::after pak jen plynule přejde do bílé pod textem. */
.about-bg .slide { -webkit-mask-image: linear-gradient(to right, #000 0%, #000 80%, rgba(0,0,0,.972) 82%, rgba(0,0,0,.896) 84%, rgba(0,0,0,.784) 86%, rgba(0,0,0,.648) 88%, rgba(0,0,0,.5) 90%, rgba(0,0,0,.352) 92%, rgba(0,0,0,.216) 94%, rgba(0,0,0,.104) 96%, rgba(0,0,0,.028) 98%, transparent 100%); mask-image: linear-gradient(to right, #000 0%, #000 80%, rgba(0,0,0,.972) 82%, rgba(0,0,0,.896) 84%, rgba(0,0,0,.784) 86%, rgba(0,0,0,.648) 88%, rgba(0,0,0,.5) 90%, rgba(0,0,0,.352) 92%, rgba(0,0,0,.216) 94%, rgba(0,0,0,.104) 96%, rgba(0,0,0,.028) 98%, transparent 100%); }
.about-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 48%, rgba(255,255,255,.104) 50%, rgba(255,255,255,.352) 53%, rgba(255,255,255,.648) 56%, rgba(255,255,255,.896) 59%, #fff 62%); }
.about-inner { display: grid; grid-template-columns: 58% 1fr; width: 100%; }
.about-text { grid-column: 2; text-align: left; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  /* Pro koho: obě karty v jednom obdélníku, vodorovný swipe */
  .seg-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-s); margin-bottom: 22px; }
  .page-home .seg-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; margin: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .page-home .seg-grid::-webkit-scrollbar { display: none; }
  .page-home .seg { flex: 0 0 100%; scroll-snap-align: start; grid-template-columns: 1fr; grid-template-rows: auto 1fr; border: 0; border-radius: 0; box-shadow: none; }
  .page-home .seg:hover { transform: none; box-shadow: none; }
  .page-home .seg-img { aspect-ratio: 16 / 8; height: auto; min-height: 0; }
  .page-home .seg-body { padding: 14px 18px 8px; }
  .swipe-dots { display: flex; justify-content: center; gap: 8px; padding: 6px 0 14px; }
  .swipe-dots .rv-dot { background: #cfc8bb; }
  .swipe-dots--dark { padding-bottom: 0; }
  .swipe-dots--dark .rv-dot { background: rgba(255,255,255,.35); }
  /* PENB přesně na střed (poslední, osamocená dlaždice) */
  .page-home .does-item:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); }

  /* Počítadlo pod sebou */
  .counters { grid-template-columns: 1fr; }
  .counter { border-left: 0 !important; border-top: 1px solid var(--line-dark) !important; padding: 20px 16px; }
  .counter:first-child { border-top: 0 !important; }

  /* Reference: 1 viditelná, swipe */
  #refTeaser { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; scrollbar-width: none; margin-top: 32px !important; -webkit-overflow-scrolling: touch; }
  #refTeaser::-webkit-scrollbar { display: none; }
  #refTeaser .ref-card { flex: 0 0 100%; scroll-snap-align: start; }

  /* Technika: video přes celou sekci, béžový průsvitný filtr, swipeovatelné karty */
  .tech-bg img, .tech-bg video { width: 100%; }
  .tech-bg::after { background: rgba(246,243,238,.86); }
  .tech .section-head, .tech .equip-list, .tech-note { max-width: none; }
  .tech .equip-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tech .equip-list::-webkit-scrollbar { display: none; }
  .tech .equip { flex: 0 0 86%; scroll-snap-align: start; }
  .tech .specs { grid-template-columns: 1fr 1fr 1fr; }

  /* O nás: vizuály v pozadí celé sekce, světlý překryv, tlačítko na střed */
  .about { min-height: 0; display: block; }
  .about-bg .slide { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .about-bg::after { background: rgba(255,255,255,.88); }
  .about-inner { display: block; }
  .about-btn { text-align: center; }
}
@media (max-width: 420px) { .tech .specs { grid-template-columns: 1fr; } }

/* ==========================================================================
   v4.2 – PODSTRÁNKY: jednotná hlavička, mobilní swipe, nové stránky
   ========================================================================== */

/* ---------- Jednotná hlavička podstránek ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; text-align: center;
  padding: clamp(40px, 6vw, 84px) 0; min-height: 420px; display: flex; align-items: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%); }
.page-hero::after { content: ""; position: absolute; width: 560px; height: 560px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(201,158,103,.2), transparent 68%); z-index: -1; }
.page-hero .container { display: flex; flex-direction: column; align-items: center; }
.page-hero .eyebrow { justify-content: center; color: var(--gold); }
.page-hero .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.05; margin: 0; max-width: 20ch; }
.page-hero .btn { margin-top: 30px; }
.page-hero--article h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 26ch; }
.page-hero .post-meta { color: var(--gold); margin-bottom: 14px; }
@media (max-width: 760px) { .page-hero { min-height: 280px; } }

/* ---------- Mobilní swipe (společná komponenta) ---------- */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .cards4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .m-swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; grid-template-columns: none; }
  .m-swipe::-webkit-scrollbar { display: none; }
  .m-swipe > * { flex: 0 0 86%; scroll-snap-align: start; }
  .flow.m-swipe:not(.is-active) { display: none; }
  .flow.m-swipe > figure { flex-direction: column; }
  .flow.m-swipe > figure img { width: 100%; aspect-ratio: 4 / 3; }
  .flow:not(.is-active) + .swipe-dots { display: none; }
  .swipe-dots--on-ink .rv-dot { background: rgba(255,255,255,.35); }
  .mini-refs.m-swipe > .ref-card { flex-basis: 90%; }
}

/* ---------- Služby: výhody a bloky ---------- */
.also-stack { display: grid; gap: 12px; margin-top: 32px; }

/* ---------- O nás: autoplay galerie příběhu (jen mobil) ---------- */
.story-gallery { display: none; }
@media (max-width: 760px) {
  .gallery { display: none; }
  .story-gallery { display: block; margin-top: 24px; }
  .sg-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sg-track::-webkit-scrollbar { display: none; }
  .sg-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--ink-2); position: relative; }
  .sg-slide > img { width: 100%; height: 100%; object-fit: cover; }
  .sg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: transparent; overflow: visible; }
  .sg-pair > * { border-radius: var(--r-m); overflow: hidden; background: var(--ink-2); position: relative; }
  .sg-pair img, .sg-pair video { width: 100%; height: 100%; object-fit: cover; display: block; }
}

/* ---------- Kontakty ---------- */
.contact-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-team .person { text-align: center; }
.contact-team .person-photo { margin-bottom: 14px; }
.contact-team .person h3 { font-size: 1.15rem; }
.contact-team .person p { margin: 2px 0 10px; }
.contact-team .person a { display: block; color: var(--ink); font-weight: 600; text-decoration: none; font-size: .95rem; overflow-wrap: anywhere; }
.contact-team .person a:hover { color: var(--gold-text); }
.contact-team .person .none { display: block; color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .contact-team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .contact-team { gap: 14px; } .contact-team .person-photo { font-size: 2rem; } }
.firm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.firm .card { padding: 22px; }
.firm .card b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; margin-bottom: 4px; }
.firm .card p { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .firm { grid-template-columns: 1fr; } }

@media (max-width: 760px) { .flow.is-active.m-swipe { display: flex; } .flow.m-swipe > figure { flex: 0 0 86%; } }

/* ==========================================================================
   v4.3 – modal referencí, fotka týmu, kontrast tabulky
   ========================================================================== */
body.modal-open { overflow: hidden; }

/* O nás (úvod): obličeje na fotce týmu zůstávají vždy vidět.
   Dost široká plocha → cover s ohniskem na obličeje, jinak contain (celá fotka bez ořezu). */
.about-bg { container-type: size; }
.about-bg img.slide { object-position: 50% 50%; background: transparent; }
/* Lidé na společných fotkách zabírají ~12–88 % šířky a ~22–78 % výšky. Plocha fotky = 56 % šířky sekce → cover jen pro poměr plochy 1,25–2,4 (kontejner 2,23–4,3), jinak contain = celá fotka bez ořezu. */
@container (max-aspect-ratio: 223/100) { .about-bg img.slide { object-fit: contain; } }
@container (min-aspect-ratio: 43/10) { .about-bg img.slide { object-fit: contain; } }
@media (max-width: 760px) { .about-bg img.slide { object-position: 50% 0; } }

/* Projektanti – Rozsah: výraznější tabulka proti béžovému podkladu */
.section--soft .rt { background: #fff; border: 1px solid #c9c0b0; border-radius: var(--r-m); box-shadow: 0 14px 38px rgba(34,52,59,.16), 0 2px 6px rgba(34,52,59,.08); }
.section--soft .rt tbody th { background: #EFE9DF; }
/* Zarovnání výšky: horní hrana pravého bloku = horní hrana nadpisu H2 vlevo (štítek nad H2 má 0.8rem*1.65 + 14px) */
@media (min-width: 861px) { .two-col > .align-h2 { margin-top: calc(.8rem * 1.65 + 14px); } }

.two-col > div > .eyebrow:first-child { display: flex; width: fit-content; }

/* Profilovky týmu a společné fotky */
.person-photo--img { background: var(--bg-soft); }
.person-photo--img::after { display: none; }
.person-photo--img img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; display: block; }
.founders { margin: 0; }
.founders img { border-radius: var(--r-l); box-shadow: var(--shadow-m); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 12%; display: block; }
.founders figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; }
.team-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.team-photos figure { margin: 0; }
.team-photos img { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: var(--r-m); box-shadow: var(--shadow-s); display: block; }
@media (max-width: 860px) { .team-photos { grid-template-columns: 1fr; } }
/* Kontakty: větší fotky, oči všech čtyř na jedné lince (--eye = výška očí na fotce, --E = cílová linka v rámečku) */
.container--wide { max-width: calc(1400px + var(--gutter) * 2); }
.team-photos--single { grid-template-columns: 1fr; max-width: 1100px; margin-inline: auto; }
.contact-team { gap: 26px; }
.contact-team .person-photo--img { --z: 1.2; --E: .34; aspect-ratio: 4 / 5; }
.contact-team .person-photo--img img { position: absolute; left: 50%; width: calc(var(--z) * 100%); max-width: none; height: auto; aspect-ratio: 2 / 3; transform: translateX(-50%); top: calc((var(--E) - var(--eye, .34) * 1.2 * var(--z)) * 100%); object-fit: cover; object-position: center; }
@media (max-width: 520px) { .contact-team { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }
/* Formulář: chips pro typ objektu (2×2) + pole lokality pod nimi */
.segr--2x2 { grid-template-columns: 1fr 1fr; }
.field > .segr + input { margin-top: 10px; }
.segr label { padding-inline: 10px; }

/* ---------- Kontakty: dvě dveře (projektanti / majitelé) ---------- */
.page-hero .page-hero-lead { margin: 18px auto 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.78); max-width: 52ch; }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.door {
  border-radius: var(--r-l); padding: clamp(24px, 3.4vw, 40px);
  display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 24px; align-content: start;
  grid-template-areas: "head head" "tags tags" "sep sep" "photo who" "photo contact" "call call";
}
.door--dark { background: var(--ink); color: #fff; }
.door--light { background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); }
.door-head { grid-area: head; margin-bottom: 18px; }
.door-label { display: block; font-family: var(--font-head); font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
.door--dark .door-label { color: var(--gold); }
.door h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0; }
.door-tags { grid-area: tags; list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.door-tags li { border: 1px solid #D6CDBE; background: #fff; border-radius: 999px; padding: 5px 14px; font-size: .88rem; line-height: 1.4; color: var(--ink-3); }
.door--dark .door-tags li { border-color: rgba(255,255,255,.22); background: transparent; color: rgba(255,255,255,.88); }
.door-sep { grid-area: sep; height: 1px; background: var(--line); margin-bottom: 22px; }
.door--dark .door-sep { background: var(--line-dark); }
.door-photo { grid-area: photo; display: block; width: 128px; height: 160px; border-radius: var(--r-m); overflow: hidden; align-self: center; background: var(--ink-2); }
.door-photo img { width: 100%; height: 100%; object-fit: cover; }
.door-who { grid-area: who; align-self: end; display: flex; flex-direction: column; min-width: 0; }
.door-who b { font-family: var(--font-head); font-weight: 600; font-size: 1.6rem; line-height: 1.2; }
.door-who span { font-size: .95rem; color: var(--muted); }
.door--dark .door-who span { color: rgba(255,255,255,.7); }
.door-contact { grid-area: contact; align-self: start; display: flex; flex-direction: column; align-items: flex-start; margin-top: 8px; min-width: 0; }
.door-tel { font-family: var(--font-head); font-weight: 600; font-size: 1.85rem; line-height: 1.25; letter-spacing: .01em; color: inherit; text-decoration: none; white-space: nowrap; }
.door-tel:hover { color: var(--gold-text); }
.door--dark .door-tel:hover { color: var(--gold); }
.door-mail { font-weight: 600; font-size: .95rem; color: var(--gold-text); overflow-wrap: anywhere; }
.door--dark .door-mail { color: var(--gold-hi); }
.door-call { grid-area: call; justify-self: start; margin-top: 26px; }
.doors-help { text-align: center; color: var(--muted); margin: 28px auto 0; max-width: 72ch; }
.doors-help a { color: var(--gold-text); font-weight: 600; }
.others { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 44px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.others-label { font-family: var(--font-head); font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); flex-basis: 100%; }
.others b { color: var(--ink); font-weight: 600; }
.others a { color: var(--gold-text); }
@media (max-width: 960px) { .doors { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .door { border-radius: 18px; grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; grid-template-areas: "head head" "tags tags" "sep sep" "photo who" "call call" "contact contact"; }
  .door-tags li { font-size: .82rem; padding: 4px 12px; }
  .door-photo { width: 72px; height: 72px; border-radius: 50%; }
  .door-who { align-self: center; }
  .door-who b { font-size: 1.25rem; }
  .door-who span { font-size: .88rem; }
  .door-call { justify-self: stretch; margin-top: 18px; min-height: 56px; font-size: 1.08rem; }
  .door-contact { align-items: center; margin-top: 8px; }
  .door-tel { font-size: 1.15rem; font-weight: 500; }
  .door-mail { min-height: 44px; display: flex; align-items: center; }
  .others { flex-direction: column; gap: 10px; margin-top: 32px; }
}

/* ---------- Mobilní menu a patička: dvě čísla ---------- */
.mobile-menu .mm-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; margin-top: 2px; }
.mobile-menu .mm-phone small { display: block; font-family: var(--font-head); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); line-height: 1.3; }
.site-footer .foot-role { display: block; font-size: .75rem; line-height: 1.3; color: rgba(255,255,255,.58); }
.site-footer .foot-tel { color: #fff; font-weight: 600; }

/* ---------- Výběr, komu zavolat (spodní lišta) ---------- */
.call-sheet { position: fixed; inset: 0; z-index: 200; }
.call-sheet-backdrop { position: absolute; inset: 0; background: rgba(27,42,48,.55); opacity: 0; transition: opacity .25s ease; }
.call-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: #fff;
  border-radius: 22px 22px 0 0; padding: 16px 16px calc(22px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 12px; box-shadow: var(--shadow-l); transform: translateY(100%); transition: transform .25s ease;
}
.call-sheet.is-open .call-sheet-backdrop { opacity: 1; }
.call-sheet.is-open .call-sheet-panel { transform: none; }
.call-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.call-sheet-head b { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; }
.call-sheet-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.call-sheet-close svg { width: 18px; height: 18px; }
.call-opt { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px; border-radius: 16px; text-decoration: none; }
.call-opt img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.call-opt > span { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.call-opt b { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.call-opt small { font-size: .88rem; }
.call-opt svg { width: 20px; height: 20px; flex: none; }
.call-opt--dark { background: var(--ink); color: #fff; }
.call-opt--dark small { color: rgba(255,255,255,.75); }
.call-opt--dark svg { stroke: var(--gold); }
.call-opt--light { background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); }
.call-opt--light small { color: var(--muted); }
.call-sheet-help { margin: 0; text-align: center; font-size: .9rem; color: var(--muted); }
.call-sheet-help a { color: var(--gold-text); font-weight: 600; }
body.sheet-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .call-sheet-panel, .call-sheet-backdrop { transition: none; } }
