/* Rekonstrukce Bytů, verze 2: podle loga RB z cihel.
   Barvy z logo listu: grafit, cihla, krémová, šedá, zelená (zelená jen pro akci).
   Tvar: ovládací prvky 12 px (jako tlačítka v brandu), plochy a fotky 0 px (jako cihly). */

:root {
  --ink: #1B1917;
  --ink-2: #24211E;
  --ink-3: #2E2A26;
  --line-d: #3E3833;

  --cream: #EFE8DC;
  --cream-2: #E4DACA;
  --paper: #F7F3EA;
  --field: #FFFDF8;

  --txt-d: #B9B1A4;      /* vedlejší text na grafitu, 8,3 : 1 */
  --txt-c: #5A554D;      /* vedlejší text na krémové, 6,1 : 1 */
  --txt-c2: #4E4943;     /* vedlejší text na písku */

  --brick: #BE5114;      /* barva znaku v logu: velké nápisy a grafika (3,7 až 3,9 : 1) */
  --brick-deep: #A4440F; /* plochy s malým krémovým textem, 5,1 : 1 */
  --brick-lt: #E8803F;   /* malý cihlový text na grafitu, 6,3 : 1 */
  --green: #7EB321;      /* jen akce: zavolat, odeslat, zaškrtnuto */
  --green-h: #8FC72E;
  --stone: #8E8B85;

  --err: #B42318;
  --err-bg: #FDEEEB;
  --edge: #756F66;       /* okraj polí, 4,5 : 1 na papíru */

  --f-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --r: 12px;
  --gut: 24px;
  --maxw: 1296px;
  --bar: 72px;
  --sp: clamp(72px, 9vw, 128px);
  /* pohyb: vstup ease-out 200 ms, odchod o pětinu kratší (160 ms), přesuny ease-in-out, stisk 150 ms, bez odrazu */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --in: 200ms;
  --out: 160ms;
  --press: 150ms;
}

/* témata sekcí */
.t-dark  { --bg: var(--ink);        --fg: var(--cream); --fg2: var(--txt-d);  --line: var(--line-d);            --ring: var(--green); --acc: var(--brick-lt); --surf: var(--ink-2); }
.t-cream { --bg: var(--cream);      --fg: var(--ink);   --fg2: var(--txt-c);  --line: rgba(27, 25, 23, .18);    --ring: var(--ink);   --acc: var(--brick-deep); --surf: var(--cream-2); }
.t-brick { --bg: var(--brick-deep); --fg: var(--cream); --fg2: #F4E1CF;       --line: rgba(239, 232, 220, .32); --ring: var(--cream); --acc: var(--cream);   --surf: #8F3A0C; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ring, var(--green)); outline-offset: 3px; }
::selection { background: var(--green); color: var(--ink); }

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--green); color: var(--ink); padding: 12px 18px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }

.sec {
  background: var(--bg) url("../img/zrno.png") 0 0 / 160px 160px;
  color: var(--fg);
  padding-block: var(--sp);
  scroll-margin-top: var(--bar);
}

/* ikony (Tabler, obrysové) jako maska, barva = currentColor */
.ico {
  display: inline-block; flex: none;
  width: 1.2em; height: 1.2em;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}


/* ikony: cesta je tady, aby se počítala od stylu */
.i-arrow-up-right { --i: url("../img/ikony/arrow-up-right.svg"); }
.i-brush { --i: url("../img/ikony/brush.svg"); }
.i-building-cottage { --i: url("../img/ikony/building-cottage.svg"); }
.i-chevron-down { --i: url("../img/ikony/chevron-down.svg"); }
.i-hammer { --i: url("../img/ikony/hammer.svg"); }
.i-layout-board { --i: url("../img/ikony/layout-board.svg"); }
.i-layout-grid { --i: url("../img/ikony/layout-grid.svg"); }
.i-layout-rows { --i: url("../img/ikony/layout-rows.svg"); }
.i-map-pin { --i: url("../img/ikony/map-pin.svg"); }
.i-phone-call { --i: url("../img/ikony/phone-call.svg"); }
.i-ruler-measure { --i: url("../img/ikony/ruler-measure.svg"); }
.i-trowel { --i: url("../img/ikony/trowel.svg"); }
.i-truck { --i: url("../img/ikony/truck.svg"); }
.i-wall { --i: url("../img/ikony/wall.svg"); }

