/* Home Harmony · Developerské projekty (/developerske-projekty/)
   Jako web a posty studia: hranaté fotky, tenké černé linky (1px #221E20), Cormorant verzálky, bílá + zelená.
   Zaoblená zůstávají jen tlačítka (pilulky). */

/* ---------- úvod: vlastní, ne kopie projektu. Velký nadpis vlevo, text vpravo, pás hranatých fotek s linkami ---------- */
.dev-hero { padding: calc(var(--header-h) + calc(70 * var(--u))) var(--pad) calc(60 * var(--u)); }
.dev-hero-top { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dev-hero-grid { padding: calc(60 * var(--u)) 0 calc(56 * var(--u)); }
.dev-hero-under { margin-top: 30px; max-width: 620px; }
.dev-hero h1 { font-family: var(--f-serif); font-weight: 300; font-size: calc(124 * var(--u)); line-height: .86; letter-spacing: -.05em; text-transform: uppercase; }
.dev-hero h1 span { display: block; }
.dev-hero .lead { font-size: 18px; line-height: 1.6; max-width: 560px; }
.dev-hero .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dev-hero-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 10px; }
.dev-hero-strip figure { position: relative; margin: 0; height: calc(560 * var(--u) + 60px); overflow: hidden; background: #F6F2EC; }
.dev-hero-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dev-hero-strip figure:hover img { transform: scale(1.03); }
.dev-hero-strip figcaption { position: absolute; left: 0; bottom: 0; padding: 7px 12px; background: var(--white); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dev-hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dev-hero-facts div { padding: 18px 0 16px; display: grid; gap: 6px; }
.dev-hero-facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.dev-hero-facts b { font-family: var(--f-serif); font-weight: 300; font-size: 28px; line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.dev-jump { display: flex; gap: 8px; margin-top: 22px; overflow-x: auto; scrollbar-width: none; }
.dev-jump::-webkit-scrollbar { display: none; }
.dev-jump .btn-pill { flex: none; }

.dev-sec .block-head { margin-bottom: 48px; }

/* ---------- spouštěcí náhled (3D se načte až po kliknutí) ---------- */
.dev-start { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; align-content: center; gap: 12px; background: #F6F2EC; cursor: pointer; }
.dev-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 1.2s var(--ease); }
.dev-start::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 45% 50%, rgba(255,255,255,.1), rgba(255,255,255,.72) 75%); z-index: 1; }
.dev-start .btn-pill, .dev-start small { position: relative; z-index: 2; }
.dev-start .btn-pill { height: 46px; padding: 0 22px; font-size: 15px; }
.dev-start small { font-family: var(--f-sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--white); padding: 5px 12px; border-radius: 99px; }
.dev-start:hover img { transform: scale(1.015); }
.dev-start:hover .btn-pill { background: var(--green); border-color: var(--green); color: var(--white); }
.dev-start.is-loading .btn-pill svg { animation: devPulse 1s infinite; }
@keyframes devPulse { 50% { opacity: .2; } }
iframe { display: block; }

/* ---------- 3D dům ---------- */
.dum { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white); }
.dum-stage { position: relative; aspect-ratio: 5 / 4; background: #F6F2EC; border-right: 1px solid var(--line); }
.dum-stage iframe { position: absolute; inset: 0; width: 100%; height: calc(100% - 64px); border: 0; }
.dum-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; border-top: 1px solid var(--line); background: var(--white); z-index: 2; }
.dum-floors { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.dum-floors button, .dum-tools button { flex: none; height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; font-family: var(--f-ui); font-size: 13px; transition: background .2s, color .2s; }
.dum-floors button:hover, .dum-tools button:hover, .dum-floors button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.dum-tools { display: flex; gap: 4px; }
.dum-tools button { width: 36px; padding: 0; display: grid; place-items: center; }
.dum-panel { position: relative; min-height: 0; }
.dp-in { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 24px 20px; scrollbar-width: none; animation: fadeUp .35s var(--ease) both; }
.dp-in::-webkit-scrollbar { display: none; }
.dum-panel .eyebrow { margin-bottom: 6px; font-size: 12px; }
.dp-h { font-family: var(--f-serif); font-weight: 300; font-size: 34px; line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.dp-p { margin-top: 10px; font-size: 15px; line-height: 1.5; }
.dp-back { height: 36px; padding: 0 14px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 99px; font-family: var(--f-ui); font-size: 13px; }
.dp-back:hover { background: var(--ink); color: var(--white); }
/* dlaždice čísel: mřížka s linkami, žádné zaoblení */
/* přehled domu jako Přehled v administraci: barevné karty, popisek nahoře, velké tenké číslo */
.dp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.dp-tile { position: relative; display: flex; flex-direction: column; min-height: 128px; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 20px; text-align: left; transition: transform .15s; }
.dp-tile:hover { transform: translateY(-2px); }
.dp-tile .lb { font-family: var(--f-display); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.dp-tile b { margin: auto 0 4px; font-family: var(--f-serif); font-weight: 300; font-size: 54px; line-height: .9; letter-spacing: -.04em; }
.dp-tile em { font-style: normal; font-family: var(--f-display); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.dp-tile.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.dp-tile.green { background: var(--green); color: var(--white); border-color: var(--green); }
.dp-tile:nth-child(4) b { color: rgba(34,30,32,.38); }
.dp-floors, .dp-flats { margin-top: 16px; border-top: 1px solid var(--line); }
.dp-floors button, .dp-flats button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 7px 2px; border-bottom: 1px solid var(--line); text-align: left; transition: background .2s; }
.dp-floors button, .dp-flats button { padding-left: 8px; padding-right: 8px; }
.dp-floors button:hover, .dp-flats button:hover, .dp-flats button.hov { background: var(--green); color: var(--cream); }
.dp-floors button:hover small, .dp-flats button:hover small, .dp-flats button.hov small, .dp-floors button:hover .fr { color: rgba(242,234,231,.7); }
.dp-flats button:hover .no.st-free, .dp-flats button.hov .no.st-free { background: var(--cream); color: var(--green); }
.dp-flats button:hover .st-free, .dp-flats button.hov .st-free { background: var(--cream); color: var(--green); }
.dp-floors .np { flex: none; width: 54px; font-family: var(--f-ui); font-size: 12.5px; }
.dp-floors .nm, .dp-flats .nm { flex: 1; min-width: 0; font-size: 15px; }
.dp-floors small, .dp-flats small { display: inline; margin-left: 8px; font-size: 12.5px; color: var(--grey); }
.dp-floors .fr { flex: none; font-family: var(--f-ui); font-size: 13px; }
.dp-floors .fr.none { color: var(--grey); }
.dp-flats .no { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-ui); font-size: 12px; background: var(--ink); color: var(--white); }
.dp-flats .no.st-res { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.dp-flats .no.st-sold { background: #EEE9E2; color: var(--grey); }
.dp-flats .pr { flex: none; font-family: var(--f-ui); font-size: 13.5px; }
.dp-flats .pr.sold { color: var(--grey); text-decoration: line-through; }
.st { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-family: var(--f-ui); font-size: 11.5px; }
.st-free { background: var(--ink); color: var(--white); }
.st-res { color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.st-sold { background: #EEE9E2; color: var(--grey); }
.dp-sum { margin-top: 14px; border-top: 1px solid var(--line); }
.dp-sum div { display: flex; justify-content: space-between; padding: 9px 2px; font-size: 14px; border-bottom: 1px solid var(--line); }
.dp-sum b { font-weight: 400; font-family: var(--f-ui); font-size: 13.5px; }
.dp-sum .tot { background: var(--ink); color: var(--white); padding: 10px 12px; border-radius: 10px; border: 0; margin-top: 6px; }
.dp-hint { margin-top: 10px; font-size: 13px; color: var(--grey); }
.dp-price { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
/* Cormorant v5 posouvá háčky malých písmen (Kč): cena v Helvetice Light */
.dp-price b { font-family: var(--f-sans); font-weight: 300; font-size: 32px; line-height: 1; letter-spacing: -.02em; }
.dp-price b.sold { color: var(--grey); text-decoration: line-through; }
.dp-sub { margin-top: 6px; font-size: 14px; color: var(--grey); }
.dp-fict { margin-top: 8px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.dp-plan { display: grid; place-items: center; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 12px; cursor: zoom-in; }
.dp-plan img { max-height: 280px; width: auto; object-fit: contain; }
.dp-rooms { margin-top: 12px; border-top: 1px solid var(--line); }
.dp-rooms div { display: flex; justify-content: space-between; padding: 8px 2px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.dp-rooms b { font-weight: 400; font-family: var(--f-ui); font-size: 13.5px; }
.dp-rooms .out { color: var(--green); }
.dp-rooms .tot { background: var(--ink); color: var(--white); padding: 9px 10px; border-radius: 10px; border: 0; margin-top: 6px; }
.dp-btns { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.dum-legend { display: flex; gap: 20px; padding-top: 14px; font-family: var(--f-ui); font-size: 13px; }
.dum-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dum-legend i { width: 10px; height: 10px; }
.k-free { background: var(--ink); }
.k-res { background: var(--green); }
.k-sold { background: #DDD6CC; }

/* ---------- prohlídka bytu ---------- */
.byt { position: relative; height: min(82vh, 860px); min-height: 560px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; }
.byt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- proměna (sekce půdorysu z projektů) ---------- */
.dev-plan .plan-stage { background: #fff; }
.dev-plan .plan-stage img { object-fit: contain; }
.dev-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dev-legend i { width: 18px; height: 6px; }

/* ---------- mood board: koláž s černými linkami mezi fotkami jako na postech ---------- */
.mb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: calc(260 * var(--u)); grid-auto-flow: dense; gap: 10px; }
.mb-t { position: relative; margin: 0; overflow: hidden; background: #F6F2EC; }
.mb-t.w2 { grid-column: span 2; }
.mb-t.h2 { grid-row: span 2; }
.mb-t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mb-t:hover img { transform: scale(1.03); }
.mb-t figcaption { position: absolute; left: 0; bottom: 0; padding: 7px 12px; background: var(--white); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.mb-q { display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; background-size: cover; background-position: center; color: var(--white); }
.mb-q::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,41,26,.82), rgba(14,41,26,.2)); }
.mb-q blockquote { position: relative; margin: 0; font-family: var(--f-serif); font-weight: 300; font-size: calc(46 * var(--u)); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.mb-q figcaption { position: relative; margin-top: 12px; padding: 0; background: none; border: 0; color: rgba(255,255,255,.75); }
.mb-metal { background: linear-gradient(135deg, #2a2b2e, #141517); }
.mb-metal figcaption { background: var(--ink); color: var(--white); border-color: rgba(255,255,255,.25); }

/* ---------- vizualizace: pás se swipem a fadem vpravo, jako na Weby Studiu ---------- */
.vz-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 22px; border-bottom: 1px solid rgba(242,234,231,.35); }
.vz-filter::-webkit-scrollbar { display: none; }
.vz-filter button { flex: none; height: 36px; padding: 0 14px; border: 1px solid var(--cream); border-radius: 99px; color: var(--cream); font-family: var(--f-ui); font-size: 13px; transition: background .2s, color .2s, border-color .2s; }
.vz-filter button:hover { background: var(--cream); color: var(--green); }
.vz-filter button[aria-pressed="true"] { background: var(--cream); color: var(--green); }
.vz-filter button[aria-pressed="true"], .vz-filter button[aria-pressed="true"]:not([data-room="all"]) { background: var(--white); border-color: var(--white); color: var(--green); }
.vz-wrap { position: relative; margin-top: 22px; }
.vz-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.vz-track::-webkit-scrollbar { display: none; }
.vz-i { position: relative; flex: none; width: calc(380 * var(--u) + 80px); aspect-ratio: 4 / 5; overflow: hidden; scroll-snap-align: start; background: var(--green-2); cursor: zoom-in; text-align: left; transition: opacity .3s; }
.vz-i img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.vz-i:hover img { transform: scale(1.03); }
.vz-i::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--white); opacity: 0; transition: opacity .3s; pointer-events: none; }
.vz-i.is-on::after { opacity: 1; }
.vz-i.is-dim { opacity: .45; }
.vz-i span { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 16px 14px; background: linear-gradient(to top, rgba(14,41,26,.85), transparent); color: var(--cream); font-size: 14px; line-height: 1.3; }
.vz-i em { display: block; font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(242,234,231,.7); margin-bottom: 2px; }
.vz-i.is-on em { color: #A9C4B2; }
.vz-fade { position: absolute; top: 0; right: -1px; bottom: 0; width: 18%; background: linear-gradient(to left, var(--green), transparent); pointer-events: none; transition: opacity .3s; }
.vz-wrap.at-end .vz-fade { opacity: 0; }
.vz-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.vz-nav .t-label { color: var(--cream); }
.vz-nav div { display: flex; gap: 6px; }
.vz-nav button { width: 42px; height: 42px; border: 1px solid var(--cream); border-radius: 50%; color: var(--cream); font-size: 16px; transition: background .2s, color .2s; }
.vz-nav button:hover { background: var(--cream); color: var(--green); }
/* prohlížeč: fotka a dole lišta s místností */
.vz-box { position: fixed; inset: 0; z-index: 160; display: flex; flex-direction: column; background: rgba(14,41,26,.97); }
.vz-box[hidden] { display: none; }
.vz-box figure { flex: 1; min-height: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: 24px 24px 12px; overflow: hidden; cursor: zoom-out; }
.vz-box img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); object-fit: contain; }
.vz-bar { flex: none; background: var(--green); border-radius: 99px; display: flex; align-items: center; gap: 8px; margin: 0 auto 22px; width: min(760px, calc(100% - 32px)); padding: 8px 8px 8px 20px; border: 1px solid rgba(242,234,231,.4); color: var(--cream); }
.vz-bar > div { flex: 1; min-width: 0; }
.vz-bar em { display: block; font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #A9C4B2; }
.vz-bar b { display: block; font-weight: 300; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vz-bar span { font-family: var(--f-ui); font-size: 12.5px; color: rgba(242,234,231,.6); margin-right: 6px; }
.vz-bar button { width: 40px; height: 40px; border: 1px solid rgba(242,234,231,.4); border-radius: 50%; color: var(--cream); }
.vz-bar button:hover { background: var(--cream); color: var(--green); }

/* ---------- hodnota: vodopád hodnoty bytu, karty jako v adminu, cesta ceny za m² ---------- */
.hv { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
.hv-wf { margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; }
.hv-wf figcaption b { display: block; font-family: var(--f-serif); font-weight: 300; font-size: 28px; text-transform: uppercase; line-height: 1.05; }
.hv-wf figcaption span { font-size: 13px; color: var(--grey); }
.wf { flex: 1; min-height: 300px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; border-bottom: 1px solid var(--ink); }
.wf-col { display: grid; grid-template-rows: auto 1fr; position: relative; }
.wf-v { font-family: var(--f-serif); font-weight: 300; font-size: 30px; line-height: 1; text-align: center; padding-bottom: 8px; }
.wf-track { position: relative; }
.wf-track i { position: absolute; left: 12%; right: 12%; border-radius: 6px 6px 0 0; }
.wf-base i { background: var(--ink); }
.wf-cost i { background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 8px); border: 1px solid var(--ink); border-radius: 6px; }
.wf-gain i { background: rgba(14,41,26,.25); border: 1px solid var(--green); border-radius: 6px; }
.wf-after i { background: var(--green); }
.wf-after .wf-v { color: var(--green); }
.wf-l { position: absolute; top: calc(100% + 10px); left: 0; right: 0; text-align: center; font-size: 13.5px; line-height: 1.2; }
.hv-wf { padding-bottom: 54px; }
.hv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hv-tile { display: flex; flex-direction: column; min-height: 190px; padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: 20px; }
.hv-tile .lb, .hv-tile .fo { font-family: var(--f-display); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.hv-tile b { margin: auto 0 8px; font-family: var(--f-serif); font-weight: 300; font-size: clamp(56px, 5.4vw, 92px); line-height: .9; letter-spacing: -.05em; }
.hv-tile.t0 { background: var(--ink); color: var(--white); border-color: var(--ink); }
.hv-tile.t2 { background: var(--green); color: var(--white); border-color: var(--green); }
.hv-tile.t3 b { color: var(--green); }
.hv-path { display: flex; align-items: center; gap: 30px; margin-top: 10px; padding: 18px 26px; border: 1px solid var(--line); border-radius: 20px; }
.hv-path ol { flex: 1; display: flex; align-items: center; gap: 0; }
.hv-path li { flex: 1; display: flex; align-items: baseline; gap: 12px; position: relative; }
.hv-path li + li::before { content: "→"; margin-right: 18px; color: var(--grey); }
.hv-path b { font-family: var(--f-serif); font-weight: 300; font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.hv-path b small { font-size: .45em; letter-spacing: 0; }
.hv-path span { font-size: 13.5px; line-height: 1.2; }
.hv-path em { display: block; font-style: normal; font-size: 12px; color: var(--grey); }
.hv-path li.hot b { color: var(--green); }

@media (max-width: 1000px) {
  .dum { grid-template-columns: 1fr; }
  .dum-stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .dp-in { position: static; }
  .hv { grid-template-columns: 1fr; }
}
@media (max-width: 750px) {
  .dev-intro { margin-left: 0; padding: 26px 20px 0; }
  .dum-stage { aspect-ratio: 4 / 5; }
  .dum-bar { height: auto; flex-wrap: wrap; padding: 10px; }
  .dum-stage iframe { height: calc(100% - 104px); }
  .dp-h { font-size: 28px; }
  .byt { height: 78vh; min-height: 520px; }
  .mb-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .mb-q blockquote { font-size: 26px; }
  .vz-i { width: 74vw; }
  .vz-bar span { display: none; }
  .hv-tile { min-height: 150px; }
  .wf-v { font-size: 22px; }
  .wf-l { font-size: 11.5px; }
  .hv-path { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hv-path ol { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hv-path li + li::before { display: none; }
}

/* byt v panelu: vše bez posouvání (půdorys a místnosti vedle sebe) */
.dp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dp-top .dp-back { margin: 0; }
.dp-price .btn-pill { flex: none; }
.dp-sub .dp-fict { margin: 0; display: inline; font-size: 11px; }
.dp-flatgrid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; margin-top: 16px; align-items: start; }
.dp-flatgrid .dp-rooms { margin-top: 0; }
.dp-flatgrid .dp-rooms div { font-size: 13.5px; padding: 7px 2px; }
@media (max-width: 1000px) { .dum-stage { border-radius: 0; } }
@media (max-width: 750px) {
  .dev-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .dev-hero h1 { font-size: 46px; }
  .dev-hero-strip { grid-template-columns: 1fr 1fr; }
  .dev-hero-strip figure { height: auto; aspect-ratio: 4 / 5; }
  .dev-hero-facts { grid-template-columns: 1fr; }
  .dev-hero-facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .dev-hero-top span:last-child { display: none; }
  .dp-flatgrid { grid-template-columns: 1fr; }
}

/* město z koláže má dole bílý okraj: přiblížit */
.mb-t img[src$="mesto.webp"], .mb-t img[src$="kapka.webp"] { transform: scale(1.22); transform-origin: 50% 30%; }
.mb-t:hover img[src$="mesto.webp"], .mb-t:hover img[src$="kapka.webp"] { transform: scale(1.26); }
.dp-flats button:hover .no.st-res, .dp-flats button.hov .no.st-res, .dp-flats button:hover .st-res, .dp-flats button.hov .st-res { color: var(--cream); box-shadow: inset 0 0 0 1px var(--cream); }
.dp-flats button:hover .no.st-sold, .dp-flats button.hov .no.st-sold, .dp-flats button:hover .st-sold, .dp-flats button.hov .st-sold { background: rgba(242,234,231,.18); color: var(--cream); }
.dp-flats button:hover .pr.sold, .dp-flats button.hov .pr.sold { color: rgba(242,234,231,.6); }

/* ---------- hodnota v UI webu: zelený blok, velká čísla, pravítko hodnoty, řádky s linkami, fotka ---------- */
.hv2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: calc(70 * var(--u)); align-items: stretch; }
.hv2-big { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 28px; padding-bottom: 34px; border-bottom: 1px solid rgba(242,234,231,.35); }
.hv2-big .t-label { display: block; color: rgba(242,234,231,.7); margin-bottom: 6px; }
.hv2-big b { display: block; font-family: var(--f-serif); font-weight: 300; font-size: calc(150 * var(--u)); line-height: .82; letter-spacing: -.05em; color: rgba(242,234,231,.55); }
.hv2-big .to b { color: var(--white); }
.hv2-arrow { height: 1px; margin-bottom: calc(40 * var(--u)); background: rgba(242,234,231,.55); position: relative; }
.hv2-arrow::after { content: ""; position: absolute; right: -1px; top: -5px; width: 10px; height: 10px; border-top: 1px solid rgba(242,234,231,.75); border-right: 1px solid rgba(242,234,231,.75); transform: rotate(45deg); }
.hv2-bar { padding: 34px 0 30px; border-bottom: 1px solid rgba(242,234,231,.35); }
.hb { display: flex; height: 64px; gap: 3px; }
.hb span { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 0 12px; overflow: visible; }
.hb em { position: absolute; bottom: calc(100% + 8px); left: 0; font-style: normal; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(242,234,231,.7); white-space: nowrap; }
.hb b { font-family: var(--f-serif); font-weight: 300; font-size: 24px; line-height: 1; white-space: nowrap; }
.hb-base { background: var(--cream); color: var(--green); }
.hb-cost { background: repeating-linear-gradient(135deg, rgba(242,234,231,.55) 0 1.5px, transparent 1.5px 7px); box-shadow: inset 0 0 0 1px rgba(242,234,231,.55); }
.hb-cost b, .hb-gain b { position: absolute; top: calc(100% + 26px); left: 0; color: var(--cream); font-size: 22px; }
.hb-gain { background: var(--white); }
.hb-gain em { left: auto; right: 0; }
.hb-gain b { left: auto; right: 0; }
.hb-cost em { left: 0; }
.hb-ticks { position: relative; height: 22px; margin-top: 6px; border-top: 1px solid rgba(242,234,231,.35); }
.hb-ticks i { position: absolute; top: 0; height: 6px; border-left: 1px solid rgba(242,234,231,.5); }
.hb-ticks small, .hb-ticks .u { position: absolute; top: 8px; left: -2px; font-size: 11px; color: rgba(242,234,231,.55); }
.hb-ticks .u { left: auto; right: 0; }
.hv2-rows { margin-top: 26px; }
.hv2-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(242,234,231,.25); }
.hv2-row .t-label { color: var(--cream); }
.hv2-row .d { font-size: 13.5px; color: rgba(242,234,231,.6); }
.hv2-row b { font-family: var(--f-serif); font-weight: 300; font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.hv2-row.hot b { color: var(--white); font-size: 40px; }
.hv2-photo { position: relative; margin: 0; overflow: hidden; min-height: 460px; }
.hv2-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv2-photo figcaption { position: absolute; left: 0; bottom: 0; padding: 7px 12px; background: var(--white); color: var(--ink); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
/* výzva na konci: místo před patičkou */
#dcta-h { margin-top: 0; }
.proj-cta:has(#dcta-h) { margin-bottom: calc(120 * var(--u) + 40px); }
@media (max-width: 1000px) {
  .hv2 { grid-template-columns: 1fr; }
  .hv2-photo { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 750px) {
  .hv2-big { grid-template-columns: 1fr; gap: 14px; }
  .hv2-big b { font-size: 72px; }
  .hv2-arrow { display: none; }
  .hb b { font-size: 18px; }
  .hv2-row { grid-template-columns: 1fr auto; }
  .hv2-row .d { display: none; }
}

/* prohlídka bytu před spuštěním: ostrý náhled a karta ve stylu webu */
.byt-cover { position: absolute; inset: 0; z-index: 3; background: #fff; transition: opacity .45s var(--ease); }
.byt-cover.is-gone { opacity: 0; pointer-events: none; }
.byt-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.byt-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.85) 0, rgba(255,255,255,.35) 38%, rgba(255,255,255,0) 60%); pointer-events: none; }
.byt-card { position: absolute; z-index: 2; left: 28px; bottom: 28px; width: min(400px, calc(100% - 56px)); padding: 26px 26px 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.byt-card .t-label { font-size: 12px; }
.byt-card-h { margin-top: 10px; font-family: var(--f-serif); font-weight: 300; font-size: 38px; line-height: .95; text-transform: uppercase; letter-spacing: -.03em; }
.byt-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byt-card-stats li { padding: 12px 0 10px; }
.byt-card-stats li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.byt-card-stats b { display: block; font-family: var(--f-serif); font-weight: 300; font-size: 30px; line-height: 1; }
.byt-card-stats span { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.byt-card-states { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.byt-card-states span { height: 28px; display: inline-flex; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 99px; font-family: var(--f-ui); font-size: 12px; }
.byt-card-states span:last-child { background: var(--green); border-color: var(--green); color: var(--white); }
.byt-card .btn-pill { margin: 18px 0 24px; height: 44px; padding: 0 20px; font-size: 14.5px; background: var(--green); border-color: var(--green); }
.byt-card .btn-pill:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.byt-card .btn-pill svg { flex: none; }
.byt.is-loading .byt-card .btn-pill { cursor: progress; }
.byt-card-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(14,41,26,.12); }
.byt-card-prog i { display: block; width: 0; height: 100%; background: var(--green); transition: width .25s; }
@media (max-width: 750px) {
  .byt-card { left: 14px; bottom: 14px; width: calc(100% - 28px); padding: 18px 18px 0; }
  .byt-card-h { font-size: 28px; }
  .byt-cover::after { background: linear-gradient(0deg, rgba(255,255,255,.9) 0, rgba(255,255,255,0) 60%); }
}

/* byt: velký půdorys nahoře, pod ním místnosti, souhrn zeleně */
.dp-flatgrid { grid-template-columns: 1fr; gap: 12px; }
.dp-flatgrid .dp-plan { padding: 12px; }
.dp-flatgrid .dp-plan img { width: 100%; height: 170px; object-fit: contain; }
.dp-flatgrid .dp-plan { padding: 8px; }
.dum-panel .dp-sub { margin-top: 4px; }
.dum-panel .dp-h { font-size: 30px; }
.dp-flatgrid { gap: 8px; margin-top: 12px; }
.dp-flatgrid .dp-rooms { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.dp-flatgrid .dp-rooms div { padding: 5px 2px; font-size: 13px; }
.dp-flatgrid .dp-rooms .tot { grid-column: 1 / -1; }
.dp-flatgrid .dp-rooms .tot { padding: 7px 10px; margin-top: 4px; }
.dum-panel .dp-in { padding-top: 18px; padding-bottom: 14px; }
.dum-panel .dp-top { margin-bottom: 8px; }
.dum-panel .dp-price { margin-top: 8px; }
.dp-rooms .tot, .dp-sum .tot { background: var(--green); }
.dp-price .btn-pill { background: var(--green); border-color: var(--green); }
.dp-price .btn-pill:hover { background: var(--white); color: var(--green); }
.dum-panel .st-free, .dp-flats .no.st-free { background: var(--green); }

/* náhled prohlídky: byt shora na bílé, karta s jednotnými tlačítky (40 px) */
.byt-cover > img { object-fit: contain; object-position: 50% 50%; padding: 6% 10%; }
.byt-cover::after { background: none; }
.byt-card-states span { height: 40px; padding: 0 16px; font-size: 13.5px; }
.byt-card .btn-pill { height: 40px; padding: 0 18px; font-size: 13.5px; }
.byt-card-states { gap: 8px; }
@media (max-width: 750px) { .byt-cover > img { padding: 4% 4% 50%; object-position: 50% 0; } }

/* hodnota: dva pruhy pod sebou, dnes a po rekonstrukci (rozpad na dnes + rekonstrukce + zisk) */
.hv2-bar { display: grid; gap: 18px; }
.hv2-bar .hr { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; }
.hv2-bar .hr-l { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(242,234,231,.75); }
.hv2-bar .hr-l b { display: block; margin-top: 2px; font-family: var(--f-serif); font-weight: 300; font-size: 30px; letter-spacing: -.02em; text-transform: none; color: var(--white); }
.hv2-bar .hr-t { display: flex; height: 46px; gap: 3px; }
.hv2-bar .hr-t span { display: flex; align-items: center; padding: 0 12px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.hv2-bar .s-base { background: rgba(242,234,231,.35); color: var(--white); }
.hv2-bar .s-base2 { background: var(--cream); color: var(--green); }
.hv2-bar .s-cost { background: repeating-linear-gradient(135deg, rgba(242,234,231,.55) 0 1.5px, transparent 1.5px 7px); box-shadow: inset 0 0 0 1px rgba(242,234,231,.55); color: var(--white); }
.hv2-bar .s-gain { background: var(--white); color: var(--green); }
.hv2-bar .hr-key { display: flex; flex-wrap: wrap; gap: 18px; margin-left: 168px; font-size: 12.5px; color: rgba(242,234,231,.75); }
.hv2-bar .hr-key i { display: inline-block; width: 12px; height: 12px; margin-right: 7px; vertical-align: -1px; }
@media (max-width: 750px) { .hv2-bar .hr { grid-template-columns: 1fr; gap: 8px; } .hv2-bar .hr-key { margin-left: 0; } .hv2-bar .hr-t span { font-size: 0; padding: 0; } }

/* náhled: byt na středu nahoře, karta jako vodorovný pruh dole */
.byt-cover > img { padding: 4% 12% 150px; }
.byt-card { left: 24px; right: 24px; bottom: 24px; width: auto; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 28px; padding: 18px 22px; }
.byt-card > .t-label { grid-column: 1; grid-row: 1; align-self: start; }
.byt-card-h { grid-column: 1; grid-row: 1; margin-top: 22px; font-size: 32px; }
.byt-card-stats { grid-column: 2; grid-row: 1; margin: 0; border: 0; }
.byt-card-stats li { padding: 0 18px; border-left: 1px solid var(--line); }
.byt-card-stats li:first-child { border-left: 1px solid var(--line); }
.byt-card-states { grid-column: 3; grid-row: 1; margin: 0; justify-content: flex-end; }
.byt-card .btn-pill { grid-column: 4; grid-row: 1; margin: 0; }
.byt-card-prog { grid-column: 1 / -1; }
@media (max-width: 1100px) {
  .byt-card { grid-template-columns: 1fr; gap: 12px; }
  .byt-card > *, .byt-card-h { grid-column: 1 !important; grid-row: auto !important; }
  .byt-card-h { margin-top: 0; }
  .byt-card-states { justify-content: flex-start; }
  .byt-cover > img { padding: 4% 6% 330px; }
}
/* pruh hodnoty: text jen v širokém dílu */
.hv2-bar .s-cost, .hv2-bar .s-gain { font-size: 0; padding: 0; }
.hv2-bar .hr-t span.s-cost, .hv2-bar .hr-t span.s-gain { font-size: 0; padding: 0; }
.byt-card-states { flex-wrap: nowrap; }
.byt-card-states span { flex: none; }
.byt-card-stats { grid-template-columns: repeat(3, auto); }
.byt-card-stats span { white-space: nowrap; }
.byt-card-h, .byt-card > .t-label { white-space: nowrap; }
@media (max-width: 1400px) and (min-width: 1101px) { .byt-card-states { display: none; } .byt-card { grid-template-columns: auto 1fr auto; } .byt-card .btn-pill { grid-column: 3; } }

/* hero: jedna fotka */
.dev-hero-photo { margin: 0; height: calc(620 * var(--u) + 80px); overflow: hidden; background: #F6F2EC; }
.dev-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (max-width: 750px) { .dev-hero-photo { height: auto; aspect-ratio: 4 / 5; } }
/* náhled prohlídky: jen model a tlačítko */
.byt-cover > img { padding: 5% 10% 110px; }
.byt-go { position: absolute; z-index: 2; left: 50%; bottom: 34px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; }
.byt-go .btn-pill { height: 44px; padding: 0 22px; font-size: 14.5px; background: var(--green); border-color: var(--green); }
.byt-go .btn-pill:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.byt-go .byt-card-prog { position: static; width: 160px; height: 2px; }
@media (max-width: 1100px) { .byt-cover > img { padding: 6% 6% 100px; } }
@media (max-width: 750px) { .byt { height: 70vh; min-height: 460px; } .byt-cover > img { padding: 10% 4% 90px; } }
/* čísla bytů: všechna stejná, hover jako řádek */
.dp-flats .no, .dp-flats .no.st-res, .dp-flats .no.st-sold { background: var(--green); color: var(--white); box-shadow: none; }
.dp-flats button:hover .no, .dp-flats button.hov .no, .dp-flats button:hover .no.st-res, .dp-flats button.hov .no.st-res, .dp-flats button:hover .no.st-sold, .dp-flats button.hov .no.st-sold { background: var(--cream); color: var(--green); box-shadow: none; }
/* mobil */
@media (max-width: 750px) {
  .dum-bar { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px 12px; }
  .dum-bar .hscroll > [data-hscroll] { margin: 0 -12px; padding-left: 12px; }
  .dum-tools { justify-content: flex-start; }
  .plan-zoom { display: none !important; }
  .mb-grid { grid-auto-rows: 110px; gap: 6px; }
  .mb-t.h2 { grid-row: span 2; }
  .mb-t figcaption { font-size: 10px; padding: 5px 8px; }
  .mb-q { padding: 14px; }
  .mb-q blockquote { font-size: 20px; }
}
@media (max-width: 750px) {
  .dp-flats small, .dp-floors small { display: block; margin: 2px 0 0; white-space: nowrap; }
  .dp-flats .nm { font-size: 14px; }
  .dp-flats .pr { font-size: 12.5px; }
  .dp-flats button { gap: 8px; }
  .dp-tile { min-height: 104px; }
  .dp-tile b { font-size: 40px; }
}

/* hero: odsazení nadpisu jako O nás, tlačítka na fotce */
.dev-hero { padding-top: calc(var(--header-h) + calc(170 * var(--u)) - 60px); }
.dev-hero-photo { position: relative; }
.dev-hero-btns { position: absolute; left: 24px; bottom: 24px; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dev-hero-btns .btn-pill { height: 44px; padding: 0 20px; font-size: 14.5px; }
.dev-hero-btns .btn-pill--ghost { background: var(--white); border-color: var(--white); color: var(--ink); }
.dev-hero-btns .btn-pill--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (max-width: 750px) {
  .dev-hero { padding: 140px 20px 30px; }
  .dev-hero h1 { font-size: 40px; }
  .dev-hero-grid { padding: 0 0 26px; }
  .dev-hero-photo { margin: 0 -20px; }
  .dev-hero-btns { left: 16px; right: 16px; bottom: 16px; }
  .byt-cover > img { padding: 6% 4% 120px; object-position: 50% 50%; }
}

/* hero: na počítači pás 4 fotek, tlačítka na první; na mobilu jen jedna fotka */
.dev-hero-strip { position: relative; }
.dev-hero-strip figure:first-child figcaption { display: none; }
@media (max-width: 750px) {
  .dev-hero-strip { grid-template-columns: 1fr; margin: 0 -20px; }
  .dev-hero-strip figure:not(:first-child) { display: none; }
  .dev-hero-strip figure:first-child { aspect-ratio: 4 / 5; height: auto; }
}

@media (max-width: 750px) { .byt { height: 74vh; min-height: 480px; } }
/* hero na počítači: tlačítka nad pásem fotek (na mobilu zůstávají na fotce) */
@media (min-width: 751px) {
  .dev-hero-strip { margin-top: 0; }
  .dev-hero-btns { position: static; grid-column: 1 / -1; grid-row: 1; margin: 0 0 8px; }
  .dev-hero-strip figure { grid-row: 2; }
  .dev-hero-btns .btn-pill--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
}
/* dlaždice domu: číslo nepřekrývá popisek (Cormorant má hluboké dotažnice) */
.dp-tile b { line-height: 1; margin-bottom: 14px; }
.dp-tile em { position: static; }
@media (min-width: 751px) { .dev-hero-grid { padding-bottom: 26px; } }
@media (max-width: 750px) {
  .dev-hero-btns { flex-wrap: nowrap; gap: 8px; }
  .dev-hero-btns .btn-pill { height: 40px; padding: 0 14px; font-size: 13.5px; flex: 1; justify-content: center; }
}

@media (min-width: 751px) { .dev-hero-btns { margin-bottom: 26px; } }
/* nadpis stejně velký jako na O nás */
@media (min-width: 751px) { .dev-hero h1 { font-size: calc(70.33 * var(--u)); line-height: .9; } }
.dev-hero-strip figcaption { display: none; }
.dp-tile b { white-space: nowrap; }
@media (min-width: 751px) { .dev-hero { padding-top: calc(170 * var(--u)); } .dev-hero-grid { padding-top: 0; } }
.dev-hero h1 { line-height: .9; }
