/*
Theme Name: medcor klinika
Author: Atte
*/
/* medcor klinika — local visual prototype. Additions ONLY on top of the H2 design system
   (assets/h2.css is generated from design/h2/h2.css). No new tokens, colours or fonts. */

/* prototype marker — H2 comp-tag style, wording per brief */
.comp-tag { opacity: .92; }

/* zones: live focus = H2 focus state; selection highlight for whole floor includes its parts */
.zone { cursor: pointer; }
.zone-label { pointer-events: none; }
.zone:focus, .zone:focus-visible { outline: none; }
.zone:focus-visible path { fill: var(--c-fill-hover); stroke: var(--c-accent); stroke-width: 2; stroke-dasharray: 7 4; }
.zone.is-in-selection path { fill: var(--c-fill-selected); stroke: var(--c-accent); stroke-width: 2.5; }
@media (hover: hover) { .zone:hover path { fill: var(--c-fill-hover); stroke: var(--c-ink); stroke-width: 2; } }
.space-choice button { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--c-ink);
  background: none; font: 500 15px var(--font); color: var(--c-ink); cursor: pointer; border-radius: 0; }
.space-choice button[aria-pressed="true"] { background: var(--c-ink); color: var(--c-bg); }
.space-choice button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* floor switching: plan moves in the building's direction (transform only; content always visible) */
@keyframes plan-up { from { transform: translateY(16px); } to { transform: none; } }
@keyframes plan-down { from { transform: translateY(-16px); } to { transform: none; } }
[data-enter="up"] .plan-frame { animation: plan-up 280ms var(--ease); }
[data-enter="down"] .plan-frame { animation: plan-down 280ms var(--ease); }

/* preview panel note (prototype-only information) */
.proto-note { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--c-text-2); border-left: 2px solid var(--c-surface); padding-left: 10px; }
.preview .hint { margin-top: 16px; font-size: 13px; color: var(--c-text-2); }
@media (hover: none) { .preview .hint-hover { display: none; } }
@media (hover: hover) { .preview .hint-touch { display: none; } }
@media (max-width: 1023px) { .preview .actions.mobile-actions { display: grid; } }
.preview .actions.mobile-actions { display: none; }
@media (max-width: 1023px) { .preview .actions:not(.mobile-actions) { display: none; } .preview .actions.mobile-actions { display: grid; margin-top: 24px; } }

/* building page summary */
.floor-summary { margin-top: 40px; border-top: 1px solid var(--c-ink); padding-top: 24px; display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: end; }
.floor-summary .fig-l { text-align: right; }
@media (max-width: 767px) { .floor-summary { grid-template-columns: 1fr; } .floor-summary .fig-l { text-align: left; } }


/* viewer (native dialog, 100/200/400 %) */
.fp-viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--c-bg); }
.fp-viewer::backdrop { background: rgb(17 17 17 / .6); }
.fp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--c-hairline); }
.fp-bar .tools { display: flex; gap: 8px; }
.fp-bar button { min-width: 48px; min-height: 48px; padding: 0 12px; border: 1px solid var(--c-ink); border-radius: var(--radius); background: none; font: 500 15px var(--font); cursor: pointer; }
.fp-bar button[aria-pressed="true"] { background: var(--c-ink); color: var(--c-bg); }
.fp-scroll { height: calc(100dvh - 66px); overflow: auto; background: #fff; }
.fp-scroll svg { display: block; width: calc(var(--z, 1) * 100%); max-width: none; height: auto; }
button.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* mobile menu */
.menu-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 24px 16px; background: var(--c-bg); }
.menu-dialog nav { display: grid; gap: 8px; margin-top: 40px; }
.menu-dialog nav a { font-size: 28px; font-weight: 600; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--c-hairline); }
.menu-dialog .close { float: right; min-height: 44px; background: none; border: 0; font: 500 15px var(--font); }
.menu-dialog .btn { margin-top: 32px; width: 100%; }

/* enquiry form: status, validation, spam trap */
.form-status { margin-top: 16px; padding: 14px 16px; border-left: 2px solid var(--c-accent); background: #fff; font-size: 15px; }
.form-status.is-error { border-left-color: #B3261E; }
.form-status:focus { outline: none; }
.form-hint { margin-top: 28px; font-size: 14px; color: var(--c-text-2); }
.form-hint + .row-2 .field { margin-top: 12px; }
.req { font-weight: 400; color: var(--c-text-2); }
.field [aria-invalid="true"] { border-color: #B3261E; box-shadow: inset 0 -1px 0 #B3261E; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enq-form button[aria-busy="true"] { opacity: .6; cursor: progress; }

/* analytics consent (production only) */
.consent-bar { position: fixed; inset: auto 0 0 0; z-index: 60; background: #fff; border-top: 1px solid var(--c-ink); box-shadow: 0 -8px 24px rgb(0 0 0 / .06);
  max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }   /* phone landscape: the whole bar stays reachable */
::placeholder { color: var(--c-text-2); opacity: 1; }   /* browser default #757575 is < 4.5:1 on the warm background */
.consent-in { display: flex; gap: 16px 32px; align-items: center; justify-content: space-between; padding-block: 18px; }
.consent-in p { max-width: 64ch; font-size: 15px; line-height: 1.5; }
.consent-text { display: grid; gap: 6px; flex: 1 1 auto; min-width: 0; }
.consent-in .consent-t { font-weight: 600; }
.consent-prefs { display: grid; gap: 10px; margin-top: 8px; }
.consent-bar [hidden], .consent-bar[hidden] { display: none; }   /* component display rules must not override [hidden] */
.consent-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.consent-opt input { width: 24px; height: 24px; flex: none; margin: 0; }   /* WCAG 2.2 target size */
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; justify-content: flex-end; max-width: 460px; }
.ft-consent { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) { .consent-in { flex-direction: column; align-items: stretch; gap: 12px; padding-block: 14px; } .consent-actions { max-width: none; justify-content: flex-start; } }
@media (max-width: 767px) { .consent-in p, .consent-opt { font-size: 14px; }
  .consent-actions { max-width: none; } .consent-actions .btn { flex: 1 1 calc(50% - 6px); justify-content: center; text-align: center; padding-inline: 12px; } }

/* disabled prev/next */
.prevnext span[aria-disabled] { color: var(--c-text-2); }

@media (prefers-reduced-motion: reduce) { [data-enter] .plan-frame { animation: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- leasing configurator (/priestory/) — H2 components only: stacking rows, building switch, preview */
.cfg { padding-block: 40px 120px; }
.cfg-head .h1 { margin-top: 16px; max-width: 18ch; }
.cfg-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 32px 0 0; padding: 16px 0 0; border-top: 1px solid var(--c-ink);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-2); }
.cfg-steps li[aria-current="true"] { color: var(--c-ink); }
.cfg-steps li[aria-current="true"]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--c-accent); vertical-align: 1px; }
.cfg-steps li[data-done] { color: var(--c-ink); }
.cfg-main { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; margin-top: 48px; align-items: start; }
.cfg[data-step="building"] .cfg-main { display: none; }
.cfg-switch { display: flex; gap: 8px; margin-bottom: 28px; }
.cfg-switch button { flex: 1; min-height: 48px; border: 1px solid var(--c-ink); background: none; font: 600 15px var(--font); color: var(--c-ink); cursor: pointer; border-radius: 0; }
.cfg-switch button[aria-pressed="true"] { background: var(--c-ink); color: var(--c-bg); }
.cfg-switch button:focus-visible, .cfg-change:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.cfg-floors .stack { border-bottom: 1px solid var(--c-ink); }
.cfg-parts { margin-top: 14px; }
.cfg-change { width: 100%; min-height: 56px; display: flex; justify-content: space-between; align-items: center; background: none; border: 0;
  border-top: 1px solid var(--c-ink); border-bottom: 1px solid var(--c-ink); font: 600 16px var(--font); color: var(--c-ink); cursor: pointer; padding: 0; }