/* typografie */
.h2 {
  font: 800 clamp(42px, 5.6vw, 84px)/.94 var(--f-head);
  text-transform: uppercase; letter-spacing: .004em; text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--fg2); max-width: 36em; }
.head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 46rem; }

.link {
  display: inline-block; padding-block: 12px; margin-block: -12px;
  color: inherit; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 6px;
  transition: text-decoration-color .2s, background-color .2s;
}
.link:hover { text-decoration-color: currentColor; }

/* tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border: 2px solid transparent; border-radius: var(--r);
  font: 700 21px/1 var(--f-head); letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform var(--press) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn--call { background: var(--green); color: var(--ink); }
.btn--call:hover { background: var(--green-h); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 19px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* hlavička */
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--line-d); transition: transform var(--in) var(--ease); }
.nav__in { height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; min-height: 44px; line-height: 0; }
.brand img { height: 42px; width: auto; }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav__links a {
  font: 600 20px/1 var(--f-head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--cream); padding: 12px 0; border-bottom: 3px solid transparent; transition: border-color .18s, color .18s, transform var(--press) var(--ease);
}
.nav__links a:active { transform: scale(.97); }
.nav__links:not(.has-ind) a:hover { border-bottom-color: var(--brick); }
/* jezdec pod aktivním odkazem: JS ho přesouvá (ease-in-out 200 ms, uprostřed cesty se o 12 % protáhne) */
.nav__links { position: relative; }
.nav__ind { position: absolute; left: 0; bottom: 0; width: 1px; height: 3px; background: var(--brick); transform-origin: 0 50%; opacity: 0; pointer-events: none; transition: opacity var(--out) ease; }
.nav__ind.is-on { opacity: 1; transition-duration: var(--in); }
.nav .btn { min-height: 48px; }

/* scroll scéna: hrdina, postup a výzva v jednom připnutém záběru.
   Bez JS (třída is-live) je to obyčejná sloupcová stránka: snímek, hrdina, kroky, výzva. */
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stage { position: relative; background: var(--ink); color: var(--cream); }
.stage__pin { position: relative; background: var(--ink); }
.stage__media { position: relative; }
.stage__poster { display: block; width: 100%; height: auto; }
.stage__canvas, .stage__shade, .stage__cap { display: none; }
.panel { padding: 40px var(--gut); }
.panel__in { display: grid; gap: 24px; justify-items: start; max-width: 40rem; }
.stage .cta { flex-direction: column; width: min(100%, 22rem); }
.stage .cta .btn { width: 100%; }
.stage h1 { font: 800 min(clamp(40px, 14.5cqw, 92px), 9.5svh)/1.06 var(--f-head); text-transform: uppercase; letter-spacing: .004em; text-wrap: balance; }
.panel .lead { color: var(--txt-d); font-size: clamp(17px, 5cqw, 21px); }
.scrollhint { display: flex; align-items: center; gap: 10px; color: var(--txt-d); font-size: 16px; }
.scrollhint .ico { color: var(--brick-lt); }
.rail { display: none; }
.deck { display: grid; gap: 8px; width: 100%; }
.scard { display: grid; grid-template-columns: clamp(52px, 4.6vw, 76px) 1fr; gap: 16px; padding: 22px 24px; background: var(--ink-2); border: 1px solid var(--line-d); border-left: 4px solid var(--brick); }
.scard__n { font: 800 clamp(56px, 5.4vw, 88px)/.8 var(--f-head); color: var(--brick); }
.scard h3 { font: 700 clamp(26px, 2.6vw, 38px)/1 var(--f-head); text-transform: uppercase; letter-spacing: .01em; }
.scard p { margin-top: 8px; color: var(--txt-d); font-size: 17px; line-height: 1.45; max-width: 28em; }
.end__h { font: 800 clamp(40px, 11.5cqw, 76px)/1 var(--f-head); text-transform: uppercase; letter-spacing: .004em; text-wrap: balance; }

