/* Vzhled webu novalexstav.cz (od 30. 10. 2026; vznikl z návrhu ve www/navrh-webu/).
   Firma vepředu (fakta, reference, lidé), domy jako hlavní nabídka.
   Jazyk výkresu (kóty, půdorys, řez) jen tam, kde nese informaci. */

@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap;
  src: url('/assets/font/barlow-v13-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap;
  src: url('/assets/font/barlow-v13-latin_latin-ext-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600 900; font-display: swap;
  src: url('/assets/font/barlow-v13-latin_latin-ext-600.woff2') format('woff2'); }

:root {
  --ink: #2b231c;
  --ink-2: #6d6155;
  --ink-3: #a3978a; /* jen čáry a výplně: jako text má na béžové 2,7 : 1 */
  --ink-dim: #776b5f; /* tlumený drobný text (kóty, legenda): 4,9 : 1 na béžové, 5,2 : 1 na bílé */
  --paper: #fbf8f3;
  --stone: #f2ebdf;
  --line: #e5dccd;
  --room: #f7efe2;
  --wood: #e3c99f;
  --signal: #ff9800;
  --signal-ink: #8a4b00;
  --night: #2b231c;
  --night-2: #3a3028;

  --f-text: 'Barlow', system-ui, sans-serif;
  --f-head: 'Barlow', system-ui, sans-serif;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f-text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--signal); }
/* dvoubarevný fokus: tmavý obrys vidět na světlém pozadí, oranžový lem na tmavém (WCAG 1.4.11) */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 6rem); font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); font-weight: 600; letter-spacing: -.02em; }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.1; }
p { margin: 0; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.num { font-family: var(--f-head); font-weight: 600; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
@media (hover: none) { .hover-only { display: none; } }
p, li { text-wrap: pretty; }
.small { font-size: .9rem; }
.kicker { font-weight: 600; color: var(--signal-ink); margin-bottom: 14px; display: block; }
.contact .kicker { color: var(--signal); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: clamp(72px, 10vw, 140px) 0; }
.sec--stone { background: var(--stone); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
@media (max-width: 900px) { .sec__head { grid-template-columns: 1fr; } }

/* Tlačítka a odkazy ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 26px;
  text-align: center; line-height: 1.25;
  border: 1.5px solid currentColor; border-radius: 999px; background: transparent; text-decoration: none;
  font-weight: 600; cursor: pointer; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--go { background: var(--signal); border-color: var(--signal); color: #1b1305; }
.btn--go:hover { background: #ffab2e; border-color: #ffab2e; color: #1b1305; }
.btn--light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px; transition: background-size .3s var(--ease); }
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.more svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.more:hover svg, a:hover .more svg { transform: translateX(4px); }

/* Hlavička: nad fotkou průhledná, po odscrollování bílá ----------------------------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, color .3s; color: var(--ink); background: var(--paper); box-shadow: 0 1px 0 var(--line); }
body[data-hero] .top:not(.is-solid) { background: transparent; box-shadow: none; color: #fff; }
.top__in { display: flex; align-items: center; gap: 36px; height: 84px; }
.top__logo { position: relative; display: block; height: 38px; flex: none; }
.top__logo img { height: 38px; width: auto; transition: opacity .3s; }
.top__logo .on-photo { position: absolute; inset: 0; opacity: 0; }
body[data-hero] .top:not(.is-solid) .top__logo .on-photo { opacity: 1; }
body[data-hero] .top:not(.is-solid) .top__logo .on-paper { opacity: 0; }
.top__nav { display: flex; gap: 30px; margin-left: auto; background: inherit; }
.top__nav > a { position: relative; text-decoration: none; font-weight: 500; padding: 8px 0; opacity: .86; transition: opacity .2s; }
.top__nav > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.top__nav > a:hover, .top__nav > a[aria-current] { opacity: 1; }
.top__nav > a:hover::after, .top__nav > a[aria-current]::after { transform: scaleX(1); }
.top__cta { min-height: 44px; padding: 0 20px; }
.top__menu { display: none; background: none; border: 0; padding: 8px; min-width: 44px; min-height: 44px; cursor: pointer; color: inherit; }
/* telefon v hlavičce a v rozbaleném menu jen na mobilu (MKT-08); na počítači je vpravo „Nezávazná konzultace“ */
.top__tel, .top__nav-extra { display: none; }
.top__tel { align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center; margin-left: auto; text-decoration: none; font-weight: 600; white-space: nowrap; }
.top__tel svg { width: 22px; height: 22px; flex: none; }
body:not([data-hero]) main { padding-top: 84px; }
/* menu se vejde vedle loga a tlačítka až od 1260 px (6 položek + „Nezávazná konzultace“), užší okna mají rozbalovací menu */
@media (max-width: 1259px) {
  .top__in { gap: 8px; }
  .top__tel { display: inline-flex; }
  .top__nav { display: none; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); color: var(--ink); padding: 8px var(--gut) 24px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .top__nav.is-open { display: flex; }
  .top__nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; opacity: 1; }
  .top__nav > a::after { display: none; }
  .top__nav-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 20px; }
  .top__nav-extra .tel { font: 600 1.35rem/1.2 var(--f-head); text-decoration: none; }
  .top__menu { display: block; }
  .top__cta { display: none; }
}
@media (max-width: 520px) { .top__tel span { display: none; } }

/* Nápověda „na co kliknout“ (jako v konfigurátoru) ---------------------------------- */
.hint {
  position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: .9rem; font-weight: 500; white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: opacity .35s, transform .35s var(--ease);
}
.hint::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); animation: pulse 1.8s infinite; }
.hint.is-done { opacity: 0; transform: translateY(6px); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,152,0,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,152,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,152,0,0); } }