.cfg-change .change { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.cfg-change[hidden] { display: none; }
.cfg[data-step="plan"] .cfg-prompt { display: none; }
.cfg-prompt { padding-top: 8px; }
.cfg-prompt .body-l { margin-top: 20px; color: var(--c-text-2); max-width: 44ch; }
.cfg-floor-head { margin-bottom: 28px; scroll-margin-top: 104px; }
@media (max-width: 1023px) { .cfg-floor-head { scroll-margin-top: 72px; } }
.cfg-floor-head .title { margin-top: 10px; color: var(--c-text-2); }
.cfg-floor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .cfg[data-step="plan"] .cfg-change { display: none; } }
@media (max-width: 1279px) { .cfg-main { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; } .cfg-floor { grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; } }
@media (max-width: 1023px) {
  .cfg-main { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .cfg[data-step="plan"] .cfg-lists { display: none; }
  .cfg[data-step="plan"].show-floors .cfg-lists { display: block; margin-top: 16px; }
  .cfg[data-step="floor"] .cfg-prompt { display: none; }
  .cfg-floor { grid-template-columns: 1fr; gap: 24px; }
  .cfg-floor .plan-frame { margin-inline: calc(-1 * var(--margin)); border-inline: 0; } }

/* contact block: official Atte REALITY logo (replaces the text link) */
.partner-logo { display: inline-block; flex: none; text-decoration: none; }   /* never shrink in a flex row: a squeezed box distorts the logo */
.partner-logo img { display: block; width: 72px; height: auto; }
.partner-logo:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.on-dark .partner-logo:focus-visible { outline-color: var(--c-bg); }
.contact-card .label { text-transform: none; }
/* broker signature: the logo anchors the left, a hairline divides it from role · name · reach (same markup order, placed by grid) */
.contact-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo role" "logo name" "logo reach";
  column-gap: 20px; align-content: center; container: sig / inline-size; }
.contact-card .label { grid-area: role; align-self: end; }
.contact-card .name { grid-area: name; margin-top: 6px; }
.contact-card .partner { grid-area: logo; align-self: stretch; display: flex; align-items: center; margin: 0; padding-right: 20px; border-right: 1px solid rgb(17 17 17 / .14); }
.on-dark .contact-card .partner { border-right-color: rgb(245 244 240 / .18); }
.contact-card .reach { grid-area: reach; align-self: start; margin-top: 10px; font-size: 16px; line-height: 1.5; white-space: nowrap; }
.contact-card .reach .sep { margin-inline: 10px; opacity: .5; }
@container sig (max-width: 444px) {             /* 72 logo + 2 × 20 gap + 1 rule + 331 text: below that, too narrow for one line: phone and email on their own lines, no orphan dot */
  .contact-card .reach { white-space: normal; }
  .contact-card .reach a { display: block; }
  .contact-card .reach .sep { display: none; }
}
@media (max-width: 362px) {                     /* card < 330 px (viewport − 2 × 16 gutter): 113 px of logo + gaps + rule leave too little for the e-mail, so the logo moves above the text — same order, no rule. Media query because a container query cannot restyle the container itself */
  .contact-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "logo" "role" "name" "reach"; }
  .contact-card .partner { padding: 0 0 20px; border-right: 0; }
}
@media (min-width: 1024px) { .cta-section .cta-title { grid-column: 1 / 8; } .cta-section .contact-card { grid-column: 8 / 13; } }
/* mobile sticky bar: two buttons share 320 px. The primary (filled) fills the rest and never wraps; the secondary keeps its
   natural width and only on the narrowest phones shrinks onto two lines — instead of a fixed-width secondary that pushed
   the bar off-screen */
.sticky-cta { gap: 8px; }
.sticky-cta .btn { padding-inline: 12px; }
.sticky-cta .btn-filled { flex: 1 0 auto; white-space: nowrap; }
.sticky-cta .btn-outline { flex: 0 1 auto; min-width: 0; text-align: center; }
/* building selector (configurator step 01): the render itself is the floor picker */
.bsel { margin: 48px 0 0; }
.cfg:not([data-step="building"]) .bsel { display: none; }
.bsel-svg { display: block; width: 100%; height: auto; background: var(--c-black); }
.bsel-floor { cursor: pointer; outline: none; }
.bsel-floor path { fill: var(--c-ink); fill-opacity: 0; stroke: #fff; stroke-opacity: 0; stroke-width: 1.5; vector-effect: non-scaling-stroke;
  pointer-events: all; transition: fill-opacity 200ms var(--ease), stroke-opacity 200ms var(--ease); }
.bsel-floor.is-on path, .bsel-floor:focus-visible path { fill-opacity: .4; stroke-opacity: 1; }
.bsel-floor:focus-visible path { stroke-width: 3; }
@media (hover: hover) { .bsel-floor:hover path { fill-opacity: .4; stroke-opacity: 1; } }
.bsel-name { fill: #fff; font: 600 26px var(--font); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.bsel-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; margin-top: 20px; min-height: 32px; }
.bsel-cap .go { margin-left: auto; font-weight: 600; text-decoration: none; }
.bsel-cap .go[hidden] { display: none !important; }
.bsel-alt { margin-top: 12px; }
.bsel-switch { margin-bottom: 16px; }
@media (max-width: 767px) { .bsel-name { display: none; } .bsel-cap .go { margin-left: 0; flex-basis: 100%; min-height: 44px; display: flex; align-items: center; } }
.price-benefit { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--c-hairline);
  font-size: var(--fs-title); line-height: 28px; font-weight: 600; }
.price-benefit .mark { flex: none; width: 10px; height: 10px; background: var(--c-accent); }
.price-vat { grid-column: 1 / -1; margin-top: 12px; }
/* homepage — leasing landing: hero + floor selector share the black band, so the render's black sky reads as one surface */
.lead-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; padding-top: 128px; padding-bottom: 96px; }
/* 1024–1279 px: the 5 : 7 split leaves the H1 a 346 px column (4 lines); equal columns give 423–535 px → 3 lines at 1024, 2 above */
@media (min-width: 1024px) and (max-width: 1279px) { .lead-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
.lead .hero-text { padding: 0; }
.lead-title { margin-top: 24px; font-size: clamp(2.5rem, 1.2rem + 3.9vw, 4.5rem); }   /* the H1 leads; the price follows (.lead-fig) */
.lead-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 32px; }
.lead-note { color: var(--c-text-on-dark-2); font-size: var(--fs-body-l); }
.lead-select { scroll-margin-top: 16px; }
.lead-h { font-weight: 600; }
.lead-hint { margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--c-text-on-dark-2); }
.lead-select .bsel { margin-top: 20px; }
.lead-select .bsel-cap { margin-top: 12px; }
.on-dark .bsel-cap .data, .on-dark .bsel-alt { color: var(--c-text-on-dark-2); }
.on-dark .bsel-cap .go { color: var(--c-bg); }
.on-dark .cfg-switch button { border-color: var(--c-bg); color: var(--c-bg); }
.on-dark .cfg-switch button[aria-pressed="true"] { background: var(--c-bg); color: var(--c-ink); }
.key-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: 56px; border-top: 1px solid var(--c-ink); }
.kf { padding-top: 28px; }
.kf .title { margin-top: 14px; color: var(--c-text-2); }
/* tenant types: an explicit grid, never wrapping text. List role (CD review): 22→28 px / 500, not section-heading size.
   Measured at 28 px: 191 + 123 + 142 + 185 + 432 = 1 073 px of items; + 4 × 40 px gaps = 1 233 px container ≈ 1 400 px
   viewport (container = 88 % of the viewport) → one row from 1 400 px; below that 3 + 2 with the long label spanning
   two columns (fits from 768 px: 3 × 199 px columns, span 430 px ≥ its 390 px at 25 px); phones: one column. */