/* připnutý režim (zapíná stage.js, jakmile běží GSAP) */
.stage.is-live { --stage-h: max(560px, calc(100svh - var(--bar))); }
@media (max-height: 560px) { .stage.is-live { --stage-h: calc(100svh - var(--bar)); } }   /* telefon naležato: záběr nesmí být vyšší než okno */
.stage.is-live .stage__pin { height: var(--stage-h); overflow: hidden; }
.stage.is-live .stage__media { position: absolute; inset: 0; }
.stage.is-live .stage__poster { position: absolute; left: var(--ix, 0px); top: var(--iy, 0px); width: var(--iw, 100%); height: var(--ih, auto); }
.stage.is-live .stage__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s ease; }
.stage.is-live .stage__canvas.is-ready { opacity: 1; }
.stage.is-live .stage__shade { display: block; position: absolute; inset: 0; pointer-events: none; }
.stage.is-live:not(.is-wide) .stage__shade { background: linear-gradient(to bottom, rgba(27, 25, 23, 0) calc(var(--rb, 340px) + 6px), var(--ink) calc(var(--rb, 340px) + 96px)); }
.stage.is-live .stage__cap { display: block; position: absolute; right: var(--gut); bottom: 12px; margin: 0; z-index: 2; color: var(--txt-d); font-size: 14px; line-height: 1.2; }
.stage.is-live .stage__panels { position: absolute; inset: 0; pointer-events: none; }
.stage.is-live .panel {
  position: absolute; top: var(--pt, 0px); bottom: 0; left: var(--pl, var(--gut)); width: var(--pw, auto); right: var(--pr, auto);
  display: flex; flex-direction: column; justify-content: center; padding: 0 0 44px;
  container-type: inline-size; pointer-events: auto;
}
.stage.is-live .panel--steps, .stage.is-live .panel--end { opacity: 0; }
.stage.is-live .panel--steps { pointer-events: none; }
.stage.is-live .panel__in { max-width: none; width: 100%; will-change: transform, opacity; }
.stage.is-live .panel--steps .panel__in { gap: 16px; }
.stage.is-live .deck { position: relative; display: block; height: var(--deck-h, 250px); margin-top: 36px; }
.stage.is-live .scard { position: absolute; left: 0; right: 0; top: 0; min-height: calc(var(--deck-h, 250px) - 4px); align-content: start; transform-origin: 50% 0; will-change: transform, opacity; opacity: 0; }
.stage.is-live .scard > * { opacity: var(--ct, 1); }   /* starší karty ve svazku zůstanou jen deskou, text se neprolíná */
.stage.is-live .rail { display: flex; gap: 8px; width: 100%; }
.stage.is-live .rail i { flex: 1; height: 6px; background: var(--line-d); position: relative; overflow: hidden; }
.stage.is-live .rail i::after { content: ""; position: absolute; inset: 0; background: var(--brick); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; }
.stage.is-live.is-wide { --pl: max(var(--gut), calc((100vw - var(--maxw)) / 2)); --pw: calc(var(--zone, 40vw) - var(--pl) - 40px); }
.stage.is-live:not(.is-wide) { --pr: var(--gut); --pt: calc(var(--rb, 340px) + 22px); }
.stage.is-live:not(.is-wide) .panel { padding-bottom: 36px; justify-content: center; }
.stage.is-live:not(.is-wide) .panel--hero { justify-content: flex-start; }
.stage.is-live:not(.is-wide) .stage__cap { right: auto; left: var(--gut); bottom: auto; top: 8px; }
@media (max-width: 600px) { .stage.is-live .panel--hero .lead { font-size: 16px; line-height: 1.45; } }
.dot { width: .42em; height: .42em; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 .1em rgba(126, 179, 33, .28); }

