/* KROV — střechy Ostrava */
:root {
  --bg: #EEEBE5;
  --paper: #F6F4F0;
  --card: #DFDBD3;
  --card-2: #D5D0C6;
  --ink: #2B2320;
  --ink-2: #5F5550;
  --ink-3: #8C827B;
  --line: rgba(43, 35, 32, .14);
  --holo: linear-gradient(110deg, #F2A7C6, #B9E3F0 30%, #9FE0B9 55%, #F5E59A 78%, #C6B2F0);
  --r: 8px;
  --r-lg: 18px;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
[id] { scroll-margin-top: 84px; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.eyebrow {
  margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--ink); }
.h2 {
  margin: 0; font-size: clamp(34px, 5.4vw, 68px); line-height: .98; font-weight: 700;
  letter-spacing: -.045em; text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.head { display: grid; gap: 20px; grid-template-columns: 1.2fr 1fr; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.head .lead { margin: 0; justify-self: end; }
@media (max-width: 820px) { .head { grid-template-columns: 1fr; } .head .lead { justify-self: start; } }

/* Tlačítka */
.btn {
  --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); text-decoration: none; white-space: nowrap;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(43, 35, 32, .55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--sm { --h: 42px; padding: 0 20px; font-size: 12px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Navigace ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.is-stuck { background: rgba(238, 235, 229, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 20px; }
.logo svg { width: 30px; height: 30px; }
.logo small { white-space: nowrap; font-weight: 500; font-size: 13px; color: var(--ink-2); letter-spacing: 0; }
.nav__links { display: flex; gap: 26px; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__tel { white-space: nowrap; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; margin-left: auto; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 6px auto; transition: transform .3s var(--ease); }
.menu-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 1180px) { .nav__tel { display: none; } }
@media (max-width: 960px) {
  .nav__links, .nav__tel, .nav .btn { display: none; }
  .nav__burger { display: block; }
  /* backdrop-filter z .is-stuck dělá z hlavičky „okno“ pro fixed potomky a menu by se stlačilo na 48 px */
  .menu-open .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
  .menu-open .nav__links {
    display: flex; flex-direction: column; gap: 0; position: fixed; inset: 76px 0 0; background: var(--bg);
    padding: 24px var(--pad) 96px; overflow-y: auto; overscroll-behavior: contain; font-size: 34px; font-weight: 700; letter-spacing: -.03em; z-index: 49;
  }
  .menu-open .nav__links li { border-bottom: 1px solid var(--line); }
  .menu-open .nav__links a { display: block; padding: 14px 0; }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(8px, 1.6vw, 22px); text-align: center; overflow: hidden; }
.hero .eyebrow::before { display: none; }
.hero__title { margin: 0; }
.hero__stage, .hero__txt, .hero__line, .hero__object, .hero__object > span { display: block; }
.hero__stage { position: relative; margin-inline: calc(var(--pad) * -.5); }
.hero__txt { font-weight: 800; text-transform: uppercase; font-size: clamp(54px, 13.4vw, 190px); line-height: .86; letter-spacing: -.045em; color: var(--ink); }
.hero__ch { display: inline-block; will-change: transform; }
.hero__object {
  --rx: 0deg; --ry: 0deg;
  position: relative; z-index: 1; width: min(34%, 330px); margin: 0 0 calc(-1 * clamp(4px, 1.2vw, 14px)) clamp(0px, 7%, 90px);
  perspective: 1000px; pointer-events: none;
}
.hero__object > span {
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-4deg);
  transition: transform .6s var(--ease);
  animation: float 6s ease-in-out infinite;
}
.hero__object img { width: 100%; height: auto; filter: drop-shadow(0 18px 18px rgba(43, 35, 32, .18)); }
@keyframes float { 50% { translate: 0 -10px; } }
.hero__text { max-width: 560px; margin: clamp(20px, 2.4vw, 32px) auto 0; font-size: clamp(17px, 1.7vw, 20px); font-weight: 500; line-height: 1.4; letter-spacing: -.015em; text-wrap: balance; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust b { color: var(--ink); }
.trust i { width: 6px; height: 6px; background: var(--holo); border-radius: 1px; }
@media (max-width: 640px) {
  .hero__stage { margin-inline: -6px; }
  .hero__object { width: 58%; margin-left: 0; }
  .hero .eyebrow { max-width: 150px; font-size: 11px; }
}

/* Pixelové písmo – animace */
[data-pixel] svg { display: block; }
[data-pixel] rect { opacity: 0; }
[data-pixel].is-in rect { animation: px .3s var(--d) steps(2, end) forwards; }
@keyframes px { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  [data-pixel] rect { opacity: 1; animation: none !important; }
  .hero__object > span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Běžící pás ---------- */
.ticker { overflow: hidden; padding-block: 22px; margin-top: clamp(48px, 7vw, 88px); border-block: 1px solid var(--line); }
.ticker__track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker span { white-space: nowrap; padding-right: 22px; font-weight: 800; font-size: clamp(15px, 1.4vw, 18px); letter-spacing: .04em; text-transform: uppercase; }
.ticker span::after { content: "→"; margin-left: 22px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- Služby ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.svc {
  position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r);
  text-decoration: none; overflow: hidden; transition: transform .4s var(--ease);
}
.svc:hover { transform: translateY(-4px); }
.svc__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--card-2); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.02); transition: transform .8s var(--ease), filter .5s; }
.svc:hover .svc__img img { transform: scale(1.05); filter: saturate(1); }
.svc__img--render { display: grid; place-items: center; padding: 8% 10% 4%; background: radial-gradient(70% 60% at 50% 55%, var(--paper), var(--card) 75%); }
.svc__img--render img { height: 100%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(43, 35, 32, .2)); }
.svc:hover .svc__img--render img { transform: scale(1.06) translateY(-4px); filter: drop-shadow(0 26px 22px rgba(43, 35, 32, .24)); }
.svc__body { padding: 22px 22px 24px; display: grid; gap: 8px; flex: 1; }
.svc h3 { margin: 0; font-size: 22px; letter-spacing: -.03em; line-height: 1.15; }
.svc p { margin: 0; color: var(--ink-2); font-size: 15px; }
.svc__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.svc__foot b { font-size: 15px; }
.svc__arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); transition: transform .4s var(--ease); }
.svc:hover .svc__arrow { transform: rotate(-45deg); }
.svc--tag::before {
  content: attr(data-tag); position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 10px; border-radius: 999px;
  background: var(--bg); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* ---------- Kalkulačka ---------- */
.calc { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.calc__form { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 40px); display: grid; gap: 28px; }
.field > span, .field legend { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; font-weight: 500; transition: .2s;
}
.seg label:hover span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
select, .input, textarea {
  width: 100%; height: 52px; border: 0; border-radius: 12px; padding: 0 16px; background: var(--bg);
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232B2320' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select:focus, .input:focus, textarea:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--ink); }
.range { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.range output { font-weight: 800; font-size: 22px; letter-spacing: -.03em; min-width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; appearance: none; height: 4px; border-radius: 4px; background: var(--card-2); cursor: pointer; }
input[type=range]::-webkit-slider-thumb { appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 0 0 1.5px var(--ink); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .calc__form .row2 { grid-template-columns: 1fr; } }

.calc__out {
  position: relative; background: var(--ink); color: var(--bg); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 18px; overflow: hidden; isolation: isolate;
}
.calc__out::before { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; background: var(--holo); filter: blur(70px); opacity: .32; z-index: -1; }
.calc__out small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.calc__price { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; font-variant-numeric: tabular-nums; }
.calc__price span { opacity: .45; }
.calc__m2 { font-size: 15px; opacity: .75; margin-top: -8px; }
.calc__list { list-style: none; margin: 8px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(238, 235, 229, .16); display: grid; gap: 10px; font-size: 15px; }
.calc__list li { display: flex; gap: 10px; }
.calc__list li::before { content: "✓"; font-weight: 800; }
.calc__out .btn { margin-top: auto; align-self: stretch; }
.calc__note { font-size: 12.5px; opacity: .6; margin: 0; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

/* ---------- Diagnostika ---------- */
.diag { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.diag__stage { position: relative; background: var(--paper); border-radius: var(--r-lg); padding: clamp(18px, 4vw, 56px); }
.diag__stage svg { width: 100%; height: auto; overflow: visible; }
.diag__stage > div { position: relative; }
.hotspot {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 0; border-radius: 50%;
  background: var(--bg); color: var(--ink); font-weight: 800; font-size: 13px; cursor: pointer;
  box-shadow: 0 0 0 1.5px var(--ink), 0 6px 14px -4px rgba(43, 35, 32, .4); transition: transform .3s var(--ease), background .2s;
}
.hotspot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
.hotspot:hover, .hotspot.is-on { transform: scale(1.12); background: var(--ink); color: var(--bg); }
.hotspot.is-on::after { animation: none; }
@keyframes ping { 0% { transform: scale(.7); opacity: .7; } 80%, 100% { transform: scale(1.4); opacity: 0; } }
.diag__item h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; line-height: 1.05; margin: 10px 0 14px; }
.diag__item p { margin: 0 0 12px; color: var(--ink-2); }
.diag__item .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--card); }
.diag__item dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.diag__item dt { font-weight: 700; }
.diag__item dd { margin: 0; color: var(--ink-2); }
.diag__aside .btn { margin-top: 26px; }
@media (max-width: 900px) { .diag { grid-template-columns: 1fr; } }

/* ---------- Postup ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1.5px solid var(--ink); }
.steps li { padding: 28px 24px 0 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps [data-pixel] { width: 44px; margin-bottom: 26px; }
.steps [data-pixel] svg { fill: var(--ink); width: 100%; height: auto; }
.steps h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.03em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps li:nth-child(n+3) { margin-top: 36px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); margin: 0; display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; }
  .steps [data-pixel] { grid-row: span 2; margin: 4px 0 0; }
}

/* ---------- Proč my ---------- */
.why { background: var(--ink); color: var(--bg); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 72px); overflow: hidden; position: relative; isolation: isolate; }
.why .eyebrow::before { background: var(--holo); }
.why .h2 { max-width: 14ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 40px); margin: clamp(40px, 6vw, 80px) 0 0; padding: 0; list-style: none; }
.stats [data-pixel] { height: clamp(44px, 6vw, 84px); margin-bottom: 18px; }
.stats [data-pixel] svg { height: 100%; width: auto; fill: var(--bg); }
.stats b { display: block; font-size: 18px; letter-spacing: -.02em; margin-bottom: 4px; }
.stats p { margin: 0; font-size: 15px; opacity: .65; }
.brands { display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: center; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid rgba(238, 235, 229, .16); font-weight: 800; font-size: clamp(16px, 1.6vw, 21px); letter-spacing: -.02em; opacity: .85; }
.brands small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .6; width: 100%; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; } }

