/* pisma ze stejneho serveru - bez cekani na Google, bez poskoceni textu (audit 13. 10. 2026) */
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonty/instrument-serif-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonty/instrument-serif-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonty/instrument-serif-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonty/instrument-serif-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonty/manrope-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonty/manrope-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* zalozni pisma metricky sladena, aby pri vymene nic neposkocilo */
@font-face { font-family: 'Manrope Fallback'; src: local('Arial'); size-adjust: 103%; ascent-override: 103%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Serif Fallback'; src: local('Times New Roman'); size-adjust: 93%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%; }
/* ============================================================
   Kamenictví Procházka — design systém v2 „Moderní tmavý" (B)
   11. 10. 2026. Instrument Serif + Manrope, ostré hrany, světlý akcent.
   Staré názvy proměnných zůstávají jako aliasy (používá je navrhar.css).
   ============================================================ */

:root {
  --ink:        #f2efe9;
  --mute:       #9a958c;
  --accent:     #c8b89a;
  --accent-2:   #ddd0b6;
  --bg:         #141414;
  --bg-2:       #1c1c1b;
  --bg-3:       #232322;
  --line:       #2e2d2b;
  --line-2:     rgba(255,255,255,.18);
  --serif:      "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
  --sans:       Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  --maxw:       1320px;
  --radius:     0;
  --shadow:     0 18px 50px rgba(0,0,0,.45);
  /* aliasy staré verze */
  --gold:       var(--accent);
  --gold-2:     var(--accent-2);
  --text:       var(--ink);
  --text-muted: var(--mute);
  --cream:      var(--ink);
  --cream-2:    #e4ded3;
  --text-dark:  #141414;
  --text-dark-muted: #57534c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font: 16px/1.6 var(--sans); background: var(--bg); color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
em { font-style: italic; color: var(--accent); }

.container, .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ---------- Sekce + nadpisy ---------- */
.section { padding: 120px 0; position: relative; }
.section--dark  { background: var(--bg); }
.section--dark2 { background: var(--bg-2); }
.section--cream { background: var(--ink); color: var(--bg); }
.section--cream p, .section--cream .section-sub { color: var(--text-dark-muted); }

.label, .eyebrow { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: 18px; }
.eyebrow .dot { display: none; }
.section-title { font-size: clamp(40px, 5vw, 76px); margin-bottom: 18px; max-width: 14em; }
.section-sub { max-width: 640px; margin: 0 0 56px; color: var(--mute); font-size: 17px; }

/* hlavička sekce: popisek vlevo, nadpis vpravo */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: 64px; }
.split h2 { font-size: clamp(44px, 5.5vw, 84px); }
.split p { color: var(--mute); max-width: 560px; margin-top: 22px; font-size: 17px; }

/* ---------- Tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; font: 600 15px/1.2 var(--sans); border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--gold, .btn-fill { background: var(--ink); color: var(--bg); }
.btn--gold:hover, .btn-fill:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--ghost-dark { border-color: var(--bg); color: var(--bg); }
.btn--ghost-dark:hover { background: var(--bg); color: var(--ink); }
.btn--small { padding: 10px 16px; font-size: 14px; }

/* ============================================================
   NAVIGACE (jednotná na všech stránkách)
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 40px; border-bottom: 1px solid var(--line-2); transition: background .3s, height .3s; }
.nav.scrolled { background: rgba(20,20,20,.94); backdrop-filter: blur(10px); border-bottom-color: var(--line); height: 72px; }
.nav__brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nav__brand img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--ink); opacity: .82; transition: opacity .2s; }
.nav__links a:hover, .nav__links a.active, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a.active, .nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-color: var(--accent); }
.nav__tel { font-weight: 600 !important; opacity: 1 !important; white-space: nowrap; }
.nav__cta { padding: 11px 18px; font-size: 14px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }
.lang { position: relative; flex: 0 0 auto; margin-left: auto; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lang summary { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 6px; cursor: pointer; list-style: none; color: var(--ink); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.lang img { width: 21px; height: 14px; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.lang__menu { position: absolute; right: 0; top: 100%; z-index: 120; min-width: 168px; margin: 0; padding: 6px; list-style: none; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.lang__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink); opacity: .85; }
.lang__menu a:hover, .lang__menu a:focus-visible { background: var(--bg-3); opacity: 1; }
.lang__menu a[aria-current] { opacity: 1; color: var(--accent-2); }

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero { position: relative; height: 100vh; min-height: 680px; max-height: 920px; display: flex; align-items: flex-end; color: var(--ink); }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg img, .hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero--kamenici .hero__video { object-position: 30% center; }
.hero__video { transition: opacity .9s ease; }
.hero__video.is-fading { opacity: 0; }
.hero--kamenici .hero__bg { background: #14100a url("/obrazky/hero-kamenici.webp") 30% center / cover no-repeat; }
.hero__pause { position: absolute; z-index: 2; left: 24px; bottom: 24px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(20,16,10,.45); cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); transition: background .2s, border-color .2s; }
.hero__pause:hover { background: rgba(20,16,10,.7); border-color: var(--accent); }
.hero__pause span { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero__pause.is-paused span { width: 0; height: 0; border: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
@media (max-width: 760px) { .hero__pause { left: auto; right: 16px; bottom: 96px; width: 36px; height: 36px; } }
.hero--kamenici .hero__bg::after { background: linear-gradient(90deg, rgba(20,16,10,0) 35%, rgba(20,16,10,.55) 62%, rgba(20,16,10,.78)), linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(20,20,20,.9)); }
.hero--kamenici .hero__inner { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hero--kamenici h1 { font-size: clamp(44px, 4.8vw, 80px); max-width: 7.5em; }
.hero--kamenici .hero__inner > * { max-width: min(560px, 40vw); }
.hero--kamenici .hero__actions { justify-content: flex-end; }
@media (max-width: 760px) { .hero--kamenici .hero__inner > * { max-width: none; } .hero--kamenici .hero__inner { align-items: flex-start; text-align: left; } .hero--kamenici .hero__actions { justify-content: flex-start; } .hero--kamenici .hero__bg::after { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(20,16,10,.85) 75%); } }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.15) 40%, rgba(20,20,20,.95)); }
.hero__inner { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px 72px; }
.hero__eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); opacity: .8; font-weight: 600; margin-bottom: 22px; }
.hero h1 { font-size: clamp(56px, 9vw, 136px); max-width: 10em; }
.hero__claim { font-size: 18px; max-width: 520px; margin: 26px 0 34px; color: #ddd8cf; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta { margin-top: 22px; font-size: 14px; color: var(--mute); }

/* pás čísel */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.strip > div { padding: 34px 28px; border-left: 1px solid var(--line); }
.strip > div:first-child { border-left: 0; padding-left: 0; }
.strip b { display: block; font: 400 44px/1 var(--serif); margin-bottom: 8px; }
.strip span { font-size: 14px; color: var(--mute); }

/* ============================================================
   SLUŽBY — řádkový seznam
   ============================================================ */
.svc { list-style: none; border-top: 1px solid var(--line); }
.svc a { display: grid; grid-template-columns: 80px 1.2fr 1.6fr 220px; gap: 28px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); transition: background .2s; }
.svc a:hover { background: rgba(255,255,255,.025); }
.svc__n { font-size: 13px; color: var(--mute); font-weight: 600; }
.svc h3 { font-size: 40px; }
.svc a:hover h3 { color: var(--accent); }
.svc p { color: var(--mute); font-size: 15px; }
.svc__th { height: 130px; overflow: hidden; }
.svc__th img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc a:hover .svc__th img { transform: scale(1.05); }