/* pás faktů */
.trust { padding-block: 0; }
.trust__in { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; }
.fact { display: flex; align-items: center; gap: 14px; padding: 30px clamp(16px, 2vw, 32px); white-space: nowrap; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact:last-child { padding-right: 0; }
.fact .ico { width: 36px; height: 36px; }
.fact b { font: 700 clamp(22px, 1.95vw, 28px)/1.02 var(--f-head); text-transform: uppercase; letter-spacing: .015em; }


/* Co dělám: vzorník ve vazbě cihel (mezera 8 px je spára) */
.bond { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.cell {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(20px, 2.2vw, 32px); min-height: 280px;
  background: var(--c-bg); color: var(--c-fg);
  text-decoration: none;
  transition: transform var(--out) var(--ease), background-color .2s;
}
.cell--ink   { --c-bg: var(--ink);        --c-fg: var(--cream); --c-fg2: var(--txt-d); --c-ico: var(--brick-lt); }
.cell--brick { --c-bg: var(--brick-deep); --c-fg: var(--cream); --c-fg2: #F4E1CF;      --c-ico: var(--cream); }
.cell--sand  { --c-bg: var(--cream-2);    --c-fg: var(--ink);   --c-fg2: var(--txt-c2); --c-ico: var(--brick-deep); }
.cell--line  { --c-bg: transparent;       --c-fg: var(--ink);   --c-fg2: var(--txt-c2); --c-ico: var(--brick-deep); box-shadow: inset 0 0 0 2px var(--ink); }
.cell:hover { transform: translateY(-4px); transition-duration: var(--in), .2s; }
.cell:active { transform: scale(.97); transition-duration: var(--press), .2s; }
.cell--ink:hover { background: var(--ink-3); }
.cell--brick:hover { background: #AB4610; }
.cell--sand:hover { background: #DCD0BC; }
.cell__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cell__ico { width: 44px; height: 44px; color: var(--c-ico); }
.cell__arr { width: 28px; height: 28px; color: var(--c-fg); opacity: .7; transition: transform var(--out) var(--ease-io), opacity .2s; }
.cell:hover .cell__arr { transform: translate(4px, -4px); opacity: 1; }
.cell h3 { font: 700 clamp(28px, 2.7vw, 42px)/1 var(--f-head); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.cell p { margin-top: 10px; color: var(--c-fg2); max-width: 26em; font-size: 17px; }
.cell__call { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font: 700 24px/1 var(--f-head); letter-spacing: .04em; text-transform: uppercase; }
.cell__photo { position: absolute; inset: 0; z-index: -2; }
.cell__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 62%; }
.cell--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(27, 25, 23, .94) 8%, rgba(27, 25, 23, .55) 52%, rgba(27, 25, 23, .15)); }
.c1 { grid-column: span 8; min-height: 380px; }
.c2 { grid-column: span 4; min-height: 380px; }
.c3 { grid-column: span 3; min-height: 300px; }
.c4 { grid-column: span 6; min-height: 300px; }
.c5 { grid-column: span 3; min-height: 300px; }
.c6 { grid-column: span 5; min-height: 280px; }
.c7 { grid-column: span 7; min-height: 280px; }

/* cena */
.price__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 16px; align-items: center; }
.price__txt { grid-column: 1 / 6; display: grid; gap: 24px; }
.price__fig { grid-column: 6 / 13; }
.eq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.eq span { font: 700 clamp(20px, 1.8vw, 24px)/1 var(--f-head); text-transform: uppercase; letter-spacing: .03em; padding: 12px 14px; border: 1.5px solid var(--line); background: var(--ink-2); }
.eq span:last-child { border-color: var(--green); }
.eq i { font: 700 28px/1 var(--f-head); font-style: normal; color: var(--brick-lt); }
.price__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; }
.fig { background: var(--ink-2); border: 1px solid var(--line); padding: clamp(14px, 2.4vw, 32px); }
.fig svg { width: 100%; height: auto; }
.fig figcaption { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--txt-d); font-size: 16px; }
.wall-fill { fill: var(--ink-3); }
.row { stroke: var(--brick); stroke-width: 2; fill: none; }
.wall-edge { stroke: var(--cream); stroke-width: 3; fill: none; }
.dim { stroke: var(--cream); stroke-width: 2.5; fill: none; }
.dim-t { fill: var(--cream); font: 700 28px var(--f-head); letter-spacing: .03em; }
.chip { fill: var(--cream); }
.chip-t { fill: var(--ink); font: 800 50px var(--f-head); letter-spacing: .02em; }

/* ze stavby: vodorovný akordeon, záběr se rozevře najetím nebo klepnutím */
.slices { display: flex; gap: 8px; height: clamp(420px, 44vw, 600px); transform-origin: 50% 100%; }
.slice {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; padding: 0; border: 0; border-radius: 0;
  background: var(--ink-3); color: var(--cream); cursor: pointer; text-align: left;
  transition: flex-grow var(--in) var(--ease-io), transform var(--press) var(--ease);
}
.slice:active { transform: scale(.985); }
.slice.is-on { flex-grow: 4.4; }
.slice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--out) var(--ease), filter var(--out) ease; filter: brightness(.62) saturate(.85); }
.slice:hover img { transform: scale(1.04); transition-duration: var(--in); }
.slice.is-on img { filter: none; transition-duration: var(--in); }
.slice__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 22px 20px;
  background: linear-gradient(to top, rgba(27, 25, 23, .92), rgba(27, 25, 23, 0));
  font: 700 clamp(22px, 2vw, 30px)/1.05 var(--f-head); text-transform: uppercase; letter-spacing: .02em;
  opacity: 0; transform: translateY(8px); transition: opacity var(--out) ease, transform var(--out) var(--ease);
}
.slice.is-on .slice__cap { opacity: 1; transform: none; transition: opacity var(--in) ease 60ms, transform var(--in) var(--ease) 60ms; }