/* ---------- Realizace ---------- */
.cases { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 32vw, 420px); gap: clamp(12px, 1.6vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 8px; margin-inline: calc(var(--pad) * -1); scrollbar-width: none; }
.cases::-webkit-scrollbar { display: none; }
.case { scroll-snap-align: start; margin: 0; }
.case__img { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--card); }
.case__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.case figcaption { padding-top: 16px; }
.case h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.03em; }
.case ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.case li { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--card); }
.cases__nav { display: flex; gap: 8px; }
.cases__nav button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: none; box-shadow: inset 0 0 0 1.5px var(--ink); cursor: pointer; font-size: 20px; transition: .2s; }
.cases__nav button:hover { background: var(--ink); color: var(--bg); }
.demo-note { font-size: 12px; color: var(--ink-3); margin-top: 18px; }

/* ---------- Recenze ---------- */
.reviews { display: grid; grid-template-columns: .9fr 1fr 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.rating { background: var(--ink); color: var(--bg); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.rating [data-pixel] { height: 64px; }
.rating [data-pixel] svg { height: 100%; width: auto; fill: var(--bg); }
.stars { letter-spacing: 3px; font-size: 18px; }
.rating p { margin: 0; font-size: 14px; opacity: .7; }
.review { background: var(--paper); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 18px; margin: 0; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.45; letter-spacing: -.01em; }
.review figcaption { margin-top: auto; font-size: 14px; color: var(--ink-2); }
.review figcaption b { color: var(--ink); display: block; }
@media (max-width: 1000px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Oblasti ---------- */
.area { position: relative; border-radius: var(--r-lg); overflow: hidden; color: var(--bg); background: var(--ink); isolation: isolate; }
.area > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.1); opacity: .5; }
.area::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(43, 35, 32, .95) 25%, rgba(43, 35, 32, .55)); }
.area__in { padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.area .eyebrow::before { background: var(--holo); }
.area p { opacity: .78; max-width: 44ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 10px 16px; border-radius: 999px; background: rgba(238, 235, 229, .1); box-shadow: inset 0 0 0 1px rgba(238, 235, 229, .22); font-weight: 600; font-size: 15px; backdrop-filter: blur(6px); }
.chips li:first-child { background: var(--bg); color: var(--ink); }
@media (max-width: 820px) { .area__in { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 80px); }
.faq__list { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); position: relative; transition: .3s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: .3s var(--ease); }
.faq summary i::after { rotate: 90deg; }
.faq details[open] summary i { background: var(--ink); color: var(--bg); }
.faq details[open] summary i::after { rotate: 0deg; }
.faq details p { margin: 0 0 24px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { background: var(--ink); color: var(--bg); padding-block: clamp(72px, 10vw, 140px); }
.contact__px { margin-bottom: clamp(36px, 5vw, 64px); }
.contact__px svg { width: 100%; height: auto; fill: var(--bg); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 80px); }
.contact__info p { opacity: .75; max-width: 40ch; }
.big-tel { display: block; font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.045em; text-decoration: none; margin: 26px 0 6px; font-variant-numeric: tabular-nums; }
.contact__meta { list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(238, 235, 229, .16); display: grid; gap: 14px; font-size: 15px; }
.contact__meta b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.emergency { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(238, 235, 229, .1); font-size: 14px; font-weight: 700; }
.emergency i { width: 8px; height: 8px; border-radius: 50%; background: #7FE0A6; box-shadow: 0 0 0 0 #7FE0A6; animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(127, 224, 166, 0); } }

.form { background: var(--bg); color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 40px); display: grid; gap: 14px; grid-template-columns: 1fr 1fr; align-content: start; }
.form .full { grid-column: 1 / -1; }
.form label > span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.form .input, .form select, .form textarea { background: var(--paper); }
.form textarea { height: 120px; padding: 14px 16px; resize: vertical; }
.file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1.5px dashed var(--card-2); cursor: pointer; font-size: 15px; color: var(--ink-2); transition: .2s; }
.file:hover { border-color: var(--ink); color: var(--ink); }
.file input { position: absolute; opacity: 0; width: 1px; }
.form .btn { width: 100%; }
.form__legal { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.form__ok { grid-column: 1 / -1; background: var(--card); padding: 18px; border-radius: 12px; font-weight: 600; }
.form.is-sent > :not(.form__ok) { opacity: .35; pointer-events: none; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- Patička ---------- */
.foot { background: var(--ink); color: var(--bg); padding: 0 0 40px; font-size: 14px; }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 40px; border-top: 1px solid rgba(238, 235, 229, .16); }
.foot h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; opacity: .85; }
.foot a:hover { opacity: 1; text-decoration: underline; }
.foot p { margin: 12px 0 0; opacity: .6; max-width: 34ch; }
.foot .logo svg rect { fill: var(--bg); }
.foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; opacity: .5; font-size: 13px; }
@media (max-width: 820px) { .foot__in { grid-template-columns: 1fr 1fr; } }

