/* =========================================================
   DS STAVBY BRNO s.r.o. – styl webu
   Designed by ITCommunity s.r.o.
   ========================================================= */

:root {
  --paper: #efe7d8;
  --paper-2: #efe7d8;
  --sand: #efe7d8;
  --sand-2: #d9c7a8;
  --clay: #8a6a45;
  --ink: #1b1814;
  --ink-2: #2a251f;
  --ink-3: #3b342c;
  --muted: #6c6257;
  --line: rgba(27, 24, 20, .14);
  --line-light: rgba(246, 241, 231, .16);
  --red: #d42a1e;
  --red-deep: #a71d13;
  --white: #efe7d8;

  --f-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 650;
  font-stretch: 100%;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.35rem); letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--red); color: #fff; padding: 10px 16px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- typografické prvky ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-stretch: 108%;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--sand); }
.eyebrow .num { color: var(--muted); font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.22rem); color: var(--ink-3); line-height: 1.75; }
.rule { width: 72px; height: 3px; background: var(--red); border: 0; margin: 26px 0 30px; transform-origin: left; }
.accent { color: var(--red); }
.muted { color: var(--muted); }

/* ---------- tlačítka ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  font-family: var(--f-display); font-stretch: 104%; font-weight: 700; font-size: .86rem;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--bg); color: var(--fg);
  border-radius: var(--radius);
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); }
.btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover { color: var(--ink); }
.btn--brown { --bg: var(--ink); }
.btn--brown::before { background: var(--red); }
.btn--dark { --bg: var(--ink); }
.btn--dark::before { background: var(--red); }
.btn--line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-stretch: 104%; font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 4px; transition: background-size .45s var(--ease), color .3s;
}
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================
   HLAVIČKA
   ========================================================= */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
  font-size: .82rem; color: rgba(246,241,231,.82);
  border-bottom: 1px solid var(--line-light);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 42px; gap: 20px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }

.header {
  position: fixed; top: 42px; left: 0; right: 0; z-index: 70;
  transition: top .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
  color: var(--white);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; transition: height .5s var(--ease); }