.who { grid-column: 1 / -1; list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px; align-items: start; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }
.who li:last-child { grid-column: span 2; }
@media (min-width: 1400px) { .who { grid-template-columns: repeat(5, auto); justify-content: space-between; column-gap: 40px; }
  .who li { white-space: nowrap; } .who li:last-child { grid-column: auto; } }
.who-note { grid-column: 1 / -1; margin-top: 24px; }
.why { grid-column: 1 / -1; list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gutter); }
.why li { padding-top: 20px; border-top: 1px solid var(--c-ink); }
.why p { margin-top: 8px; color: var(--c-text-2); }
.cta-title .hero-sub { margin-top: 20px; }
.cta-title .btn { margin-top: 32px; }
@media (max-width: 1023px) { .lead-grid { grid-template-columns: 1fr; gap: 72px; padding-top: 104px; } .key-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .lead-grid { gap: 56px; padding-top: 88px; padding-bottom: 64px; }
  .key-facts { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .kf + .kf { margin-top: 8px; }
  .who { grid-template-columns: 1fr; gap: 16px; } .who li:last-child { grid-column: auto; }
  .why { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
}
/* availability: H2 typographic status (line mark + label); per floor only */
.state[hidden] { display: none; }
.bsel-state { font-size: var(--fs-label); line-height: 16px; font-weight: 600; letter-spacing: .08em; }
.bsel-state:empty { display: none; }
/* tenant-category pictograms: one system — outline, currentColor, a fixed 1.5 px line at every size */
.who li { display: flex; align-items: flex-start; gap: .45em; min-width: 0; }
.who .pict { flex: none; width: .9em; height: .9em; fill: none; stroke: currentColor; stroke-width: 1.5px; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round; margin-top: .175em; }   /* centred on the first line: (1.25 − .9) / 2 */
.who .pict * { vector-effect: non-scaling-stroke; }
/* project identity (working) in the header — raster lockup from the supplied artwork, never stretched */
.wordmark.brand { display: flex; align-items: center; letter-spacing: 0; }
.wordmark.brand img { display: block; height: 44px; width: auto; }
@media (max-width: 1023px) { .header .wordmark.brand img { height: 34px; } }
.menu-dialog .wordmark.brand img { height: 34px; }
/* contact form: intent toggle as buttons (h2 .seg styles links); selected-space honours [hidden] */
.seg button { flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 8px; font: inherit; font-size: 15px; font-weight: 500; color: inherit; background: none; border: 0; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--c-ink); color: var(--c-bg); }
.selected-space[hidden] { display: none; }
/* homepage: offer ≠ price ≠ timeline — three sections, one purpose each */
.offer-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gutter); margin: 48px 0 0; }
.offer-list div { padding-top: 20px; border-top: 1px solid var(--c-hairline); }
.offer-list dd { margin: 10px 0 0; }
.offer-note { grid-column: 1 / -1; margin-top: 24px; }
.fig-l small.pre { margin: 0 .2em 0 0; }
/* development timeline: one thin line, identical open markers (no "done" state is implied), emphasis by type only.
   Four across needs 4 × (219 px widest title + 16 px) + 3 gutters ≈ 1 012 px content ≈ 1 150 px viewport → 2 × 2 below,
   vertical on phones. Each segment runs from its marker to the next column, so the line is continuous in every layout. */
.timeline { grid-column: 1 / -1; list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px var(--gutter); counter-reset: none; }
.ms { position: relative; padding-right: 16px; }
.ms-n { display: block; font-size: var(--fs-label); line-height: 16px; font-weight: 500; letter-spacing: .08em; color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.ms::before { content: ""; position: absolute; top: 44px; left: 0; right: calc(-1 * var(--gutter)); height: 1px; background: var(--c-ink); }
.ms:last-child::before { right: 0; }
.ms-mark { position: relative; display: block; width: 9px; height: 9px; margin-top: 24px; background: var(--c-bg); border: 1px solid var(--c-ink); }
.ms-t { margin-top: 28px; white-space: nowrap; }
.ms-v { margin-top: 10px; font-size: var(--fs-data); line-height: 22px; }
.ms-v.is-pending { color: var(--c-text-2); }
.ms.is-key .ms-v { margin-top: 12px; font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); line-height: 1; font-weight: 500; letter-spacing: -.015em; white-space: nowrap; }
@media (max-width: 1149px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ms:nth-child(2n)::before { right: 0; } }
@media (max-width: 767px) {
  .timeline { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .ms { padding: 0 0 40px 32px; }
  .ms:last-child { padding-bottom: 0; }
  .ms::before { top: 4px; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; }   /* vertical line, marker to marker */
  .ms:last-child::before { display: none; }
  .ms-mark { position: absolute; left: 0; top: 4px; margin: 0; }
  .ms-t { margin-top: 8px; white-space: normal; }
}
@media (max-width: 767px) { .offer-list { grid-template-columns: 1fr; margin-top: 32px; } }
/* leasing-conversion pass */
.lead-fig { font-size: clamp(2rem, 1.4rem + 1.4vw, 2.75rem); line-height: 1; font-weight: 500; letter-spacing: -.015em; }
.lead-fig small { font-size: .45em; font-weight: 500; letter-spacing: 0; margin-left: .15em; }
@media (max-width: 767px) { .hero-actions .btn { flex: 1 1 100%; } }                 /* equal-width hero buttons on phones */
.offer-lead { grid-column: 1 / -1; margin-top: 28px; max-width: 46ch; color: var(--c-text-2); }
@media (min-width: 1024px) { .key-facts.kf3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.price-cta { grid-column: 1 / -1; margin-top: 40px; }
.cfg-nojs { margin-top: 32px; display: grid; gap: 32px; }
/* building names on the render: ≥ 12 px on screen (svg units scale with the selector width) */
.lead-select .bsel-name { font-size: 52px; }   /* ≈ 0.27 px per unit at 1024 → ≥ 14 px tall on screen */
.cfg .bsel-name { font-size: 36px; }
.zone-label { font-size: 22px; }                  /* plan units: ≥ 13 px tall on screen from 1024 px */
@media (max-width: 767px) { .zone-label { display: none; } }   /* phones: the choice buttons carry the same text */
.cfg-cta { margin-top: 24px; }
/* availability marker: a filled square, never an empty checkbox */
.state-mark { width: 10px; height: 10px; }
.state-mark.available { border: 0; background: var(--c-ink); }


/* footer: project → responsibilities (investor/developer · leasing) → navigation + CTA → legal */
.footer { padding-block: 0 40px; font-size: var(--fs-data); }
.footer .wrap { display: block; }
.footer p { margin: 0; }
.ft-main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px var(--gutter); padding-block: 80px 64px; border-top: 1px solid var(--c-ink); }
.ft-project { grid-column: 1 / 6; }
.ft-logo { display: inline-block; text-decoration: none; }
.ft-logo img { display: block; height: 44px; width: auto; }
.ft-project .ft-detail { margin-top: 24px; }
.ft-roles { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gutter); }
.ft-role .label { margin-bottom: 14px; }
/* complete medcor logo (vector from the supplied logo PDF, page 1) between the role label and the company name; 410.12×74.06 source */
.ft-dev-logo { display: block; width: auto; height: 24px; aspect-ratio: 410.12 / 74.06; margin-bottom: 12px; }
.ft-id { font-size: var(--fs-body); line-height: 26px; font-weight: 500; color: var(--c-ink); }
.ft-id a { display: inline-block; padding-block: 2px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.ft-detail { margin-top: 6px; line-height: 26px; color: var(--c-text-2); }
.ft-person { color: var(--c-ink); }
.ft-detail > * { display: block; width: fit-content; max-width: 100%; padding-block: 2px; }
.ft-detail a { text-decoration: none; overflow-wrap: anywhere; }
.ft-detail a:hover, .ft-nav li a:hover { text-decoration: underline; text-underline-offset: 5px; }
.ft-nav { display: flex; align-items: center; gap: 16px 40px; padding-block: 20px; border-top: 1px solid var(--c-hairline); border-bottom: 1px solid var(--c-hairline); }
.ft-nav ul { display: flex; flex-wrap: wrap; gap: 0 32px; margin: 0; padding: 0; list-style: none; flex: 1 1 auto; }
.ft-nav li a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-data); font-weight: 500; text-decoration: none; }
.ft-cta.btn { flex: 0 0 auto; min-height: 44px; padding: 0 20px; font-size: 15px; color: var(--c-ink); }
.ft-cta:focus-visible, .ft-logo:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.ft-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 24px; font-size: var(--fs-label); line-height: 20px; color: var(--c-text-2); }
@media (min-width: 1024px) and (max-width: 1439px) { .ft-project { grid-column: 1 / 5; } .ft-roles { grid-column: 5 / 13; } }
@media (max-width: 1023px) {
  .ft-main { grid-template-columns: minmax(0, 1fr); padding-block: 64px 48px; }
  .ft-project, .ft-roles { grid-column: 1 / -1; }
  .ft-nav { flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 12px 24px; } }