/* ---------- Mobilní lišta ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px; border-radius: 999px; background: rgba(43, 35, 32, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding-bottom: calc(8px + env(safe-area-inset-bottom) * .4); transition: translate .4s var(--ease);
  }
  .dock .btn { --h: 48px; padding: 0 12px; }
  .dock.is-hidden { translate: 0 140%; }
  body { padding-bottom: 76px; }
}

/* ---------- Odhalení při scrollu ---------- */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.reveal.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; translate: none; } }

/* Hero intro: close-up roof → whole roof → parks aside; dots scatter on scroll (main.js) */
.hero { --p: 0; }
.hero .wrap { position: relative; }
.hero .eyebrow { position: absolute; top: 0; right: var(--pad); z-index: 2; margin: 0; max-width: 210px; justify-content: flex-end; text-align: right; line-height: 1.5; }
.hero__ch { opacity: calc(1 - var(--p)); transform: translate(calc(var(--sx, 0) * var(--p) * 1px), calc(var(--sy, 0) * var(--p) * 1px)) rotate(calc(var(--sr, 0) * var(--p) * 1deg)); }
.hero { position: relative; isolation: isolate; }
.hero > .wrap { z-index: 1; }
.hero__bg { position: absolute; z-index: 0; left: 50%; bottom: 70px; width: min(1320px, 115%); max-width: none; height: auto; transform: translateX(-50%); pointer-events: none; user-select: none;
  translate: 0 calc(var(--p) * 60px); opacity: calc(1 - var(--p) * .6); }
