/* Marek Kunert – stavební činnost. Koncept: tabule „Stavbu provádí“ z plotu stavby. */
:root {
  --zluta: #F2C230;      /* tabule „Pozor, stavba“ */
  --zluta-tm: #D8A70F;
  --ink: #17150F;
  --ink2: #3A372F;
  --sed: #625E54;
  --omitka: #ECEAE4;
  --omitka2: #E1DED6;
  --tma: #1D1B17;
  --tma-txt: #E9E5DA;
  --bila: #FBFAF7;
  --linka: rgba(23, 21, 15, .18);
  --f: "Overpass", "Arial Narrow", system-ui, sans-serif;
  --pad: clamp(18px, 4.2vw, 68px);
  --mez: clamp(72px, 9vw, 150px);
  --hd: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hd); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--f); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--omitka); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, p, ul { margin: 0; }
::selection { background: var(--zluta); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: 8px; transform: translateY(-160%); z-index: 100; background: var(--ink); color: var(--zluta); padding: 10px 16px; }
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- hlavička ---------- */
.hd { position: sticky; top: 0; z-index: 50; height: var(--hd); display: flex; align-items: center; gap: clamp(16px, 3vw, 44px);
  padding: 0 var(--pad); background: var(--omitka); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hd.is-scroll { border-bottom-color: var(--linka); }
.hd__logo { display: flex; align-items: center; gap: 14px; min-height: 48px; text-decoration: none; line-height: 1; margin-right: auto; }
.hd__znak { width: auto; height: 54px; flex: none; }
.hd__txt { display: flex; flex-direction: column; justify-content: center; padding-left: 14px; border-left: 2px solid var(--linka); }
.hd__jm { font-weight: 900; font-size: 24px; letter-spacing: -.01em; }
.hd__ob { font-size: 13px; font-weight: 600; color: var(--sed); margin-top: 4px; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav__a { font-weight: 600; font-size: 17px; text-decoration: none; padding: 11px 0; position: relative; }
.nav__a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; background: var(--zluta-tm); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav__a:hover::after, .nav__a[aria-current]::after { transform: scaleX(1); }
.hd__tel { min-height: 44px; display: inline-flex; align-items: center; font-weight: 800; font-size: 18px; text-decoration: none; background: var(--zluta); padding: 11px 18px 9px; border-radius: 2px; white-space: nowrap; }
.hd__tel:hover { background: var(--zluta-tm); }
.hd__menu { display: none; }

/* ---------- hero = tabule na zdi ---------- */
.hero { position: relative; min-height: max(640px, calc(100svh - var(--hd))); display: flex; align-items: center; padding: 56px var(--pad) 120px; overflow: hidden; }
.hero__foto { position: absolute; top: 0; bottom: 0; left: 46%; right: 0; width: 54%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__popis { position: absolute; z-index: 1; right: var(--pad); bottom: 28px; background: var(--ink); color: var(--bila); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px 6px; }
.tabule { position: relative; z-index: 1; width: min(940px, 66vw); background: var(--zluta); color: var(--ink);
  padding: clamp(26px, 2.8vw, 44px) clamp(28px, 3.4vw, 56px); border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .35) inset; }
.tabule::before { content: ""; position: absolute; inset: 12px; border: 3px solid var(--ink); border-radius: 2px; pointer-events: none; }
.srb { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f4f2ec, #9a978d 60%, #6c695f);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .4); }
.srb::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; background: #55524a; transform: rotate(-30deg); }
.srb--1 { left: 22px; top: 22px; } .srb--2 { right: 22px; top: 22px; } .srb--3 { left: 22px; bottom: 22px; } .srb--4 { right: 22px; bottom: 22px; }
.tabule__r { position: relative; padding: clamp(14px, 1.6vw, 22px) clamp(14px, 1.4vw, 22px); border-bottom: 2px solid var(--ink); }
.tabule__r:last-of-type { border-bottom: 0; }
.tabule__k { display: block; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 6px; }
.tabule__r--pole { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 18px; }
.tabule__r--pole .tabule__k { margin: 0; }
.tabule__in { width: 100%; font: 600 clamp(22px, 2.2vw, 32px)/1.2 var(--f); color: var(--ink); background: transparent; border: 0;
  border-bottom: 2px dashed rgba(23, 21, 15, .55); padding: 4px 2px 6px; border-radius: 0; min-height: 44px; }
.tabule__in::placeholder { color: rgba(23, 21, 15, .55); }
.tabule__in:focus { outline: none; border-bottom-style: solid; background: rgba(255, 255, 255, .28); }
.tabule__h { font-weight: 900; line-height: .9; }
.tabule__jm { display: block; font-size: clamp(56px, 7.6vw, 124px); letter-spacing: -.035em; padding-top: 6px; }
.tabule__r--obor { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.tabule__r--obor .tabule__k { margin: 6px 0 0; }
.tabule__obor { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.tabule__obor a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.15; text-decoration: none; border-bottom: 3px solid var(--ink); padding: 4px 0 2px; }
.tabule__obor a span { transition: transform .2s; }
.tabule__obor a:hover span { transform: translateX(4px); }
.tabule__r--spod { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tabule__tel a { display: block; width: fit-content; padding: 4px 0; min-height: 44px; font-weight: 900; font-size: clamp(34px, 3.8vw, 58px); line-height: 1; text-decoration: none; letter-spacing: -.01em; }
.tabule__tel a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.tabule__btn { font: 800 18px/1 var(--f); background: var(--ink); color: var(--zluta); border: 0; border-radius: 2px; padding: 18px 26px 16px; cursor: pointer; min-height: 52px; }
.tabule__btn:hover { background: #000; }
.tabule__btn span { display: inline-block; transition: transform .2s; }
.tabule__btn:hover span { transform: translateX(4px); }
.hero__lead { position: absolute; z-index: 1; right: var(--pad); bottom: 40px; max-width: 400px; background: var(--ink); color: var(--bila);
  padding: 20px 24px 18px; font-size: 17px; line-height: 1.5; }

/* ---------- kapitoly ---------- */
.kap { padding: var(--mez) var(--pad); }
.kap__c { font-weight: 800; font-size: 15px; letter-spacing: .1em; color: var(--sed); }
.kap__h { font-weight: 900; font-size: clamp(76px, 13.5vw, 220px); line-height: .82; letter-spacing: -.045em; margin: 10px 0 14px -.05em; }
.kap__def { font-weight: 600; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.2; }
.vel { font-size: clamp(21px, 1.75vw, 27px); line-height: 1.4; font-weight: 600; margin-bottom: 18px; }
.kap p + p { margin-top: 0; }
.odkaz { display: inline-flex; gap: 10px; align-items: center; margin-top: 26px; font-weight: 800; font-size: 18px; text-decoration: none;
  border-bottom: 3px solid var(--zluta-tm); padding: 8px 0 4px; min-height: 44px; }
.odkaz:hover span { transform: translateX(4px); }
.odkaz span { transition: transform .2s; }
.odkaz--sv { border-color: var(--zluta); color: var(--bila); }

/* Rekonstrukce (hlavní činnost) */
.kap--rek .kap__hlava { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(18px, 2.2vw, 34px); align-items: end; }
.kap--rek .kap__c { grid-column: 1 / -1; display: inline-block; justify-self: start; background: var(--zluta); color: var(--ink); padding: 8px 12px 6px; font-size: 16px; }
.kap--rek .kap__h { grid-column: 1 / 10; font-size: clamp(64px, 11.2vw, 196px); margin-top: 18px; }
.kap--rek .kap__def { grid-column: 10 / 13; grid-row: 2; padding-bottom: 18px; }
.rek { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 34px); margin-top: clamp(36px, 4vw, 60px); align-items: start; }
.rek__f1 { grid-column: 1 / 6; grid-row: 1 / 3; }
.rek__f1 img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.rek__txt { grid-column: 6 / 13; grid-row: 1; padding-left: clamp(0px, 2vw, 30px); }
.rek__f2 { grid-column: 10 / 13; grid-row: 2; position: relative; }
.rek__f2 img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.rek__f2 figcaption, .real figcaption { position: absolute; left: 0; bottom: 0; background: var(--zluta); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px 5px; }
.zmeny { list-style: none; padding: 0; margin-top: clamp(26px, 3vw, 44px); border-top: 2px solid var(--ink); }
.zmeny li { display: grid; grid-template-columns: minmax(0, 13ch) minmax(0, 1fr); gap: 20px; padding: 20px 0 18px; border-bottom: 1px solid var(--linka); }
.zmeny strong { font-weight: 800; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; }
.zmeny span { font-size: 18px; color: var(--ink2); padding-top: 3px; }

/* Realizace (fotky klienta) */
.real { background: var(--bila); padding: var(--mez) var(--pad); }
.real__hlava { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.4vw, 52px); }
.real__h { font-weight: 900; font-size: clamp(44px, 5.4vw, 92px); line-height: .92; letter-spacing: -.035em; max-width: 12ch; }
.real__p { max-width: 34ch; color: var(--ink2); font-weight: 600; }
.real__mriz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.real__mriz figure { position: relative; overflow: hidden; background: var(--omitka2); }
.real__mriz img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s; }
.real__mriz figure:hover img { transform: scale(1.03); }
.real__big { grid-column: span 2; grid-row: span 2; }

/* Domy z Ytongu */
.kap--domy { background: var(--tma); color: var(--tma-txt); }
.kap--domy .kap__c { color: #A39E90; }
.kap--domy .kap__h { color: var(--zluta); font-size: clamp(64px, 9.6vw, 168px); }
.kap--domy .kap__h span { display: block; color: var(--tma-txt); }
.domy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 34px); }
.domy .kap__hlava { grid-column: 1 / 7; grid-row: 1; align-self: end; }
.domy__f2 { grid-column: 8 / 13; grid-row: 1; align-self: end; }
.domy__f2 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.domy__f1 { grid-column: 1 / 9; grid-row: 2; }
.domy__f1 img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.domy__txt { grid-column: 9 / 13; grid-row: 2; align-self: end; }
.domy__txt p + p { margin-top: 14px; }

/* ---------- kontakt ---------- */
.kontakt { background: var(--omitka2); padding: var(--mez) var(--pad); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.kontakt__h { font-weight: 900; font-size: clamp(42px, 4.6vw, 76px); line-height: .95; letter-spacing: -.03em; max-width: 11ch; }
.kontakt__tel { display: inline-block; font-weight: 900; font-size: clamp(40px, 4.4vw, 72px); line-height: 1; letter-spacing: -.02em; text-decoration: none; margin-top: clamp(28px, 3vw, 46px);
  border-bottom: 6px solid var(--zluta); padding-bottom: 6px; }
.kontakt__tel:hover { border-color: var(--ink); }
.kontakt__mail { display: block; width: fit-content; min-height: 44px; font-weight: 700; font-size: clamp(20px, 1.8vw, 28px); margin-top: 16px; text-decoration-thickness: 2px; text-underline-offset: 5px; padding: 6px 0; }
.kontakt__pozn { margin-top: 26px; color: var(--ink2); }
.form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; background: var(--zluta); padding: clamp(34px, 3.4vw, 56px) clamp(32px, 3.6vw, 60px);
  border-radius: 4px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .45); }
.form::before { content: ""; position: absolute; inset: 12px; border: 3px solid var(--ink); border-radius: 2px; pointer-events: none; }
.form__hl { grid-column: 1 / -1; font-weight: 900; font-size: clamp(30px, 2.6vw, 42px); line-height: 1; letter-spacing: -.02em; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.form__r--cela { grid-column: 1 / -1; }
.form label { display: block; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 7px; }
.form label span { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink2); }
.form input, .form textarea { width: 100%; font: 400 18px/1.4 var(--f); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 2px; padding: 12px 14px 10px; min-height: 52px; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: none; box-shadow: 0 0 0 4px rgba(23, 21, 15, .28); }
.form__chyba { display: none; color: #A32012; font-size: 15px; font-weight: 600; margin-top: 6px; }
.form__r.is-chyba input { border-color: #A32012; }
.form__r.is-chyba .form__chyba { display: block; }
.form__btn { font: 800 18px/1 var(--f); background: var(--ink); color: var(--zluta); border: 0; border-radius: 2px; padding: 19px 30px 17px; cursor: pointer; min-height: 54px; }
.form__btn:hover { background: #000; }
.form__ok { grid-column: 1 / -1; background: var(--ink); color: var(--bila); padding: 18px 20px; font-weight: 600; }
.form__ok a { color: var(--zluta); }
.form.is-hotovo .form__r { display: none; }
.form__err { grid-column: 1 / -1; background: #fff1ee; color: var(--ink); border-left: 4px solid #c0392b; padding: 14px 18px; }
.form__err a { color: inherit; font-weight: 600; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__btn:disabled { opacity: .6; cursor: wait; }
.form .srb { z-index: 1; }

/* ---------- patička ---------- */
.ft { background: var(--ink); color: var(--tma-txt); padding: 56px var(--pad) 36px; }
.ft__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.ft__jm { font-weight: 900; font-size: 30px; line-height: 1.05; color: var(--zluta); }
.ft__jm span { font-weight: 600; font-size: 16px; color: var(--tma-txt); }
.ft__znak { display: block; width: auto; height: 88px; margin-bottom: 22px; }
.ft__k { font-weight: 600; display: flex; flex-direction: column; align-items: flex-start; }
.ft__k a, .ft__nav a { text-decoration: none; min-height: 42px; display: inline-flex; align-items: center; }
.ft__k a:hover, .ft__nav a:hover { color: var(--zluta); }
.ft__nav { display: flex; flex-direction: column; align-items: flex-start; font-weight: 600; }
.ft__kr { margin-top: 44px; font-size: 13px; color: #8F8A7D; }
.volat { display: none; }


/* ---------- úvod: tři karty rekonstrukcí ---------- */
.tri { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 28px); margin-top: clamp(36px, 4vw, 60px); }
.tri__i a { display: block; text-decoration: none; background: var(--bila); height: 100%; }
.tri__i .tri__img, .tri__i img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s; }
.tri__i a { overflow: hidden; }
.tri__i a:hover img { transform: scale(1.03); }
.tri__t { position: relative; display: block; padding: 20px 22px 22px; border-top: 6px solid var(--zluta); background: var(--bila); }
.tri__t strong { display: block; font-weight: 900; font-size: clamp(28px, 2.5vw, 40px); line-height: 1; letter-spacing: -.02em; margin-bottom: 8px; }
.tri__t strong::after { content: " →"; color: var(--zluta-tm); }
.tri__t span { color: var(--ink2); font-size: 17px; }

/* ---------- úvod: dlaždice kategorií ---------- */
.dl { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.dl__i a { position: relative; display: block; overflow: hidden; text-decoration: none; background: var(--omitka2); }
.dl__i img { width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; transition: transform .5s; }
.dl__i a:hover img { transform: scale(1.04); }
.dl__t { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(16, 14, 10, .82)); color: #fff; }
.dl__t strong { display: block; font-weight: 900; font-size: clamp(18px, 1.45vw, 24px); line-height: 1.05; }
.dl__t span { font-size: 14px; font-weight: 600; color: var(--zluta); }

/* ---------- hlava podstránky ---------- */
.ph { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 34px); align-items: center; padding: clamp(36px, 5vw, 80px) var(--pad) var(--mez); }
.ph__txt { grid-column: 1 / 8; }
.ph__f { grid-column: 8 / 13; }
.ph__f img { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--hd) - 80px); object-fit: cover; }
.ph__c { display: inline-block; background: var(--zluta); font-weight: 800; font-size: 16px; letter-spacing: .1em; padding: 8px 12px 6px; }
.ph__h { font-weight: 900; font-size: clamp(50px, 6.6vw, 112px); line-height: .9; letter-spacing: -.04em; margin: 22px 0 22px -.04em; }
.ph__lead { font-size: clamp(20px, 1.7vw, 26px); font-weight: 600; line-height: 1.4; max-width: 34ch; }
.ph__skok { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.ph__skok a { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px 6px; border: 2px solid var(--ink); font-weight: 800; text-decoration: none; }
.ph__skok a:hover { background: var(--ink); color: var(--zluta); }
.ph--tma { background: var(--tma); color: var(--tma-txt); }
.ph--tma .ph__txt { grid-column: 1 / 6; }
.ph--tma .ph__h { color: var(--zluta); font-size: clamp(60px, 8.4vw, 150px); }
.ph--tma .ph__h span { display: block; color: var(--tma-txt); }
.ph--tma .ph__c { color: var(--ink); }
.ph__f--sir { grid-column: 6 / 13; }
.ph__f--sir img { aspect-ratio: 4 / 3; }
.ph--gal { padding-bottom: clamp(30px, 3vw, 48px); }
.ph--gal .ph__txt { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 clamp(18px, 2.2vw, 34px); align-items: end; }
.ph--gal .ph__c { grid-column: 1 / -1; justify-self: start; }
.ph--gal .ph__h { font-size: clamp(64px, 11vw, 190px); margin-bottom: 0; }
.ph--gal .ph__lead { padding-bottom: 2.2vw; }

/* ---------- sekce podstránky ---------- */
.sl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 34px); align-items: start; padding: 0 var(--pad) var(--mez); scroll-margin-top: 20px; }
.sl__txt { grid-column: 1 / 6; position: sticky; top: calc(var(--hd) + 28px); }
.sl__fotky { grid-column: 6 / 13; }
.sl--obr .sl__txt { grid-column: 8 / 13; grid-row: 1; }
.sl--obr .sl__fotky { grid-column: 1 / 8; grid-row: 1; }
.sl__c { font-weight: 800; font-size: 15px; letter-spacing: .1em; color: var(--sed); border-top: 3px solid var(--ink); padding-top: 12px; }
.sl__h { font-weight: 900; font-size: clamp(44px, 5.4vw, 92px); line-height: .92; letter-spacing: -.035em; margin: 14px 0 20px -.03em; }
.sez { list-style: none; padding: 0; margin: 6px 0 4px; border-top: 1px solid var(--linka); }
.sez li { position: relative; padding: 11px 0 9px 26px; border-bottom: 1px solid var(--linka); font-weight: 600; }
.sez li::before { content: ""; position: absolute; left: 0; top: 18px; width: 12px; height: 12px; background: var(--zluta-tm); }
.odkaz + .odkaz { margin-left: 26px; }
.odkaz--tl { border-color: var(--ink); }
.sl__fotky--3 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); aspect-ratio: 5 / 4.6; }
.sl__fotky--3 .sl__f--vel { grid-row: 1 / 3; }
.sl__fotky--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.sl__fotky--2 .sl__f { aspect-ratio: 3 / 4.6; }
.sl__f, .mz__f, .d3__f { display: block; overflow: hidden; background: var(--omitka2); cursor: zoom-in; }
.sl__f img, .mz__f img, .d3__f img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sl__f:hover img, .mz__f:hover img, .d3__f:hover img { transform: scale(1.03); }