/* Plzeň a okolí, dotazy */
.area__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 16px; align-items: start; }
.area__big { grid-column: 1 / 7; display: grid; gap: 32px; }
.area__big h2 { font: 800 clamp(76px, 12.4vw, 190px)/.84 var(--f-head); text-transform: uppercase; color: var(--brick); letter-spacing: .004em; }
.area__big h2 span { display: block; }
.area__big h2 span + span { padding-left: .22em; }
.area__txt { display: grid; gap: 18px; justify-items: start; }
.faq { grid-column: 7 / 13; }
.faq__h { font: 800 clamp(34px, 3.4vw, 48px)/1 var(--f-head); text-transform: uppercase; margin-bottom: 20px; }
.q { border-top: 1px solid var(--line); }
.q:last-child { border-bottom: 1px solid var(--line); }
.q summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 14px 0; cursor: pointer;
  font: 700 clamp(24px, 2.2vw, 30px)/1.05 var(--f-head); text-transform: uppercase; letter-spacing: .01em;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: ""; flex: none; width: 28px; height: 28px; background: currentColor;
  -webkit-mask: url("../img/ikony/chevron-down.svg") center / contain no-repeat; mask: url("../img/ikony/chevron-down.svg") center / contain no-repeat;
  transition: transform var(--out) var(--ease-io);
}
.q[open] summary::after { transform: rotate(180deg); transition-duration: var(--in); }
.q summary { transition: transform var(--press) var(--ease); transform-origin: 0 50%; }
.q summary:active { transform: scale(.985); }
.q__a { padding: 0 0 24px; color: var(--fg2); max-width: 32em; }