/* Kóta (rozměrová čára) ---------------------------------------------------------------- */
.kota { position: relative; height: 20px; margin-top: 12px; color: var(--ink-dim); font: 500 .8rem/1 var(--f-text); }
.kota::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; border-top: 1px solid currentColor; opacity: .7; }
.kota i { position: absolute; top: 4px; width: 1px; height: 12px; background: currentColor; transform: skewX(-40deg); }
.kota i:first-child { left: 1px; } .kota i:last-of-type { right: 1px; }
.kota span { position: absolute; left: 50%; top: 3px; transform: translateX(-50%); padding: 0 10px; background: #fff; }

/* Úvod: fotka přes celou obrazovku, den/večer --------------------------------------- */
.hero { position: relative; height: 100svh; min-height: 640px; max-height: 1000px; color: #fff; overflow: hidden; background: #2a3532; }
.daynight { position: absolute; inset: 0; user-select: none; touch-action: pan-y; }
.daynight img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.daynight__night { clip-path: inset(0 0 0 var(--split, 66%)); }
.daynight input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 2; }
.daynight__bar { position: absolute; top: 0; bottom: 0; left: var(--split, 66%); width: 2px; margin-left: -1px; background: rgba(255,255,255,.9); pointer-events: none; z-index: 3; }
.daynight__knob { position: absolute; top: 46%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.daynight__knob svg { width: 26px; height: 26px; }
.daynight input:focus-visible ~ .daynight__bar .daynight__knob { outline: 3px solid var(--signal); outline-offset: 3px; }
.daynight .hint { top: calc(46% + 44px); left: clamp(8.5rem, var(--split, 66%), calc(100% - 8.5rem)); transform: translateX(-50%); white-space: nowrap; }
.daynight .hint.is-done { transform: translate(-50%, 6px); }
.hero__shade { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(12,18,17,.74) 0%, rgba(12,18,17,.45) 36%, rgba(12,18,17,0) 60%),
              linear-gradient(0deg, rgba(12,18,17,.8) 0%, rgba(12,18,17,0) 34%),
              linear-gradient(180deg, rgba(12,18,17,.5) 0%, rgba(12,18,17,0) 18%); }
.hero__in { position: relative; z-index: 4; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 32px; pointer-events: none; }
.hero__in a, .hero__in button { pointer-events: auto; }
.hero h1 { max-width: 9.5em; }
.hero .lead { color: rgba(255,255,255,.88); margin-top: 22px; max-width: 30em; }
.hero__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid rgba(255,255,255,.28); }
.hero__facts div { padding: 18px 24px 0 0; font-size: .95rem; color: rgba(255,255,255,.75); }
.hero__facts b { display: block; color: #fff; font: 600 1.35rem/1.15 var(--f-head); margin-bottom: 2px; }
.hero__tag { position: absolute; right: var(--gut); top: 108px; z-index: 4; text-align: right; font-size: .85rem; color: rgba(255,255,255,.85); text-decoration: none; }
.hero__tag b { display: block; font: 600 1.05rem/1.2 var(--f-head); color: #fff; }
.hero__tag:hover b { text-decoration: underline; }
@media (max-width: 900px) {
  .hero { height: auto; min-height: 0; max-height: none; padding-top: 84px; background: var(--paper); }
  .daynight { position: relative; height: auto; aspect-ratio: 16 / 9; }
  .daynight img { object-position: 50% 50%; }
  .daynight__knob { top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .daynight .hint { top: auto; bottom: 10px; left: 50%; font-size: .8rem; padding: 7px 12px 7px 10px; }
  .hero__shade { display: none; }
  .hero__in { display: block; height: auto; padding: 32px var(--gut) 40px; color: var(--ink); }
  .hero .lead { color: var(--ink-2); }
  .hero .btn--light { color: var(--ink); border-color: var(--ink); }
  .hero__facts { grid-template-columns: 1fr 1fr; border-top-color: var(--line); gap: 0 16px; }
  .hero__facts div { color: var(--ink-2); padding-bottom: 14px; }
  .hero__facts b { color: var(--ink); }
  .hero__tag { display: none; }
  body[data-hero] .top:not(.is-solid) { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
  body[data-hero] .top:not(.is-solid) .top__logo .on-photo { opacity: 0; }
  body[data-hero] .top:not(.is-solid) .top__logo .on-paper { opacity: 1; }
}

/* Dvě nabídky: domy a stavby ---------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.pillar { position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--r); color: #fff; text-decoration: none; background: #2a3532; }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pillar:hover img { transform: scale(1.04); }
.pillar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,15,14,.9) 0%, rgba(10,15,14,.62) 34%, rgba(10,15,14,0) 66%); }
.pillar__txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(22px, 3vw, 40px); }
.pillar__txt p { color: rgba(255,255,255,.84); margin-top: 10px; max-width: 30em; }
.pillar__txt .more { margin-top: 18px; color: var(--signal); }
.pillar h3 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
@media (max-width: 800px) {
  .pillar { aspect-ratio: auto; background: var(--night); }
  .pillar img { position: relative; aspect-ratio: 16 / 9; height: auto; }
  .pillar::after { display: none; }
  .pillar__txt { position: relative; padding: 22px 22px 26px; }
}

/* Karty domů -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { min-height: 42px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 500; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.count { margin-left: auto; color: var(--ink-2); font-size: .95rem; }
.filters__range { display: flex; align-items: center; gap: 12px; margin-left: 16px; }
.filters__range input { width: 160px; height: 28px; accent-color: var(--ink); }
.filters__range #plocha-out { min-width: 7em; }
@media (max-width: 480px) {
  .filters__range { margin-left: 0; flex: 1 1 100%; }
  .filters__range input { flex: 1; width: auto; min-width: 0; }
  .filters__range #plocha-out { min-width: 0; }
}

.houses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; margin-top: 40px; }
@media (max-width: 1000px) { .houses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .houses { grid-template-columns: 1fr; } }
.house { display: block; padding: 10px 10px 20px; border-radius: var(--r); background: #fff; text-decoration: none;
  box-shadow: 0 1px 2px rgba(43,35,28,.06), 0 10px 30px rgba(43,35,28,.07); transition: box-shadow .3s, transform .3s var(--ease); }
.house:hover { box-shadow: 0 2px 4px rgba(43,35,28,.08), 0 18px 40px rgba(43,35,28,.12); transform: translateY(-2px); }
.house__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--stone); }
.house__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.house__img .is-night { opacity: 0; }
/* bez myši se večerní fotka v kartě nikdy neukáže: display:none, aby se líně načítaný obrázek vůbec nestáhl (UX-05) */
@media (hover: none) { .house__img .is-night { display: none; } }
.house:hover .house__img .is-night, .house:focus-visible .house__img .is-night { opacity: 1; }
.house:hover .house__img img { transform: scale(1.035); }
.house__tag { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: .85rem; font-weight: 600; }
.house__go { position: absolute; right: 14px; bottom: 14px; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: var(--signal); color: #1b1305; display: grid; place-items: center; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease); }
.house__go svg { width: 20px; height: 20px; }
.house:hover .house__go, .house:focus-visible .house__go { opacity: 1; transform: none; }
.house__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.house__name { font: 700 1.75rem/1.05 var(--f-head); }
.house__area { font: 600 1.2rem/1 var(--f-head); }
.house__meta { color: var(--ink-2); margin-top: 6px; display: flex; justify-content: space-between; gap: 12px; }
.house__price { color: var(--ink); font-weight: 600; white-space: nowrap; }
.house[hidden] { display: none; }
.house .kota, .house__row, .house__meta { margin-left: 10px; margin-right: 10px; }
/* dlaždice se slogany na konci katalogu (doplní poslední řádek) */
.cta-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 300px; padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(43,35,28,.05), 0 8px 26px rgba(43,35,28,.06); transition: box-shadow .3s, transform .3s var(--ease); }
.cta-tile[hidden] { display: none; }
.cta-tile::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(325deg, #000, transparent 62%); mask-image: linear-gradient(325deg, #000, transparent 62%); }
.cta-tile > * { position: relative; }
.cta-tile--dark { background: var(--night); color: #fff; }
.cta-tile--dark::before { background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); }
.cta-tile__kicker { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--signal-ink); }
.cta-tile--dark .cta-tile__kicker { color: var(--signal); }
.cta-tile__h { font: 600 clamp(1.6rem, 2.3vw, 2.15rem)/1.08 var(--f-head); letter-spacing: -.02em; max-width: 13ch; }
.cta-tile__p { color: var(--ink-2); max-width: 34ch; }
.cta-tile--dark .cta-tile__p { color: rgba(255,255,255,.72); }
.cta-tile__go { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; }
.cta-tile__arr { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--signal); color: #1b1305; display: grid; place-items: center; transition: transform .3s var(--ease); }
.cta-tile__arr svg { width: 20px; height: 20px; }
.cta-tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(43,35,28,.08), 0 18px 40px rgba(43,35,28,.12); }
.cta-tile:hover .cta-tile__arr { transform: translateX(4px); }
.empty { padding: 48px 0; color: var(--ink-2); }

/* Reference ----------------------------------------------------------------------------- */
.feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 960px) { .feat { grid-template-columns: 1fr; } }
.feat__big { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--line); }
.feat__big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.feat__big img.is-hidden { opacity: 0; }
.feat__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.feat__thumbs button { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; overflow: hidden; position: relative; }
.feat__thumbs img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; opacity: .5; transition: opacity .25s; }
.feat__thumbs button[aria-current] img, .feat__thumbs button:hover img { opacity: 1; }
.feat__thumbs button[aria-current]::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--signal); border-radius: 4px; }
.feat h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.feat__meta { margin-top: 12px; color: var(--ink-2); }
.feat__txt { margin-top: 20px; color: var(--ink-2); }
.feat .acts { margin-top: 28px; }