.kap--3d { background: var(--tma); color: var(--tma-txt); }
.kap--3d .sl__c { color: #A39E90; border-color: var(--zluta); }
.kap--3d .sl__h { color: var(--zluta); }
.d3 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 34px); align-items: center; }
.d3__txt { grid-column: 1 / 5; }
.d3__fotky { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.d3__f { aspect-ratio: 16 / 9; }
.d3__f--vel { grid-column: 1 / -1; }

/* Domy z Ytongu */
.kap--jen { background: var(--zluta); padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 96px); margin-bottom: var(--mez); }
.jen { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 34px); align-items: end; }
.jen__h { grid-column: 1 / 7; font-weight: 900; font-size: clamp(64px, 10vw, 176px); line-height: .82; letter-spacing: -.045em; }
.jen__txt { grid-column: 7 / 13; }
.jen__txt p:last-child { color: var(--ink2); }
.sl--siroke .sl__txt { grid-column: 1 / 5; }
.sl--siroke .mz { grid-column: 5 / 13; }
.sl--bila { background: var(--bila); padding-top: var(--mez); }
.mz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.mz__f { aspect-ratio: 4 / 3; }
.mz__f--vel { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

/* ---------- galerie realizací ---------- */
.chipy { position: sticky; top: var(--hd); z-index: 40; background: var(--omitka); border-bottom: 1px solid var(--linka); }
.chipy__in { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--pad); scrollbar-width: none; }
.chipy__in::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px 16px 5px; border: 2px solid var(--ink); border-radius: 2px; font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap; background: var(--omitka); }
.chip span { font-weight: 600; color: var(--sed); font-size: 14px; }
.chip:hover, .chip.is-akt { background: var(--ink); color: var(--zluta); }
.chip:hover span, .chip.is-akt span { color: var(--zluta); }
.gal { padding: 0 var(--pad) var(--mez); }
.gk { padding-top: clamp(56px, 6vw, 96px); scroll-margin-top: calc(var(--hd) + 66px); }
.gk__hlava { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px clamp(16px, 2vw, 32px); align-items: end; border-top: 3px solid var(--ink); padding-top: 16px; margin-bottom: clamp(20px, 2.4vw, 36px); }
.gk__c { font-weight: 800; font-size: 15px; letter-spacing: .1em; color: var(--sed); align-self: start; padding-top: 6px; }
.gk__h { font-weight: 900; font-size: clamp(38px, 4.4vw, 76px); line-height: .95; letter-spacing: -.03em; }
.gk__p { color: var(--ink2); font-weight: 600; max-width: 44ch; padding-bottom: 6px; }
.gk__n { font-weight: 800; background: var(--zluta); padding: 6px 10px 4px; font-size: 15px; white-space: nowrap; margin-bottom: 6px; }
.gs + .gs { margin-top: clamp(28px, 3vw, 46px); }
.gs__h { font-weight: 800; font-size: clamp(20px, 1.6vw, 24px); margin: 0 0 12px; }
.gs__h span { font-weight: 600; font-size: 15px; color: var(--sed); margin-left: 6px; }
.g { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(6px, .8vw, 12px); }
.g__i { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; background: var(--omitka2); cursor: zoom-in; }
.g__i--sir { grid-column: span 2; aspect-ratio: 3 / 2; }
.g--sir { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g--sir .g__i--sir { grid-column: auto; aspect-ratio: 4 / 3; }
.g__i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g__i:hover img { transform: scale(1.04); }
.js-vice .gs:not(.is-vse) .g__i--dalsi { display: none; }
.gs__vice { margin-top: 14px; font: 800 17px/1 var(--f); color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 2px; padding: 14px 22px 12px; min-height: 48px; cursor: pointer; }
.gs__vice:hover { background: var(--ink); color: var(--zluta); }

/* ---------- lightbox ---------- */
.lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 13, 10, .96); color: #fff; overflow: hidden; }
.lb::backdrop { background: rgba(14, 13, 10, .96); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb__f { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 180px); }
.lb__img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; background: #222; }
.lb__cap { display: flex; gap: 18px; justify-content: space-between; width: 100%; font-size: 16px; font-weight: 600; color: #E9E5DA; }
.lb__n { color: var(--zluta); white-space: nowrap; font-weight: 800; }
.lb__b { position: absolute; width: 56px; height: 56px; display: grid; place-items: center; font: 900 28px/1 var(--f); color: var(--ink); background: var(--zluta); border: 0; border-radius: 2px; cursor: pointer; }
.lb__b:hover { background: #fff; }
.lb__b--zav { top: 16px; right: 16px; }
.lb__b--pred { left: 24px; top: 50%; transform: translateY(-50%); }
.lb__b--dal { right: 24px; top: 50%; transform: translateY(-50%); }
.lb.is-sam .lb__b--pred, .lb.is-sam .lb__b--dal { display: none; }
html.lb-open { overflow: hidden; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .tabule { width: min(940px, 84vw); }
  .hero__lead { display: none; }
  .kap--rek .kap__h { grid-column: 1 / -1; }
  .kap--rek .kap__def { grid-column: 1 / -1; grid-row: 3; }
  .rek__f1 { grid-column: 1 / 6; grid-row: 1; }
  .rek__txt { grid-column: 6 / 13; grid-row: 1 / 3; }
  .rek__f2 { grid-column: 1 / 6; grid-row: 2; }
  .tabule { width: min(820px, 70vw); }
  .dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .d3__txt { grid-column: 1 / -1; }
  .d3__fotky { grid-column: 1 / -1; }
  .gk__hlava { grid-template-columns: auto minmax(0, 1fr) auto; }
  .gk__p { grid-column: 2 / -1; grid-row: 2; }
}
@media (max-width: 900px) {
  .hd__menu { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
  .hd__menu > span:first-child, .hd__menu > span:first-child::before, .hd__menu > span:first-child::after { display: block; width: 24px; height: 3px; background: var(--ink); position: relative; transition: transform .2s, background .2s; }
  .hd__menu > span:first-child::before, .hd__menu > span:first-child::after { content: ""; position: absolute; left: 0; }
  .hd__menu > span:first-child::before { top: -8px; } .hd__menu > span:first-child::after { top: 8px; }
  .hd__menu[aria-expanded="true"] > span:first-child { background: transparent; }
  .hd__menu[aria-expanded="true"] > span:first-child::before { transform: translateY(8px) rotate(45deg); }
  .hd__menu[aria-expanded="true"] > span:first-child::after { transform: translateY(-8px) rotate(-45deg); }
  .nav { position: fixed; left: 0; right: 0; top: var(--hd); bottom: 0; flex-direction: column; gap: 0; background: var(--zluta); padding: 18px var(--pad); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav__a { font-size: 40px; font-weight: 900; padding: 14px 0; border-bottom: 2px solid var(--ink); letter-spacing: -.02em; }
  .nav__a::after { display: none; }
  .kontakt { grid-template-columns: minmax(0, 1fr); }
  .domy .kap__hlava { grid-column: 1 / -1; }
  .domy__f2 { grid-column: 1 / -1; grid-row: 4; }
  .domy__f1 { grid-column: 1 / -1; grid-row: 2; }
  .domy__txt { grid-column: 1 / -1; grid-row: 3; }
  .ph__txt, .ph--tma .ph__txt { grid-column: 1 / -1; }
  .ph__f, .ph__f--sir { grid-column: 1 / -1; }
  .ph__f img { aspect-ratio: 4 / 3; max-height: none; }
  .sl__txt, .sl--obr .sl__txt, .sl--siroke .sl__txt { grid-column: 1 / -1; grid-row: 1; position: static; }
  .sl__fotky, .sl--obr .sl__fotky, .sl--siroke .mz { grid-column: 1 / -1; grid-row: 2; }
  .jen__h, .jen__txt { grid-column: 1 / -1; }
  .ph--gal .ph__txt { grid-template-columns: minmax(0, 1fr); }
  .tri { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tri__i:first-child { grid-column: 1 / -1; }
  .tri__i:first-child img { aspect-ratio: 16 / 10; }
}

/* ---------- mobil ---------- */
@media (max-width: 720px) {
  :root { --hd: 64px; }
  body { font-size: 17px; padding-bottom: 64px; }
  .hd__tel { display: none; }
  .hd__jm { font-size: 19px; }
  .hd__ob { font-size: 12px; }
  .hd__logo { gap: 10px; }
  .hd__znak { height: 42px; }
  .hd__txt { padding-left: 10px; }
  .ft__znak { height: 64px; }
  .hero { display: block; min-height: 0; padding: 0 0 8px; }
  .hero__foto { position: relative; left: auto; width: 100%; height: 40vh; min-height: 240px; object-position: 50% 30%; }
  .hero__popis { top: calc(40vh - 108px); bottom: auto; right: 12px; font-size: 12px; }
  .tabule { width: auto; margin: -64px 12px 0; padding: 22px 20px; }
  .tabule::before { inset: 8px; border-width: 2px; }
  .srb { width: 10px; height: 10px; } .srb::after { top: 4px; left: 2px; right: 2px; }
  .srb--1 { left: 15px; top: 15px; } .srb--2 { right: 15px; top: 15px; } .srb--3 { left: 15px; bottom: 15px; } .srb--4 { right: 15px; bottom: 15px; }
  .tabule__r { padding: 14px 10px; }
  .tabule__r--pole { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tabule__k { font-size: 12.5px; }
  .tabule__in { font-size: 20px; }
  .tabule__jm { font-size: clamp(48px, 15.4vw, 72px); }
  .tabule__tel a { font-size: clamp(32px, 10vw, 44px); }
  .tabule__btn { width: 100%; }
  .kap { padding: 76px 18px; }
  .kap__h { font-size: clamp(56px, 17vw, 96px); }
  .kap--rek .kap__h { font-size: clamp(48px, 14.6vw, 84px); }
  .kap--domy .kap__h { font-size: clamp(56px, 17vw, 96px); }
  .kap--rek .kap__hlava { display: block; }
  .kap--rek .kap__c { display: inline-block; }
  .rek { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
  .rek__txt { padding: 0; order: -1; }
  .rek__f1 img { aspect-ratio: 4 / 5; }
  .zmeny li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .real { padding: 72px 18px; }
  .real__mriz { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .real__big { grid-column: 1 / -1; grid-row: auto; }
  .real__big img { aspect-ratio: 4 / 5; }
  .domy { display: flex; flex-direction: column; gap: 22px; }
  .domy > * { align-self: stretch !important; }
  .domy__f1 { margin: 0 -18px; }
  .domy__f1 img { aspect-ratio: 4 / 3; }
  .tabule__r--obor { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tabule__obor { flex-direction: column; gap: 2px; }
  .tabule__obor a { font-size: 18px; }
  .kontakt { padding: 72px 18px; gap: 36px; }
  .kontakt__tel { font-size: clamp(44px, 14vw, 64px); }
  .form { grid-template-columns: minmax(0, 1fr); padding: 30px 22px; }
  .form::before { inset: 8px; border-width: 2px; }
  .form__btn { width: 100%; }
  .ft { padding-bottom: 28px; }
  .ft__in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tri { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tri__i:first-child img, .tri__i img { aspect-ratio: 4 / 3; }
  .tri__t { padding: 16px 16px 18px; }
  .dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dl__i img { aspect-ratio: 4 / 5; }
  .ph { padding: 28px 18px 64px; gap: 26px; }
  .ph__c { font-size: 14px; }
  .ph__h { font-size: clamp(40px, 11.4vw, 64px); margin: 16px 0; }
  .ph--tma .ph__h { font-size: clamp(56px, 17vw, 96px); }
  .ph--gal .ph__h { font-size: clamp(64px, 19vw, 110px); }
  .ph__f { margin: 0 -18px; }
  .ph__skok { margin-top: 22px; gap: 8px; }
  .sl { padding: 0 18px 76px; gap: 22px; }
  .sl--bila { padding-top: 64px; }
  .sl__h { font-size: clamp(42px, 12vw, 64px); }
  .odkaz + .odkaz { margin-left: 0; }
  .sl__txt .odkaz { display: flex; width: fit-content; margin-top: 14px; }
  .sl__fotky--3 { aspect-ratio: 4 / 5; margin: 0 -18px; gap: 6px; }
  .sl__fotky--2 { margin: 0 -18px; gap: 6px; }
  .mz { margin: 0 -18px; gap: 6px; }
  .mz__f--vel { aspect-ratio: 4 / 3; }
  .d3__fotky { gap: 6px; }
  .kap--jen { padding: 56px 18px; margin-bottom: 64px; }
  .jen { gap: 18px; }
  .chipy__in { padding: 8px 18px; }
  .chip { font-size: 15px; padding: 6px 12px 4px; }
  .gal { padding: 0 18px 72px; }
  .gk__hlava { grid-template-columns: minmax(0, 1fr) auto; }
  .gk__c { display: none; }
  .gk__p { grid-column: 1 / -1; }
  .g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .lb__f { max-width: 100vw; }
  .lb__img { max-height: calc(100dvh - 170px); }
  .lb__cap { padding: 0 16px; font-size: 15px; }
  .lb__b--pred, .lb__b--dal { top: auto; bottom: 16px; transform: none; }
  .lb__b--pred { left: 16px; } .lb__b--dal { right: 16px; }
  .volat { display: flex; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: 64px; align-items: center; justify-content: center; gap: 12px;
    background: var(--zluta); color: var(--ink); font-weight: 900; font-size: 22px; text-decoration: none; border-top: 2px solid var(--ink);
    padding-bottom: env(safe-area-inset-bottom); }
  .volat span { font-weight: 600; font-size: 16px; }
}