/* poptávka */
.ask__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 16px; align-items: start; }
.ask__txt { grid-column: 1 / 6; display: grid; gap: 24px; align-content: start; position: sticky; top: calc(var(--bar) + 32px); }
.ask__tel { display: grid; gap: 6px; }
.ask__tel span { color: var(--fg2); }
.tel {
  font: 800 clamp(44px, 5vw, 72px)/1 var(--f-head); letter-spacing: .01em; text-decoration: none; color: var(--cream);
  border-bottom: 4px solid var(--green); width: fit-content; transition: color .18s, border-color .18s;
}
.tel:hover { color: var(--green); }
.card { grid-column: 6 / 13; background: var(--paper); color: var(--ink); padding: clamp(22px, 3.2vw, 44px); --ring: var(--ink); --fg2: var(--txt-c); --line: rgba(27, 25, 23, .18); }
.form { display: grid; gap: 28px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font: 800 clamp(28px, 2.6vw, 36px)/1 var(--f-head); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 6px; }
.hint { color: var(--txt-c); font-size: 16px; }
.small { color: var(--txt-c); font-size: 15px; line-height: 1.45; }
.small a { color: inherit; }
.opt { font-weight: 400; color: var(--txt-c); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tile__in {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px;
  background: var(--field); border: 1.5px solid var(--edge); border-radius: var(--r);
  font-weight: 500; line-height: 1.15; transition: background-color var(--out), color var(--out), border-color var(--out), transform var(--press) var(--ease);
}
.tile__in i { flex: none; width: 22px; height: 22px; border: 2px solid var(--edge); border-radius: 6px; background: var(--field); display: grid; place-items: center; transition: background-color var(--out), border-color var(--out); }
/* zaškrtnutí: ikona se prolne a zaostří (opacity, blur 2 px na 0), pozadí a barva přejdou plynule a překryjí se */
.tile__in i::after { content: ""; width: 14px; height: 14px; background: var(--ink); -webkit-mask: url("../img/ikony/check.svg") center / contain no-repeat; mask: url("../img/ikony/check.svg") center / contain no-repeat; opacity: 0; filter: blur(2px); transform: scale(.6); transition: transform var(--out) var(--ease), opacity var(--out) ease, filter var(--out) ease; }
.tile:hover .tile__in { border-color: var(--ink); }
.tile input:checked + .tile__in { background: var(--ink); color: var(--cream); border-color: var(--ink); transition-duration: var(--in); }
.tile input:checked + .tile__in i { background: var(--green); border-color: var(--green); transition-duration: var(--in); }
.tile input:checked + .tile__in i::after { opacity: 1; filter: blur(0); transform: scale(1); transition-duration: var(--in); }
.tile input:active + .tile__in { transform: scale(.97); transition-duration: var(--press); }
.tile input:focus-visible + .tile__in { outline: 3px solid var(--ink); outline-offset: 3px; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-top: 14px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 600; font-size: 17px; }
.field input, .field textarea {
  width: 100%; min-height: 56px; padding: 12px 16px;
  background: var(--field); border: 1.5px solid var(--edge); border-radius: var(--r);
  transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder { color: #6B655B; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--ink); outline: 3px solid var(--ink); outline-offset: 2px; }
.err { display: none; align-items: center; gap: 8px; color: var(--err); font-weight: 600; font-size: 16px; line-height: 1.3; }
.err::before { content: "!"; flex: none; width: 20px; height: 20px; display: grid; place-items: center; background: var(--err); color: #fff; font: 800 14px/1 var(--f-body); border-radius: 4px; }
.has-error > .err, .has-error .err { display: flex; }
.field.has-error input { border: 2px solid var(--err); background: var(--err-bg); }
fieldset.has-error .tile__in { border-color: var(--err); }
.more summary { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 600; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more .pm { width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 6px; position: relative; flex: none; }
.more .pm::before, .more .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.more .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--out) var(--ease-io), opacity var(--out) ease, filter var(--out) ease; }
.more[open] .pm::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; filter: blur(2px); transition-duration: var(--in); }
.more summary { transition: transform var(--press) var(--ease); transform-origin: 0 50%; }
.more summary:active { transform: scale(.97); }
.more .field { margin-top: 12px; }
.form__foot { display: grid; gap: 14px; }
.form__foot .btn { width: 100%; min-height: 60px; font-size: 23px; }

.thanks { display: grid; gap: 18px; justify-items: start; }
.thanks h3 { font: 800 clamp(34px, 3.4vw, 48px)/1 var(--f-head); text-transform: uppercase; }
.thanks h3:focus { outline: none; }
.sum { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; width: 100%; padding: 18px 0; border-block: 1px solid var(--line); }
.sum dt { font-weight: 600; color: var(--txt-c); }
.sum dd { font-weight: 500; }

/* patička */
.foot { padding-block: clamp(56px, 7vw, 96px) 36px; position: relative; overflow: hidden; }
.foot__tel { display: block; width: fit-content; font: 800 clamp(52px, 10.4vw, 156px)/.9 var(--f-head); letter-spacing: .004em; text-decoration: none; color: var(--cream); transition: color .18s; }
.foot__tel:hover { color: var(--green); }
.foot__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.foot__mark { height: clamp(110px, 12vw, 170px); width: auto; flex: none; }
.foot__lab { display: block; margin-bottom: 14px; color: var(--txt-d); }
.foot__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line-d); }
.foot__brand { font: 800 clamp(32px, 3vw, 44px)/1 var(--f-head); letter-spacing: .01em; text-transform: uppercase; text-decoration: none; color: var(--cream); padding-block: 10px; }
.foot__brand:hover { color: var(--green); }
.foot__meta { display: grid; gap: 6px; color: var(--txt-d); font-size: 16px; text-align: right; }
.foot__meta a { color: var(--cream); padding-block: 10px; margin-block: -10px; width: fit-content; justify-self: end; }

/* lepicí lišta na telefonu */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--ink); border-top: 1px solid var(--line-d);
  transform: translateY(110%); visibility: hidden;
  transition: transform var(--out) var(--ease-io), visibility 0s var(--out);
}
.callbar.is-on { transform: none; visibility: visible; transition: transform var(--in) var(--ease), visibility 0s; }
.callbar .btn { flex: none; min-height: 52px; padding: 0 12px; font-size: 17px; letter-spacing: .02em; }
.callbar .btn--ghost { flex: 1; min-width: 0; }
.callbar .btn--ghost { color: var(--cream); }