@media (max-width: 767px) {
  .ft-main { padding-block: 56px 40px; gap: 40px; }
  .ft-roles { grid-template-columns: 1fr; gap: 32px; }
  .ft-nav { flex-direction: column; align-items: stretch; gap: 12px; padding-block: 12px 24px; }
  .ft-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); }
  .ft-cta.btn { width: 100%; }
  .ft-legal { flex-direction: column; } }

/* location page: render with an accent-square location marker (same mark as the price list); gallery; blog */
.section-head .h1 { margin-top: 20px; }
.loc-figure { margin: 0; align-self: center; }
.loc-figure img { display: block; width: 100%; height: auto; }
.loc-figure figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 16px; color: var(--c-text-on-dark-2); }
.loc-pin { flex: none; width: 10px; height: 10px; background: var(--c-accent); }
.loc-addr { color: var(--c-bg); font-weight: 500; }
.loc-cap { font-size: var(--fs-label); }
.loc-note, .blog-empty { grid-column: 1 / -1; margin-top: 24px; }

/* brand name inside uppercase labels keeps its exact casing: "medcor klinika" */
.label .nm { text-transform: none; }

/* ---------- blog (editorial; content from data/blog.json) */
.blog-hero { padding-bottom: 56px; }
.blog-intro { grid-column: 1 / 8; margin-top: 24px; color: var(--c-text-2); }
.blog-filter { display: flex; flex-wrap: wrap; gap: 0 28px; padding-block: 4px; border-top: 1px solid var(--c-ink); border-bottom: 1px solid var(--c-hairline); }
.blog-filter button { min-height: 44px; padding: 0; background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-size: var(--fs-label);
  font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-2); cursor: pointer; }
.blog-filter button[aria-pressed="true"] { color: var(--c-ink); border-bottom-color: var(--c-ink); }
.blog-filter button:hover { color: var(--c-ink); }
.ph { display: block; width: 100%; aspect-ratio: 3 / 2; position: relative; background-color: var(--c-surface); }
.ph-note { position: absolute; left: 16px; bottom: 12px; font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-2-surface); }
.blog-featured { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gutter); align-items: center; padding-block: 56px 72px;
  border-bottom: 1px solid var(--c-hairline); }
.bf-img { grid-column: 1 / 8; display: block; }
.bf-img img, .bcard-img img, .post-hero img, .post-fig img { display: block; width: 100%; height: auto; }
.bf-img img, .bcard-img img { aspect-ratio: 3 / 2; object-fit: cover; }
.bf-text { grid-column: 8 / 13; }
.bf-t { margin-top: 16px; }
.bf-t a, .bcard-t a { text-decoration: none; color: inherit; }
.bf-t a:hover, .bcard-t a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.bf-x { margin-top: 20px; color: var(--c-text-2); }
.bf-text .link { display: inline-block; margin-top: 28px; }
.blog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px var(--gutter); padding-block: 64px 120px; }
.bcard-img { display: block; }
.bcard-meta { margin-top: 20px; }
.bcard-meta .sep, .post-meta .sep { margin-inline: .6em; }
.bcard-t { margin-top: 10px; font-size: var(--fs-title); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.bcard-x { margin-top: 10px; color: var(--c-text-2); }
.blog-none { padding-bottom: 120px; }
@media (max-width: 1023px) { .blog-intro { grid-column: 1 / -1; } .bf-img, .bf-text { grid-column: 1 / -1; } .blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .blog-list { grid-template-columns: 1fr; gap: 48px; padding-block: 48px 88px; } .blog-featured { padding-block: 40px 48px; }
  .blog-filter { gap: 0 20px; } }
/* article */
.post-narrow { max-width: calc(46rem + 2 * var(--margin)); }
.post-head { padding-top: 88px; }
.post-title { margin-top: 20px; }
.post-deck { margin-top: 24px; color: var(--c-text-2); }
.post-hero { margin-top: 56px; margin-bottom: 0; }
.post-hero img, .post-hero .ph { aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { padding-top: 56px; font-size: 1.125rem; line-height: 1.75; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 24px 0 0; }
.post-body h2 { margin: 64px 0 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.post-body h3 { margin: 40px 0 0; font-size: var(--fs-title); line-height: 1.3; font-weight: 600; }
.post-body blockquote { margin: 48px 0; padding-left: 28px; border-left: 2px solid var(--c-accent); }
.post-body blockquote p { margin: 0; font-size: clamp(1.375rem, 1.15rem + .9vw, 1.75rem); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
.post-fig { margin: 48px 0 0; }
.post-fig figcaption { margin-top: 12px; }
.post-back { padding-block: 56px 0; }
.post-related { padding-bottom: 0; }
.post-related .h2 { margin-bottom: 8px; }
.post-related .blog-list { padding-bottom: 96px; }
.post-body ul { margin: 24px 0 0; padding-left: 1.25em; }
.post-body li + li { margin-top: 10px; }
.post-body li::marker { color: var(--c-accent); }
.post-table { margin: 40px 0 0; overflow-x: auto; }
.post-table table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.post-table caption { caption-side: bottom; text-align: left; padding-top: 12px; }
.post-table th { text-align: left; font-weight: 600; padding: 0 16px 12px 0; border-bottom: 1px solid var(--c-ink); vertical-align: bottom; }
.post-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--c-hairline); vertical-align: top; }
.post-table td:first-child { font-weight: 500; }
.post-cta { margin: 56px 0 0; padding: 32px; background: var(--c-surface); border-radius: var(--radius); }
.post-cta p { margin: 0 0 24px; font-weight: 500; line-height: 1.5; }
.post-cta .post-cta-direct { margin: 20px 0 0; font-weight: 400; color: var(--c-text-2-surface); }
.post-cta .post-cta-direct a { color: inherit; white-space: nowrap; }
.draft-banner { position: sticky; top: 0; z-index: 100; background: var(--c-accent); color: var(--c-bg); font: 600 14px/20px var(--font); padding: 10px var(--margin); text-align: center; }@media (max-width: 767px) { .post-head { padding-top: 56px; } .post-hero { margin-top: 40px; } .post-body { padding-top: 40px; font-size: 1.0625rem; } .post-cta { padding: 24px; } }
@media (max-width: 767px) {
  .post-table table { min-width: 0; }
  .post-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .post-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--c-hairline); }
  .post-table td { display: block; padding: 4px 0; border: 0; }
  .post-table td::before { content: attr(data-label); display: block; font-size: var(--fs-qualifier); line-height: 20px; color: var(--c-text-2); font-weight: 400; }
  .post-table td:first-child::before { display: none; }
  .post-table td:first-child { font-size: 1.0625rem; font-weight: 600; }
  .post-table td:empty { display: none; }
}