html.intro .nav, html.intro .hero .eyebrow, html.intro .hero__text, html.intro .hero__cta, html.intro .trust, html.intro .ticker { opacity: 0; }
@media (max-width: 640px) {
  .hero .eyebrow { max-width: 140px; font-size: 10.5px; }
  .hero .eyebrow { position: static; display: flex; margin: 0 0 18px auto; }
  .hero__bg { width: 190%; bottom: 40px; }
}

/* Hero v3: full first screen, drawing spills into the next block, lighter pixels */
.hero { overflow: visible; overflow-x: clip; }
.hero > .wrap { min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(36px, 6vh, 72px) clamp(12px, 2vh, 24px); }
.hero .ticker { position: relative; z-index: 1; }
.hero + .section { position: relative; z-index: 1; }
.hero .hero__bg { bottom: auto; top: -2%; }
@media (max-width: 640px) {
  .hero .hero__bg { top: 12%; }
}
@media (max-width: 640px) {
  .hero__txt { font-size: 19vw; }
}

/* ---------- Membrána: tři kroky při rolování ---------- */
.mem { position: relative; background: var(--ink); color: var(--bg); isolation: isolate; }
.mem__pin { position: relative; overflow: hidden; }
.mem__pin::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(238, 235, 229, .04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(238, 235, 229, .04) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(55% 50% at 80% 30%, rgba(159, 224, 185, .13), transparent 70%);
}
.mem__in {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr;
  grid-template-areas: "head fig" "steps fig"; column-gap: clamp(28px, 5vw, 80px);
  max-width: var(--max); margin-inline: auto; padding: clamp(72px, 9vw, 120px) var(--pad);
}
.mem--live { height: calc(100svh + 240vh); }
.mem--live .mem__pin { position: sticky; top: 0; height: 100svh; }
.mem--live .mem__in { height: 100%; padding-block: 92px 40px; }
.mem .eyebrow::before { background: var(--bg); }
.mem__head { grid-area: head; align-self: end; }
.mem .h2 { font-size: clamp(28px, 3.7vw, 52px); max-width: 14ch; }
.mem__fig { grid-area: fig; margin: 0; align-self: center; min-width: 0; }
.mem__fig svg { display: block; width: 100%; height: auto; max-height: 62svh; overflow: visible; }