/* pohyb */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
  @keyframes pop { from { opacity: 0; transform: scale(.95); filter: blur(2px); } }
  @keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
  @keyframes pulse { from { box-shadow: 0 0 0 0 rgba(126, 179, 33, .6); } to { box-shadow: 0 0 0 14px rgba(126, 179, 33, 0); } }
  /* příchod: ease-out 200 ms, řádky a položky za sebou po 30 ms (--index). Animace s fill backwards,
     takže po dojezdu nezůstane žádný transform a funguje najetí i stisk. */
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(12px); }
  .js [data-reveal].is-in { animation: rise var(--in) var(--ease) backwards; animation-delay: calc(var(--index, 0) * 30ms); }
  .js .card.is-in .tile { animation: rise var(--in) var(--ease) backwards; animation-delay: calc(var(--index, 0) * 30ms + 120ms); }
  .js .faq.is-in .q { animation: rise var(--in) var(--ease) backwards; animation-delay: calc(var(--index, 0) * 30ms + 90ms); }
  .js .panel--hero [data-load] { animation: rise var(--in) var(--ease) backwards; animation-delay: calc(var(--index, 0) * 30ms + 40ms); }
  /* stavy: poděkování naskočí z 95 % za 180 ms od horního okraje, formulář odchází o pětinu rychleji */
  .thanks:not([hidden]) { animation: pop 180ms var(--ease); transform-origin: 50% 0; }
  #form.is-out, .thanks.is-out { opacity: 0; transform: scale(.98); filter: blur(2px); pointer-events: none; transform-origin: 50% 0; transition: opacity var(--out) ease, transform var(--out) var(--ease-io), filter var(--out) ease; }
  .thanks:not([hidden]) .thanks__ok { animation: pulse 600ms var(--ease) 120ms; }
  .is-pulse { animation: pulse 600ms var(--ease); }
  .has-error > .err, .has-error .err { animation: drop var(--in) var(--ease); }
  .more[open] > .field { animation: rise var(--in) var(--ease); }
  .js .wall .row { opacity: 0; transform: translateY(8px); transform-box: fill-box; }
  .js .wall.is-in .row { opacity: 1; transform: none; transition: opacity .35s ease, transform .5s var(--ease); transition-delay: calc(var(--i) * 70ms + .15s); }
  .js .wall .dim { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .wall.is-in .dim { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease) 1s; }
  .js .wall .dim-t, .js .wall .chip, .js .wall .chip-t { opacity: 0; }
  .js .wall.is-in .dim-t, .js .wall.is-in .chip, .js .wall.is-in .chip-t { opacity: 1; transition: opacity .5s ease 1.5s; }
}
/* otevření odpovědi na dotaz: výška a průhlednost (Chrome 131+, jinde se jen přepne) */
@media (prefers-reduced-motion: no-preference) {
  @supports selector(::details-content) {
    :root { interpolate-size: allow-keywords; }
    .q::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size var(--out) var(--ease-io), opacity var(--out) ease, content-visibility var(--out) allow-discrete; }
    .q[open]::details-content { block-size: auto; opacity: 1; transition-duration: var(--in); transition-timing-function: var(--ease), ease, ease; }
  }
}
.thanks__ok { width: 40px; height: 40px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.thanks__ok::after { content: ""; width: 22px; height: 22px; background: var(--ink); -webkit-mask: url("../img/ikony/check.svg") center / contain no-repeat; mask: url("../img/ikony/check.svg") center / contain no-repeat; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-delay: 0s !important; scroll-behavior: auto !important; }
  .cell:hover { transform: none; }
}