.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; margin-top: 32px; }
@media (max-width: 960px) { .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .refs { grid-template-columns: 1fr; } }
/* karta reference: fotka přes celou kartu, název a datum v ní; v mozaice je první karta velká */
.ref { position: relative; display: block; min-height: 260px; overflow: hidden; border-radius: var(--r); color: #fff; text-decoration: none; }
.ref[hidden] { display: none; }
.ref::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(30,22,16,.82) 0%, rgba(30,22,16,.35) 40%, rgba(30,22,16,0) 65%); pointer-events: none; }
.ref__img { position: absolute; inset: 0; overflow: hidden; background: var(--stone); }
.ref__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ref:hover .ref__img img { transform: scale(1.04); }
.ref__kind { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-size: .8rem; font-weight: 600; }
.ref h3, .ref small { position: absolute; left: 20px; right: 20px; z-index: 2; }
.ref h3 { bottom: 40px; margin: 0; font: 600 1.25rem/1.2 var(--f-head); }
.ref small { bottom: 16px; color: rgba(255,255,255,.8); }
@media (min-width: 961px) {
  .ref:nth-child(1 of :not([hidden])) { grid-column: span 2; grid-row: span 2; }
  .ref:nth-child(1 of :not([hidden])) h3 { font-size: 1.8rem; }
}
.refs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: clamp(56px, 7vw, 96px); }
.refs-head h3 { margin-right: auto; }
.clients { margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 20px 40px; }
.clients > span { color: var(--ink-2); }
.clients ul { list-style: none; margin: 0 0 0 -23px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 0; clip-path: inset(0 0 0 23px); }
.clients li { font: 600 1.15rem/1.3 var(--f-head); color: var(--ink); padding: 0 22px; border-left: 1px solid var(--line); }
@media (max-width: 760px) { .clients { grid-template-columns: 1fr; } }

