/* P02 · Editorial magazine · Dobrá adresa reality (demo) */

:root {
  --paper: oklch(0.97 0.01 85);
  --paper-2: oklch(0.94 0.012 85);
  --paper-3: oklch(0.9 0.014 85);
  --ink: oklch(0.2 0.02 260);
  --muted: oklch(0.45 0.02 260);
  --line: oklch(0.82 0.01 85);
  --accent: oklch(0.55 0.2 25);
  --accent-2: oklch(0.47 0.19 25);
  --accent-fg: oklch(0.98 0 0);
  --error: oklch(0.47 0.19 25);

  --bg: var(--paper);
  --fg: var(--ink);

  --section-y: clamp(4rem, 3rem + 4vw, 7rem);
  --gutter: 32px;
  --pad: clamp(16px, 4vw, 48px);
  --nav-h: 48px;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --step-4: clamp(1.75rem, 1.3rem + 1.6vw, 3rem);
  --step-5: clamp(2.25rem, 1.6rem + 3vw, 4.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  --ink-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 0 0 0 2.15'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-color: var(--ink) var(--paper-2);
  background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.motion { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper) var(--grain);
  background-size: 200px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--ink); color: var(--paper); }
input, textarea, select, button { font: inherit; color: inherit; caret-color: var(--accent); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ol, ul, dl, dd, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap { max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--gutter); }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* ---------- type ---------- */
.display-1, .display-2, .wordmark { font-family: var(--serif); font-optical-sizing: auto; }
.display-1 { font-size: var(--step-5); line-height: 1.05; font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
.display-2 { font-size: var(--step-4); line-height: 1.1; font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
.label, .folio, .mast-top, .l-where, dt, .hud-title {
  font-family: var(--sans); font-weight: 500; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.label { margin-bottom: 16px; }
.l-note { font-family: var(--sans); font-size: 0.8125rem; font-weight: 400; color: var(--muted); letter-spacing: 0; text-transform: none; }

/* ---------- rules ---------- */
.rule { height: 1px; background: var(--ink); transform-origin: left center; }
.rule-dbl {
  height: 5px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  transform-origin: left center;
}
.folio {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 12px; color: var(--muted);
}

/* ---------- masthead ---------- */
.masthead { padding-top: 12px; }
.masthead .wrap, .colophon .wrap { container-type: inline-size; }
.mast-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 10px; font-size: 0.8rem; letter-spacing: 0.06em;
}
.mast-top p:last-child { text-align: right; }
.mast-tel { white-space: nowrap; }
@media (max-width: 639px) {
  .mast-mid, .hide-s { display: none; }
  .mast-top { font-size: 0.6875rem; }
}
.wordmark {
  font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(3rem, 11.9cqi, 10rem); line-height: 0.92;
  padding: 0.08em 0 0.06em;
  display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 0.25em;
  font-variation-settings: "opsz" 72;
}
.wm-word { display: block; overflow: clip; overflow-clip-margin: 0; padding-top: 0.14em; margin-top: -0.14em; }
.wordmark .split-char { display: inline-block; will-change: transform; }

/* ---------- index nav ---------- */
.index {
  position: sticky; top: 0; z-index: 30;
  height: var(--nav-h);
  background: var(--paper) var(--grain); background-size: 200px;
  border-bottom: 1px solid var(--ink);
}
.index-in { display: flex; align-items: stretch; height: 100%; gap: 24px; }
.index-mark {
  display: none; align-self: center; flex: none;
  font-family: var(--serif); font-weight: 600; text-transform: uppercase; font-size: 1.0625rem;
  letter-spacing: -0.01em; opacity: 0; transform: translateY(4px);
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
}
.index.is-stuck .index-mark { opacity: 1; transform: none; }
.index ol { display: flex; flex: 1; justify-content: space-between; gap: 8px; }
@media (max-width: 767px) {
  .index-in { padding-inline: 0; }
  .index ol {
    overflow-x: auto; scrollbar-width: none; padding-inline: 12px; gap: 12px; justify-content: flex-start;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 12px, black calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent 0, black 12px, black calc(100% - 28px), transparent);
  }
  .index ol::-webkit-scrollbar { display: none; }
}
.index a {
  position: relative; display: flex; align-items: center; height: 100%;
  min-width: 44px; padding-inline: 4px;
  text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
}
.index .n { color: var(--muted); font-size: 0.75rem; margin-right: 6px; font-variant-numeric: tabular-nums; }
.index a::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: -1px; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.index a[aria-current="true"]::after { transform: scaleX(1); }
.index a:hover::after { transform: scaleX(0.35); }
.index a[aria-current="true"]:hover::after { transform: scaleX(1); }
@media (min-width: 1100px) { .index-mark { display: block; } }

/* ---------- buttons, links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  background: var(--accent); color: var(--accent-fg);
  border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn .ic { transition: transform 0.3s var(--ease-out); }
.btn:hover { background: var(--accent-2); }
.btn:hover .ic { transform: translateX(4px); }
.btn:focus-visible { outline-color: var(--ink); }
.tlink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 500; text-decoration: underline; text-decoration-color: var(--line);
  text-decoration-thickness: 1px; text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s;
}
.tlink:hover { text-decoration-color: var(--ink); }
.tlink .ic { transition: transform 0.3s var(--ease-out); }
.tlink:hover .ic { transform: translate(3px, 0); }
.tlink-lg { font-size: var(--step-1); }

/* ---------- stamps ---------- */
.stamp {
  display: inline-block; color: var(--accent);
  font-family: var(--sans); font-weight: 600; font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.14em; line-height: 1;
  padding: 7px 9px 6px; border: 2px solid currentColor;
  outline: 1px solid currentColor; outline-offset: -5px;
  transform: rotate(-6deg);
  -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask);
  -webkit-mask-size: 140px; mask-size: 140px;
  white-space: nowrap;
}
.stamp-lg { font-size: 0.875rem; padding: 12px 14px 11px; outline-offset: -6px; }