/* responzivita */
@media (max-width: 1100px) {
  .price__txt { grid-column: 1 / 13; }
  .price__fig { grid-column: 1 / 13; }
  .area__big, .faq { grid-column: 1 / 13; }
  .ask__txt { grid-column: 1 / 13; position: static; }
  .card { grid-column: 1 / 13; }
  .nav__links { display: none; }
  .trust__in { grid-template-columns: 1fr 1fr; }
  .fact, .fact:first-child, .fact:last-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); white-space: normal; }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 879px) {
  :root { --bar: 64px; --gut: 20px; }
  .brand img { height: 36px; }
  .nav .btn { min-height: 44px; padding: 0 16px; font-size: 19px; }
  .nav-num { display: none; }
  .bar-on .nav { transform: translateY(-100%); transition-duration: var(--out); transition-timing-function: var(--ease-io); }
  .cta .btn { flex: 1 1 100%; }
  .stage .cta .btn { flex: none; }
  .stage.is-live .cta { gap: 10px; }
  .stage.is-live .cta .btn { min-height: 52px; }
  .stage.is-live .panel__in { gap: 14px; }
  .stage.is-live .scrollhint { display: none; }
  .stage h1 { font-size: min(clamp(40px, 13cqw, 92px), 9.5svh); }
  .stage.is-live .scard { padding: 18px 16px 18px 14px; gap: 12px; grid-template-columns: 48px 1fr; }
  .stage.is-live .scard h3 { font-size: 28px; }
  .stage.is-live .scard p { font-size: 17px; margin-top: 8px; }
  .stage.is-live .scard__n { font-size: 60px; }
  .stage.is-live .deck { margin-top: 30px; }
  .bond { grid-template-columns: 1fr 1fr; }
  .c1, .c2, .c4, .c6, .c7 { grid-column: span 2; }
  .c3, .c5 { grid-column: span 1; }
  .c3 { order: 3; } .c5 { order: 4; } .c4 { order: 5; } .c6 { order: 6; } .c7 { order: 7; }
  .cell, .c1, .c2, .c3, .c4, .c5, .c6, .c7 { min-height: 0; gap: 20px; padding: 18px; }
  .c1 { min-height: 300px; padding: 20px; }
  .c3, .c5 { min-height: 188px; }
  .c3 h3, .c5 h3 { font-size: 27px; }
  .c3 p, .c5 p { font-size: 16px; }
  /* široké karty jako řádky (ikona, text, šipka): sedm karet pod sebou byla zbytečně dlouhá cesta k poptávce */
  .c2, .c4, .c6 { display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; align-items: center; column-gap: 16px; }
  .c2 .cell__top, .c4 .cell__top, .c6 .cell__top { display: contents; }
  .c2 .cell__ico, .c4 .cell__ico, .c6 .cell__ico { grid-column: 1; grid-row: 1; }
  .c2 .cell__arr, .c4 .cell__arr, .c6 .cell__arr { grid-column: 3; grid-row: 1; }
  .c2 > div:last-child, .c4 > div:last-child, .c6 > div:last-child { grid-column: 2; grid-row: 1; }
  .c2 h3, .c4 h3, .c6 h3 { font-size: 26px; }
  .c2 p, .c4 p, .c6 p { margin-top: 4px; font-size: 16px; }
  .dim-t { font-size: 42px; }
  .chip-t { font-size: 74px; }
  .eq { flex-wrap: nowrap; gap: 6px; }
  .eq span { padding: 9px 9px; font-size: 18px; }
  .eq i { font-size: 22px; }
  .slices { flex-direction: column; height: auto; }
  .slice, .slice.is-on { flex: none; height: 240px; }
  .slice img, .slice.is-on img { filter: none; }
  .slice__cap { opacity: 1; transform: none; padding-top: 56px; }
  .area__big h2 { font-size: clamp(72px, 24vw, 160px); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:last-child { grid-column: 1 / -1; }
  .fields { grid-template-columns: 1fr; }
  .callbar { display: flex; }
  .foot { padding-bottom: calc(36px + 76px); }
  .foot__meta { text-align: left; }
  .foot__meta a { justify-self: start; }
  .foot__mark { display: none; }
}
@media (max-width: 879px) and (max-height: 700px) {
  .stage.is-live .panel--hero .lead { display: none; }
}
@media (max-height: 520px) { .stage.is-live .panel--end .lead { display: none; } }   /* telefon naležato: výzva jen nadpis a tlačítka */
/* vyšší telefony: na kroky zbývá místo, karta dostane větší písmo, ať spodek záběru nezeje prázdnotou */
@media (max-width: 879px) and (min-height: 740px) {
  .stage.is-live .scard { padding: 22px 18px 22px 14px; grid-template-columns: 58px 1fr; gap: 12px; }
  .stage.is-live .scard h3 { font-size: 31px; }
  .stage.is-live .scard p { font-size: 18px; }
  .stage.is-live .scard__n { font-size: 68px; }
}
@media (max-width: 380px) {
  .tile__in { padding: 8px 10px; gap: 8px; font-size: 16px; }
}