/* Cesta zákazníka ---------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; position: relative; counter-reset: s; }
.steps::before, .steps::after { content: ''; position: absolute; top: 31px; left: 0; right: 0; height: 2px; background: var(--line); }
.steps::after { background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease); }
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; counter-increment: s; }
/* text kroků je vidět vždy (dřív začínal na 40 % a měl kontrast 1,8 : 1), postupně se rozsvítí jen čára a kolečka */
.steps.is-in .step:nth-child(2)::before { transition-delay: .45s; } .steps.is-in .step:nth-child(3)::before { transition-delay: .9s; } .steps.is-in .step:nth-child(4)::before { transition-delay: 1.35s; }
.step::before { content: counter(s, decimal-leading-zero); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); font: 700 1.3rem/1 var(--f-head); position: relative; z-index: 1; color: var(--ink); transition: border-color .6s, background .6s, color .6s; }
.steps.is-in .step::before { border-color: var(--signal); }
.steps.is-in .step:last-child::before { background: var(--signal); color: #1b1305; }
.step h3 { margin-top: 26px; }
.step p { margin-top: 12px; color: var(--ink-2); }
.step .link { display: inline-block; margin-top: 14px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 40px; padding-left: 88px; }
  .steps::before, .steps::after { top: 0; bottom: 0; left: 31px; width: 2px; height: auto; right: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .steps.is-in::after { transform: scaleY(1); }
  .step::before { position: absolute; left: -88px; top: -6px; }
  .step h3 { margin-top: 10px; }
}
.note-band { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 20px 40px; align-items: center; padding: 30px 34px; border-radius: var(--r); background: var(--night-2); }
.note-band b { font: 700 1.7rem/1.15 var(--f-head); color: #fff; }
.note-band p { color: #a9b4b0; }
@media (max-width: 960px) { .note-band { grid-template-columns: 1fr; } }

/* Interaktivní půdorys -------------------------------------------------------------------- */
.planbox { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .planbox { grid-template-columns: 1fr; } }
.planbox--detail { grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 701px) { .planbox--detail .rooms { columns: 2; column-gap: 40px; border-top: 0; } .planbox--detail .rooms li { break-inside: avoid; } }
.plan { position: relative; padding: clamp(16px, 3vw, 40px); background: #fff; border-radius: var(--r); box-shadow: 0 1px 2px rgba(43,35,28,.05), 0 8px 26px rgba(43,35,28,.06); }
.plan svg { width: 100%; height: auto; max-height: 640px; display: block; overflow: visible; }
.plan .fp { fill: #2a3533; }
.plan .rm { fill: var(--room); cursor: pointer; transition: fill .25s; }
.plan .rm:hover, .plan .rm.is-on { fill: var(--wood); }
.plan .rm:focus-visible { outline: none; fill: var(--wood); }
.plan .lbl { font-family: var(--f-text); font-weight: 600; fill: var(--ink); text-anchor: middle; pointer-events: none; }
.plan .lbl tspan.a { font-weight: 400; fill: var(--ink-2); }
.plan .dim { stroke: var(--ink-3); stroke-width: 2; fill: none; }
.plan .dimt { font-family: var(--f-text); font-weight: 500; fill: var(--ink-dim); text-anchor: middle; }
.plan .ops { pointer-events: none; }
.plan .void { pointer-events: none; }
.plan .void polygon { fill: #fff; }
.plan .void path { stroke: var(--ink-3); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.plan .stair { pointer-events: none; }
.plan .stair path { fill: none; stroke: var(--ink-2); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.plan .stair .st-fill { fill: #fff; }
.plan .stair .st-step { stroke: var(--ink-3); }
.plan .stair .st-walk { stroke: var(--ink); }
.plan .stair .st-dot { fill: var(--ink); stroke: none; }
.plan .lbl--halo { paint-order: stroke; stroke: #fff; stroke-width: 8px; stroke-linejoin: round; }
.plan .lbl--void { font-weight: 500; fill: var(--ink-2); paint-order: stroke; stroke: #fff; stroke-width: 8px; stroke-linejoin: round; }
.plan .op path { fill: none; stroke: var(--ink); stroke-width: 1.2px; vector-effect: non-scaling-stroke; }
.plan .op .op-cut { fill: var(--room); stroke: none; }
.plan .op .op-cut--out { fill: #fff; }
.plan .op .op-face { stroke: var(--ink-3); stroke-width: 1px; }
.plan .op .op-frame { fill: #e9f0f1; stroke: var(--ink); stroke-width: 1px; }
.plan .op .op-leaf { stroke-width: 2px; }
.plan .op .op-swing { stroke: var(--ink-3); stroke-dasharray: 4 3; }
.plan .op .op-dash { stroke-dasharray: 6 4; }
.plan .hint { top: 16px; right: 16px; }
/* na telefonu by popisky místností měly asi 5 px; místnost se zvýrazní a jméno s plochou je v seznamu pod výkresem */
@media (max-width: 500px) { .plan .lbl { display: none; } }
.storeys { display: flex; gap: 8px; margin-bottom: 18px; }
.storeys:empty { display: none; }
.rooms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rooms li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.rooms li:hover, .rooms li.is-on { background: var(--room); }
.rooms li .num { color: var(--ink-2); }
.rooms .total { font-weight: 600; cursor: default; }
.rooms .total:hover { background: none !important; }

/* Stupně: řez domem -------------------------------------------------------------------- */
.stage { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .stage { grid-template-columns: 1fr; } }
.stage__tabs { display: inline-flex; flex-wrap: wrap; padding: 5px; gap: 4px; border-radius: 999px; background: var(--stone); margin-bottom: 24px; }
.stage__tabs .chip { border: 0; min-height: 44px; }
.stage__tabs .chip[aria-pressed='false']:hover { background: #fff; }
.stage__draw { position: relative; padding: clamp(12px, 2vw, 28px); border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.stage__draw svg { width: 100%; height: auto; display: block; }
.stage__draw .hint { top: 14px; left: 14px; }
.ly { transition: opacity .5s var(--ease); }
.ly.is-off { opacity: .13; }
.ly.is-off .solid { fill: none !important; stroke-dasharray: 5 5; }
.ly.is-hl .solid, .ly.is-hl .sk { stroke: var(--signal) !important; }
.callout { cursor: pointer; }
.callout circle { fill: #fff; stroke: var(--ink); stroke-width: 1.5; transition: fill .2s; }
.callout text { font: 700 12px var(--f-head); text-anchor: middle; dominant-baseline: central; fill: var(--ink); pointer-events: none; }
.callout.is-off circle { stroke: var(--ink-3); stroke-dasharray: 3 3; }
.callout.is-off text { fill: var(--ink-dim); }
.callout:hover circle, .callout.is-hl circle { fill: var(--signal); stroke: var(--signal); }
.legend { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.legend li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.legend li:hover, .legend li.is-hl { background: var(--room); }
.legend .n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 700 .8rem/1 var(--f-head); }
.legend .st { font-size: .85rem; font-weight: 600; }
.legend li.is-off { color: var(--ink-dim); }
.legend li.is-off .n { border-color: var(--ink-3); border-style: dashed; }
.legend li.is-add .st { color: var(--signal-ink); }
.stage__info h3 { font-size: 2.2rem; }
.stage__pct { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 8px; }
.stage__pct .num { font-size: 2.8rem; line-height: 1; }
.stage__bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 16px; }
.stage__bar span { display: block; height: 100%; background: var(--ink); width: var(--pct, 100%); transition: width .7s var(--ease); }
.addons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.addons .chip[aria-pressed='true'] { background: var(--signal); border-color: var(--signal); color: #1b1305; }
.addons-wrap[hidden], .pick[hidden] { display: none; }
.pick { display: grid; gap: 10px; margin-top: 20px; }
.pick__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pick__row > span { width: 92px; font-weight: 600; font-size: .95rem; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); margin-right: 8px; vertical-align: -2px; }

/* Projekt a odečet ------------------------------------------------------------------- */
.deduct { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.deduct > div { padding: 30px; border-radius: var(--r); background: #fff; box-shadow: 0 1px 2px rgba(43,35,28,.05), 0 8px 26px rgba(43,35,28,.06); }
.deduct b { display: block; font: 700 1.55rem/1.15 var(--f-head); margin-bottom: 8px; }
.deduct > div.is-key { background: var(--ink); color: #fff; }
.deduct > div.is-key p { color: #c4ccc9; }
@media (max-width: 860px) { .deduct { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 12px 0 0; }
.checks li { padding: 5px 0 5px 28px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 12px; height: 6px; border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg); }

/* O firmě ------------------------------------------------------------------------------ */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; } }
.about__photos { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 6 / 5; }
.about__photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.about__photos img:first-child { grid-row: 1 / 3; }
.about .lead + p { margin-top: 18px; }
.services { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.services li { border-top: 1px solid var(--line); }
.services a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; text-decoration: none; font-weight: 600; }
.services a svg { width: 16px; height: 16px; flex: none; opacity: .45; transition: transform .25s var(--ease), opacity .25s; }
.services a:hover svg { transform: translate(2px, -2px); opacity: 1; }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 36px; }
.person { padding: 22px 24px; border-radius: var(--r); background: #fff; box-shadow: 0 1px 2px rgba(43,35,28,.05), 0 8px 26px rgba(43,35,28,.06); }
.person b { display: block; font: 700 1.35rem/1.2 var(--f-head); }
.person small { color: var(--ink-2); }
.person a { display: block; margin-top: 4px; text-decoration: none; font-weight: 500; }
.person a:hover { text-decoration: underline; }
.person small + a { margin-top: 12px; }

/* Kontakt ---------------------------------------------------------------------------------- */
.contact { position: relative; color: #fff; background: var(--night); overflow: hidden; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.contact .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .contact .wrap { grid-template-columns: 1fr; } }
.contact .lead { color: #c4ccc9; margin-top: 20px; }
.contact__direct { margin-top: 36px; display: grid; gap: 6px; justify-items: start; }
.contact__direct a { font: 600 1.6rem/1.3 var(--f-head); text-decoration: none; }
.contact__direct a:hover { color: var(--signal); }
.contact__direct small { color: #a9b4b0; margin-top: 10px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; min-width: 0; font: inherit; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form .check { display: flex; gap: 10px; align-items: start; font-weight: 400; }
.form .check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--signal); }
.form :is(input, select, textarea):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.contact .form { padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: rgba(255,255,255,.07); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.contact .form input, .contact .form textarea, .contact .form select { border-color: transparent; }
/* fokus v kontaktním formuláři na tmavém pozadí: oranžový okraj a obrys (dřív žádný, UX-10) */
.contact .form :is(input, select, textarea):focus { border-color: var(--signal); }
.contact .form :is(input, select, textarea):focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; box-shadow: none; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.note-proto { margin-top: 12px; font-size: .9rem; color: var(--signal-ink); }
.contact .note-proto { color: var(--signal); }

/* Detail domu ---------------------------------------------------------------------------- */
.crumb { font-size: .9rem; color: var(--ink-2); padding-top: 36px; }
.crumb a { text-decoration: none; } .crumb a:hover { text-decoration: underline; }
.dhead { padding: 14px 0 32px; }
.dhead h1 { font-size: clamp(3rem, 7vw, 6rem); }
.facts { display: flex; flex-wrap: wrap; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.facts > div { padding: 14px 32px 14px 0; margin-right: 32px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts b { display: block; font: 600 1.4rem/1.2 var(--f-head); }
.facts small { color: var(--ink-2); }
@media (max-width: 700px) {
  .facts { display: grid; grid-template-columns: 1fr 1fr; }
  .facts > div { margin: 0; padding: 12px 12px 12px 0; border-right: 0; }
  .facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.dmain { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
@media (max-width: 1080px) { .dmain { grid-template-columns: 1fr; } }
.gal__big { position: relative; aspect-ratio: 16 / 9; background: var(--stone); overflow: hidden; border-radius: var(--r); }
.gal__big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.gal__big .is-hidden { opacity: 0; }
.gal__tod { position: absolute; top: 16px; right: 16px; display: flex; background: rgba(255,255,255,.94); border-radius: 999px; padding: 4px; z-index: 2; }
.gal__tod button { border: 0; background: none; padding: 11px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.gal__tod button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.gal__big .hint { top: 68px; right: 16px; }
.gal__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.gal__thumbs button { padding: 0; border: 0; background: none; cursor: pointer; position: relative; border-radius: 4px; overflow: hidden; }
.gal__thumbs img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; opacity: .55; transition: opacity .25s; }
.gal__thumbs button[aria-current] img, .gal__thumbs button:hover img { opacity: 1; }
.gal__thumbs button[aria-current]::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--signal); border-radius: 4px; }
/* na telefonu jsou miniatury větší a posouvají se do strany (dřív 58 × 32 px) */
@media (max-width: 600px) { .gal__thumbs { grid-auto-columns: 31%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; } }
.gal__note { margin-top: 18px; font-size: .85rem; color: var(--ink-2); }
.buy { position: sticky; top: 108px; padding: 28px; border-radius: var(--r); background: #fff; box-shadow: 0 1px 2px rgba(43,35,28,.05), 0 8px 26px rgba(43,35,28,.06); }
.buy h3 { font: 600 1.1rem/1.3 var(--f-text); }
.buy__stages { display: grid; gap: 8px; margin: 16px 0 20px; }
.buy__stages label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 14px; border: 1.5px solid transparent; border-radius: var(--r); background: #fff; cursor: pointer; transition: border-color .2s; }
.buy__stages input { position: absolute; opacity: 0; }
.buy__stages label:has(input:checked) { border-color: var(--ink); }
.buy__stages label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 4px var(--signal); }
.buy__price { font: 700 2.6rem/1 var(--f-head); }
.buy .btn { width: 100%; margin-top: 10px; }
.buy__note { font-size: .85rem; color: var(--ink-2); margin-top: 14px; }
/* telefon a tablet: cena a „Poptat dům“ hned pod úvodem, celý box s cenou podle stupně je až pod galerií (UX-13, MKT-08) */
.buy-m { display: none; }
@media (max-width: 1080px) {
  .buy-m { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: #fff;
    box-shadow: 0 1px 2px rgba(43,35,28,.05), 0 8px 26px rgba(43,35,28,.06); }
  .buy-m__price { display: grid; margin-right: auto; }
  .buy-m__price small { color: var(--ink-2); font-size: .85rem; }
  .buy-m__price b { font: 700 1.4rem/1.15 var(--f-head); white-space: nowrap; }
  .buy-m .btn { min-height: 48px; padding: 6px 20px; }
  .buy-m .link { flex-basis: 100%; font-size: .9rem; background: none; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
}

/* Patička -------------------------------------------------------------------------------- */
.foot { background: var(--night); color: #b9c3c0; padding: clamp(56px, 7vw, 96px) 0 36px; font-size: .95rem; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.foot h4, .foot__h { margin: 0 0 14px; color: #fff; font: 600 1rem/1.3 var(--f-text); letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 4px 0; }
.foot a { text-decoration: none; } .foot a:hover { color: #fff; }
.foot__base { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #8e9b97; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .foot__grid > :first-child { grid-column: 1 / -1; } .foot__base a { display: inline-block; padding: 6px 0; } }


/* Podstránky -------------------------------------------------------------------------- */
.page-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(36px, 5vw, 64px); background: var(--stone); }
.page-hero + .sec { padding-top: clamp(48px, 6vw, 88px); }
.page-hero--photo { position: relative; color: #fff; background: var(--night); overflow: hidden; }
.page-hero--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero--photo .wrap { position: relative; }
.page-hero--photo .lead, .page-hero--photo .crumb { color: rgba(255,255,255,.82); }
.page-hero .crumb { padding: 0 0 18px; }
.page-hero h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); max-width: 14em; }
.page-hero .lead { margin-top: 20px; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 88px); align-items: start; }
@media (max-width: 1000px) { .article { grid-template-columns: 1fr; } }
.prose { max-width: 46em; font-size: 1.06rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose ul.checks { padding-left: 0; }
.prose a { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--signal-ink); }
.prose strong, .prose b { font-weight: 600; }
.prose .lead { margin-top: 0; }
.aside-card { position: sticky; top: 108px; padding: 28px; border-radius: var(--r); background: var(--night); color: #fff; }
.aside-card h3, .aside-card h2 { font-size: 1.6rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.aside-card p { color: #b9c3c0; margin-top: 10px; }
.aside-card .btn { width: 100%; margin-top: 18px; }
.aside-card a.tel { display: block; margin-top: 18px; font: 600 1.5rem/1.2 var(--f-head); text-decoration: none; }
.aside-card a.tel:hover { color: var(--signal); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards3 > div { padding: 30px; border-radius: var(--r); background: #fff; box-shadow: 0 1px 2px rgba(43,35,28,.05), 0 8px 26px rgba(43,35,28,.06); }
.sec--stone .cards3 > div { background: #fff; }
.cards3 h3, .cards3 h2 { font-size: 1.45rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 8px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ba figure { margin: 0; position: relative; }
.ba img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.ba figcaption { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: .85rem; font-weight: 600; }
.refstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .refstrip { grid-template-columns: 1fr; } }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.phases { list-style: none; margin: 0; padding: 0; counter-reset: f; display: grid; gap: 16px; }
.phases li { counter-increment: f; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px; border-radius: var(--r); background: #fff; box-shadow: 0 1px 2px rgba(43,35,28,.05), 0 8px 26px rgba(43,35,28,.06); }
.phases li::before { content: counter(f, decimal-leading-zero); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--stone); font: 700 1.2rem/1 var(--f-head); }
.phases h3 { font-size: 1.4rem; }
.phases p { margin-top: 6px; color: var(--ink-2); }

/* Kariéra ----------------------------------------------------------------------------- */
.jobs { display: grid; gap: 12px; }
.job { border-radius: var(--r); background: #fff; box-shadow: 0 1px 2px rgba(43,35,28,.05), 0 8px 26px rgba(43,35,28,.06); }
.job summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 22px 26px; font: 700 1.5rem/1.2 var(--f-head); }
.job summary::-webkit-details-marker { display: none; }
.job summary::after { content: ''; margin-left: auto; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); }
.job[open] summary::after { transform: rotate(-135deg); }
.job .tag-new { padding: 3px 10px; border-radius: 999px; background: var(--signal); font: 600 .8rem/1.4 var(--f-text); }
.job__body { padding: 0 26px 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.job__body h4, .job__body h3 { margin: 0 0 6px; font: 600 1rem/1.3 var(--f-text); letter-spacing: 0; color: var(--signal-ink); }
.job__body ul { margin: 0; padding-left: 1.2em; }
.job__acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .job__body { grid-template-columns: 1fr; } }

/* Reference: detail a galerie ---------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: var(--r); overflow: hidden; background: var(--stone); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr 1fr; } }
.cert { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 14px 20px; border-radius: var(--r); background: #fff; box-shadow: 0 1px 2px rgba(43,35,28,.05), 0 8px 26px rgba(43,35,28,.06); text-decoration: none; font-weight: 600; }
.cert:hover { background: var(--wood); }
/* lightbox je nativní <dialog> (showModal): fokus zůstane uvnitř, Esc zavře, stránka pod ním je neaktivní */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10,14,13,.94); color: #fff; touch-action: pan-y pinch-zoom; overscroll-behavior: contain; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10,14,13,.6); }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.lightbox p { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; color: #cfd6d3; }
.lightbox button { position: absolute; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.55); color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.lightbox button:hover { background: rgba(0,0,0,.8); }
.lightbox .lb-x { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; } .lightbox .lb-next { right: 20px; top: 50%; }

/* Konfigurátor: úvod nad aplikací --------------------------------------------------- */
.kfg-intro { padding: 32px 0 20px; background: var(--stone); }
@media (min-width: 768px) { .kfg-intro .kfg-hero__btn { display: none; } }
.kfg-intro h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.kfg-intro .lead { margin-top: 10px; }
.kfg-app { background: var(--stone); padding: 8px 0 56px; }
.kfg-info { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 48px; }
.kfg-info h2 { font-size: 1.8rem; margin-bottom: 12px; }
.kfg-info p + p { margin-top: 12px; }
@media (max-width: 960px) { .kfg-info { grid-template-columns: 1fr; } }

.err { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 160px 0 80px; }
.err h1 { font-size: clamp(3rem, 8vw, 6rem); }
.err .acts { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