/* staré karty (zachováno pro kompatibilitu) */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4/3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 30px; margin-bottom: 10px; }
.card .rule { display: none; }
.card p { color: var(--mute); font-size: 15px; margin-bottom: 18px; }
.card__link { margin-top: auto; font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; transition: gap .2s; }
.card__link:hover { gap: 14px; }
.services__cta { margin-top: 48px; }

/* ============================================================
   VELKÁ FOTKA S POPISKEM + TŘI SLOUPCE
   ============================================================ */
.full { position: relative; height: 78vh; min-height: 520px; overflow: hidden; }
.full img { width: 100%; height: 100%; object-fit: cover; }
.full__cap { position: absolute; left: 40px; bottom: 40px; background: var(--bg); padding: 24px 28px; max-width: 420px; }
.full__cap h3 { font-size: 34px; margin: 6px 0 10px; }
.full__cap p { color: var(--mute); font-size: 15px; }
.full__cap a { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--accent); }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cols figure { margin: 0; }
.cols .im { aspect-ratio: 3/4; overflow: hidden; }
.cols .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cols a:hover .im img { transform: scale(1.04); }
.cols figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font-size: 15px; }
.cols figcaption span { color: var(--mute); }
.more { margin-top: 40px; display: flex; justify-content: flex-end; }
.more a { font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: 4px; }

/* ============================================================
   POSTUP
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { border-left: 1px solid var(--line); padding: 4px 28px 8px; }
.step__num { margin-bottom: 26px; }
.step__num b { font: 400 64px/1 var(--serif); color: var(--accent); }
.step h3 { font-size: 28px; margin-bottom: 10px; }
.step p { color: var(--mute); font-size: 15px; }

/* ============================================================
   GALERIE + FILTR + LIGHTBOX
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery--four { grid-template-columns: repeat(4, 1fr); }
.gallery__item { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer; background: var(--bg-2); }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: rgba(20,20,20,0); transition: background .3s; }
.gallery__item:hover::after { background: rgba(20,20,20,.25); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 18px 14px; color: var(--ink); font: 400 22px/1.1 var(--serif); background: linear-gradient(transparent, rgba(20,20,20,.85)); }
.gallery--portrait .gallery__item, .gallery--portrait .gallery__item img { aspect-ratio: 3/4; }
.gallery__item[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { font: 600 14px/1 var(--sans); min-height: 44px; padding: 0 18px; background: transparent; color: var(--ink); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,10,.95); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { width: auto; height: auto; max-width: min(90vw, 1600px); max-height: 82vh; object-fit: contain; } /* 14. 10. 2026: na sirokem monitoru cela fotka, bez priblizeni */
.lightbox__close { position: absolute; top: 20px; right: 28px; background: none; border: 0; color: var(--ink); font-size: 2.4rem; cursor: pointer; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--ink); font-size: 3rem; cursor: pointer; padding: 0 22px; opacity: .7; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav.prev { left: 0; } .lightbox__nav.next { right: 0; }
.lightbox__counter { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: var(--mute); font-size: 14px; }