.header.is-scrolled {
  top: 0;
  background: rgba(246, 241, 231, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(27,24,20,.5);
}
.header.is-scrolled .wrap { height: 70px; }
.header.is-hidden { transform: translateY(-110%); }

.logo { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.logo svg { width: 52px; height: 36px; flex: none; }
.logo__text { display: flex; flex-direction: column; gap: 4px; }
.logo__name { font-family: var(--f-display); font-weight: 800; font-stretch: 100%; font-size: 1.3rem; letter-spacing: -.01em; }
.logo__sub { font-family: var(--f-display); font-stretch: 125%; font-weight: 600; font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; opacity: .7; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav__list a {
  position: relative; display: block; padding: 10px 16px;
  font-family: var(--f-display); font-stretch: 100%; font-weight: 600; font-size: .92rem;
}
.nav__list a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { margin-left: 14px; padding: 14px 22px; }

.burger { display: none; width: 48px; height: 48px; position: relative; z-index: 90; border-radius: 50%; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform .5s var(--ease), opacity .3s, top .5s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
.burger span:nth-child(3) { top: 30px; }
.menu-open .burger span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 24px; transform: rotate(-45deg); }

/* Mobilní menu */
.mnav {
  position: fixed; inset: 0; z-index: 80;
  background: var(--ink); color: var(--paper);
  clip-path: circle(0 at calc(100% - 44px) 44px);
  transition: clip-path .8s var(--ease-in-out);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  visibility: hidden;
}
.menu-open .mnav { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.mnav ol { list-style: none; margin: 0 0 40px; padding: 0; counter-reset: m; }
.mnav li { overflow: hidden; border-bottom: 1px solid var(--line-light); }
.mnav li a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
  font-family: var(--f-display); font-weight: 650; font-stretch: 100%; font-size: clamp(1.8rem, 7vw, 2.5rem); letter-spacing: -.02em;
  transform: translateY(105%); transition: transform .7s var(--ease), color .3s;
}
.mnav li a::before { counter-increment: m; content: "0" counter(m); font-size: .8rem; color: var(--red); font-stretch: 108%; letter-spacing: .1em; }
.menu-open .mnav li a { transform: none; }
.menu-open .mnav li:nth-child(1) a { transition-delay: .25s; }
.menu-open .mnav li:nth-child(2) a { transition-delay: .3s; }
.menu-open .mnav li:nth-child(3) a { transition-delay: .35s; }
.menu-open .mnav li:nth-child(4) a { transition-delay: .4s; }
.menu-open .mnav li:nth-child(5) a { transition-delay: .45s; }
.mnav__foot { display: grid; gap: 8px; color: rgba(246,241,231,.75); opacity: 0; transition: opacity .5s .5s; }
.menu-open .mnav__foot { opacity: 1; }
.mnav__foot a { color: var(--paper); font-weight: 600; }
.menu-open .header { z-index: 85; transform: none; color: var(--paper); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); overflow: hidden; background: var(--ink);
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__slides { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.6s var(--ease-in-out);
}
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.hero__slide.is-active { opacity: 1; z-index: 2; }
/* odcházející snímek zůstává viditelný pod novým a pokračuje v oddalování – žádný skok zpět */
.hero__slide.is-prev { opacity: 1; z-index: 1; transition: none; }
.hero__slide.is-active img, .hero__slide.is-prev img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(0,0,0); } to { transform: scale(1.02) translate3d(-1.5%, -1%, 0); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,17,13,.88) 0%, rgba(20,17,13,.62) 42%, rgba(20,17,13,.12) 75%),
    linear-gradient(0deg, rgba(20,17,13,.9) 0%, rgba(20,17,13,0) 42%),
    linear-gradient(180deg, rgba(20,17,13,.55) 0%, rgba(20,17,13,0) 22%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--wrap)) - 2 * var(--gutter)) / 4) 100%;
  background-position: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 0;
}
.hero__content { position: relative; z-index: 2; padding-top: 170px; padding-bottom: 48px; }
.hero h1 { max-width: 14ch; margin-bottom: 26px; font-weight: 700; }
.hero h1 .line { display: block; overflow: hidden; padding: .1em 0 .08em; margin: -.1em 0 -.08em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.2s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: none; } }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__lead { max-width: 560px; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: rgba(255,253,249,.82); margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.fade-up { opacity: 0; transform: translateY(26px); animation: fadeUp 1.1s var(--ease) forwards; }
.d1 { animation-delay: .45s; } .d2 { animation-delay: .6s; } .d3 { animation-delay: .75s; } .d4 { animation-delay: .9s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero__bar { position: relative; z-index: 2; border-top: 1px solid var(--line-light); background: rgba(20,17,13,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero__bar .wrap { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.stat { padding: 26px 24px 26px 0; border-right: 1px solid var(--line-light); margin-right: 24px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat__num { font-family: var(--f-display); font-stretch: 105%; font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1; letter-spacing: -.02em; }
.stat__num small { font-size: .5em; color: var(--red); margin-left: 2px; }
.stat__label { font-size: .84rem; color: rgba(255,253,249,.7); margin-top: 8px; line-height: 1.4; }
.hero__dots { display: flex; align-items: center; gap: 10px; padding-left: 4px; }
.hero__dot { width: 42px; height: 22px; position: relative; }
.hero__dot::before, .hero__dot i { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(255,255,255,.25); }
.hero__dot i { background: var(--white); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active i { animation: progress 7s linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }

.scroll-cue { position: absolute; right: var(--gutter); top: 50%; z-index: 2; writing-mode: vertical-rl; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 14px; }
.scroll-cue::after { content: ""; width: 1px; height: 70px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: cue 2.2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Podstránky – hero */
.page-hero { position: relative; color: var(--white); background: var(--ink); overflow: hidden; padding: 230px 0 90px; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transform: scale(1.08); animation: heroZoom 2.4s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,17,13,.85), rgba(20,17,13,.3)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); max-width: 18ch; }
.page-hero p { max-width: 600px; color: rgba(255,253,249,.8); font-size: 1.12rem; }
.crumbs { display: flex; gap: 10px; font-size: .82rem; color: rgba(255,253,249,.6); margin-bottom: 26px; list-style: none; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.crumbs a:hover { color: #fff; }

/* =========================================================
   SEKCE – obecné
   ========================================================= */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section--sand { background: var(--sand); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .lead { color: rgba(246,241,231,.72); }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px 80px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head--center .eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; }

.blueprint {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 60%);
  mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 60%);
}

/* ---------- O nás – (inspirace: rám kolem fotky) ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__brand { display: flex; align-items: center; gap: 22px; margin-bottom: 8px; }
.about__mark {
  width: 96px; height: 96px; border-radius: 50%; flex: none;
  border: 3px solid var(--ink); display: grid; place-items: center; position: relative;
}
.about__mark::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px solid var(--ink); }
.about__mark svg { width: 52px; height: 36px; }
.about__brand h2 { color: var(--ink); font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin: 0; }
.about .rule { background: var(--red); }
.about__text { color: var(--ink-3); font-size: 1.06rem; line-height: 1.95; max-width: 560px; }
.about__sign { display: flex; align-items: center; gap: 16px; margin: 30px 0 36px; }
.about__sign b { display: block; font-family: var(--f-display); font-stretch: 100%; font-size: 1.05rem; }
.about__sign span { font-size: .88rem; color: var(--muted); }
.about__sign .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-stretch: 104%; }

.frame { position: relative; padding: 18px; }
.frame::before, .frame::after {
  content: ""; position: absolute; width: 110px; height: 110px; z-index: 0; pointer-events: none;
  transition: transform 1.2s var(--ease), opacity 1s;
}
.frame::before { left: 0; top: 0; border-top: 3px solid var(--red); border-left: 3px solid var(--red); }
.frame::after { right: 0; bottom: 0; border-bottom: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.frame__img { position: relative; z-index: 1; overflow: hidden; border-radius: 2px; box-shadow: 0 40px 60px -40px rgba(27,24,20,.55); }
.frame__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.4s var(--ease); }
.frame:hover .frame__img img { transform: scale(1.04); }
.frame__badge {
  position: absolute; z-index: 2; left: -28px; bottom: 22px;
  background: var(--ink); color: var(--paper); padding: 22px 26px; border-radius: 2px;
  box-shadow: 0 24px 40px -20px rgba(0,0,0,.5);
}
.frame--left .frame__badge { left: auto; right: -20px; }
.frame__badge b { display: block; font-family: var(--f-display); font-stretch: 105%; font-weight: 700; font-size: 2rem; line-height: 1; color: var(--red); }
.frame__badge > span { font-size: .82rem; letter-spacing: .04em; color: rgba(246,241,231,.8); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: .88rem; font-weight: 600; background: rgba(255,253,249,.5); transition: background .3s, color .3s, border-color .3s; }
.chips li:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Služby ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line-light); border: 1px solid var(--line-light); }
.svc {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 460px; padding: 36px 34px; background: var(--ink); overflow: hidden; isolation: isolate;
}
.svc__img { position: absolute; inset: 0; z-index: -2; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transform: scale(1.06); filter: grayscale(.25); transition: transform 1.2s var(--ease), opacity .8s var(--ease), filter .8s; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20,17,13,.92) 12%, rgba(20,17,13,.45) 45%, rgba(20,17,13,.08) 100%); }
.svc:hover .svc__img img { transform: scale(1); opacity: .85; filter: none; }
.svc__num { position: absolute; top: 30px; left: 34px; font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: .78rem; letter-spacing: .2em; color: var(--sand-2); }
.svc__icon { position: absolute; top: 24px; right: 30px; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; color: var(--paper); transition: background .5s var(--ease), border-color .5s, transform .6s var(--ease); }
.svc__icon svg { width: 22px; height: 22px; }
.svc:hover .svc__icon { background: var(--red); border-color: var(--red); transform: rotate(-45deg); }
.svc h3 { color: var(--white); margin-bottom: 12px; }
.svc p { color: rgba(246,241,231,.7); font-size: .98rem; margin: 0; max-height: 0; opacity: 0; transform: translateY(10px); transition: max-height .7s var(--ease), opacity .6s var(--ease), transform .6s var(--ease), margin .6s var(--ease); }
.svc:hover p, .svc:focus-within p { max-height: 200px; opacity: 1; transform: none; margin-bottom: 18px; }
.svc .link-arrow { color: var(--sand); }
.svc__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.svc:hover .svc__bar { transform: scaleX(1); }
.svc--link { position: absolute; inset: 0; z-index: 3; }

/* ---------- Postup ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps__line { position: absolute; left: 0; right: 0; top: 35px; height: 2px; background: var(--line); }
.steps__line i { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease-in-out); }
.is-in .steps__line i, .steps__line.is-in i { transform: scaleX(1); }
.step { position: relative; padding-top: 0; }
.step__dot {
  position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center;
  font-family: var(--f-display); font-stretch: 108%; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 30px; transition: background .5s var(--ease), color .5s, border-color .5s, transform .5s var(--ease);
}
.step:hover .step__dot { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-4px); }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- Marquee profesí ---------- */
.marquee { background: var(--red); color: var(--white); overflow: hidden; padding: 16px 0; position: relative; }
.marquee--dark { background: var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap;
  font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: clamp(.95rem, 1.4vw, 1.25rem); letter-spacing: .04em; text-transform: uppercase;
}
.marquee__track span::after { content: ""; width: 16px; height: 5px; background: currentColor; transform: skewX(-30deg); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Proč my ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why__item { position: relative; padding: 44px 38px 48px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; transition: color .5s var(--ease); isolation: isolate; }
.why__item::before { content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1; transform: translateY(101%); transition: transform .6s var(--ease); }
.why__item:hover::before { transform: none; }
.why__item:hover { color: var(--paper); }
.why__item:hover p { color: rgba(246,241,231,.72); }
.why__icon { width: 58px; height: 58px; color: var(--red); margin-bottom: 28px; transition: transform .6s var(--ease); }
.why__item:hover .why__icon { transform: translateY(-4px) scale(1.05); }
.why__item h3 { font-size: 1.3rem; }
.why__item p { color: var(--muted); margin: 0; font-size: .98rem; transition: color .5s; }
.why__n { position: absolute; top: 30px; right: 32px; font-family: var(--f-display); font-stretch: 108%; font-size: .78rem; font-weight: 700; letter-spacing: .15em; color: var(--muted); opacity: .5; }

/* ---------- Realizace – slider ---------- */
.projects-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.projects-head h2 { margin: 0; }
.slider-ctrl { display: flex; gap: 10px; }
.round-btn { width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; transition: background .4s var(--ease), color .4s, border-color .4s, transform .4s var(--ease); }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.round-btn:active { transform: scale(.94); }
.round-btn[disabled] { opacity: .3; pointer-events: none; }
.hscroll {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  --hs-pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding: 0 var(--gutter) 10px var(--hs-pad); scroll-padding-left: var(--hs-pad);
  cursor: grab; overscroll-behavior-x: contain;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll.is-drag { cursor: grabbing; scroll-snap-type: none; }
.hscroll.is-drag a { pointer-events: none; }
.pcard { flex: 0 0 clamp(270px, 32vw, 440px); scroll-snap-align: start; position: relative; }
.pcard__img { position: relative; overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 5; background: var(--ink-2); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); user-select: none; -webkit-user-drag: none; }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__tag { position: absolute; left: 16px; top: 16px; background: var(--paper); color: var(--ink); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 2px; }
.pcard__cap { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; font-family: var(--f-display); font-stretch: 100%; font-weight: 700; }
.pcard__cap small { font-family: var(--f-body); font-weight: 500; color: var(--muted); }
.pcard--more .pcard__img { display: grid; place-items: center; background: var(--red); color: #fff; text-align: center; padding: 30px; }
.pcard--more b { display: block; font-family: var(--f-display); font-stretch: 105%; font-weight: 700; font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1; }
.pcard--more .pcard__img::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.35); }
.slider-progress { margin-top: 36px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.slider-progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(.1); transition: transform .2s; }

/* ---------- Hodnocení / Google ---------- */
.rating { display: grid; grid-template-columns: auto 1fr auto; gap: 50px; align-items: center; padding: 50px 56px; background: var(--ink); color: var(--paper); border-radius: 4px; box-shadow: 0 30px 70px -50px rgba(27,24,20,.6); position: relative; overflow: hidden; }
.rating::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.rating__score { font-family: var(--f-display); font-stretch: 105%; font-weight: 700; font-size: clamp(3.4rem, 6vw, 5rem); line-height: .9; letter-spacing: -.04em; color: var(--red); align-self: start; font-size: clamp(5rem, 8vw, 7rem); line-height: .8; }
.stars { display: flex; gap: 4px; color: #f2b01e; margin-top: 10px; }
.stars svg { width: 22px; height: 22px; }
.rating h2 { font-size: clamp(1.35rem, 2.1vw, 1.8rem); margin-bottom: 10px; }
.rating p { margin: 0; color: rgba(246,241,231,.7); }
.g-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.g-logo svg { width: 20px; height: 20px; }

/* ---------- Doplňkové služby ---------- */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.extra { position: relative; overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 3.2; color: var(--white); display: flex; align-items: flex-end; padding: 28px; isolation: isolate; }
.extra img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.extra::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20,17,13,.88), rgba(20,17,13,0) 65%); }
.extra:hover img { transform: scale(1.07); }
.extra h3 { margin: 0 0 4px; }
.extra p { margin: 0; font-size: .92rem; color: rgba(255,253,249,.78); }

/* ---------- CTA + kontakt ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__info h2 { color: var(--paper); }
.info-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.info-list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-light); align-items: center; }
.info-list .ico { width: 52px; height: 52px; border-radius: 50%; background: rgba(246,241,231,.07); display: grid; place-items: center; color: var(--red); transition: background .4s, color .4s; }
.info-list li:hover .ico { background: var(--red); color: #fff; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list small { display: block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,241,231,.5); }
.info-list a, .info-list span { font-family: var(--f-display); font-stretch: 110%; font-weight: 650; font-size: 1.12rem; color: var(--paper); }
.info-list a:hover { color: var(--sand-2); }

.form { background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 52px); border-radius: 4px; position: relative; box-shadow: 0 50px 80px -50px rgba(0,0,0,.7); }
.form h3 { font-size: 1.7rem; margin-bottom: 6px; }
.form > p { color: var(--muted); margin-bottom: 28px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 15px 16px; background: var(--white); border: 1.5px solid var(--line); border-radius: 3px;
  transition: border-color .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231b1814' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(212,42,30,.12); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.hp { position: absolute !important; left: -9999px !important; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); line-height: 1.5; margin: 22px 0 26px; }
.check input { width: 20px; height: 20px; accent-color: var(--red); flex: none; margin-top: 1px; }
.check a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.form .btn { width: 100%; justify-content: center; }
.form__msg { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 3px; font-weight: 600; font-size: .95rem; }
.form__msg.ok { display: block; background: #e5efe0; color: #2d5a1f; }
.form__msg.err { display: block; background: #f7e1de; color: var(--red-deep); }
.form.is-sending .btn { opacity: .7; pointer-events: none; }

/* =========================================================
   PODSTRÁNKY
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split + .split { margin-top: clamp(90px, 11vw, 150px); }
.split--rev .split__media { order: 2; }
.split h2 { font-size: clamp(1.6rem, 2.7vw, 2.3rem); }
.ticks { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-3); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 20px; height: 12px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg) scale(.7); transform-origin: left top; }
.ticks--2 { grid-template-columns: 1fr 1fr; }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person { background: var(--white); padding: 34px 28px; border-radius: 3px; border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); position: relative; overflow: hidden; }
.person::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.person:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -36px rgba(27,24,20,.5); }
.person:hover::after { transform: scaleX(1); }
.person__av { width: 66px; height: 66px; border-radius: 50%; background: var(--sand); color: var(--ink); display: grid; place-items: center; font-family: var(--f-display); font-stretch: 105%; font-weight: 800; font-size: 1.2rem; margin-bottom: 22px; }
.person h3 { font-size: 1.2rem; margin-bottom: 4px; }
.person__role { color: var(--muted); font-size: .92rem; margin-bottom: 18px; min-height: 2.9em; line-height: 1.45; }
.person a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .82rem; overflow-wrap: anywhere; }
.person a:hover { color: var(--red); }
.person a svg { width: 16px; height: 16px; flex: none; }

/* Galerie */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.filter { padding: 12px 20px; border: 1.5px solid var(--line); border-radius: 100px; font-weight: 700; font-size: .9rem; transition: background .35s, color .35s, border-color .35s; display: inline-flex; gap: 8px; align-items: center; }
.filter sup { font-size: .7rem; color: var(--muted); }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter.is-active sup { color: var(--sand-2); }
.gallery { columns: 3 300px; column-gap: 18px; }
.gitem { break-inside: avoid; margin-bottom: 18px; position: relative; overflow: hidden; border-radius: 2px; display: block; width: 100%; background: var(--sand); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.gitem img { width: 100%; transition: transform 1.1s var(--ease), filter .6s; }
.gitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,17,13,.55), transparent 50%); opacity: 0; transition: opacity .5s; }
.gitem__zoom { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; transform: scale(.6); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.gitem__zoom svg { width: 20px; height: 20px; }
.gitem:hover img { transform: scale(1.05); }
.gitem:hover::after { opacity: 1; }
.gitem:hover .gitem__zoom { transform: none; opacity: 1; }
.gitem.is-hidden { display: none; }
.gitem.is-entering { animation: gIn .7s var(--ease) both; }
@keyframes gIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(15,13,10,.96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__img { max-width: min(92vw, 1500px); max-height: 84vh; object-fit: contain; border-radius: 2px; box-shadow: 0 40px 80px rgba(0,0,0,.6); transform: scale(.96); transition: transform .5s var(--ease), opacity .35s; }
.lb.is-open .lb__img { transform: none; }
.lb__img.is-swap { opacity: 0; }
.lb button { position: absolute; color: #fff; }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb .round-btn { border-color: rgba(255,255,255,.35); background: rgba(0,0,0,.3); }
.lb__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-family: var(--f-display); font-stretch: 104%; font-size: .85rem; letter-spacing: .15em; }

/* Mapa (načítá se až po souhlasu) */
.map { position: relative; min-height: 440px; background: var(--ink-2); border-radius: 4px; overflow: hidden; display: grid; place-items: center; text-align: center; color: var(--paper); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.map__ph { position: relative; z-index: 1; padding: 30px; max-width: 460px; }
.map__ph::before { content: ""; position: absolute; inset: -200px; z-index: -1; background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px); background-size: 40px 40px; }
.map__pin { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--red); animation: bob 2.4s var(--ease-in-out) infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.map__ph p { color: rgba(246,241,231,.7); font-size: .92rem; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ccard { background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 34px 30px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.ccard:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -36px rgba(27,24,20,.5); }
.ccard .ico { width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.ccard .ico svg { width: 24px; height: 24px; }
.ccard h3 { font-size: 1.15rem; margin-bottom: 10px; }
.ccard p { margin: 0; color: var(--ink-3); }
.ccard a { font-weight: 700; display: block; }
.ccard a:hover { color: var(--red); }

/* Právní texty */
.legal { max-width: 860px; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 2.2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 2em; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: transparent; border-bottom: 2px solid var(--ink); font-weight: 700; }

/* CTA banner */
.cta { position: relative; overflow: hidden; background: var(--red); color: #fff; padding: clamp(60px, 8vw, 100px) 0; isolation: isolate; }
.cta::before { content: ""; position: absolute; right: -6%; top: -40%; width: 60%; height: 180%; z-index: -1; background: repeating-linear-gradient(-60deg, rgba(255,255,255,.08) 0 26px, transparent 26px 64px); }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta h2 { margin: 0; max-width: 18ch; }
.cta p { margin: 12px 0 0; color: rgba(255,255,255,.85); }
.cta .btn { --bg: var(--ink); }
.cta .btn::before { background: var(--white); }
.cta .btn:hover { color: var(--ink); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   PATIČKA
   ========================================================= */
.footer { background: #13110e; color: rgba(246,241,231,.7); padding: 100px 0 0; font-size: .95rem; position: relative; overflow: hidden; }
.footer__big {
  position: absolute; left: var(--gutter); bottom: 96px; z-index: -1; pointer-events: none; user-select: none;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(3rem, 5.6vw, 5.2rem); line-height: .85; letter-spacing: -.03em;
  white-space: nowrap; color: rgba(246,241,231,.05);
}
@media (max-width: 1100px) { .footer__big { display: none; } }
.footer .wrap { position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; }
.footer .logo { color: var(--paper); margin-bottom: 24px; }
.footer h4 { font-family: var(--f-display); font-stretch: 108%; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--paper); margin-bottom: 22px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { transition: color .25s; }
.footer a:hover { color: var(--white); }
.footer__social { display: flex; gap: 10px; margin-top: 24px; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; color: var(--paper); transition: background .35s, border-color .35s; }
.footer__social a:hover { background: var(--red); border-color: var(--red); }
.footer__social svg { width: 18px; height: 18px; }
.footer__legal { border-top: 1px solid var(--line-light); margin-top: 60px; padding: 26px 0; font-size: .82rem; display: flex; justify-content: space-between; gap: 14px 30px; flex-wrap: wrap; color: rgba(246,241,231,.5); position: relative; z-index: 1; }
.footer__legal nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__company { font-size: .82rem; color: rgba(246,241,231,.45); margin-top: 18px; line-height: 1.6; }
.credit { display: block; text-align: center; padding: 18px 0 22px; font-size: .78rem; letter-spacing: .06em; color: rgba(246,241,231,.42); border-top: 1px solid rgba(246,241,231,.06); }
.credit a { color: rgba(246,241,231,.75); font-weight: 700; }
.credit a:hover { color: #0a91dc; }

/* Tlačítko nahoru */
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .45s var(--ease), transform .45s var(--ease), background .3s; pointer-events: none; }
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--red); }
.totop svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.totop circle { fill: none; stroke: var(--red); stroke-width: 2; }
.totop .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.call-fab { display: none; }

/* Přechod mezi stránkami */
.curtain { position: fixed; inset: 0; z-index: 300; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.curtain i { background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-in-out); }
.curtain i:nth-child(2) { transition-delay: .04s; } .curtain i:nth-child(3) { transition-delay: .08s; } .curtain i:nth-child(4) { transition-delay: .12s; } .curtain i:nth-child(5) { transition-delay: .16s; }
.is-leaving .curtain i { transform: scaleY(1); }
.curtain.is-intro i { transform: scaleY(1); transform-origin: top; }
.curtain.is-intro.go i { transform: scaleY(0); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-in-out); transition-delay: var(--d, 0s); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); }
.js .reveal-img img { transform: scale(1.2); transition: transform 1.8s var(--ease); }
.js .reveal-img.is-in img { transform: scale(1); }
.js .rule.reveal { transform: scaleX(0); opacity: 1; }
.js .rule.reveal.is-in { transform: scaleX(1); }
.js .frame.reveal::before { transform: translate(-24px, -24px); opacity: 0; transition: transform 1.4s var(--ease) .3s, opacity 1s .3s; }
.js .frame.reveal::after { transform: translate(24px, 24px); opacity: 0; transition: transform 1.4s var(--ease) .3s, opacity 1s .3s; }
.js .frame.reveal.is-in::before, .js .frame.reveal.is-in::after { transform: none; opacity: 1; }
.js .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .03em .16em; margin: -.14em -.03em -.16em; }
.js .split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js .split-words.is-in .w > span { transform: none; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--paper); padding: 120px var(--gutter); position: relative; overflow: hidden; }
.notfound b { display: block; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(8rem, 28vw, 22rem); line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--red); letter-spacing: -.05em; }
.notfound p { color: rgba(246,241,231,.7); margin: 20px auto 34px; max-width: 460px; }

/* =========================================================
   RESPONZIVITA
   ========================================================= */
@media (max-width: 1100px) {
  .nav__list, .nav .btn { display: none; }
  .burger { display: block; }
  .hero__bar .wrap { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat { border-right: 0; margin: 0; padding: 18px 0; }
  .hero__dots { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .scroll-cue { display: none; }
}
@media (max-width: 900px) {
  .topbar .hide-md { display: none; }
  .section-head, .about, .contact, .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 50px 30px; }
  .steps__line { display: none; }
  .why { grid-template-columns: 1fr 1fr; }
  .extras { grid-template-columns: 1fr; }
  .extra { aspect-ratio: 16 / 9; }
  .rating { grid-template-columns: 1fr; gap: 24px; padding: 40px 32px; }
  .cards3 { grid-template-columns: 1fr; }
  .svc p { max-height: none; opacity: 1; transform: none; margin-bottom: 18px; }
  .svc { min-height: 380px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .header { top: 0; }
  :root { --header-h: 72px; }
  .logo svg { width: 42px; height: 30px; }
  .logo__name { font-size: 1.1rem; }
  .hero__content { padding-top: 130px; padding-bottom: 36px; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .stat__label { font-size: .78rem; }
  .services, .why, .steps, .team, .form__grid, .ticks--2 { grid-template-columns: 1fr; }
  .frame { padding: 12px; }
  .frame::before, .frame::after { width: 70px; height: 70px; }
  .frame__badge { left: 10px; bottom: -14px; padding: 16px 18px; }
  .frame--left .frame__badge { right: 10px; }
  .frame__badge b { font-size: 1.8rem; }
  .about__mark { width: 72px; height: 72px; }
  .about__mark svg { width: 40px; height: 28px; }
  .page-hero { padding: 150px 0 64px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer { padding-top: 70px; }
  .why__item { padding: 36px 26px; }
  .person__role { min-height: 0; }
  .lb__prev, .lb__next { top: auto; bottom: 14px; transform: none; }
  .lb__count { bottom: 34px; }
  .call-fab { display: grid; position: fixed; left: 18px; bottom: 22px; z-index: 50; width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; place-items: center; box-shadow: 0 14px 30px -10px rgba(212,42,30,.7); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
  .call-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .hero::after { background: linear-gradient(0deg, rgba(20,17,13,.92) 0%, rgba(20,17,13,.55) 55%, rgba(20,17,13,.6) 100%); }
  .hero__slide img { object-position: 30% center; }
  .call-fab svg { width: 22px; height: 22px; }
  .call-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); animation: ping 2s var(--ease) infinite; }
  @keyframes ping { to { transform: scale(1.6); opacity: 0; } }
  .projects-head .slider-ctrl { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 28px; padding: 0 var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filter { white-space: nowrap; flex: none; padding: 10px 16px; }
  .gallery { columns: 2; column-gap: 10px; }
  .gitem { margin-bottom: 10px; }
  .gitem__zoom { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
}
@media print {
  .header, .topbar, .footer, .totop, .call-fab, .curtain, .hero__slides { display: none !important; }
  .hero, .page-hero { color: #000; background: none; min-height: 0; }
}

/* Proč zvolit nás – tmavá varianta */
.section--dark .why { border-color: var(--line-light); }
.section--dark .why__item { border-color: var(--line-light); }
.section--dark .why__item p { color: rgba(246,241,231,.68); }
.section--dark .why__item::before { background: var(--ink-2); }
.section--dark .why__item:hover p { color: rgba(246,241,231,.85); }
.rating .btn::before { background: var(--paper); }
.rating .btn:hover { color: var(--ink); }

/* opravy z kontroly */
main { overflow-x: clip; }
@media (max-width: 700px) {
  .legal table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legal th, .legal td { min-width: 140px; padding: 10px 12px; }
}

/* citát jednatele – samostatný blok */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote__mark { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(5rem, 9vw, 7.5rem); line-height: .7; color: var(--red); height: .45em; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.35; letter-spacing: -.01em; color: var(--paper); }
.quote__by { display: inline-flex; align-items: center; gap: 16px; margin-top: 38px; text-align: left; }
.quote__by b { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.quote__by span:not(.avatar) { font-size: .88rem; color: rgba(246,241,231,.65); }
.quote__by .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-stretch: 104%; }
.quote__q { color: var(--red); font-size: 1.7em; line-height: 0; vertical-align: -.08em; margin: 0 .06em; }

/* logo jako obrázek */
.logo img { height: 46px; width: auto; display: block; }
.footer .logo img { height: 58px; }
@media (max-width: 760px) { .logo img { height: 36px; } .footer .logo img { height: 48px; } }

/* logo v hlavičce: světlé přes fotku, tmavé po rolování */
.header .logo__img--dark { display: none; }
.header.is-scrolled .logo__img--light { display: none; }
.header.is-scrolled .logo__img--dark { display: block; }

/* Cloudflare Turnstile ve formuláři */
.cf-turnstile { margin: 18px 0 6px; }