/* kroky: svislá časová osa */
.mem__steps { grid-area: steps; align-self: start; list-style: none; margin: clamp(20px, 3vw, 36px) 0 0; padding: 0; }
.mem__step { position: relative; }
.mem__step::before, .mem__step::after { content: ""; position: absolute; left: 15px; top: 43px; bottom: -11px; width: 2px; }
.mem__step::before { background: rgba(238, 235, 229, .16); }
.mem__step::after { background: var(--holo); transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease); }
.mem__step.is-done::after { transform: scaleY(1); }
.mem__step:last-child::before, .mem__step:last-child::after { display: none; }
.mem__step > button {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 16px; width: 100%; cursor: pointer; padding: 11px 0;
  font-weight: 700; font-size: clamp(17px, 1.7vw, 22px); letter-spacing: -.02em; color: rgba(238, 235, 229, .45); transition: color .4s var(--ease);
}
.mem__step.is-done > button { color: rgba(238, 235, 229, .75); }
.mem__step.is-active > button { color: var(--bg); }
.mem__step > button:hover { color: var(--bg); }
.mem__step > button:focus-visible { outline: 2px solid var(--bg); outline-offset: 2px; border-radius: 6px; }
.mem__n {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 13px; background: var(--ink);
  box-shadow: inset 0 0 0 1.5px currentColor; transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.is-active .mem__n { background: var(--bg); color: var(--ink); box-shadow: none; }
.mem__more {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .5s var(--ease), opacity .4s var(--ease), visibility 0s .5s;
}
.is-active .mem__more { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
.mem__more > div { min-height: 0; overflow: hidden; padding-left: 48px; }
.mem__more p { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: rgba(238, 235, 229, .72); max-width: 40ch; text-wrap: pretty; }
/* bez JS a při omezeném pohybu: celý výkres a všechny kroky najednou */
.mem:not(.mem--live) .mem__more { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.mem:not(.mem--live) .mem__step > button { color: var(--bg); }
.mem:not(.mem--live) .mem__step::after { transform: scaleY(1); }

/* výkres: vrstvy naskakují po krocích */
.mem[data-step] .l, .mem[data-step] .dr { opacity: 0; }
.mem .l { transition: opacity .55s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.mem[data-step] .l { transform: translateY(14px); }
.mem .dr { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease), opacity .3s; transition-delay: calc(var(--i, 0) * 110ms); }
.mem .l.on, .mem .dr.on { opacity: 1; }
.mem .l.on { transform: none; }
.mem .dr.on { stroke-dashoffset: 0; }
.mem:not([data-step]) .dr { stroke-dashoffset: 0; }
.mem:not([data-step]) .l[data-e] { display: none; }
.mem .l.cur { animation: mem-pop 1.3s var(--ease); }
@keyframes mem-pop { 35% { filter: drop-shadow(0 0 7px rgba(238, 235, 229, .5)); } }
.mem .spark { animation: mem-weld 1.3s ease-in-out infinite alternate; }
@keyframes mem-weld { to { transform: translate(60px, -2.7px); } }
.mem .drop { animation: mem-drop 1.7s cubic-bezier(.5, 0, 1, .6) infinite; }
.mem .drop--2 { animation-delay: .85s; }
@keyframes mem-drop { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .9; } 100% { transform: translateY(58px); opacity: 0; } }

@media (max-width: 900px) {
  .mem__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "fig" "steps"; row-gap: 14px; }
  .mem--live .mem__in { padding-block: 84px 24px; align-content: center; }
  .mem .h2 { max-width: none; }
  .mem__head .eyebrow { margin-bottom: 10px; }
  .mem__fig { width: 100%; max-width: 460px; justify-self: center; }
  .mem__fig svg { max-height: 31svh; }
  .mem__steps { margin-top: 0; }
  .mem__step > button { padding-block: 8px; }
  .mem__step::before, .mem__step::after { top: 40px; bottom: -8px; }
  .mem__more p { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .mem .l, .mem .dr, .mem__more, .mem__n, .mem__step::after { transition: none; }
  .mem .l.cur, .mem .spark, .mem .drop { animation: none; }
}

/* ---------- Realizace: obří slovo a dvě řady fotek, rolování je posouvá do stran ---------- */
.re-obal {
  --f: min(clamp(54px, 13.4vw, 190px), 28svh); /* stejná velikost jako hlavní nadpis nahoře */
  --vyska: min(clamp(200px, 18vw, 300px), calc((100svh - var(--f) * .62 - 12.5rem) / 2));
  overflow: hidden; padding-block: clamp(64px, 8vw, 120px);
}
@media (max-width: 640px) { .re-obal { --f: min(19vw, calc((100vw - 2 * var(--pad)) / 5.1), 28svh); } }
.re--live { height: calc(100svh + 200vh); padding: 0; overflow: visible; }
.re-pin { display: flex; flex-direction: column; justify-content: center; }
.re--live .re-pin { position: sticky; top: 0; height: 100svh; padding-top: 5rem; }
.re-slovo {
  position: relative; z-index: 10; margin: 0; text-align: center; pointer-events: none; user-select: none;
  font-weight: 800; text-transform: uppercase; letter-spacing: -.045em; line-height: .86; font-size: var(--f); white-space: nowrap;
}
/* přes celou šířku okna; svisle nic neořezává, ať zvětšená karta může přesahovat */
.re-pas { position: relative; left: 50%; width: 100vw; margin-left: -50vw; margin-top: calc(var(--f) * -.18); overflow-x: auto; scrollbar-width: none; }
.re-pas::-webkit-scrollbar { display: none; }
.re--live .re-pas { overflow-x: clip; }
.re-rada { position: relative; display: flex; width: max-content; gap: 6px; padding: 14px 6px; will-change: transform; }
.re-rada + .re-rada { margin-top: -4px; }
.re--live .re-rada { padding-inline: 0; }
.re-obal:not(.re--live) .re-karta[aria-hidden] { display: none; }
.re-rada:has(.re-karta:hover) { z-index: 20; }
.re-karta {
  position: relative; flex: none; margin: 0; width: calc(var(--vyska) * var(--k, 1)); height: var(--vyska); background: var(--paper); padding: 4px;
  box-shadow: 0 18px 36px -20px rgba(31, 21, 15, .55); transform: rotate(var(--r0, 0deg));
  transition: scale .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease;
}
.re-obal:not(.re--live) .re-karta { --vyska: clamp(190px, 26vw, 300px); }
.re-karta img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; background: var(--card); }
@media (min-width: 640px) { .re-karta { padding: 6px; } .re-rada { gap: 10px; } }
@media (hover: hover) { .re-karta:hover { scale: 1.3; z-index: 2; box-shadow: 0 44px 80px -26px rgba(31, 21, 15, .72); } }
.re-pod { position: relative; z-index: 5; margin: clamp(10px, 1.6vw, 20px) 0 0; padding-inline: var(--pad); text-align: center; font-size: 14px; color: var(--ink-2); }
.re-pod a { font-weight: 700; color: var(--ink); text-underline-offset: 3px; }