/* /lokalita/ — stylized OSM map (inline SVG, two compositions) + editorial benefits + route / offer */

.lb-head { grid-column: 1 / 6; align-self: start; position: sticky; top: 112px; }
.lb-list { grid-column: 7 / -1; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.lb-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px 24px; padding: 32px 0; border-top: 1px solid var(--c-ink); }
.lb-row:last-child { border-bottom: 1px solid var(--c-hairline); }
.lb-n { font-size: var(--fs-fig-l); line-height: 1; font-weight: 500; letter-spacing: -.02em; color: var(--c-accent); }
.lb-t { font-size: var(--fs-title); line-height: 28px; font-weight: 600; }
.lb-body p { margin-top: 8px; color: var(--c-text-2); max-width: 46ch; }
.lb-k { padding-top: 6px; text-align: right; color: var(--c-ink); }

@media (max-width: 1023px) {
  .lb-head { grid-column: 1 / -1; position: static; }
  .lb-list { grid-column: 1 / -1; margin-top: 40px; }
}
@media (max-width: 767px) {
  .lb-row { grid-template-columns: 56px minmax(0, 1fr); padding: 24px 0; }
  .lb-k { grid-column: 2; text-align: left; padding-top: 0; }
  .lb-n { font-size: 2rem; }
}

/* /galeria/ — editorial archive: 12-col composition from data (span + aspect ratio), labelled placeholder panels, lightbox */
.gal-head { grid-column: 1 / 8; }
.gal-h1 { font-size: var(--fs-hero); line-height: 1; letter-spacing: -.025em; margin-top: 16px; }
.gal-intro { grid-column: 8 / -1; align-self: end; display: grid; gap: 16px; }
.gal-wrap { padding-bottom: 120px; }
.gal { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px var(--gutter); align-items: start; }
.gal-item { grid-column: span 6; }
.gal-item[data-span="12"] { grid-column: 1 / -1; }
.gal-item[data-span="8"] { grid-column: span 8; }
.gal-item[data-span="4"] { grid-column: span 4; }
.gal-item figure { margin: 0; }
.gal-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; }
.gal-media { display: block; position: relative; overflow: hidden; aspect-ratio: var(--ar, 3 / 2); background: var(--c-surface); }
.gal-media img, .gal-media .gph { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
@media (hover: hover) { .gal-open:hover .gal-media img, .gal-open:hover .gph { transform: scale(1.025); } }
.gal-open:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.gal-cap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-ink); }
.gal-n { grid-row: span 3; font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; color: var(--c-accent); line-height: 22px; }
.gal-t { font-weight: 600; line-height: 22px; }
.gal-k .sep { margin-inline: .6em; }
.gal-d { color: var(--c-text-2); font-size: var(--fs-data); line-height: 22px; }
.gal-item[data-span="12"] .gal-cap { grid-template-columns: auto minmax(0, 5fr) minmax(0, 6fr); }
.gal-item[data-span="12"] .gal-n { grid-row: span 2; }
.gal-item[data-span="12"] .gal-d { grid-column: 3; grid-row: 1 / span 2; }
.gal-wrap[data-filtered] .gal-item { grid-column: span 6; }   /* filtered view: calm two-up, each item keeps its own ratio */
/* placeholder panel: plain neutral surface, inset frame + registration mark, explicit "placeholder" wording */
.gph { position: relative; display: block; height: 100%; background: var(--c-surface); }
.gph::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgb(17 17 17 / .14); }
.gph-cat { position: absolute; left: 28px; top: 26px; font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink); }
.gph-note { position: absolute; left: 28px; bottom: 24px; font-size: var(--fs-label); letter-spacing: .06em; color: var(--c-text-2-surface); }
.gph-mark { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  background: linear-gradient(var(--c-text-2-surface), var(--c-text-2-surface)) center / 1px 100% no-repeat,
              linear-gradient(var(--c-text-2-surface), var(--c-text-2-surface)) center / 100% 1px no-repeat; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .gal-item.is-pending { opacity: 0; transform: translateY(16px); }
  .gal-item.is-in { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
}
/* lightbox */
.lbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--c-black); color: var(--c-bg);
  display: none; grid-template-rows: auto minmax(0, 1fr) auto; }
.lbox[open] { display: grid; }
.lbox::backdrop { background: rgb(0 0 0 / .9); }
.lbox-bar, .lbox-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px var(--margin); }
.lbox-count { color: var(--c-text-on-dark-2); }
.lbox-stage { display: grid; place-items: center; padding: 0 var(--margin); min-height: 0; }
.lbox-stage .gal-media { width: min(100%, calc((100dvh - 200px) * (var(--ar)))); height: auto; max-height: 100%; }
.lbox-stage .gal-media img { object-fit: contain; background: var(--c-black); }
.lbox-cap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; max-width: 70ch; }
.lbox-cap .gal-n { grid-row: span 3; }
.lbox-cap .gal-k, .lbox-cap .gal-d { color: var(--c-text-on-dark-2); }
.lbox-nav { display: flex; gap: 8px; flex: none; }
.lbox-btn { min-width: 48px; min-height: 48px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: none; color: var(--c-bg); border: 1px solid rgb(245 244 240 / .4); border-radius: var(--radius); font: 500 15px var(--font); cursor: pointer; }
.lbox-btn:hover { border-color: var(--c-bg); }
.lbox :focus-visible { outline-color: var(--c-bg); }