/* ============================================================
   O NÁS, VZORKOVNA, KONTAKT
   ============================================================ */
.about__grid, .showroom__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media img, .showroom__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about h2, .showroom h2 { font-size: clamp(40px, 4.6vw, 68px); margin-bottom: 22px; }
.about p { margin-bottom: 16px; color: var(--mute); }
.about__list, .prose ul { list-style: none; margin: 22px 0; }
.about__list li, .prose ul li { padding-left: 22px; position: relative; margin-bottom: 10px; color: var(--mute); }
.about__list li::before, .prose ul li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 1px; background: var(--accent); }
.tag { display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-bottom: 18px; }
.showroom h2 span { display: block; color: var(--accent); font-style: italic; }
.showroom__addr { display: flex; align-items: center; gap: 10px; margin: 22px 0; }
.showroom__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.contact h3.block { font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: 28px; }
.contact__item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__item .ico { flex: 0 0 auto; width: 22px; color: var(--accent); }
.contact__item .lbl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: block; margin-bottom: 4px; font-weight: 600; }
.contact__item .val { font-size: 17px; }
.contact__item a:hover { color: var(--accent); }

.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; display: block; font-weight: 600; }
.form input, .form textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); padding: 14px 16px; font: 16px/1.4 var(--sans); border-radius: 0; transition: border-color .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.form .field--invalid input, .form .field--invalid textarea { border-color: #c0564a; }
.form .field--ok input, .form .field--ok textarea { border-color: #6f9a6a; }
.field__msg { display: block; font-size: 13px; color: #e08c80; margin-top: 4px; }
.field__msg:empty { display: none; }
.form__error { color: #e07a6e; font-size: 14px; min-height: 1em; }
.form__success { color: var(--accent); display: none; }
.form__note { margin: 14px 0 0; font-size: 14px; color: var(--mute); }
.form__note a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   VELKÁ VÝZVA (CTA) + PATIČKA
   ============================================================ */
.cta-big { background: var(--ink); color: var(--bg); padding: 110px 0; }
.cta-big h2 { font-size: clamp(48px, 7vw, 112px); max-width: 11em; }
.cta-big em { color: #7d705a; }
.cta-big .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(20,20,20,.18); }
.cta-big .row span { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #6d675e; font-weight: 600; margin-bottom: 8px; }
.cta-big .row a, .cta-big .row b { font-size: 20px; font-weight: 600; }
.cta-big .row a:hover { text-decoration: underline; }
.cta-big .btn { border-color: var(--bg); color: var(--bg); }
.cta-big .btn--gold { background: var(--bg); color: var(--ink); }
.cta-big .btn:hover { background: var(--bg); color: var(--ink); }

.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer__mark { display: none; } /* 14. 10. 2026 AP: znak u nazvu v paticce zbytecny */
.footer__name { font: 400 26px/1.1 var(--serif); color: var(--ink); margin-top: 12px; }
.footer__divider { display: none; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a:hover, .footer__copy a:hover { color: var(--ink); }
.footer__legal { font-size: 13px; line-height: 1.6; max-width: 760px; margin-bottom: 10px; }
.footer__copy { font-size: 13px; }
.footer__copy a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   PODSTRÁNKY
   ============================================================ */
.subhero { padding: 168px 0 64px; border-bottom: 1px solid var(--line); }
.subhero > *, .subhero .container { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px; }
.subhero .container > * { padding-left: 0; padding-right: 0; }
.breadcrumb { font-size: 13px; color: var(--mute); margin-bottom: 22px; }
.breadcrumb a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.subhero h1 { font-size: clamp(52px, 7.5vw, 112px); max-width: 12em; }
.subhero p { color: var(--mute); max-width: 620px; margin-top: 22px; font-size: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--mute); margin-bottom: 30px; }
.back-link:hover { color: var(--ink); }
.prose { max-width: 760px; }
.prose p { margin-bottom: 18px; color: #c9c4bb; font-size: 17px; }
.prose h2 { font-size: 40px; margin: 48px 0 16px; }
.prose a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }

.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 56px 24px 0; position: relative; font: 400 26px/1.2 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 28px/1 var(--sans); color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 24px; margin: 0; color: var(--mute); max-width: 720px; }
.faq details a { text-decoration: underline; text-underline-offset: 3px; }

/* 14. 10. 2026 (AP: "zrus tu hranu, nehodi se k tomu zbytku"): tmavy pruh misto svetleho bloku */
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 48px; background: var(--bg-2); color: var(--ink); }
.cta-band__h { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 10px; }
.cta-band p { color: var(--mute); margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.cta-band .btn { border-color: var(--ink); color: var(--ink); }
.cta-band .btn--gold { background: var(--ink); color: var(--bg); }
.cta-band .btn:hover { background: var(--ink); color: var(--bg); }

.rel { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.rel__item { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); font: 400 24px/1.1 var(--serif); transition: color .2s; }
.rel__item::after { content: "→"; font: 400 18px/1 var(--sans); color: var(--mute); }
.rel__item:hover { color: var(--accent); }

.error-page { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 120px 24px; }
.error-page h1 { font-size: clamp(96px, 18vw, 220px); color: var(--accent); }
.error-page p { color: var(--mute); margin: 12px 0 30px; }

/* ============================================================
   PŘED / PO
   ============================================================ */
.ba { position: relative; max-width: 860px; aspect-ratio: 3/4; max-height: 680px; overflow: hidden; user-select: none; margin: 0 auto; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; background: var(--ink); z-index: 3; pointer-events: none; }
.ba__handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.ba__label { position: absolute; top: 14px; z-index: 2; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; background: var(--bg); color: var(--ink); padding: 7px 12px; }
.ba__label--pred { left: 14px; } .ba__label--po { right: 14px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; touch-action: pan-y; }
.ba.ba--anim .ba__after, .ba.ba--anim .ba__handle { transition: clip-path .5s ease, left .5s ease; }
.ba-btns { display: flex; justify-content: center; gap: 8px; margin: 14px auto 0; flex-wrap: wrap; }
.ba-btns button { font: 600 13px/1 var(--sans); min-height: 44px; padding: 0 16px; background: transparent; color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
.ba-btns button:hover, .ba-btns button[aria-pressed="true"] { border-color: var(--ink); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ba-pair figure { margin: 0; }
.ba-pair figcaption, .pair figcaption { margin-top: 12px; font-size: 15px; color: var(--mute); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo__item { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.duo__item img { width: 100%; height: 100%; object-fit: cover; }
.pair { margin: 0 0 72px; }
.pair__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.pair__head h3 { font-size: 36px; }
.pair__head span { color: var(--mute); font-size: 15px; }

/* ============================================================
   DROBNOSTI ZE STARÉ VERZE
   ============================================================ */
.badges { border-bottom: 1px solid var(--line); }
.badges .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.badge { font-size: 14px; color: var(--mute); }
.badge .ico { display: none; }
.stats .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px; }
.stat b { display: block; font: 400 48px/1 var(--serif); }
.stat span { font-size: 14px; color: var(--mute); }
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ref { border: 1px solid var(--line); padding: 28px; }
.ref p { font: italic 400 22px/1.3 var(--serif); margin-bottom: 14px; }
.ref cite { font-style: normal; color: var(--mute); font-size: 14px; }
.ref__stars { color: var(--accent); margin-bottom: 12px; }
.marquee { display: none; }
.dilna { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dilna--two { grid-template-columns: repeat(2, 1fr); }
.dilna__n { display: block; font: 400 28px/1.1 var(--serif); margin-bottom: 6px; }
.dilna__h3 { margin: 56px 0 18px; font-size: clamp(30px, 3vw, 44px); }

/* ---------- Mobilní lišta ---------- */
.mbar { display: none; }

/* ---------- Animace ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .1s; } .rv-d2 { transition-delay: .2s; } .rv-d3 { transition-delay: .3s; } .rv-d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rvc { animation: vystup linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  }
}
@keyframes vystup { from { opacity: .15; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .ba.ba--anim .ba__after, .ba.ba--anim .ba__handle { transition: none; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
  .svc a { grid-template-columns: 56px 1fr 1.3fr 160px; }
}
@media (max-width: 900px) {
  .container, .wrap, .hero__inner { padding-left: 16px; padding-right: 16px; }
  .subhero > *, .subhero .container { padding-left: 16px; padding-right: 16px; }
  .nav { padding: 0 16px; height: 68px; }
  .nav.scrolled { height: 64px; }
  .section { padding: 72px 0; }
  .split, .about__grid, .showroom__grid, .contact__grid { grid-template-columns: 1fr; gap: 28px; }
  .strip, .steps, .refs, .badges .container, .cta-big .row { grid-template-columns: 1fr 1fr; }
  .strip > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip > div { border-top: 1px solid var(--line); }
  .strip > div:nth-child(-n+2) { border-top: 0; }
  .step { padding: 0 16px 28px; }
  .svc a { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .svc__th { height: 200px; order: -1; }
  .svc h3 { font-size: 34px; }
  .cols, .rel, .services__grid, .dilna, .dilna--two { grid-template-columns: 1fr; }
  .full { height: 70vh; }
  .full__cap { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .gallery, .gallery--four { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery__cap { font-size: 16px; padding: 28px 10px 10px; }
  .cta-big { padding: 72px 0; }
  .cta-band { grid-template-columns: 1fr; padding: 32px 22px; }
  .cta-band__actions { min-width: 0; }
  .subhero { padding: 120px 0 44px; }
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: 40px; background: var(--bg); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .35s ease; }
  .nav__links.open { transform: none; }
  .nav__links a { font: 400 30px/1.1 var(--serif); opacity: 1; }
  .nav__links .nav__tel { font: 600 18px/1 var(--sans) !important; margin-top: 12px; }
  .nav__toggle { display: block; z-index: 101; min-width: 44px; min-height: 44px; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 760px) {
  .mbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(20,20,20,.97); border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mbar a { display: flex; align-items: center; justify-content: center; min-height: 48px; font-size: 15px; font-weight: 600; }
  .mbar__call { background: var(--ink); color: var(--bg); }
  .mbar__form { border: 1px solid var(--ink); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .ba-pair, .form .row { grid-template-columns: 1fr; }
  .btn { min-height: 48px; }
  .footer__nav a, .breadcrumb a, .back-link { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 560px) {
  .hero { min-height: 600px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .strip b { font-size: 36px; }
  .strip > div { padding: 24px 12px 24px 16px; }
  .steps, .refs, .badges .container, .cta-big .row, .stats .container { grid-template-columns: 1fr; }
  .duo { gap: 6px; }
}

/* ============================================================
   PANELY ÚVODNÍ STRÁNKY (celoobrazovkové, scroll-snap) — AP 12. 10. 2026
   ============================================================ */
html:has(body.snap) { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
.panel { position: relative; min-height: 100vh; min-height: 100svh; scroll-snap-align: start; display: flex; align-items: center; padding: 104px 0 56px; }
.panel h2 { font-size: clamp(36px, 4.2vw, 64px); margin-bottom: 18px; }
.panel p { color: #ddd8cf; max-width: 560px; }
.panel .hero__actions { margin-top: 30px; }
.panel--uvod { flex-direction: column; align-items: stretch; padding: 0; }
.panel--uvod .hero { flex: 1; height: auto; min-height: 0; max-height: none; }
.panel--uvod > .container { width: 100%; }
.strip--3 { grid-template-columns: repeat(3, 1fr); }
.strip--3 > div { padding-block: 24px; }
.panel__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; width: 100%; }
.panel__grid--wide { grid-template-columns: .8fr 1.4fr; }
.panel__media--two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel figure { position: relative; margin: 0; overflow: hidden; }
.panel figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel__media--two figure { aspect-ratio: 3 / 4.2; }
.panel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); }
.panel--photo { align-items: flex-end; }
.panel__bg { position: absolute; inset: 0; overflow: hidden; }
.panel__bg img, .panel__bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.85), rgba(20,20,20,.35) 55%, rgba(20,20,20,.1)), linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(20,20,20,.9)); }
.panel__inner { position: relative; z-index: 1; width: 100%; padding-bottom: 32px; }
.mosaic { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: min(68vh, 620px); }
.mosaic__big { grid-row: 1 / 3; }
.panel__head { margin-bottom: 36px; }
.trio { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.trio li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
.trio figure { grid-column: 1 / -1; aspect-ratio: 4 / 3; margin-bottom: 16px; border: 1px solid var(--line); }
.trio__n { grid-row: 2 / 4; font: 400 40px/1 var(--serif); color: var(--accent); }
.trio b { font-weight: 600; }
.trio li > span:last-child { grid-column: 2; font-size: 14px; color: var(--mute); }
.trio__doc { display: grid; place-items: center; background: #1c1b19; }
.trio__docbox { width: 46%; aspect-ratio: 1 / 1.41; background: #efece6; padding: 9% 8%; display: flex; flex-direction: column; gap: 7%; box-shadow: 0 10px 30px rgba(0,0,0,.5); transform: rotate(-3deg); }
.trio__docbox i { display: block; height: 4%; background: #b9b4aa; }
.trio__docbox i:nth-child(1) { width: 60%; height: 6%; background: #8b857a; }
.trio__docbox i.redact { background: #111; height: 7%; }
.trio__doc { overflow: hidden; display: block; position: relative; }
.trio__doc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.panel figure.film { aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #1c1b19; }
.panel figure.film video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film--wide { max-height: min(44vh, 500px); width: 100%; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 18px 0 28px; padding: 0; font-size: 14px; color: var(--mute); }
.steps b { font: 400 22px/1 var(--serif); color: var(--accent); margin-right: 8px; }
.panel--about .about__grid { width: 100%; }
/* Tradice: text vlevo nahore, schody Spiraly vpravo dole, postava na ne doskoci (13. 10. 2026) */
.panel--about { align-items: flex-start; overflow: hidden; }
/* 15. 10. 2026: postava v meritku a poloze z puvodni fotky (hlava y138, chodidla y797 z 1200) */
/* Scena drzi pomer 3:4, aby postava (v % souradnicich z puvodni fotky) dopadla presne na svuj schod */
.about__scena { position: absolute; right: 0; bottom: 0; height: min(94%, 77vw); aspect-ratio: 3 / 4; z-index: 0; }
.about__schody { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32%), linear-gradient(to bottom, transparent 0, #000 12%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 32%), linear-gradient(to bottom, transparent 0, #000 12%); mask-composite: intersect; opacity: .92; }
/* Tradice: AP stoji na sirokem stupni, ne na hrane - driv visel ve vzduchu (AP 16. 10. 2026) */
.about__ap { position: absolute; left: 32.4%; top: 16.8%; width: 28%; height: auto; transform-origin: 50% 100%; opacity: 0; transform: translateY(-120vh); }
.about__stin { position: absolute; left: 34.6%; top: 71.3%; width: 30%; height: 4.4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), rgba(0,0,0,.3) 55%, transparent); opacity: 0; }
.about__scena.is-dopad .about__ap { opacity: 1; animation: postava-pad .9s linear forwards; }
.about__scena.is-dopad .about__stin { animation: tradice-stin .9s linear forwards; }
.about__scena.is-stoji .about__ap { opacity: 1; transform: none; animation: none; }
.about__scena.is-stoji .about__stin { opacity: 1; animation: none; }
@keyframes tradice-stin { 0%, 45% { opacity: 0; transform: scale(.4); } 58% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .about__scena .about__ap, .about__scena .about__stin { opacity: 1; transform: none; animation: none !important; } }
.panel--about .container { position: relative; z-index: 1; }
.panel--about .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.about__text { max-width: 560px; }
.panel--kontakt { flex-direction: column; align-items: stretch; padding: 0; }
.panel--kontakt > section { width: 100%; }
@media (max-width: 900px) {
  .panel { padding: 92px 0 48px; }
  .panel--about { flex-direction: column; padding-bottom: 0; }
  .about__scena { position: relative; height: min(56vh, 120vw); margin: 8px auto 0; order: 2; }
  .about__schody { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%); }
  .panel--about .about__grid { grid-template-columns: 1fr; }
  .panel__grid, .panel__grid--wide { grid-template-columns: 1fr; gap: 28px; }
  .mosaic { height: 54vh; }
  .trio { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .trio figure { aspect-ratio: 3 / 4; margin-bottom: 8px; }
  .trio__n { font-size: 26px; }
  .trio li > span:last-child { display: none; }
  .strip--3 { grid-template-columns: repeat(3, 1fr); }
  .strip--3 > div, .strip--3 > div:nth-child(3) { border-top: 0; border-left: 1px solid var(--line); padding: 16px 10px; }
  .strip--3 > div:first-child { border-left: 0; padding-left: 0; }
  .strip--3 b { font-size: 30px; }
  .strip--3 span { font-size: 12px; }
}
@media (max-width: 560px) {
  .panel h2 { font-size: 34px; }
  .panel__media--two figure { aspect-ratio: 3 / 3.4; }
  .mosaic { height: 46vh; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html:has(body.snap) { scroll-snap-type: y proximity; } }

/* Obce: slider pred/po (12. 10. 2026) — sdileny .ba, jen pomer 4:3 */
.ba.ba--4x3 { aspect-ratio: 4 / 3; max-width: 980px; max-height: min(54vh, 600px); margin-bottom: 0; }
.ba--auto img, .ba--auto .ba__cap { transition: opacity .45s ease; }
.ba--auto.is-swap img, .ba--auto.is-swap .ba__cap { opacity: 0; }
.ba--auto { background: #141414; }
.ba__cap { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; font: 400 20px/1.1 var(--serif); color: #fff; background: rgba(20,16,10,.55); padding: 8px 16px; backdrop-filter: blur(4px); white-space: nowrap; pointer-events: none; }
.ba-pary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 24px; }
.ba-pary figure { margin: 0; }
.ba-pary figure > div { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ba-pary img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ba-pary figcaption { font-size: 13px; color: var(--mute); margin-top: 6px; }
@media (max-width: 700px) { .ba-pary { grid-template-columns: 1fr; } }

/* Stavby: pas referenci; karta se pri najeti/tapnuti plynule rozevre a prolinaji se fotky z te stavby (AP 12. 10. 2026) */
/* bez posuvniku - vsechny karty videt, zalamuji se (AP 16. 10.: "odstrihl jsi Allure, Andaz") */
.stavby-refs { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 10px; padding: 18px 0 20px; }
.stavby-refs li { position: relative; flex: 1 1 150px; min-width: 130px; aspect-ratio: auto; height: clamp(112px, 13.5vw, 165px); overflow: hidden; outline: none; background: #141414; transition: box-shadow .5s; z-index: 0; cursor: pointer; }
.stavby-refs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 1.1s ease; }
.stavby-refs img.g { opacity: 0; }
.stavby-refs img.is-bylo { opacity: 1; z-index: 1; }
/* bez zoomu - fotky se jen prolinaji, cela fotka je videt (AP 13. 10.: "hraje si se zvetsenim") */
.stavby-refs img.is-vidim { opacity: 1; z-index: 2; }
.stavby-refs span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 12px; line-height: 1.25; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); z-index: 3; }
.stavby-refs li:hover, .stavby-refs li:focus-visible, .stavby-refs li.is-on { --s: 1; outline: 2px solid rgba(255,255,255,.85); outline-offset: -2px; box-shadow: 0 18px 40px rgba(0,0,0,.5); z-index: 3; }
.stavby-refs .tecky { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 5px; opacity: 0; transition: opacity .4s; }
.stavby-refs .tecky i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .4s, transform .4s; }
.stavby-refs .tecky i.is-vidim { background: #fff; transform: scale(1.3); }
.stavby-refs li:hover .tecky, .stavby-refs li:focus-visible .tecky, .stavby-refs li.is-on .tecky { opacity: 1; }
/* efekty karet spousti sam navstevnik najetim, proto bezi i pri vypnutych animacich ve Windows (AP 12. 10.) */
/* Postava kamenika pri scrollu (postava.js, 12. 10. 2026) */
.postava { position: fixed; right: max(16px, 3vw); bottom: 0; height: calc(min(64vh, 580px) * var(--vyska, 1)); aspect-ratio: var(--pomer, .6); z-index: 40; pointer-events: none; visibility: hidden; }
.postava.is-ven, .postava.is-dopad { visibility: visible; }
.postava__telo { height: 100%; transform-origin: 50% 100%; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); }
.postava__telo img { height: 100%; width: auto; display: block; }
.postava__telo.is-flip img { transform: scaleX(-1); }
.postava__helma { position: absolute; left: calc(var(--hx, .5) * 100%); top: calc(var(--hy, 0) * 100%); width: calc(var(--hw, .39) * 100%); height: auto; transform: translateX(-53%) scaleX(-1); opacity: 0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.postava.is-ven .postava__telo { animation: postava-skok .26s cubic-bezier(.5,0,.9,.4) forwards; }
.postava.is-nahore .postava__telo { transform: translateY(-120vh); }
.postava.is-dopad .postava__telo { animation: postava-pad .9s linear forwards; }
.postava.is-dopad.s-helmou .postava__helma { animation: postava-helma .9s linear forwards; }
.postava.is-ven.s-helmou .postava__helma { opacity: 1; animation: postava-helma-ven .26s cubic-bezier(.5,0,.9,.4) forwards; }
@keyframes postava-skok {
  0% { transform: none; }
  30% { transform: translateY(3%) scale(1.03, .93); }
  100% { transform: translateY(-120vh) scale(.96, 1.06); }
}
@keyframes postava-pad {
  0% { transform: translateY(-120vh) scale(.96, 1.08); filter: blur(3px) drop-shadow(0 14px 18px rgba(0,0,0,.45)); animation-timing-function: cubic-bezier(.55,0,1,.6); }
  55% { transform: translateY(0) scale(.98, 1.04); filter: blur(0) drop-shadow(0 14px 18px rgba(0,0,0,.45)); animation-timing-function: ease-out; }
  64% { transform: translateY(0) scale(1.05, .9); }
  78% { transform: translateY(-1.5%) scale(.99, 1.02); }
  100% { transform: none; }
}
@keyframes postava-helma-ven {
  0% { transform: translateX(-53%) scaleX(-1); opacity: 1; }
  30% { transform: translateX(-53%) translateY(8%) scaleX(-1); opacity: 1; }
  100% { transform: translateX(-53%) translateY(-120vh) scaleX(-1); opacity: 1; }
}
@keyframes postava-helma {
  /* helma prileti az po dopadu tela a zustane nasazena na hlave (14. 10. 2026) */
  0%, 60% { transform: translateX(-53%) translateY(-130vh) rotate(160deg) scaleX(-1); opacity: 1; animation-timing-function: cubic-bezier(.45,0,1,.7); }
  86% { transform: translateX(-53%) translateY(0) rotate(0) scaleX(-1); opacity: 1; animation-timing-function: ease-out; }
  93% { transform: translateX(-53%) translateY(-6%) rotate(-4deg) scaleX(-1); opacity: 1; }
  100% { transform: translateX(-53%) scaleX(-1); opacity: 1; }
}
@media (max-width: 700px) { .postava { height: calc(min(34vh, 260px) * var(--vyska, 1)); right: 8px; } }
@media (prefers-reduced-motion: reduce) {
  .postava .postava__telo, .postava .postava__helma { animation: none !important; transform: none; }
  .postava .postava__helma { transform: translateX(-53%) scaleX(-1); }
  .postava.is-dopad.s-helmou .postava__helma { opacity: 1; }
  .postava { transition: opacity .3s; opacity: 0; }
  .postava.is-dopad { opacity: 1; }
}
@media (min-width: 1000px) {
  .stavby-refs { margin-right: min(26vw, 340px); }
}
/* Jednotny model referencnich sekci (13. 10. 2026, AP "udelej konzistenci"): vsechny 4 jako Stavby - ostre pozadi, slabsi zatemneni, karty bez posuvniku */
#stavby .panel__bg img { object-position: 60% 40%; }
#nahrobky .panel__bg::after, #interier .panel__bg::after, #stavby .panel__bg::after, #obce .panel__bg::after { background: linear-gradient(90deg, rgba(20,20,20,.62), rgba(20,20,20,.18) 50%, rgba(20,20,20,0) 70%), linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(20,20,20,.85)); }
#nahrobky .panel__bg img, #interier .panel__bg img, #obce .panel__bg img { filter: none; }
.panel--photo .panel__inner h2, .panel--photo .panel__inner > p { text-shadow: 0 2px 14px rgba(0,0,0,.7); }
/* Reference: pozadi sekce podle karty - fotka, pak kratke video (AP 13. 10. 2026) */
.panel > .container { position: relative; z-index: 2; }
.ref-bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; opacity: 0; transition: opacity .7s ease; pointer-events: none; background: #141414; }
/* Jen fotka pres celou sekci; nova nabehne vzadu a oddali se 1.08 -> 1 (AP 13. 10.: nepriblizovat) */
.ref-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.08); transition: opacity .9s ease, transform 2.6s cubic-bezier(.2,.7,.25,1); }
/* fotka celá a menší v pravé části, okolí doplní rozmazaná kopie (AP 13. 10.) */
.ref-bg img:not(.ref-bg__fill) { inset: 9% auto auto 30%; width: 67.5%; height: 82%; object-fit: contain; object-position: 100% 50%; filter: drop-shadow(0 18px 40px rgba(0,0,0,.55)); }
.ref-bg img.ref-bg__fill { object-fit: cover; filter: blur(28px) brightness(.55); transform: scale(1.15); transition: opacity .9s ease; }
@media (max-width: 900px) { .ref-bg img:not(.ref-bg__fill) { inset: 0; width: 100%; height: 100%; object-position: 50% 50%; filter: none; } }
.ref-bg img.is-vidim { opacity: 1; }
.ref-bg img.ref-bg__glow { filter: none; transition: opacity 2.6s cubic-bezier(.45,0,.55,1), transform 2.6s cubic-bezier(.2,.7,.25,1); }
.ref-bg img.ref-bg__glow.is-vidim { opacity: 0; }
.ref-bg img.ref-bg__glow.is-vidim.is-sviti { opacity: 1; }
.ref-bg img.is-oddal { transform: none; }
@media (prefers-reduced-motion: reduce) { .ref-bg, .ref-bg img { transition: none !important; transform: none !important; } }
.ref-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.72), rgba(20,20,20,.28) 42%, rgba(20,20,20,0) 68%), linear-gradient(180deg, rgba(0,0,0,0) 62%, rgba(20,20,20,.8)); }
section.is-ref > .ref-bg { opacity: 1; }
@media (max-width: 900px) { .ref-bg::after { background: linear-gradient(180deg, rgba(20,20,20,.35), rgba(20,20,20,.62) 35%, rgba(20,20,20,.62) 70%, rgba(20,20,20,.85)); } }
.stavby-refs .ref-cred { position: absolute; top: 6px; left: 8px; z-index: 4; font-size: 10px; line-height: 1.3; color: rgba(255,255,255,.85); text-decoration: none; background: rgba(0,0,0,.5); padding: 2px 6px; }
.stavby-refs .ref-cred:hover { text-decoration: underline; }
/* Interier: pozadi = tataz upravena realizace jako karta, jen v prave casti a s mekkym prechodem, ne pres celou sekci (AP 13. 10. 2026) */
@media (max-width: 900px) { .stavby-refs li { flex-basis: 140px; } }
/* najeti na kartu: ostatni karty zmizi, aby bylo videt okoli fotky (AP 13. 10.) */
@media (hover: hover) and (min-width: 901px) {
  .stavby-refs li { transition: transform .45s cubic-bezier(.22,.8,.24,1), box-shadow .5s, opacity .45s ease; }
  /* stav ridi JS trida is-akt s prodlevou 250 ms - mezera mezi kartami uz nebliká a fotka neskace (AP 16. 10. 2026: "preskakuje, klepe se") */
  section.is-ref .stavby-refs li:not(.is-akt) { opacity: 0; }
  /* najeti = vetsi fotka pres temer celou sekci, text ustoupi (AP 15. 10. vecer, kolo 4 N1) */
  .panel__inner > .label, .panel__inner > h2, .panel__inner > p, .panel__inner > .hero__actions { transition: opacity .5s ease; }
  section.is-ref .panel__inner > :is(.label, h2, p, .hero__actions) { opacity: .08; }
  /* pevna poloha, animuje se jen pruhlednost a oddaleni (zadne inset/width/height ani drop-shadow - zatezovalo renderer) */
  .ref-bg img:not(.ref-bg__fill) { inset: 4% auto auto 3%; width: 94%; height: calc(96% - 230px); object-position: 50% 50%; filter: none; }
  section.is-ref .ref-bg::after { background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(20,20,20,.75)); }
}
/* Obce: karta, na kterou postava prave ukazuje (skica na desce) */
#obce .stavby-refs li.is-ukazuje { outline: 2px solid rgba(255,255,255,.55); outline-offset: -2px; }

/* krb v sekci Interier: ohen hori od zacatku a jen se hybe - animovany webp (AP 15. 10. vecer, kolo 4 O1) */