/* ---------- media + placeholders ---------- */
.media { position: relative; background: var(--paper-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-hero { aspect-ratio: 3 / 4; }
.media-43 { aspect-ratio: 4 / 3; }
.media-32 { aspect-ratio: 3 / 2; }
.media.is-missing {
  background:
    repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 12px),
    var(--paper-2);
  outline: 1px solid var(--line); outline-offset: -1px;
}
.media.is-missing::after {
  content: "Foto pripravujeme";
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 6px 12px; background: var(--paper);
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--muted);
  white-space: nowrap;
}
figcaption {
  margin-top: 12px; font-family: var(--serif); font-style: italic;
  font-size: 0.875rem; line-height: 1.45; color: var(--muted); max-width: 52ch;
}

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 3.5vw, 48px) 0 var(--section-y); }
.hero .grid { row-gap: 40px; }
.hero-copy { grid-column: 1 / -1; align-self: start; }
.hero-copy .display-1 { max-width: 18ch; }
.lede { margin-top: 28px; font-size: var(--step-1); line-height: 1.55; max-width: 44ch; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-fig { grid-column: 1 / -1; position: relative; }
.hero-fig .media-hero { aspect-ratio: 4 / 3; }
.hero-fig .stamp-lg { position: absolute; z-index: 2; left: -8px; top: -18px; background: var(--paper); }
@media (min-width: 900px) {
  .hero-copy { grid-column: 1 / 8; padding-right: var(--gutter); border-right: 1px solid var(--line); padding-bottom: 8px; }
  .lede { max-width: none; width: calc((5 / 7) * 100%); }
  .hero-fig { grid-column: 8 / 13; }
  .hero-fig .media-hero { aspect-ratio: 3 / 4; }
  .hero-fig .stamp-lg { left: -20px; top: -20px; }
}

/* ---------- sections ---------- */
.sec { padding-bottom: var(--section-y); }
.sec-head { margin: 28px 0 48px; row-gap: 16px; align-items: end; }
.sec-head h2 { grid-column: 1 / -1; }
.sec-intro { grid-column: 1 / -1; max-width: 42ch; font-size: var(--step-1); }
.sec-title { margin: 28px 0 48px; max-width: 22ch; }
@media (min-width: 900px) {
  .sec-head h2 { grid-column: 1 / 7; }
  .sec-intro { grid-column: 7 / 12; }
}

/* ---------- map walk ---------- */
.walk { position: relative; }
.map {
  position: sticky; top: var(--nav-h); z-index: 5;
  height: 38vh; height: 38svh;
  margin-inline: calc(var(--pad) * -1);
  background: var(--paper) var(--grain); background-size: 200px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  overflow: clip;
}
.map-svg { width: 100%; height: 100%; }
.m-gridline { stroke: var(--line); stroke-width: 0.6; opacity: 0.55; }
.m-river path { fill: none; stroke: var(--line); stroke-width: 3; vector-effect: non-scaling-stroke; }
.m-river-label { font-family: var(--serif); font-style: italic; font-size: 22px; fill: var(--muted); letter-spacing: 0.3em; }
.m-roads path { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0.45; vector-effect: non-scaling-stroke; }
.m-districts polygon {
  fill: var(--paper-2); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke;
  transition: fill 0.4s;
}
.m-districts polygon.is-active { fill: url(#m-hatch); }
.m-hatchline { stroke: var(--line); stroke-width: 2; }
.m-labels text {
  font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: 0.14em;
  text-transform: uppercase; fill: var(--muted); text-anchor: middle;
}
.pin { cursor: pointer; }
.pin .dot {
  transform: scale(calc(var(--ps, 0.8) * var(--pk, 1)));
  transition: transform 0.45s var(--ease-out);
}
.pin .dot circle { fill: var(--ink); stroke: var(--paper); stroke-width: 2.5; transition: fill 0.3s; }
.pin .num { fill: var(--paper); font-family: var(--sans); font-weight: 600; font-size: 11px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pin.is-active .dot { --ps: 1.4; }
.pin.is-active .dot circle { fill: var(--accent); }
.pin:hover .dot { --ps: 1.05; }
.pin.is-active:hover .dot { --ps: 1.4; }
.pin-label { opacity: 0; transform: scale(var(--pk, 1)); transition: opacity 0.35s; pointer-events: none; }
.pin.is-active .pin-label { opacity: 1; }
.pin-label rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pin-label .pl-price { font-family: var(--serif); font-size: 17px; font-weight: 600; fill: var(--ink); }
.pin-label .pl-sub { font-family: var(--sans); font-size: 7.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--muted); }

.map-hud { position: absolute; inset: 0; pointer-events: none; padding: 12px 16px; }
.hud-title { position: absolute; left: 16px; top: 10px; color: var(--muted); font-size: 0.6875rem; }
.hud-now {
  position: absolute; left: 16px; bottom: 10px;
  font-family: var(--serif); font-size: 1rem; background: var(--paper); padding: 2px 8px 2px 0;
}
.hud-n { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; color: var(--accent); margin-right: 6px; }
.hud-scale {
  position: absolute; right: 16px; bottom: 12px; display: flex; align-items: center; gap: 8px;
  font-size: 0.6875rem; color: var(--muted);
}
.hud-scale .bar { width: 56px; height: 6px; border: 1px solid var(--ink); border-top: 0; }

.listings { position: relative; }
.listing {
  position: relative; min-height: 60vh;
  padding: 28px 0 40px 20px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(38svh - 8px);
}
.listing::before {
  content: ""; position: absolute; left: 0; top: 28px; bottom: 40px; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform 0.45s var(--ease-out);
}
.listing.is-active::before { transform: scaleY(1); }
.l-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.l-no { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--muted); }
.listing.is-active .l-no { color: var(--accent); }
.l-type { margin-top: 20px; font-weight: 500; }
.l-price { margin-top: 4px; font-family: var(--serif); font-size: 2rem; line-height: 1.15; font-weight: 400; letter-spacing: -0.01em; }
.l-text { margin-top: 12px; max-width: 46ch; color: var(--ink); }
.listing .tlink { margin-top: 12px; }
.walk-end { padding: 48px 0 24px; min-height: 70vh; }
.walk-end-big { font-family: var(--serif); font-style: italic; font-size: var(--step-3); line-height: 1.2; margin-bottom: 12px; }
.walk-end p:not(.walk-end-big) { max-width: 44ch; color: var(--muted); }
.walk-end .tlink { margin-top: 16px; }

@media (min-width: 640px) {
  .map { margin-inline: 0; border: 1px solid var(--ink); }
}
@media (max-width: 1023px) {
  .m-labels text { font-size: 24px; }
  .map { --pk: 1.6; }
}
@media (min-width: 1024px) {
  .walk {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
    align-items: start;
  }
  .map {
    grid-column: 6 / 13; grid-row: 1;
    top: calc(var(--nav-h) + 16px);
    height: calc(100vh - var(--nav-h) - 48px);
    margin: 0;
  }
  .listings { grid-column: 1 / 6; grid-row: 1; border-top: 1px solid var(--ink); }
  .listing { min-height: 72vh; padding: 32px 8px 48px 24px; scroll-margin-top: 0; }
  .listing::before { top: 32px; bottom: 48px; }
  .walk-end { min-height: 92vh; padding-left: 24px; }
}

/* ---------- predať / kúpiť ---------- */
.paths-grid { display: grid; gap: 64px; margin-top: 28px; }
.path h2 { margin-bottom: 20px; }
.path-text { max-width: 60ch; }
.valuate { margin-top: 32px; }
fieldset { border: 0; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--ink); min-width: 0; }
legend { padding: 0 12px 0 0; font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.v-fields { display: grid; gap: 16px; margin-bottom: 24px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 0.875rem; font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea, select {
  width: 100%; min-height: 48px; padding: 10px 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-bottom-color: var(--accent);
}
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.select { position: relative; display: block; }
.select select { padding-right: 28px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: translateY(-75%) rotate(45deg); pointer-events: none;
}
.err { min-height: 0; font-size: 0.8125rem; color: var(--error); font-weight: 500; }
.err:empty { display: none; }
[aria-invalid="true"] { border-bottom: 2px solid var(--error) !important; }
.v-status, .c-status { margin-top: 16px; font-size: 0.9375rem; }
.v-status:empty, .c-status:empty { display: none; }
.is-ok { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.is-ok .ic { margin-top: 3px; color: var(--ink); }

.qa { margin-top: 40px; border-top: 1px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 52px; padding: 10px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.1875rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { transition: transform 0.3s var(--ease-out); }
.qa details[open] summary .ic { transform: rotate(45deg); }
.qa summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.qa details p { padding: 0 0 18px; max-width: 60ch; color: var(--ink); }

.pull { margin: 32px 0 24px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pull p { font-family: var(--serif); font-style: italic; font-size: var(--step-3); line-height: 1.2; max-width: 18ch; }

@media (min-width: 900px) {
  .paths-grid { grid-template-columns: 7fr 5fr; gap: 0; }
  .path-sell { padding-right: var(--gutter); border-right: 1px solid var(--line); }
  .path-buy { padding-left: var(--gutter); }
  .v-fields { grid-template-columns: 1.2fr 1fr 0.8fr; gap: 24px; }
}

.prices { margin-top: var(--section-y); }
.prices .label { display: flex; gap: 12px; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--ink); }
.prices-row { display: grid; gap: 0; }
.prices-row > div { padding: 16px 0; border-top: 1px solid var(--line); }
.prices-row dt { color: var(--muted); margin-bottom: 6px; }
.prices-row dd { font-size: 0.9375rem; max-width: 30ch; }
.prices-row .big { display: block; font-family: var(--serif); font-size: var(--step-3); line-height: 1.1; margin-bottom: 6px; }
@media (min-width: 768px) {
  .prices-row { grid-template-columns: repeat(4, 1fr); }
  .prices-row > div { border-top: 0; padding: 4px 24px 8px; border-left: 1px solid var(--line); }
  .prices-row > div:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- postup ---------- */
.ruler { display: flex; margin: 0 0 48px; border-left: 1px solid var(--ink); }
.ruler span { position: relative; height: 28px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ruler span:nth-child(1) { flex: 3; }
.ruler span:nth-child(2) { flex: 4; }
.ruler span:nth-child(3) { flex: 23; background: var(--paper-2); }
.ruler span:nth-child(4) { flex: 15; }
.ruler span:nth-child(5) { flex: 15; }
.ruler b { position: absolute; left: 4px; top: 4px; font-size: 0.6875rem; font-weight: 600; color: var(--muted); }
.ruler b.end { left: auto; right: 4px; }
.ruler span:nth-child(1) b { left: 2px; }
.ruler span:nth-child(2) b { left: 3px; }

.steps { counter-reset: none; }
.steps li { break-inside: avoid; padding-bottom: 28px; }
.steps h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.steps h3 > .tnum:first-child { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.25rem; color: var(--muted); }
.days { font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.steps p { max-width: 64ch; }
.steps li:first-child p::first-letter {
  float: left; font-family: var(--serif); font-weight: 400;
  font-size: 5.6em; line-height: 0.74; margin: 0.07em 0.1em 0 -0.04em; color: var(--ink);
}
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  .steps li:first-child p::first-letter {
    float: none; font-size: inherit; line-height: inherit; margin: 0 0.12em 0 0;
    -webkit-initial-letter: 3; initial-letter: 3;
  }
}
@media (min-width: 900px) {
  .steps { columns: 2; column-gap: 64px; column-rule: 1px solid var(--line); }
}
@media (max-width: 639px) {
  .ruler b { display: none; }
  .ruler span:nth-child(1) b, .ruler span:nth-child(3) b, .ruler span:nth-child(4) b, .ruler span:nth-child(5) b { display: block; }
  .ruler span:nth-child(1) b { left: 2px; }
}

/* ---------- predané ---------- */
.sold-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums lining-nums; }
.sold-table caption { caption-side: bottom; text-align: left; padding-top: 16px; font-family: var(--serif); font-style: italic; font-size: 0.875rem; color: var(--muted); }
.sold-table thead th { font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-align: left; padding: 0 12px 12px 0; border-bottom: 1px solid var(--ink); }
.sold-table td, .sold-table tbody th { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.sold-table tbody th { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.sold-table .num { text-align: right; }
.sold-table td.st { text-align: right; width: 1%; padding-right: 8px; padding-left: 16px; }
.sold-table tbody tr { transition: background-color 0.15s; }
.sold-table tbody tr:hover { background: var(--paper-2); }
@media (max-width: 719px) {
  .sold-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sold-table, .sold-table tbody { display: block; }
  .sold-table tbody tr {
    display: grid; grid-template-columns: 1fr auto; column-gap: 12px;
    padding: 16px 0; border-bottom: 1px solid var(--line); position: relative;
  }
  .sold-table td, .sold-table tbody th { border: 0; padding: 0; }
  .sold-table tbody th { grid-column: 1; }
  .sold-table td.st { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: auto; padding: 0; }
  .sold-table td[data-l] { grid-column: 1; display: flex; gap: 8px; font-size: 0.9375rem; }
  .sold-table td.num { text-align: left; }
  .sold-table td[data-l]::before { content: attr(data-l); color: var(--muted); min-width: 92px; font-size: 0.8125rem; padding-top: 1px; }
  .sold-table caption { display: block; }
}

/* ---------- tím ---------- */
.team-grid { display: grid; gap: 32px; margin-top: 28px; }
.team-copy h2 { margin-bottom: 16px; }
.team-copy p { max-width: 40ch; }
.people { display: grid; margin-top: 48px; border-top: 1px solid var(--ink); }
.people li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.people h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; margin-bottom: 4px; }
.people .role { font-weight: 500; }
.people .since { color: var(--muted); font-size: 0.875rem; font-family: var(--serif); font-style: italic; }
@media (min-width: 900px) {
  .team-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .team-fig { grid-column: 1 / 8; }
  .team-copy { grid-column: 8 / 13; padding-bottom: 40px; }
}
@media (min-width: 768px) {
  .people { grid-template-columns: repeat(3, 1fr); }
  .people li { padding: 20px 24px 8px; border-bottom: 0; border-left: 1px solid var(--line); }
  .people li:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- kontakt ---------- */
.contact-grid { display: grid; gap: 48px; }
.office { display: grid; gap: 0; border-top: 1px solid var(--ink); align-content: start; }
.office > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.office dt { color: var(--muted); margin-bottom: 4px; }
.office dd { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.4; overflow-wrap: anywhere; }
.office dd .muted { font-family: var(--sans); font-size: 0.8125rem; }
.cform { display: grid; gap: 20px; align-content: start; border-top: 1px solid var(--ink); padding-top: 20px; }
.c-row { display: grid; gap: 20px; }
.cform .btn { justify-self: start; }
.field.check { grid-template-columns: 24px 1fr; column-gap: 12px; align-items: start; }
.field.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.field.check label { font-weight: 400; font-size: 0.9375rem; padding-top: 2px; cursor: pointer; }
.field.check .err { grid-column: 2; }
@media (min-width: 640px) { .c-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .office { grid-column: 1 / 5; }
  .cform { grid-column: 6 / 13; }
}

/* ---------- pätička ---------- */
.colophon { padding: 0 0 40px; }
.wordmark-sm { font-size: clamp(2.25rem, 1.5rem + 4vw, 5rem); margin: 20px 0 32px; justify-content: flex-start; }
.colo-grid { display: grid; gap: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.colo-grid .label { color: var(--muted); }
.colo-grid li { padding: 2px 0; }
.colo-links a { display: inline-flex; align-items: center; min-height: 32px; }
.colo-grid a { overflow-wrap: anywhere; }
.demo-label { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--ink); font-size: 0.875rem; }
@media (min-width: 768px) { .colo-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- motion start states (only with html.motion) ---------- */
html.motion [data-reveal] { opacity: 0; }
html.motion .is-in,
html.motion .is-in .split-line,
html.motion .is-in .split-char { opacity: 1 !important; transform: none !important; }
html.motion [data-reveal="rule"].is-in { transform: none !important; }
html.motion [data-reveal="stamp"].is-in { transform: rotate(-6deg) !important; }
.split-mask { display: block; overflow: clip; padding-block: 0.12em 0.14em; margin-block: -0.12em -0.14em; }
.split-line { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .pin .dot, .listing::before, .index a::after { transition-duration: 0.01ms; }
}