@media (max-width: 1023px) {
  .gal-head, .gal-intro { grid-column: 1 / -1; }
  .gal-intro { margin-top: 24px; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gutter); }
  .gal-item, .gal-item[data-span="8"], .gal-item[data-span="4"], .gal-wrap[data-filtered] .gal-item { grid-column: span 1; }
  .gal-item[data-span="12"], .gal-item[data-span="8"] { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .gal { grid-template-columns: 1fr; gap: 40px; margin-top: 28px; }
  .gal-item, .gal-item[data-span], .gal-wrap[data-filtered] .gal-item { grid-column: 1 / -1; }
  .gal-item[style*="21/9"] .gal-media { aspect-ratio: 16 / 10; }       /* very wide frames get a usable height on phones */
  .gal-item[style*="3/4"] .gal-media { aspect-ratio: 4 / 5; }          /* tall frames shortened so the scroll stays brisk */
  .gal-item[data-span="12"] .gal-cap { grid-template-columns: auto minmax(0, 1fr); }
  .gal-item[data-span="12"] .gal-n { grid-row: span 3; }
  .gal-item[data-span="12"] .gal-d { grid-column: 2; grid-row: auto; }
  .gph-cat { left: 20px; top: 18px; } .gph-note { left: 20px; bottom: 16px; }
  .gal-wrap { padding-bottom: 88px; }
  .lbox-foot { flex-direction: column; align-items: stretch; }
  .lbox-nav { justify-content: space-between; } .lbox-nav .lbox-btn { flex: 1; }
}
/* tonal rhythm: aerial frames are the "dark moments" of the archive; detail squares sit on the paper tone */
.gal-item[data-cat="dron"] .gph { background-color: var(--c-ink); }
.gal-item[data-cat="dron"] .gph::before { border-color: rgb(245 244 240 / .2); }
.gal-item[data-cat="dron"] .gph-cat { color: var(--c-bg); }
.gal-item[data-cat="dron"] .gph-note { color: var(--c-text-on-dark-2); }
.gal-item[data-cat="dron"] .gph-mark { background: linear-gradient(var(--c-text-on-dark-2), var(--c-text-on-dark-2)) center / 1px 100% no-repeat,
  linear-gradient(var(--c-text-on-dark-2), var(--c-text-on-dark-2)) center / 100% 1px no-repeat; }
.gal-item[data-span="4"][style*="1/1"] .gph { background-color: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-surface); }
html:has(.lbox[open]) { overflow: hidden; }

/* /lokalita/ — city layer for accompanying persons: historic-centre detail (OSM) + five landmarks, photos to follow */
.lc-section { border-top: 1px solid var(--c-hairline); }
.lc-head { grid-column: 1 / 8; }
.lc-lead { margin-top: 24px; max-width: 46ch; color: var(--c-text-2); }
.lold { grid-column: 1 / 7; margin: 56px 0 0; align-self: start; position: sticky; top: 104px; }
.lold-canvas { border-top: 1px solid var(--c-ink); }
.lold .qualifier { margin-top: 12px; }
.lc-list { grid-column: 8 / -1; list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 28px; }
.lc-item { padding-top: 18px; border-top: 1px solid var(--c-ink); }
.lc-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-content: start; }
.lc-n { grid-row: span 2; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-ink); color: var(--c-bg);
  font-size: var(--fs-label); font-weight: 600; }
.lc-t { font-size: var(--fs-title); line-height: 28px; font-weight: 600; }
.lc-body p { color: var(--c-text-2); }
@media (max-width: 1023px) {
  .lc-head, .lold, .lc-list { grid-column: 1 / -1; }
  .lold { position: static; max-width: 640px; }
}
@media (max-width: 767px) {
  .lold { margin-top: 32px; margin-inline: calc(-1 * var(--margin)); }
  .lold .qualifier { padding-inline: var(--margin); }
  .lc-list { margin-top: 40px; gap: 32px; }
}

/* footer credit — quiet by default; "digital" hover/focus easter egg on the Atte link only (site.js), no layout shift:
   the scramble runs in an absolutely positioned overlay while the real text keeps its box */
.ft-credit { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--c-hairline); font-size: 12px; line-height: 18px; color: var(--c-text-2); }
.footer .atte-credit { position: relative; display: inline-block; color: var(--c-text-2); text-decoration: underline; text-decoration-color: var(--c-surface);
  text-underline-offset: 3px; transition: color 300ms var(--ease), text-decoration-color 300ms var(--ease), text-shadow 300ms var(--ease); }
.footer .atte-credit:hover, .footer .atte-credit:focus-visible { color: #0B6B37; text-decoration-color: currentColor; text-shadow: 0 0 6px rgb(30 200 100 / .25); }
.ac-g { position: absolute; left: 0; top: 0; white-space: pre; pointer-events: none; opacity: 0; color: #0B6B37;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 6px rgb(30 200 100 / .35); }
.atte-credit.is-scrambling .ac-t { color: transparent; text-shadow: none; }
.atte-credit.is-scrambling .ac-g { opacity: 1; }


a.k-big { text-decoration: none; }
a.k-big:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (max-width: 1023px) {
}
@media (max-width: 767px) {
}

/* location map — drawn in the site's own grammar (timeline / floor plans): ink + hairline geometry, small squares as
   points, all text in HTML with the site's type styles; brand colour used once, for the medcor klinika square */
.lmap-section { border-bottom: 1px solid var(--c-hairline); }
.lmap { grid-column: 1 / -1; margin: 48px 0 0; }
.lmap-canvas, .lold-canvas { position: relative; border-top: 1px solid var(--c-ink); overflow: hidden; }
.lmap-view { position: relative; }
.lmap-svg { display: block; width: 100%; height: auto; }
.lmap-tall, .lold-oldp { display: none; }
.lmap-svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.lmap-svg .lm-road, .lmap-svg .lo-street { stroke: var(--c-surface); stroke-width: 1; }
.lmap-svg .lm-rail { stroke: var(--c-text-2); stroke-width: 1; stroke-dasharray: 2 4; }
.lmap-svg .lm-mw { stroke: var(--c-ink); stroke-width: 2; }
.lmap-svg .lo-square { stroke: var(--c-surface); stroke-width: 5; }
.lmap-svg .lo-wall { stroke: var(--c-ink); stroke-width: 2; }
.lmap-svg .lo-tower { fill: var(--c-ink); stroke: var(--c-ink); stroke-width: 1; }
.lmap-svg .lm-pt { fill: var(--c-ink); }
.ml { position: absolute; left: var(--x); top: var(--y); white-space: nowrap; font-size: var(--fs-data); line-height: 1.3; font-weight: 500; color: var(--c-ink);
  padding: 1px 4px; background: var(--c-bg); }
.ml[data-p="r"] { transform: translate(12px, -50%); }
.ml[data-p="l"] { transform: translate(calc(-100% - 12px), -50%); }
.ml[data-p="b"] { transform: translate(-50%, 10px); text-align: center; }
.ml[data-p="t"] { transform: translate(-50%, calc(-100% - 10px)); text-align: center; }
.ml[data-p="c"] { transform: translate(-50%, -50%); }
.ml[data-p="br"] { transform: translate(-8px, 10px); }
.ml[data-p="tr"] { transform: translate(-8px, calc(-100% - 10px)); }
.ml small { display: block; font-size: var(--fs-label); color: var(--c-text-2); }
.ml-ref { padding: 2px 6px; background: var(--c-bg); font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; }
.ml-zone, .ml-city, .ml-north { font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-2); }
.ml i { display: inline-block; font-style: normal; }
.ml-city, .ml-to { display: inline-flex; align-items: center; gap: 6px; }
.ml-city i, .ml-to i { transform: rotate(var(--b)); }
.ml-city { font-size: 11px; letter-spacing: .12em; }
.ml-city[data-p="t"] { transform: translate(-50%, 0); }
.ml-city[data-p="b"] { transform: translate(-50%, -100%); }
.ml-city[data-p="ts"] { transform: translate(0, 0); }          /* top / bottom edge near a corner: anchored at the start (s) or end (e) so the label stays inside the frame */
.ml-city[data-p="te"] { transform: translate(-100%, 0); }
.ml-city[data-p="bs"] { transform: translate(0, -100%); }
.ml-city[data-p="be"] { transform: translate(-100%, -100%); }
.ml-city[data-p="l"] { transform: translate(0, -50%); }
.ml-city[data-p="r"] { transform: translate(-100%, -50%); }
.ml-north { left: 20px; top: 16px; background: none; }
.ml-lmk { font-size: var(--fs-label); }
.ml-lmk b { margin-right: 6px; font-weight: 600; }
.ml-to { font-weight: 600; font-size: var(--fs-label); }
.lmap-pin { position: absolute; left: var(--x); top: var(--y); z-index: 2; color: var(--c-ink); text-decoration: none; cursor: pointer; }
.lmap-sq { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: var(--c-accent); box-shadow: 0 0 0 3px var(--c-bg); }
.lmap-note { position: absolute; left: 0; bottom: 9px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 0 0 44px 14px; border-left: 1px solid var(--c-ink); }
.lmap-note img, .lmap-addr { background: var(--c-bg); padding: 2px 4px; margin-left: -4px; }
.lmap-note img { width: auto; max-width: none; }   /* width follows the ratio of the (padded) height; no max-width squeeze in the shrink-to-fit note */
.lmap-addr { white-space: nowrap; font-size: var(--fs-data); font-weight: 500; color: var(--c-ink); }
.lmap-cap { margin-top: 16px; }
.lmap-cap .qualifier a, .lold .qualifier a { color: inherit; }
.lc-n { background: none; color: var(--c-ink); width: auto; height: auto; border-radius: 0; font-size: var(--fs-data); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  [data-lmap].is-pending .lm-mw { stroke-dasharray: 1; stroke-dashoffset: 1; }
  [data-lmap].is-in .lm-mw { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1200ms var(--ease); }
  [data-lmap].is-pending .lmap-note, [data-lmap].is-pending .lmap-sq { opacity: 0; }
  [data-lmap].is-in .lmap-note, [data-lmap].is-in .lmap-sq { transition: opacity 600ms var(--ease) 500ms; }
}
@media (max-width: 1023px) { .lmap-note img { height: 34px; width: auto; } .lmap-note { padding-bottom: 30px; } }
@media (max-width: 767px) {
  .lmap-note { padding-bottom: 26px; }
  .lmap { margin-top: 32px; margin-inline: calc(-1 * var(--margin)); }
  .lmap-cap { padding-inline: var(--margin); }
  .lmap-wide, .lold-old { display: none; }
  .lmap-tall, .lold-oldp { display: block; }
  .ml { font-size: 13px; }
  .ml small, .ml-ref, .ml-zone, .ml-north, .ml-lmk, .ml-to { font-size: 11px; }
  .ml-city { font-size: 10px; }
  .lmap-note img { height: 28px; width: auto; }
  .lmap-addr { font-size: 13px; }
  .ml-north { left: 16px; }
}

/* marker = navigation link (same Google Maps directions as NAPLÁNOVAŤ TRASU): the site's link underline + arrow nudge */
.lmap-addr { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.lmap-addr .arrow { display: inline-block; transition: transform 200ms var(--ease); }
.lmap-pin:hover .lmap-addr, .lmap-pin:focus-visible .lmap-addr { text-decoration-thickness: 2px; }
.lmap-pin:hover .lmap-addr .arrow, .lmap-pin:focus-visible .lmap-addr .arrow { transform: translate(2px, -2px); }
.lmap-pin:focus-visible { outline: none; }
.lmap-pin:focus-visible .lmap-note { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.lmap-act { margin: 0 0 16px; }
.enq-where { display: grid; gap: 4px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--c-hairline); }
.enq-where .link { justify-self: start; margin-top: 4px; }
@media (max-width: 767px) { .lmap-act .btn { width: 100%; } }
.lc-n { line-height: 28px; align-self: start; }
.consent input { width: 24px; height: 24px; }   /* WCAG 2.2 target size (24 px) */
@media (max-width: 767px) { .lmap-addr .city { display: none; } }
@media (max-width: 374px) { .lmap-tall .ml-zone { white-space: normal; width: min-content; } }   /* smallest phones: "Historické / centrum" on two lines keeps clear of the marker address */   /* phone: "Zavarská 13 ↗" keeps the note inside the frame */

/* /kontakt/ — general contact, in the homepage's facts-row grammar (channels as large type), person + next steps */
.k-lead { grid-column: 1 / 9; margin-top: 24px; color: var(--c-text-2); }
.k-channels { margin-top: 64px; }
.k-fig { font-size: clamp(1.25rem, .8rem + 1vw, 1.75rem); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; }
.k-fig a { text-decoration: none; }
.k-fig a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.k-channels .title a { color: var(--c-ink); }
.k-roles { border-top: 1px solid var(--c-hairline); }
/* three identities, one column each: label · logo slot (bottom-aligned, so names line up whatever the logo height) · name · detail */
.k-role-list .k-logo { display: flex; align-items: flex-end; margin: 20px 0; }
@media (min-width: 768px) { .k-role-list .k-logo { height: 72px; } }   /* columns: same slot so the names line up; stacked: no empty slot */
.k-role-list .k-logo img, .k-role-list .partner-logo img { width: auto; max-width: none; }
.k-role-list .k-logo > img { height: 34px; }
.k-role-list .k-logo > .k-dev-logo { height: 24px; margin-bottom: 5px; }
.k-role-list .partner-logo img { height: 72px; }
.k-role-list .title { color: var(--c-ink); }
.k-role-list p + p { margin-top: 4px; }
.k-role-list .k-go { margin-top: 16px; }
.k-channels .k-go { margin-top: 10px; }
.k-channels .k-go a { white-space: nowrap; }
.k-go .sep { margin-inline: 10px; color: var(--c-text-2); }
@media (max-width: 767px) { .k-lead { grid-column: 1 / -1; } .k-channels { margin-top: 40px; } }

/* LOGO INTEGRITY guard: approved logos are only ever scaled proportionally. If a layout ever squeezes a logo box,
   contain keeps the artwork at its source aspect ratio instead of stretching it. Fix the layout, never the asset. */
.wordmark img, .ft-logo img, .ft-dev-logo, .k-dev-logo, .k-logo img, .partner-logo img, .lmap-note img { object-fit: contain; }

/* Architectural visualization in a content section (homepage offer, building pages, /lokalita/ parking) — native ratio, no crop */
.viz-fig { grid-column: 1 / -1; margin: 64px 0 0; }
.viz-fig img { display: block; width: 100%; height: auto; background: var(--c-surface); }
.viz-fig figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 14px; }
@media (max-width: 767px) { .viz-fig { margin-top: 40px; } }

/* /lokalita/ parking: tenant vs patient parking side by side — two categories, never merged */
.why.park-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.park-split .fig-l { margin-top: 12px; color: var(--c-ink); }
@media (max-width: 767px) { .why.park-split { grid-template-columns: 1fr; } }

/* Key figures: a unit ("/ m² / mesiac", "/ mesiac / státie") wraps as a whole, never mid-unit (audit CD-1) */
.kf .fig-l small { display: inline-block; white-space: nowrap; }

/* Homepage parking: total capacity is the figure; the two categories are readable secondary lines, never merged */
.kf-split { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.kf-split li { display: grid; grid-template-columns: 2.4ch minmax(0, 1fr); column-gap: 10px; align-items: baseline;
  font-size: var(--fs-data); line-height: 1.45; color: var(--c-text-2); }
.kf-split b { font-weight: 600; color: var(--c-ink); font-variant-numeric: tabular-nums; }

/* Gallery: the leftover single item of an odd run spans the row (site.js galSolo) — no empty grid cells at any width */
.gal-wrap .gal-item[data-solo], .gal-wrap[data-filtered] .gal-item[data-span="12"] { grid-column: 1 / -1; }   /* filtered views keep the full-width frames */

/* Dark-hero pages: header stays reachable (site.js .is-fixed); transparent over the hero, standard light header past it (.is-solid) */
.header.over-dark.is-fixed { position: fixed; top: 0; }
.header.over-dark.is-solid { background: var(--c-bg); border-color: var(--c-hairline); color: var(--c-ink); }
@media (prefers-reduced-motion: no-preference) {
  .header.over-dark.is-fixed { transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease); }
}
html:has(.header.is-fixed) { scroll-padding-top: 72px; }   /* in-page anchors land below the fixed header */
@media (max-width: 1023px) { html:has(.header.is-fixed) { scroll-padding-top: 56px; } }
/* 1.PP row in the floor stack: no area bar (the basement is not inventory) — a dashed outline marks the level below ground */
.floor-row-pp .bar-track { display: flex; align-items: center; padding-left: 12px; border: 1px dashed var(--c-text-2); }
.floor-row-pp .bar-pp { font-size: var(--fs-qualifier); line-height: 20px; color: var(--c-text-2); }
.floor-row-pp:hover .bar-track, .floor-row-pp.is-current .bar-track { border-style: solid; border-color: var(--c-ink); }
.floor-row-pp .ar { color: var(--c-text-2); }
/* 1.PP on the render: one strip directly under the ground-floor volume (underground — schematic, not a visible part).
   Same logic for A and B: translucent ink fill, one clean thin outline, label inside; the hit rect is larger than the strip */
.bsel-pp .bsel-pp-hit { fill: none; stroke: none; pointer-events: none; }
/* touch: a tolerance band around the strip; floors come later in the DOM, so it only catches taps that hit no floor */
@media (pointer: coarse) { .bsel-pp .bsel-pp-hit { stroke: transparent; stroke-width: 24px; pointer-events: stroke; } }
/* building step (set by site.js): no floor, strip or label until a building is chosen; the chosen building shows only its
   own floors and the other one stays selectable as a whole. Without JS (no data-sel) every floor link works directly. */
.bsel[data-sel]:not([data-sel="A"]) .bsel-building[data-b="A"] .bsel-floor:not(.is-on),
.bsel[data-sel]:not([data-sel="B"]) .bsel-building[data-b="B"] .bsel-floor:not(.is-on),
.bsel:not([data-sel]) .bsel-pick, .bsel[data-sel="A"] .bsel-pick[data-b="A"], .bsel[data-sel="B"] .bsel-pick[data-b="B"] { display: none; }
.bsel-pick { cursor: pointer; outline: none; }
.bsel-pick path { fill: #fff; fill-opacity: 0; stroke: none; }
.bsel-pick:focus-visible path { fill-opacity: .16; }
@media (hover: hover) { .bsel-pick:hover path { fill-opacity: .12; } }
.bsel-pp text { fill: #fff; font: 700 36px var(--font); letter-spacing: .04em; pointer-events: none; }   /* ≈ strip depth: largest size that stays inside */
/* whole drawing sheets (1.PP, site plan): the existing plan frame, full grid width, never cropped */
.plan-sheet { grid-column: 1 / -1; margin: 56px 0 0; }
.plan-sheet .plan-frame img { display: block; width: 100%; height: auto; }
.plan-sheet-note { margin-top: 8px; }
@media (max-width: 767px) { .plan-sheet .plan-frame { margin-inline: 0; border-inline: 1px solid var(--c-hairline); } }   /* whole sheet inside the gutter, not bled to one edge */
/* 1.PP drawing spaces: pick one, then ask for rental information (same tokens as the floor rows) */
.pp-pick { margin-top: 32px; }
.pp-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; padding: 0; list-style: none; }
.pp-opt { display: flex; flex-direction: column; justify-content: center; min-width: 132px; min-height: 56px; padding: 8px 16px; border: 1px solid var(--c-ink); color: var(--c-ink); text-decoration: none; }
.pp-opt .n { font-weight: 600; font-size: 16px; line-height: 20px; }
.pp-opt .a { font-size: 13px; line-height: 18px; color: var(--c-text-2); }
.pp-opt[aria-current="true"] { background: var(--c-ink); color: var(--c-bg); }
.pp-opt[aria-current="true"] .a { color: var(--c-bg); }
.pp-opt:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
@media (hover: hover) { .pp-opt:hover { border-width: 2px; padding: 7px 15px; } }
.pp-chosen { margin-top: 24px; padding: 20px; border: 1px solid var(--c-ink); }
.pp-chosen[hidden] { display: none; }
.pp-chosen-t { margin-top: 6px; font-weight: 600; }
.pp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 16px; }
.pp-pick { grid-column: 1 / -1; }
.pp-plan { display: block; width: 100%; height: auto; }
.pp-zone { cursor: pointer; outline: none; }
.pp-zone path { stroke: var(--c-accent); stroke-opacity: .55; }
.pp-zone .pp-hit { fill: transparent; }
.pp-zone:focus-visible path { fill: var(--c-fill-hover); stroke: var(--c-accent); stroke-opacity: 1; stroke-width: 3; stroke-dasharray: 7 4; }
@media (hover: hover) { .pp-zone:hover path { fill: var(--c-fill-hover); stroke-opacity: 1; } }
.pp-zone[aria-pressed="true"] path, .pp-zone[aria-pressed="true"]:hover path { fill: var(--c-accent); fill-opacity: .32; stroke: var(--c-accent); stroke-opacity: 1; stroke-width: 3; }
.pp-switch { display: block; width: 100%; max-width: 100%; margin-top: 8px; min-height: 44px; font: inherit; }
@media (max-width: 767px) { .pp-opts li { flex: 1 1 calc(50% - 4px); display: flex; } .pp-opt { flex: 1; min-width: 0; } }
/* privacy notice (draft): placeholders stay impossible to miss; table of contents; note under the enquiry submit button */
.todo { background: var(--c-surface); color: var(--c-ink); padding: 0 4px; border-radius: 2px; font-weight: 600; }
.privacy-toc { padding-top: 16px; border-top: 1px solid var(--c-ink); }
.privacy-toc ol { margin: 12px 0 0; padding-left: 0; list-style: none; }   /* headings carry their own numbers */
.privacy-toc li + li { margin-top: 6px; }
.privacy .post-body h2 { scroll-margin-top: 96px; }
.form-privacy { margin-top: 16px; font-size: var(--fs-qualifier); line-height: 20px; color: var(--c-text-2); }
.form-privacy a, .ft-legal a { color: inherit; }
