/* ==========================================================================
   JURMAX — koncept webu
   Polia: čierna (onyx) / biela / zlatá. Podpisový prvok: kóta (kótovacia čiara
   z výkresovej dokumentácie) — v hero meria vzdialenosť medzi pobočkami.
   ========================================================================== */

:root {
  --onyx: #241b14;
  --onyx-2: #291f17;
  --onyx-3: #31261c;
  --white: #ffffff;
  --mist: #f5f5f3;

  --ink: #2a1c12;
  --ink-2: #66574a;
  --chalk: #f2f1ec;
  --chalk-2: #b4a898;

  --gold: #c9a55a;
  --gold-hi: #e8d3a0;
  --gold-deep: #8a6a2b;
  --gold-metal: linear-gradient(100deg, #8c6b2c 0%, #d6b873 28%, #f3e5bb 47%, #c7a256 66%, #9a7633 100%);
  --gold-btn: linear-gradient(100deg, #b18b44 0%, #d4b571 30%, #ead6a2 50%, #c9a55a 70%, #b18b44 100%);
  --gold-field: linear-gradient(118deg, #b58f49 0%, #c9a55a 30%, #d8bc7e 50%, #c9a55a 68%, #b08943 100%);

  --line-dark: rgba(255, 255, 255, .14);
  --line-light: #e2e0d9;

  /* Celý web: Montserrat (svetlé rezy pre nadpisy, stredné pre text, tabuľkové číslice pre popisky) */
  --f-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 112px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--onyx);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol.steps, ol.timeline { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: #1a110a; padding: 10px 16px; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Polia ---------- */
.f-black { --bg: var(--onyx); --fg: var(--chalk); --muted: var(--chalk-2); --line: var(--line-dark); --accent: var(--gold); background: var(--bg); color: var(--fg); }
.f-black-2 { --bg: var(--onyx-2); --fg: var(--chalk); --muted: var(--chalk-2); --line: var(--line-dark); --accent: var(--gold); background: var(--bg); color: var(--fg); }
.f-white { --bg: var(--white); --fg: var(--ink); --muted: var(--ink-2); --line: var(--line-light); --accent: var(--gold-deep); background: var(--bg); color: var(--fg); }
.f-mist { --bg: var(--mist); --fg: var(--ink); --muted: var(--ink-2); --line: var(--line-light); --accent: var(--gold-deep); background: var(--bg); color: var(--fg); }
.f-gold { --bg: var(--gold); --fg: #1a110a; --muted: #3a2a1b; --line: rgba(26, 17, 10, .22); --accent: #1a110a; background: var(--gold-field); color: var(--fg); }

.sec { padding-block: clamp(72px, 10vw, 144px); }
.sec--tight { padding-block: clamp(56px, 7vw, 96px); }

/* ---------- Typografia ---------- */
.d1 { font-family: var(--f-display); font-weight: 300; font-size: clamp(38px, 5.3vw, 84px); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
.d1 em, .d2 em { font-weight: 500; }
.d2 { font-family: var(--f-display); font-weight: 300; font-size: clamp(29px, 3.5vw, 52px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.d3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; letter-spacing: -.01em; }
.d4 { font-family: var(--f-display); font-weight: 600; font-size: 18px; line-height: 1.35; letter-spacing: -.005em; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.gold-text { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font-family: var(--f-body); font-weight: 600;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }

.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .lead { margin: 18px 0 0; }

/* ---------- Tlačidlá a odkazy ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--gold { background: var(--gold-btn); background-size: 220% 100%; background-position: 0 0; color: #1a110a; transition: background-position .7s var(--ease), color .3s; }
.btn--gold:hover { background-position: 100% 0; }
.btn--ghost { border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--dark { background: #1a110a; color: var(--gold-hi); }
.btn--dark:hover { background: #110b06; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 11px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }

/* ---------- Kóta (podpisový prvok) ---------- */
.kota {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 30px; color: var(--accent);
}
.kota::before, .kota::after,
.kota__mark { position: absolute; top: 50%; width: 1px; height: 22px; background: currentColor; transform: translateY(-50%); }
.kota::before { left: 0; }
.kota::after { right: 0; }
.kota__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transform-origin: left center; }
.kota__line::before, .kota__line::after {
  content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: currentColor; transform: rotate(45deg);
}
.kota__line::before { left: 0; }
.kota__line::after { right: 0; }
.kota__label {
  position: relative; padding: 0 12px; background: var(--bg);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; white-space: nowrap;
}
/* S JS má čiara medzeru presne na šírku popisu (--gap), takže popis nepotrebuje pozadie a nad fotkou nevznikne obdĺžnik */
.kota-gaps .kota__label { background: none; }
.kota-gaps .kota__line { background: linear-gradient(90deg, currentColor calc(50% - var(--gap, 0px) / 2), transparent 0, transparent calc(50% + var(--gap, 0px) / 2), currentColor 0); }

/* Hero rozpätie: Rotterdam — Praha — Trenčín */
.span-line { position: relative; height: 92px; color: var(--gold); }
.span-line__rule { position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: currentColor; transform-origin: left center; }
.span-line__pt { position: absolute; top: 0; left: var(--x); }
.span-line__pt::before { content: ""; position: absolute; left: 0; top: 22px; width: 1px; height: 24px; background: currentColor; }
.span-line__pt::after { content: ""; position: absolute; left: 0; top: 28px; width: 1px; height: 13px; background: currentColor; transform: rotate(45deg); }
.span-line__city { position: absolute; top: 54px; left: 0; white-space: nowrap; color: var(--chalk); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.span-line__city small { margin-left: 8px; font-family: var(--f-mono); font-size: 11px; color: var(--gold); letter-spacing: .08em; }
.span-line__pt--end .span-line__city { left: auto; right: 0; }
.span-line__dist { position: absolute; top: 6px; left: var(--x); transform: translateX(-50%); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; white-space: nowrap; }

/* ---------- Hlavička ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--chalk); transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; background: linear-gradient(to bottom, rgba(22, 15, 9, .8), rgba(22, 15, 9, 0)); pointer-events: none; transition: opacity .4s; }
.site-header.is-solid { background: rgba(36, 27, 20, .96); box-shadow: 0 1px 0 rgba(201, 165, 90, .28); }
.site-header.is-solid::before { opacity: 0; }

.topbar { height: 36px; border-bottom: 1px solid var(--line-dark); overflow: hidden; transition: height .35s var(--ease), border-color .35s; }
.site-header.is-solid .topbar { height: 0; border-color: transparent; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 24px; color: var(--chalk-2); }
.topbar__in a:hover { color: var(--gold); }
.topbar__right { display: flex; align-items: center; gap: 28px; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; }
.lang a { padding: 6px; color: var(--chalk-2); transition: color .25s; }
.lang a:hover { color: var(--gold-hi); }
.lang a[aria-current="true"] { color: var(--gold); }
.lang span { color: rgba(255, 255, 255, .28); }
.nav .lang { margin-right: -12px; }

.nav__in { display: flex; align-items: center; gap: 40px; height: 76px; }
.logo { display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.logo__word {
  font-family: var(--f-display); font-weight: 600; font-size: 23px; letter-spacing: .36em; margin-right: -.36em;
  background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo__sub { margin-top: 8px; font-size: 8.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--chalk-2); }
.menu { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.menu a { position: relative; padding: 8px 0; font-size: 13.5px; font-weight: 500; letter-spacing: .02em; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--gold-hi); }

.burger { display: none; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 12px; right: 12px; height: 1px; background: var(--chalk); transition: transform .3s var(--ease), opacity .3s; }
.burger::before { top: 17px; } .burger span { top: 24px; } .burger::after { top: 31px; }
.nav-open .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span { opacity: 0; }
.nav-open .burger::after { transform: translateY(-7px) rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; background: var(--onyx); color: var(--chalk); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; overflow-y: auto; }
.nav-open .drawer { opacity: 1; visibility: visible; }
.drawer a.drawer__link { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--f-display); font-weight: 300; font-size: 26px; letter-spacing: -.01em; }
.drawer__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 18px; }

/* ---------- Hero (domov) ---------- */
.hero { position: relative; min-height: max(720px, 100svh); display: flex; flex-direction: column; overflow: hidden; }
.hero__media { position: absolute; inset: 0 0 0 38%; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.06); animation: heroZoom 2.4s var(--ease) forwards; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--onyx) 0%, rgba(29, 20, 13, .55) 30%, rgba(29, 20, 13, 0) 62%), linear-gradient(0deg, var(--onyx) 0%, rgba(29, 20, 13, 0) 34%); }
.hero__body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 48px); padding-bottom: 40px; }
.hero__title { max-width: 12.5em; }
.hero__title em { font-style: normal; color: var(--gold); background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lead { margin: 30px 0 40px; color: #cfcdc5; max-width: 40ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__span { position: relative; padding-bottom: 36px; }
.hero__span-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; color: var(--chalk-2); }

@keyframes heroZoom { to { transform: scale(1); } }

/* načítavacia sekvencia */
.js .hero [data-in] { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.js .span-line__rule { transform: scaleX(0); animation: draw 1.6s var(--ease) .7s forwards; }
.js .span-line__pt, .js .span-line__dist { opacity: 0; animation: fade .6s var(--ease) forwards; animation-delay: calc(900ms + var(--d, 0) * 1ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { transform: scaleX(1); } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Úvod / čísla ---------- */
.intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement { font-family: var(--f-display); font-weight: 300; font-size: clamp(23px, 2.4vw, 36px); line-height: 1.32; letter-spacing: -.015em; }
.statement b { font-weight: 500; color: var(--accent); }
.intro__text { color: var(--muted); max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 5.5vw, 84px); border-top: 1px solid var(--line); }
.stat { position: relative; padding: 30px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat__num { font-family: var(--f-display); font-weight: 200; font-size: clamp(42px, 4.4vw, 68px); line-height: 1; letter-spacing: -.035em; }
.stat__num sup { font-size: .42em; vertical-align: top; position: relative; top: .25em; margin-left: 4px; color: var(--accent); }
.stat__label { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 22ch; }

/* ---------- Šachovnica služieb ---------- */
.checker { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 52px); overflow: hidden; }
.tile:nth-child(odd) { --bg: var(--onyx); --fg: var(--chalk); --muted: var(--chalk-2); --line: var(--line-dark); --accent: var(--gold); }
.tile:nth-child(even) { --bg: var(--white); --fg: var(--ink); --muted: var(--ink-2); --line: var(--line-light); --accent: var(--gold-deep); }
.tile { background: var(--bg); color: var(--fg); }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tile:hover::after, .tile:focus-within::after { transform: scaleX(1); }
.tile__scope { color: var(--accent); }
.tile h3 { margin: 14px 0 14px; font-size: clamp(24px, 2.1vw, 31px); font-weight: 300; line-height: 1.18; letter-spacing: -.015em; }
.tile p { margin-bottom: 32px; color: var(--muted); font-size: 15.5px; max-width: 34ch; }
.tile .link-arrow { margin-top: auto; }
.tile__media { aspect-ratio: 3 / 2; margin-bottom: 26px; overflow: hidden; background: var(--onyx-3); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: transform 1s var(--ease), filter .6s; }
.tile:hover .tile__media img { transform: scale(1.05); filter: saturate(1); }

/* ---------- Projekty ---------- */
.proj-feature { display: grid; grid-template-columns: 7fr 5fr; gap: 0; margin-bottom: clamp(32px, 4vw, 56px); border: 1px solid var(--line); transition: border-color .5s var(--ease); }
.proj-feature:hover { border-color: rgba(201, 165, 90, .55); }
.proj-card h3 a, .proj-feature h3 a { transition: color .3s; }
.proj-card h3 a:hover, .proj-feature h3 a:hover { color: var(--accent); }
.proj-feature__media { position: relative; min-height: 520px; overflow: hidden; }
.proj-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.proj-feature:hover .proj-feature__media img { transform: scale(1.04); }
.proj-feature__body { display: flex; flex-direction: column; padding: clamp(28px, 3.6vw, 56px); }
.proj-feature__body .d2 { margin: 18px 0 20px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; margin: auto 0 32px; border-top: 1px solid var(--line); }
.specs div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { padding-right: 16px; }
.specs dt { color: var(--muted); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.specs dd { margin: 4px 0 0; font-size: 16px; }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.proj-card { display: flex; flex-direction: column; }
.proj-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--onyx-3); }
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: transform 1s var(--ease), filter .6s; }
.proj-card:hover .proj-card__media img { transform: scale(1.05); filter: saturate(1); }
.proj-card__tag { position: absolute; left: 0; top: 0; padding: 7px 12px; background: var(--onyx); color: var(--gold); }
.proj-card__status { position: absolute; right: 0; top: 0; padding: 7px 12px; background: var(--gold); color: #1a110a; }
.proj-card__body { display: flex; flex: 1; flex-direction: column; padding-top: 20px; }
.proj-card__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.proj-card h3 { margin: 10px 0 14px; }
.proj-card .kota { margin-top: auto; }
.proj-card[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__label { margin-right: 8px; color: var(--muted); }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); background: transparent; color: var(--fg); font-size: 14px; cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a110a; }
.filters__count { margin-left: auto; align-self: center; color: var(--muted); }

/* ---------- Pôsobenie v krajinách ---------- */
.countries { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.country { display: flex; flex-direction: column; }
.country__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.country__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.country:hover .country__media img { filter: grayscale(0); transform: scale(1.03); }
.country__code { position: absolute; left: 20px; bottom: 16px; font-family: var(--f-display); font-weight: 200; font-size: 84px; line-height: 1; letter-spacing: -.04em; color: #fff; mix-blend-mode: difference; }
.country h3 { margin: 22px 0 6px; }
.country__city { color: var(--accent); }
.country ul { margin-top: 18px; border-top: 1px solid var(--line); }
.country li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }

/* ---------- Postup ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 28px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--gold); opacity: .7; }
.step { position: relative; padding-top: 44px; }
.step::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 23px; background: var(--gold); }
.step::after { content: ""; position: absolute; left: 0; top: 5px; width: 1px; height: 13px; background: var(--gold); transform: rotate(45deg); }
.step__n { color: var(--gold); }
.step h3 { margin: 14px 0 12px; }
.step p { font-size: 15.5px; color: var(--muted); }
.step__time { display: inline-block; margin-top: 4px; padding: 4px 10px; border: 1px solid var(--line); color: var(--fg); }

/* ---------- Zlaté pole ---------- */
.promise { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.promise .d2 { max-width: 13em; }
.promise--stack { grid-template-columns: 1fr; gap: clamp(36px, 4vw, 56px); }
.promise--stack .d2 { max-width: 20em; }
.promise__list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.promise__list li { padding: 22px 20px 0 0; }
.promise__list li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.promise__list b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.promise__list span { font-size: 15px; color: var(--muted); }

/* ---------- Aktuality a poradenstvo ---------- */
.news { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); }
.news-feature__media { aspect-ratio: 16 / 10; overflow: hidden; }
.news-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-feature:hover img { transform: scale(1.04); }
.news-feature h3 { margin: 14px 0 12px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 22px; color: var(--muted); }
.cat { color: var(--accent); font-family: var(--f-body); font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-item__media { aspect-ratio: 1; overflow: hidden; }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { margin: 6px 0 6px; font-size: 16.5px; }
.news-item:hover h3, .news-feature:hover h3, .post-card:hover h3 { color: var(--accent); }
.news-item h3, .news-feature h3, .post-card h3 { transition: color .3s; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px clamp(20px, 2.4vw, 36px); }
.post-card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover img { transform: scale(1.04); }
.post-card h3 { margin: 10px 0 10px; font-size: 20px; }
.post-card p { color: var(--muted); font-size: 15.5px; }
.post-card[hidden] { display: none; }
.post-card--wide { grid-column: span 2; }
.post-card--wide .post-card__media { aspect-ratio: 16 / 9; }
.post-card--wide h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 400; }

/* Partneri — textové zástupné logá, nahradiť logami od klienta */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.partners__list { display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 4vw, 64px); }
.partners__list li { font-weight: 700; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; color: #a3a198; }

/* ---------- Stránkové hero (podstránky) ---------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(48px, 7vw, 104px)); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0 0 0 45%; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--onyx) 0%, rgba(29, 20, 13, .7) 35%, rgba(29, 20, 13, .3) 100%); }
.page-hero .wrap { position: relative; }
.page-hero .d1 { max-width: 12em; }
.page-hero .lead { margin-top: 26px; color: #cfcdc5; }
.page-hero .kota { margin-top: clamp(40px, 5vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; color: var(--chalk-2); }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { color: var(--gold); }

/* ---------- Služby (podstránka) ---------- */
.svc { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.svc--flip .svc__media { order: 2; }
.svc__media { position: relative; aspect-ratio: 5 / 6; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__media .kota { position: absolute; left: 24px; right: 24px; bottom: 18px; --bg: transparent; color: var(--gold-hi); }
.svc__media .kota__label { padding: 2px 12px; text-shadow: 0 1px 2px rgba(18, 12, 7, .9), 0 0 14px rgba(18, 12, 7, .85); }
.svc__media .kota { filter: drop-shadow(0 1px 2px rgba(18, 12, 7, .6)); }
.svc__body .d2 { margin-bottom: 22px; }
.svc__body > p { color: var(--muted); max-width: 54ch; }
.checklist { margin: 30px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line); }
.checklist li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 24px; width: 12px; height: 1px; background: var(--accent); }

.quick { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.quick__list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.quick__list li { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.quick__list li span { display: block; margin-bottom: 6px; color: var(--accent); }

/* ---------- Detail projektu ---------- */
.proj-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; }
.proj-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(29, 20, 13, .95) 8%, rgba(29, 20, 13, .2) 55%, rgba(29, 20, 13, .55) 100%); }
.proj-hero .wrap { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 5vw, 72px); }
.proj-hero .crumbs { margin-bottom: 24px; }
.proj-spec-bar { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line-dark); margin-top: 40px; }
.proj-spec-bar div { padding: 18px 16px 0 0; }
.proj-spec-bar div + div { padding-left: 16px; border-left: 1px solid var(--line-dark); }
.proj-spec-bar dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--chalk-2); }
.proj-spec-bar dd { margin: 6px 0 0; font-size: 17px; }

.story { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); }
.story__text { columns: 2; column-gap: 48px; color: var(--muted); }
.story__text p:first-child { margin-top: 0; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure:first-child { grid-row: span 2; }
.gallery figcaption { margin-top: 8px; }
.quote { max-width: 980px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.4; letter-spacing: -.015em; }
.quote figcaption { margin-top: 28px; color: var(--muted); }

/* ---------- Článok ---------- */
.article-hero .d1 { font-size: clamp(30px, 3.8vw, 58px); max-width: 15em; }
.article-cover { margin-top: calc(-1 * clamp(40px, 5vw, 72px)); position: relative; z-index: 2; }
.article-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.prose { max-width: 68ch; font-size: 17px; line-height: 1.85; }
.prose > p:first-child { font-size: 19px; line-height: 1.7; color: var(--ink); }
.prose h2 { margin: 2em 0 .6em; font-family: var(--f-display); font-weight: 500; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.3; letter-spacing: -.01em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .85em; width: 12px; height: 1px; background: var(--gold-deep); }
.prose ol li { margin-bottom: .5em; padding-left: 6px; }
.prose ol li::marker { font-family: var(--f-mono); color: var(--gold-deep); }
.prose a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.callout { margin: 2em 0; padding: 28px 32px; background: var(--onyx); color: var(--chalk); }
.callout p { margin: 0; }
.callout .cat { display: block; margin-bottom: 10px; color: var(--gold); }
.aside { position: sticky; top: calc(var(--header-h) + 8px); display: grid; gap: 24px; }
.toc { border-top: 1px solid var(--line); }
.toc a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.toc a:hover { color: var(--accent); }
.cta-card { padding: 32px 28px; }
.cta-card .d4 { margin: 0 0 12px; }
.cta-card p { font-size: 15.5px; color: var(--muted); }
.author { display: flex; align-items: center; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.author__ph { width: 56px; height: 56px; display: grid; place-items: center; border: 1px dashed var(--gold-deep); font-family: var(--f-display); color: var(--gold-deep); }

/* ---------- O nás ---------- */
.timeline { border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 180px 1fr 1.2fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline__year { font-family: var(--f-display); font-weight: 200; font-size: 44px; letter-spacing: -.03em; line-height: 1; color: var(--accent); }
.timeline h3 { font-size: 18px; }
.timeline p { margin: 0; color: var(--muted); }
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); }
.division { padding: clamp(28px, 3.4vw, 48px); border: 1px solid var(--line); margin: 0 -1px -1px 0; }
.division h3 { margin: 18px 0 12px; }
.division p { color: var(--muted); font-size: 16px; }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.person__ph { aspect-ratio: 4 / 5; display: grid; place-items: center; border: 1px dashed var(--line); color: var(--muted); background: var(--onyx-2); }
.person h3 { margin: 16px 0 4px; font-size: 21px; }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logos li { display: grid; place-items: center; aspect-ratio: 3 / 2; border: 1px dashed var(--line); color: var(--muted); text-align: center; padding: 8px; }

/* ---------- Kontakt ---------- */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.office { padding: 32px 32px 32px 0; }
.office + .office { padding-left: 32px; border-left: 1px solid var(--line); }
.office__code { font-family: var(--f-display); font-weight: 200; font-size: 64px; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.office h3 { margin: 18px 0 6px; }
.office address { font-style: normal; color: var(--muted); }
.office dl { margin: 18px 0 0; display: grid; gap: 6px; font-size: 15.5px; }
.office dt { display: inline; color: var(--muted); }
.office dd { display: inline; margin: 0; }
.office a:hover { color: var(--accent); }

.contact { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font-size: 16px; color: var(--fg); transition: border-color .25s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { color: #1a110a; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field [aria-invalid="true"] { border-bottom-color: #d4553f; }
.field__err { color: #e0735f; font-size: 13.5px; min-height: 1em; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.field[hidden], .consent[hidden], .form__foot[hidden] { display: none; }
.form[hidden] { display: none; }
.form-nahrada p { margin: 0 0 28px; max-width: 52ch; font-size: 17px; line-height: 1.6; }
.form-nahrada__tlacidla { display: flex; flex-wrap: wrap; gap: 12px; }
.form__done { grid-column: 1 / -1; padding: 20px 24px; border: 1px solid var(--gold); color: var(--fg); }
.side-facts { display: grid; gap: 0; border-top: 1px solid var(--line); align-content: start; }
.side-facts div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.side-facts b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.side-facts span { color: var(--muted); font-size: 15.5px; }
.map { margin-top: 28px; aspect-ratio: 4 / 3; border: 0; width: 100%; filter: grayscale(1) contrast(1.05); }

/* ---------- Päta ---------- */
.site-footer { padding-top: clamp(72px, 9vw, 128px); padding-bottom: 32px; }
.footer-cta { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.footer-cta .d2 { max-width: 15em; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0; }
.footer-cols h4 { margin-bottom: 18px; font-weight: 600; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.footer-cols li { margin-bottom: 10px; font-size: 15px; color: var(--chalk-2); }
.footer-cols a:hover { color: var(--gold-hi); }
.footer-cols address { font-style: normal; font-size: 15px; color: var(--chalk-2); }
.footer-about { color: var(--chalk-2); font-size: 15px; max-width: 30ch; margin-top: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--chalk-2); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom a:hover { color: var(--gold); }

/* Konceptový štítok — pred spustením odstrániť (assets/js/layout.js) */

/* ---------- Odhalenie pri scrollovaní ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .kota[data-reveal] .kota__line { clip-path: inset(-10px 100% -10px 0); transition: clip-path 1.4s var(--ease) .2s; }
.js .kota[data-reveal].is-in .kota__line { clip-path: inset(-10px 0 -10px 0); }

/* ---------- Responzivita ---------- */
@media (max-width: 1180px) {
  .menu { display: none; }
  .nav .btn--gold { display: none; }
  .burger { display: block; }
  .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
  .steps::before { display: none; }
  .proj-spec-bar { grid-template-columns: repeat(3, 1fr); }
  .proj-spec-bar div:nth-child(4) { padding-left: 0; border-left: 0; }
  .logos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .intro, .promise, .news, .svc, .quick, .story, .contact, .article-layout { grid-template-columns: 1fr; }
  .svc--flip .svc__media { order: 0; }
  .svc__media { aspect-ratio: 16 / 10; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { margin-top: 28px; border-top: 1px solid var(--line); }
  .checker { grid-template-columns: 1fr 1fr; }
  .tile:nth-child(4n+1), .tile:nth-child(4n+4) { --bg: var(--onyx); --fg: var(--chalk); --muted: var(--chalk-2); --line: var(--line-dark); --accent: var(--gold); }
  .tile:nth-child(4n+2), .tile:nth-child(4n+3) { --bg: var(--white); --fg: var(--ink); --muted: var(--ink-2); --line: var(--line-light); --accent: var(--gold-deep); }
  .proj-feature { grid-template-columns: 1fr; }
  .proj-feature__media { min-height: 0; aspect-ratio: 16 / 10; }
  .proj-grid, .post-grid, .countries { grid-template-columns: 1fr 1fr; }
  .post-card--wide { grid-column: 1 / -1; }
  .offices { grid-template-columns: 1fr; }
  .office, .office + .office { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .divisions { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 110px 1fr; }
  .timeline li p { grid-column: 2; }
  .story__text { columns: 1; }
  .aside { position: static; }
  .footer-cta { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .hero__media { inset: 0; }
  .hero__media::after { background: linear-gradient(0deg, var(--onyx) 22%, rgba(29, 20, 13, .62) 58%, rgba(29, 20, 13, .3) 100%); }
  .page-hero__bg { inset: 0; opacity: .45; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  body { font-size: 16.5px; }
  .topbar { display: none; }
  .nav__in { height: 72px; }
  .logo__word { font-size: 24px; }
  .logo__sub { font-size: 8.5px; letter-spacing: .26em; }
  .nav .lang { display: none; }
  .hero { min-height: 100svh; }
  .hero .lead { margin: 22px 0 30px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__span-head { display: none; }
  .span-line__city { font-size: 12.5px; }
  .span-line__city small { display: block; margin: 2px 0 0; }
  .span-line__pt--mid .span-line__city { transform: translateX(-50%); text-align: center; }
  .span-line__pt--end .span-line__city { text-align: right; }
  .span-line__dist { font-size: 11px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 22px 12px 0 0; }
  .stat:nth-child(even) { padding-left: 14px; }
  .checker, .proj-grid, .post-grid, .countries, .people, .checklist, .quick__list, .form, .promise__list { grid-template-columns: 1fr; }
  .tile:nth-child(odd) { --bg: var(--onyx); --fg: var(--chalk); --muted: var(--chalk-2); --line: var(--line-dark); --accent: var(--gold); }
  .tile:nth-child(even) { --bg: var(--white); --fg: var(--ink); --muted: var(--ink-2); --line: var(--line-light); --accent: var(--gold-deep); }
  .tile { min-height: 0; }
  .tile h3 { margin-top: 12px; }
  .promise__list li, .promise__list li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .proj-spec-bar { grid-template-columns: 1fr 1fr; }
  .proj-spec-bar div:nth-child(n) { padding-left: 0; border-left: 0; }
  .proj-spec-bar div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-dark); }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-row: auto; }
  .news-item { grid-template-columns: 88px 1fr; gap: 16px; }
  .filters__count { margin-left: 0; }
  .logos { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; }
  .timeline li p { grid-column: auto; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .country__code { font-size: 64px; }
  .article-cover img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero [data-in], .js .span-line__pt, .js .span-line__dist { opacity: 1; transform: none; }
  .js .span-line__rule { transform: none; }
  .js .kota[data-reveal] .kota__line { clip-path: none; }
}

/* ---------- Doplnky podstránok ---------- */
.site-footer { border-top: 1px solid rgba(201, 165, 90, .28); }
.anchors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
a.chip { display: inline-flex; align-items: center; color: var(--fg); }
.move { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); }

.faq { max-width: 920px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; list-style: none; cursor: pointer; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font-weight: 300; font-size: 26px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 70ch; margin: 0 0 24px; color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.values li { padding: 28px 28px 0 0; }
.values li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.values h3 { margin: 12px 0 10px; }
.values p { color: var(--muted); font-size: 15px; }

@media (max-width: 640px) {
  .values { grid-template-columns: 1fr; }
  .values li, .values li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Úvod s fotografiou ---------- */
.intro--media { grid-template-columns: 6fr 5fr; align-items: center; }
.intro--media .intro__text { margin-top: 32px; }

/* ---------- Fotografický pás (ľudia) ---------- */
.band { position: relative; display: flex; align-items: flex-end; min-height: min(92vh, 860px); overflow: hidden; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(29, 20, 13, .92) 8%, rgba(29, 20, 13, .35) 55%, rgba(29, 20, 13, .1) 100%); }
.band__body { position: relative; z-index: 1; padding-block: clamp(72px, 9vw, 128px); }
.band .d1 { max-width: 13em; }
.band .lead { margin: 26px 0 36px; color: #d6d3ca; max-width: 52ch; }

/* ---------- Pre koho pracujeme ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.aud { --accent: var(--gold); --muted: #cfccc3; position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(440px, 40vw, 560px); padding: clamp(24px, 2.6vw, 36px); overflow: hidden; color: var(--chalk); }
.aud > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.aud::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(22, 15, 9, .92) 12%, rgba(22, 15, 9, .45) 55%, rgba(22, 15, 9, .08) 100%); }
.aud::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.aud > :not(img) { position: relative; z-index: 2; }
.aud h3 { margin: 10px 0; }
.aud p { color: var(--muted); font-size: 15.5px; max-width: 32ch; }
.aud:hover > img { transform: scale(1.05); }
.aud:hover::after, .aud:focus-visible::after { transform: scaleX(1); }

/* ---------- Galéria zo stavieb ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 17vw, 250px); gap: 12px; }
.mosaic__item { position: relative; margin: 0; overflow: hidden; background: var(--onyx-3); }
.mosaic__item--big { grid-column: span 2; grid-row: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic__item:hover img { transform: scale(1.04); }
.mosaic__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px; background: linear-gradient(0deg, rgba(22, 15, 9, .85), rgba(22, 15, 9, 0)); color: var(--chalk); }

@media (max-width: 980px) {
  .intro--media { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr 1fr; }
  .aud:last-child { grid-column: 1 / -1; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(150px, 30vw, 240px); }
}
@media (max-width: 640px) {
  .aud-grid { grid-template-columns: 1fr; }
  .aud { min-height: 420px; }
  .aud:last-child { grid-column: auto; }
  .band { min-height: 640px; }
}

/* ---------- Mapa projektov (Leaflet) ---------- */
.project-map { height: clamp(380px, 46vw, 580px); border: 1px solid var(--line); background: var(--onyx-2); }
.leaflet-container { font-family: var(--f-body); background: var(--onyx-2); }
.map-pin span { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 165, 90, .28), 0 0 0 10px rgba(201, 165, 90, .1); transition: transform .3s var(--ease); }
.map-pin:hover span, .map-pin:focus span { transform: scale(1.25); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--onyx); color: var(--chalk); border-radius: 0; box-shadow: 0 0 0 1px var(--gold); }
.leaflet-popup-content { display: grid; gap: 4px; margin: 16px 20px 16px 18px; font-size: 14px; line-height: 1.5; }
.leaflet-popup-content .mono { color: var(--gold); }
.leaflet-popup-content strong { font-weight: 600; font-size: 16px; }
.leaflet-popup-content a { margin-top: 6px; color: var(--gold); font-weight: 600; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.leaflet-container a.leaflet-popup-close-button { color: var(--chalk-2); }
.leaflet-bar { border: 1px solid var(--line-dark) !important; border-radius: 0 !important; }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--onyx); color: var(--chalk); border-color: var(--line-dark); border-radius: 0 !important; }
.leaflet-bar a:hover { color: var(--gold); }
.leaflet-container .leaflet-control-attribution { background: rgba(29, 20, 13, .8); color: var(--chalk-2); }
.leaflet-control-attribution a { color: var(--gold); }

/* ---------- Kariéra ---------- */
.divisions--4 { grid-template-columns: repeat(4, 1fr); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.jobs { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 12px 32px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.job[hidden] { display: none; }
.job h3 { margin-bottom: 4px; font-size: 20px; font-weight: 500; transition: color .3s; }
.job:hover h3 { color: var(--accent); }

@media (max-width: 1180px) {
  .divisions--4, .steps--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .divisions--4, .steps--4, .job { grid-template-columns: 1fr; }
  .job { gap: 8px; }
}
.band--strong::after { background: linear-gradient(0deg, rgba(29, 20, 13, .96) 18%, rgba(29, 20, 13, .7) 60%, rgba(29, 20, 13, .45) 100%); }

/* ---------- Aktuálne v predaji ---------- */
.sale { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.units { width: 100%; margin: 28px 0 36px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.units th { padding: 0 12px 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.units td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.state { display: inline-block; padding: 3px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; }
.state--free { background: var(--gold); color: #1a110a; }
.state--held { border: 1px solid var(--gold-deep); color: var(--gold-deep); }
.state--sold { padding-left: 0; color: var(--muted); text-decoration: line-through; }

/* ---------- Film ---------- */
.film { position: relative; display: flex; align-items: center; justify-content: center; min-height: min(84vh, 780px); overflow: hidden; text-align: center; }
.film::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(29, 20, 13, .3) 0%, rgba(29, 20, 13, .82) 78%); }
.film__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-block: 96px; }
.film .eyebrow { margin-top: 40px; }
.film .eyebrow::before { display: none; }
.film .d1 { margin-bottom: 14px; }
.film__play { position: relative; width: 112px; height: 112px; border: 1px solid var(--gold); border-radius: 50%; background: rgba(29, 20, 13, .45); backdrop-filter: blur(6px); cursor: pointer; transition: background .4s var(--ease), transform .4s var(--ease); }
.film__play::before { content: ""; position: absolute; inset: -14px; border: 1px solid rgba(201, 165, 90, .4); border-radius: 50%; animation: ring 2.4s var(--ease) infinite; }
.film__play span { position: absolute; left: 50%; top: 50%; width: 26px; height: 30px; background: var(--gold); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translate(-38%, -50%); transition: background .4s; }
.film__play:hover { background: var(--gold); transform: scale(1.05); }
.film__play:hover span { background: #1a110a; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.film__dialog { width: calc(100% - 32px); max-width: 520px; padding: 0; border: 1px solid var(--gold); background: var(--onyx); color: var(--chalk); text-align: left; }
.film__dialog::backdrop { background: rgba(18, 12, 7, .78); }
.film__dialog-in { padding: clamp(28px, 4vw, 44px); }
.film__dialog .d3 { margin-bottom: 12px; }

/* ---------- Referencie klientov ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.quote-card { display: flex; flex-direction: column; margin: 0; padding: 36px 32px 8px 0; }
.quote-card + .quote-card { padding-left: 32px; border-left: 1px solid var(--line); }
.quote-card::before { content: ""; display: block; width: 40px; height: 1px; margin-bottom: 28px; background: var(--accent); }
.quote-card blockquote { margin: 0 0 28px; font-weight: 300; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; letter-spacing: -.005em; }
.quote-card figcaption { display: grid; gap: 4px; margin-top: auto; }
.quote-card figcaption b { font-weight: 600; font-size: 15px; }
.quote-card figcaption .mono { color: var(--muted); }

/* ---------- Zodpovednosť ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.pillar__media { aspect-ratio: 4 / 3; margin-bottom: 24px; overflow: hidden; }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: transform 1s var(--ease), filter .6s; }
.pillar:hover .pillar__media img { transform: scale(1.04); filter: saturate(1); }
.pillar h3 { margin: 10px 0 12px; }
.pillar p { color: var(--muted); font-size: 15.5px; }

/* ---------- Kontakty podľa témy ---------- */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.contact-card { display: grid; grid-template-columns: 96px 1fr; gap: 22px; padding: 28px; border: 1px solid var(--line); font-size: 15px; }
.contact-card__ph { display: grid; place-items: center; width: 96px; height: 120px; border: 1px dashed var(--line); color: var(--muted); }
.contact-card h3 { margin: 8px 0 2px; }
.contact-card p { margin-bottom: 12px; font-size: 14.5px; }
.contact-card a { display: block; color: var(--fg); transition: color .25s; }
.contact-card a:hover { color: var(--accent); }

@media (max-width: 1180px) {
  .contacts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .sale, .quotes { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .quote-card, .quote-card + .quote-card { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .pillars, .contacts { grid-template-columns: 1fr; }
  .units th:nth-child(4), .units td:nth-child(4) { display: none; }
  .film { min-height: 560px; }
  .film__play { width: 88px; height: 88px; }
}

/* ---------- Hero s videom a 3D parallaxou ----------
   --p = priebeh skrolovania cez hero (0–1), --mx/--my = poloha myši (-0.5–0.5). Nastavuje site.js → hero3d(). */
.hero--3d { --p: 0; --mx: 0; --my: 0; display: block; min-height: 0; overflow: clip; }
.hero3d__stage { position: relative; display: flex; flex-direction: column; height: max(720px, 100svh); overflow: hidden; }
.hero--3d.is-3d { height: 320vh; }
.hero--3d.is-3d .hero3d__stage { position: sticky; top: 0; }

.hero3d__media { position: absolute; inset: -4%; z-index: 0; background: var(--onyx); transform: translate3d(calc(var(--mx) * -26px), calc(var(--my) * -18px), 0) scale(calc(1.04 + var(--p) * .16)); }
.hero3d__media { background-position: center; background-size: cover; }
.hero3d__media video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero3d__media.is-ready video { opacity: 1; }
.hero3d__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(29, 20, 13, .9) 0%, rgba(29, 20, 13, .8) 36%, rgba(29, 20, 13, .4) 58%, rgba(29, 20, 13, .08) 78%, rgba(29, 20, 13, 0) 90%), linear-gradient(0deg, rgba(29, 20, 13, .92) 0%, rgba(29, 20, 13, 0) 30%), linear-gradient(180deg, rgba(29, 20, 13, .55) 0%, rgba(29, 20, 13, 0) 22%); }
.hero3d__shade::after { content: ""; position: absolute; inset: 0; background: var(--onyx); opacity: calc(var(--p) * .55); }


.hero--3d .hero__body, .hero--3d .hero__span, .hero3d__second { z-index: 3; }
.hero--3d .hero__title { max-width: 9.6em; }
.hero--3d.is-3d .hero__body { transform: translate3d(0, calc(var(--p) * -160px), 0); opacity: calc(1 - var(--p) * 2.6); }
.hero--3d.is-3d .hero__span { opacity: calc(1 - var(--p) * 3); }

.hero3d__second { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; padding: var(--header-h) var(--gutter) 0; text-align: center; pointer-events: none; }
.is-3d .hero3d__second { display: flex; opacity: clamp(0, calc((var(--p) - .4) * 3.4), 1); transform: translate3d(0, calc((1 - var(--p)) * 70px), 0) scale(calc(.94 + var(--p) * .06)); }
.hero3d__second .eyebrow::before { display: none; }
.hero3d__second .d1 { font-size: clamp(40px, 6.4vw, 104px); }
.hero3d__second em { font-style: normal; font-weight: 500; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero3d__facts { margin-top: 28px; color: var(--chalk-2); }

@media (max-width: 640px) {
  .hero--3d.is-3d { height: 260vh; }
}

/* Hero na mobile — text ide cez celú šírku, preto rovnomerné stmavenie a záber posunutý na dom */
@media (max-width: 640px) {
  .hero3d__shade { background: linear-gradient(0deg, rgba(29, 20, 13, .94) 0%, rgba(29, 20, 13, .74) 45%, rgba(29, 20, 13, .66) 100%); }
  .hero3d__media { background-position: 68% 50%; }
  .hero3d__media video { object-position: 68% 50%; }
}

/* ---------- Ikony (SVG so zlatým prechodom, kreslenie čiar) — vykresľuje site.js → icons() ---------- */
.ico { display: block; flex: none; width: 40px; height: 40px; margin-bottom: 16px; }
.ico svg { display: block; width: 100%; height: 100%; overflow: visible; transition: transform .5s var(--ease), filter .5s var(--ease); }
.ico svg g > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); }
.ico.is-drawn svg g > * { stroke-dashoffset: 0; }
.ico.is-drawn svg g > :nth-child(2) { transition-delay: .15s; }
.ico.is-drawn svg g > :nth-child(3) { transition-delay: .3s; }
.ico.is-drawn svg g > :nth-child(n+4) { transition-delay: .45s; }
.ico.ico--reset svg g > * { transition: none; stroke-dashoffset: 1; }
:is(.tile, .step, .division, .values li, .promise__list li, .quick__list li, .side-facts div):hover .ico svg { transform: translateY(-3px); filter: drop-shadow(0 4px 10px rgba(201, 165, 90, .35)); }

.step .ico, .division .ico, .values .ico { width: 42px; height: 42px; }
.promise__list .ico { width: 34px; height: 34px; margin-bottom: 12px; }
.quick__list .ico { width: 30px; height: 30px; margin-bottom: 12px; }
.side-facts .ico { width: 30px; height: 30px; margin-bottom: 10px; }

/* ---------- Logá partnerov — jednotne šedé, pri prejdení myšou vo farbe ---------- */
.partners__list { align-items: center; }
.partners__list img, .logos__img img { display: block; width: auto; height: 30px; max-width: 150px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .55; mix-blend-mode: multiply; transition: filter .4s var(--ease), opacity .4s var(--ease); }
.partners__list img.logo--square, .logos__img img.logo--square { height: 44px; }
.partners__list li:hover img, .logos__img:hover img { filter: none; opacity: 1; }
.logos__img { border-style: solid !important; background: var(--white); }
.logos__img img { height: 34px; max-width: 75%; }
.logos__img img.logo--square { height: 52px; }

/* ---------- WhatsApp ---------- */
.wa { display: inline-flex; align-items: flex-start; gap: 6px; }
.nw { white-space: nowrap; }
/* ikona sedí na prvom riadku aj vtedy, keď sa číslo zalomí na druhý */
.wa-ico { margin-top: .2em; margin-top: calc((1lh - 15px) / 2); }
.wa-ico { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.topbar .wa { color: var(--gold-hi); }
.wa-card { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; padding: 20px 22px; border: 1px solid var(--gold); color: var(--fg); transition: background .3s var(--ease); }
.wa-card:hover { background: rgba(201, 165, 90, .08); }
.wa-card .ico { width: 38px; height: 38px; margin: 0; }
.wa-card b { display: block; font-weight: 600; font-size: 17px; margin-bottom: 2px; }
.wa-card span span { color: var(--muted); font-size: 14.5px; }

/* ---------- Logo (assets/img/logo.svg od klienta) ---------- */
.logo__img { display: block; align-self: flex-start; width: auto; height: 50px; }
.logo__img--footer { height: 60px; }
@media (max-width: 640px) {
  .logo__img { height: 42px; }
}

/* Mapové dlaždice sú sivé, jemná sépia ich zladí s hnedými poľami */
.project-map .leaflet-tile-pane { filter: sepia(.55) saturate(.85) brightness(.95); }

/* ---------- Referencie: karty a galéria ---------- */
.proj-card__text { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.proj-card h3 a[data-ref] { cursor: zoom-in; }
.proj-card__media[data-ref], .proj-feature__media[data-ref] { cursor: zoom-in; }

.lightbox { width: min(1320px, calc(100% - 32px)); max-width: none; max-height: calc(100svh - 32px); padding: 0; border: 1px solid rgba(201, 165, 90, .45); overflow: auto; }
.lightbox[open] { animation: lbIn .6s var(--ease); }
.lightbox::backdrop { background: rgba(18, 12, 7, .88); backdrop-filter: blur(6px); }
@keyframes lbIn { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
.lightbox__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; margin: 0; height: min(80svh, 820px); background: #110b06; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transform: scale(1.015); transition: opacity .5s var(--ease), transform .9s var(--ease); }
.lightbox__img.is-shown { opacity: 1; transform: none; }
.lightbox__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; border: 1px solid rgba(201, 165, 90, .6); border-radius: 50%; background: rgba(29, 20, 13, .55); color: var(--gold-hi); cursor: pointer; backdrop-filter: blur(4px); transition: background .3s var(--ease), color .3s; }
.lightbox__nav:hover { background: var(--gold); color: #1a110a; }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__nav--next svg { transform: scaleX(-1); }
.lightbox__count { position: absolute; left: 0; bottom: 0; padding: 8px 14px; background: var(--onyx); color: var(--gold); }
.lightbox__side { display: flex; flex-direction: column; padding: 56px 36px 36px; border-left: 1px solid var(--line); }
.lightbox__side .d3 { margin: 12px 0 14px; }
.lightbox__side p { margin: 0 0 28px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.lightbox__side .btn { margin-top: auto; align-self: flex-start; }
.lightbox__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 32px; }
.lightbox__thumbs button { padding: 0; border: 0; aspect-ratio: 1; background: var(--onyx-3); cursor: pointer; outline: 1px solid transparent; outline-offset: 2px; transition: outline-color .3s; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s; }
.lightbox__thumbs button:hover img, .lightbox__thumbs [aria-current="true"] img { opacity: 1; }
.lightbox__thumbs [aria-current="true"] { outline-color: var(--gold); }
.lightbox__close { position: absolute; top: 0; right: 0; z-index: 2; width: 52px; height: 52px; border: 0; background: var(--onyx); color: var(--chalk); font-size: 30px; font-weight: 200; line-height: 1; cursor: pointer; transition: color .3s; }
.lightbox__close:hover { color: var(--gold); }
.lightbox.is-single .lightbox__nav, .lightbox.is-single .lightbox__thumbs, .lightbox.is-single .lightbox__count { display: none; }
@media (max-width: 900px) {
  .lightbox__in { grid-template-columns: 1fr; }
  .lightbox__stage { height: 58svh; }
  .lightbox__side { padding: 28px 22px 26px; border-left: 0; border-top: 1px solid var(--line); }
  .lightbox__thumbs { grid-template-columns: repeat(6, 1fr); }
  .lightbox__nav { width: 44px; height: 44px; margin-top: -22px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

/* ---------- Animácie textu a blokov (triedy pridáva motion() v site.js) ---------- */
/* Nadpisy: každé slovo vyjde zo svojej masky, s malým oneskorením za predchádzajúcim */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .08em .24em; margin: -.16em -.08em -.24em; }
.split .w > span { display: inline-block; transform: translateY(112%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 46ms + var(--d, 0) * 1ms); }
.split.is-in .w > span { transform: none; }
.split em .w > span, .split b .w > span { transition-duration: 1.4s; }

/* Eyebrow: čiarka sa nakreslí a písmená sa stiahnu do bežného rozostupu */
.rv-eyebrow { opacity: 0; letter-spacing: .5em; transition: opacity 1s var(--ease), letter-spacing 1.4s var(--ease); }
.rv-eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .15s; }
.rv-eyebrow.is-in { opacity: 1; letter-spacing: .24em; }
.rv-eyebrow.is-in::before { transform: none; }

/* Fotky: clona sa dvíha zdola nahor a fotka sa pritom jemne oddiali */
.rv-media { overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.rv-media.is-in { clip-path: inset(0); }
.js [data-reveal].rv-media { opacity: 1; transform: none; }
.rv-media img { scale: 1.2; transition: transform 1.2s var(--ease), filter .6s var(--ease), scale 2s var(--ease); transition-delay: 0s, 0s, calc(var(--d, 0) * 1ms); }
.rv-media.is-in img { scale: 1; }
.rv-media .proj-card__tag, .rv-media figcaption, .rv-media .kota { opacity: 0; transition: opacity .8s var(--ease) .9s; }
.rv-media.is-in .proj-card__tag, .rv-media.is-in figcaption, .rv-media.is-in .kota { opacity: 1; }

/* Čísla sa načítavajú, tabuľkové číslice držia šírku */
.stat__num { font-variant-numeric: tabular-nums; }

/* Parallax veľkých fotiek */
/* ľavý okraj fotky sa rozplynie maskou, inak by na hrane presvital 1px šev */
.page-hero__bg { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%); mask-image: linear-gradient(90deg, transparent, #000 14%); }
.rv-par { transform: translate3d(0, calc(var(--py, 0) * 6%), 0) scale(1.14); will-change: transform; }

/* ---------- Mobil: šírka kontaktných kariet a väčšie dotykové plochy ---------- */
@media (max-width: 640px) {
  .contacts { grid-template-columns: minmax(0, 1fr); }
  .contact-card { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 22px; }
  .contact-card__ph { width: 72px; height: 90px; }
  .contact-card a { padding: 5px 0; overflow-wrap: anywhere; }
}
@media (pointer: coarse) {
  .link-arrow { padding-block: 12px; margin-block: -12px; }
  .crumbs a { padding-block: 10px; margin-block: -10px; }
  .footer-bottom nav a { padding-block: 9px; margin-block: -9px; }
}

/* ---------- Mobil: kroky ako zvislá kóta, silnejšie stmavenie fotky v bande ---------- */
@media (max-width: 980px) {
  .step { padding-top: 0; }
  .step::before, .step::after { display: none; }
}
@media (max-width: 640px) {
  /* ol.steps, lebo základné pravidlo „ol.steps { padding: 0 }“ má vyššiu váhu ako samotná trieda */
  ol.steps { padding-left: 30px; }
  .steps::before { display: block; left: 5px; right: auto; top: 20px; bottom: 20px; width: 1px; height: auto; }
  .step::before { display: block; left: -25px; top: 20px; width: 14px; height: 1px; }
  .step::after { display: block; left: -25px; top: 14px; }
  .band::after { background: linear-gradient(0deg, rgba(29, 20, 13, .96) 35%, rgba(29, 20, 13, .72) 72%, rgba(29, 20, 13, .5) 100%); }
}

/* ---------- Prechody: hnedé polia a veľké nadpisy ---------- */
:root {
  --grad-brown: radial-gradient(ellipse 85% 55% at 0% 0%, rgba(201, 165, 90, .12), rgba(201, 165, 90, 0) 70%), linear-gradient(170deg, #2f241a 0%, #281f16 55%, #241b14 100%);
  --grad-brown-2: radial-gradient(ellipse 85% 55% at 100% 0%, rgba(201, 165, 90, .11), rgba(201, 165, 90, 0) 70%), linear-gradient(190deg, #30251b 0%, #2a2017 55%, #261c14 100%);
  --tg-dark: linear-gradient(180deg, #fffaf0 0%, #efe3cc 52%, #cdb07e 100%);
  --tg-dark-em: linear-gradient(180deg, #f6e8c0 0%, #d8b86f 50%, #a8833d 100%);
  --tg-light: linear-gradient(180deg, #5a3e29 0%, #2a1c12 55%, #1d140d 100%);
  --tg-light-em: linear-gradient(180deg, #b8924b 0%, #8a6a2b 60%, #6a4f1f 100%);
  --tg: var(--tg-light);
  --tg-em: var(--tg-light-em);
}
.f-black { background: var(--grad-brown); --tg: var(--tg-dark); --tg-em: var(--tg-dark-em); }
.f-black-2 { background: var(--grad-brown-2); --tg: var(--tg-dark); --tg-em: var(--tg-dark-em); }
.f-gold { --tg: linear-gradient(180deg, #3d2a18 0%, #1a110a 100%); --tg-em: var(--tg); }
.tile:nth-child(odd) { background: transparent; --tg: var(--tg-dark); --tg-em: var(--tg-dark-em); }
.tile:nth-child(even) { --tg: var(--tg-light); --tg-em: var(--tg-light-em); }

/* Nadpisy sú vyplnené prechodom; pri rozdelení na slová dostane prechod každé slovo, aby fungoval aj počas animácie */
:is(.d1, .d2, .statement, .stat__num):not(.split), .split .w > span {
  background-image: var(--tg); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
/* Prechod sa maľuje len vo vnútri boxu, preto box siaha aj pod chvosty písmen (y, j) a nad háčiky (Č, Ľ); záporný okraj vráti rozloženie späť */
.split .w > span { padding: .14em .06em .22em; margin: -.14em -.06em -.22em; }
:where(.d1, .d2, .statement, .stat__num):where(:not(.split)) { padding-block: .14em .22em; margin-block: -.14em -.22em; }
:where(.d1, .d2, .statement):not(.split) :where(em, b), .split :where(em, b) .w > span {
  background-image: var(--tg-em); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
:is(.d1, .d2) a { transition: opacity .3s var(--ease); }
:is(.d1, .d2) a:hover { opacity: .75; }
@media (forced-colors: active) {
  :is(.d1, .d2, .statement, .stat__num), .split .w > span, :is(.d1, .d2, .statement) :is(em, b) { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
}
@media (max-width: 640px) {
  .proj-hero::after { background: linear-gradient(0deg, rgba(29, 20, 13, .96) 22%, rgba(29, 20, 13, .72) 62%, rgba(29, 20, 13, .6) 100%); }
  .people { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
}

/* ---------- Hero na úvode, iba mobil: text pri spodnom okraji, hore ostane vidieť stavbu z videa ---------- */
@media (max-width: 640px) {
  .hero--3d .hero__body { justify-content: flex-end; padding-top: calc(var(--header-h) + 16px); padding-bottom: 18px; }
  .hero--3d .hero__body .eyebrow { margin-bottom: 14px; font-size: 10px; letter-spacing: .14em; }
  .hero--3d .hero__title { font-size: 34px; }
  .hero--3d .lead { margin: 16px 0 22px; font-size: 15px; line-height: 1.6; }
  .hero--3d .hero__ctas { gap: 10px; }
  .hero--3d .hero__ctas .btn { min-height: 48px; }
  .hero--3d .hero__span { padding-bottom: 22px; }
  .hero3d__shade { background: linear-gradient(0deg, rgba(29, 20, 13, .97) 0%, rgba(29, 20, 13, .9) 46%, rgba(29, 20, 13, .45) 70%, rgba(29, 20, 13, .12) 86%, rgba(29, 20, 13, .35) 100%); }
  .hero3d__shade::after { opacity: calc(var(--p) * .2); }
  .hero3d__second { justify-content: flex-end; padding-bottom: 22svh; }
}

/* ---------- Iba mobil: voľby (krajiny, typy, kategórie) v rovnomernej mriežke namiesto rozhádzaného zalamovania ---------- */
@media (max-width: 640px) {
  .filters { gap: 22px; }
  .tabs, .filters__group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  /* tri voľby (napr. Celá Európa, Slovensko, Holandsko) vedľa seba v jednom riadku */
  :is(.tabs, .filters__group):not(:has(> .chip:nth-of-type(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* posledná nepárna voľba v dvojstĺpci cez celú šírku, aby nevisela sama vľavo */
  :is(.tabs, .filters__group):has(> .chip:nth-of-type(4)) > .chip:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
  :is(.tabs, .filters__group) .chip { padding: 0 8px; font-size: 13.5px; text-align: center; }
  .filters__label, .tabs .filters__count { grid-column: 1 / -1; margin: 0; }
  .tabs .filters__count { margin-top: 6px; }
}

/* ---------- Iba PC: postup krok po kroku. Čiara sa kreslí zľava, každý krok sa objaví, keď k nemu dôjde ---------- */
@media (min-width: 981px) {
  .steps { --krok: 560ms; }
  .steps--4 { --krok: 700ms; }
  .motion .steps::before { transform: scaleX(0); transform-origin: left center; transition: transform calc(var(--krok) * 5) linear .15s; }
  .motion .steps--4::before { transition-duration: calc(var(--krok) * 4); }
  .motion .steps.is-run::before { transform: none; }
  .motion .steps .step[data-reveal] { opacity: 0; transform: none; transition: opacity .7s var(--ease); transition-delay: calc(var(--d, 0) * var(--krok) / 100 + 150ms); }
  .motion .steps .step[data-reveal] > * { transform: translateY(18px); transition: transform .9s var(--ease); transition-delay: inherit; }
  .motion .steps.is-run .step[data-reveal] { opacity: 1; }
  .motion .steps.is-run .step[data-reveal] > * { transform: none; }
}

/* ---------- Iba mobil: úvod kratší. Skupiny kariet ako pás na posúvanie prstom, Film a Ľudia skryté ---------- */
.pas-pocet { display: none; }
@media (max-width: 640px) {
  .skryt-mobil { display: none !important; }
  .pas { position: relative; display: flex; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
  .pas::-webkit-scrollbar { display: none; }
  .pas > *, .pas [data-pas-skupina] > * { flex: 0 0 84%; min-width: 0; scroll-snap-align: start; }
  /* obal skupiny zmizne, jeho karty sú priamo v páse */
  .pas > [data-pas-skupina] { display: contents; }
  .pas-pocet { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--muted); }
  .pas-pocet__cara { position: relative; flex: 1; height: 1px; background: var(--line); }
  .pas-pocet__cara i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease); }
  .pas-pocet__sip { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--accent); cursor: pointer; transition: border-color .25s, opacity .25s; }
  .pas-pocet__sip svg { width: 18px; height: 18px; }
  .pas-pocet__sip--dalej svg { transform: scaleX(-1); }
  .pas-pocet__sip:not(:disabled):active { border-color: var(--accent); }
  .pas-pocet__sip:disabled { opacity: .3; cursor: default; }
  /* služby nie sú vo .wrap, preto vlastné okraje */
  .checker.pas { margin-inline: 0; }
  .checker.pas + .pas-pocet { margin: 18px var(--gutter) 0; padding-bottom: 44px; }
  .quotes.pas { border-top: 0; }
  .quotes.pas .quote-card { padding: 24px 22px; border: 1px solid var(--line); }
  .mosaic.pas > .mosaic__item { height: 66vw; }
  .contacts.pas > .contact-card { grid-template-columns: 64px minmax(0, 1fr); }
  .contacts.pas .contact-card__ph { width: 64px; height: 80px; }
  /* postup: v páse bez zvislej čiary, každý krok ako karta */
  ol.steps.pas { padding: 0 var(--gutter) 4px; }
  .steps.pas::before, .steps.pas .step::before, .steps.pas .step::after { display: none; }
  .steps.pas .step { padding: 22px 20px; border: 1px solid var(--line); }
  /* projekty: veľká karta zjednodušená, aby bola rovnako vysoká ako ostatné */
  .proj-sada.pas > .proj-feature { margin-bottom: 0; border: 0; }
  .proj-sada.pas .proj-feature__media { min-height: 0; aspect-ratio: 4 / 3; }
  .proj-sada.pas .proj-feature__body { padding: 20px 0 0; }
  .proj-sada.pas .proj-feature__body .d2 { margin: 10px 0 12px; font-size: 24px; }
  .proj-sada.pas .proj-feature .specs, .proj-sada.pas .proj-feature .btn { display: none; }
  /* záväzok a aktuality */
  .promise__list.pas { border-top: 0; }
  .promise__list.pas li, .promise__list.pas li + li { padding: 20px; border: 1px solid var(--line); }
  .news.pas .news-item { display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; }
  .news.pas .news-item__media { width: 100%; aspect-ratio: 16 / 10; }
}

/* ---------- Päta: stĺpce Služby a Spoločnosť sú na mobile rozbaľovacie, na PC vždy otvorené ---------- */
.footer-acc > summary { list-style: none; }
.footer-acc > summary::-webkit-details-marker { display: none; }
@media (min-width: 641px) {
  .footer-acc > summary { pointer-events: none; }
}
@media (max-width: 640px) {
  .footer-cols { gap: 0 24px; padding: 40px 0; }
  .footer-cols > :first-child { margin-bottom: 24px; }
  .footer-cols > .footer-acc { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .footer-acc > summary { display: flex; align-items: center; justify-content: space-between; min-height: 54px; cursor: pointer; }
  .footer-acc > summary h4 { margin: 0; }
  .footer-acc > summary::after { content: "+"; color: var(--gold); font-size: 24px; font-weight: 300; line-height: 1; transition: transform .3s var(--ease); }
  .footer-acc[open] > summary::after { transform: rotate(45deg); }
  .footer-acc ul { padding-bottom: 14px; }
  .footer-acc ~ div { padding-top: 24px; border-top: 1px solid var(--line); }
}

/* ---------- Pred a po: porovnanie tej istej budovy posuvníkom (sekcia Vybrané projekty, iba PC) ---------- */
.pred-po { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 4vw, 64px); align-items: center; margin-top: clamp(64px, 8vw, 112px); }
/* rámik má rovnaký pomer 4:3 ako obe fotky, takže sa nič neoreže */
.pred-po__obr { --x: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--onyx-3); user-select: none; touch-action: pan-y; }
.pred-po__obr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pred-po__pred { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.pred-po__rukovat { position: absolute; top: 0; bottom: 0; left: var(--x); z-index: 2; width: 1px; background: var(--gold); pointer-events: none; }
.pred-po__rukovat i { position: absolute; top: 50%; left: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 1px solid var(--gold); border-radius: 50%; background: rgba(29, 20, 13, .55); backdrop-filter: blur(4px); transition: transform .3s var(--ease), background .3s; }
.pred-po__rukovat i::before, .pred-po__rukovat i::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: solid var(--gold-hi); border-width: 0 0 1.5px 1.5px; }
.pred-po__rukovat i::before { left: 14px; transform: rotate(45deg); }
.pred-po__rukovat i::after { right: 14px; transform: rotate(-135deg); }
.pred-po__obr:hover .pred-po__rukovat i { transform: scale(1.08); background: rgba(29, 20, 13, .75); }
.pred-po__stitok { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 7px 14px; background: var(--onyx); color: var(--gold); pointer-events: none; }
.pred-po__stitok--po { left: auto; right: 18px; background: var(--gold); color: #1a110a; }
.pred-po__posuv { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.pred-po__obr:has(.pred-po__posuv:focus-visible) { outline: 2px solid var(--gold); outline-offset: 4px; }
.pred-po__text .d2 { margin-bottom: 18px; }
.pred-po__text .muted { margin-bottom: 28px; max-width: 42ch; }
.pred-po__text .kota { margin-bottom: 28px; }
@media (max-width: 980px) {
  .pred-po { grid-template-columns: 1fr; }
}

/* ---------- Iba mobil: mapa projektov nižšia, aby nezaberala celú obrazovku pri posúvaní ---------- */
@media (max-width: 640px) {
  .project-map { height: 300px; }
}

/* Pred a po na dotyku: vodorovný ťah mení porovnanie, zvislý ťah posúva stránku */
.pred-po__posuv { touch-action: pan-y; }
@media (max-width: 640px) {
  .pred-po { gap: 24px; margin-top: 56px; }
  .pred-po__rukovat i { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .pred-po__rukovat i::before { left: 11px; }
  .pred-po__rukovat i::after { right: 11px; }
  .pred-po__stitok { top: 12px; left: 12px; padding: 5px 10px; }
  .pred-po__stitok--po { left: auto; right: 12px; }
  .pred-po__text .btn { width: 100%; }
}
/* myš a prst ovláda obal (site.js predPo), input range slúži len klávesnici a čítačkám */
.pred-po__obr { cursor: ew-resize; }
.pred-po__obr, .pred-po__posuv { touch-action: pan-y; }
.pred-po__posuv { pointer-events: none; }
.pred-po__obr img { -webkit-user-drag: none; user-select: none; }

/* ---------- Iba mobil: hero video viditeľnejšie. Slabšie stmavenie len pod textom, bez stmavovania pri skrolovaní,
   menšie priblíženie; čitateľnosť drží tieň písma (pri nadpisoch s prechodom drop-shadow, text-shadow by presvital) ---------- */
@media (max-width: 640px) {
  .hero3d__shade { background: linear-gradient(0deg, rgba(36, 27, 20, .9) 0%, rgba(36, 27, 20, .7) 30%, rgba(36, 27, 20, .26) 52%, rgba(36, 27, 20, 0) 68%, rgba(36, 27, 20, 0) 88%, rgba(36, 27, 20, .3) 100%); }
  .hero3d__shade::after { opacity: 0; }
  .hero3d__media { transform: scale(calc(1.02 + var(--p) * .06)); }
  .hero--3d .hero__body .eyebrow, .hero--3d .lead, .hero3d__second .eyebrow, .hero3d__facts, .hero--3d .hero__span { text-shadow: 0 1px 2px rgba(18, 12, 7, .8), 0 0 16px rgba(18, 12, 7, .6); }
  .hero--3d .hero__title, .hero3d__second .d1 { filter: drop-shadow(0 1px 2px rgba(18, 12, 7, .7)) drop-shadow(0 0 14px rgba(18, 12, 7, .5)); }
}

/* ---------- Iba mobil: hero video hore v širokom rámiku (40 % výšky), aby bol vidieť takmer celý dom,
   text pod videom na tmavom podklade. Čiara s mestami je na mobile skrytá, aby sa text zmestil. ---------- */
@media (max-width: 640px) {
  .hero--3d { --video-h: 40svh; }
  .hero3d__media { inset: var(--header-h) 0 auto 0; height: var(--video-h); transform: none; background-position: 86% 50%; }
  .hero3d__media video { object-position: 86% 50%; }
  .hero3d__shade { background: linear-gradient(180deg, rgba(36, 27, 20, .35) 0, rgba(36, 27, 20, 0) calc(var(--header-h) + 40px), rgba(36, 27, 20, 0) calc(var(--header-h) + var(--video-h) - 70px), var(--onyx) calc(var(--header-h) + var(--video-h))); }
  .hero--3d .hero__body { padding-top: calc(var(--header-h) + var(--video-h) + 18px); padding-bottom: 22px; }
  .hero--3d .hero__span { display: none; }
  .hero--3d .hero__body .eyebrow, .hero--3d .lead, .hero3d__second .eyebrow, .hero3d__facts { text-shadow: none; }
  .hero--3d .hero__title, .hero3d__second .d1 { filter: none; }
  .hero3d__second { justify-content: flex-start; padding: calc(var(--header-h) + var(--video-h) + 36px) var(--gutter) 0; }
}
/* nízky telefón: menej textu, aby sa tlačidlá zmestili */
@media (max-width: 640px) and (max-height: 720px) {
  .hero--3d .lead { display: none; }
  .hero--3d .hero__title { margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .hero--3d { --video-h: 37svh; }
  .hero--3d .hero__body { padding-top: calc(var(--header-h) + var(--video-h) + 14px); padding-bottom: 14px; }
  .hero--3d .hero__body .eyebrow { margin-bottom: 10px; }
  .hero--3d .hero__title { font-size: 31px; }
  .hero--3d .lead { margin: 12px 0 18px; font-size: 14.5px; line-height: 1.55; }
  .hero--3d .hero__ctas { gap: 8px; }
  .hero--3d .hero__ctas .btn { min-height: 46px; }
}
@media (max-width: 640px) {
  /* scéna presne na výšku displeja, aj na nízkych telefónoch (inak min. 720 px a spodok by bol mimo) */
  .hero3d__stage { height: 100svh; }
}

/* ---------- Iba mobil: pred a po vojde na jeden displej. Poradie: Pred a po, nadpis, fotka, hneď pod ňou
   nápis „Posuňte fotku…“, krátky text a tlačidlo (obal textu zmizne cez display: contents) ---------- */
@media (max-width: 640px) {
  .pred-po { display: flex; flex-direction: column; gap: 0; margin-top: 48px; }
  .pred-po__text { display: contents; }
  .pred-po__text .eyebrow { order: 1; margin-bottom: 10px; }
  .pred-po__text .d2 { order: 2; margin-bottom: 14px; font-size: 26px; }
  .pred-po__obr { order: 3; }
  .pred-po__text .kota { order: 4; margin: 10px 0 12px; }
  .pred-po__text .muted { order: 5; margin-bottom: 14px; font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .pred-po__text .btn { order: 6; min-height: 46px; }
}
@media (max-width: 640px) {
  /* v stĺpci flexu treba pevnú šírku, inak pomer 4:3 nedá výšku */
  .pred-po__obr { width: 100%; flex: none; }
}

/* ---------- Iba mobil: každý blok úvodu vojde na jeden displej (cieľ do 740 px pri 375 x 812).
   Menšie odsadenia a nadpisy, nižšie fotky, dlhšie texty skrátené na pár riadkov. ---------- */
@media (max-width: 640px) {
  .sec { padding-block: 44px; }
  .sec--tight { padding-block: 40px; }
  .sec-head { gap: 10px; margin-bottom: 22px; }
  .sec-head .lead { margin-top: 10px; font-size: 15px; line-height: 1.55; }
  .d2 { font-size: 25px; }
  .eyebrow { margin-bottom: 14px; }
  .orez2, .orez3, .sec-head .lead, .tile p, .proj-feature__body .muted, .sale .muted, .pillar p, .svc__body > p, .news-feature p, .intro__text p, .footer-about, .aud p, .country li:nth-child(n+3) { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .sec-head .lead, .tile p, .proj-feature__body .muted, .pillar p, .news-feature p, .aud p, .footer-about { -webkit-line-clamp: 2; }
  .sale .muted, .svc__body > p, .intro__text p { -webkit-line-clamp: 3; }

  /* Spoločnosť */
  .statement { font-size: 20px; }
  .intro--media .intro__text { margin-top: 16px; }
  .intro__text p + p { display: none; }
  .stats { margin-top: 24px; }
  .stat { padding: 16px 10px 0 0; }
  .stat + .stat { padding-left: 14px; }
  .stat__num { font-size: 36px; }
  .stat__label { margin-top: 8px; font-size: 13.5px; }
  .stat:nth-child(n+3) { padding-top: 18px; }

  /* Služby */
  .checker.pas .tile { padding: 20px; }
  .checker.pas .tile__media { aspect-ratio: 16 / 9; margin-bottom: 14px; }
  .checker.pas .tile .ico { display: none; }
  .checker.pas .tile h3 { margin: 6px 0 8px; font-size: 22px; }
  .checker.pas .tile p { margin-bottom: 14px; font-size: 14.5px; }
  .checker.pas + .pas-pocet { padding-bottom: 28px; }

  /* Vybrané projekty */
  .proj-sada.pas .proj-feature__media { aspect-ratio: 16 / 10; }
  .proj-sada.pas .proj-feature__body .muted { font-size: 14.5px; }
  .proj-card__media { aspect-ratio: 16 / 10; }

  /* V predaji */
  .sale { gap: 20px; }
  .sale .svc__media { aspect-ratio: 16 / 9; }
  .sale .muted { margin-top: 12px !important; font-size: 14.5px; }
  .units { margin: 14px 0 18px; font-size: 13.5px; }
  .units td { padding: 8px 8px 8px 0; }
  .units th { padding-bottom: 8px; }

  /* Pre koho, Krajiny, Zodpovednosť, Aktuality */
  .aud { min-height: 330px; }
  .country__media { aspect-ratio: 16 / 10; }
  .country__code { font-size: 46px; }
  .country h3 { margin: 12px 0 4px; }
  .country ul { margin-top: 8px; }
  .country li { padding: 8px 0; font-size: 14.5px; }
  .country li:nth-child(n+3) { display: none; }
  .pillar__media { aspect-ratio: 16 / 10; margin-bottom: 14px; }
  .pillar h3 { margin: 6px 0 8px; }
  .news-feature h3 { margin: 10px 0 8px; font-size: 19px; }
  .news-feature__media { aspect-ratio: 16 / 9; }

  /* Pozemky (blok so zoznamom) */
  .svc { gap: 20px; }
  .svc__media { aspect-ratio: 16 / 9; }
  .svc__body .d2 { margin-bottom: 12px; }
  .checklist { margin: 16px 0 20px; }
  .checklist li { padding: 9px 0 9px 22px; font-size: 14.5px; }
  .checklist li::before { top: 19px; }

  /* Päta */
  .footer-cta { gap: 18px; padding-block: 40px 32px; }
  .footer-cta .d2 { font-size: 23px; }
  .footer-cta__actions { gap: 8px; }
  .footer-cols { padding: 28px 0; }
  .footer-cols > :first-child { margin-bottom: 14px; }
  .footer-about { margin-top: 12px; font-size: 14px; }
  .footer-acc > summary { min-height: 46px; }
  .footer-acc ~ div { padding-top: 16px; }
  .footer-cols li { margin-bottom: 6px; font-size: 14px; }
  .footer-cols address { font-size: 14px; }
  .footer-bottom { gap: 10px; padding-top: 16px; font-size: 11px; }
}
@media (max-width: 640px) {
  .statement { font-size: 19px; line-height: 1.3; }
  .stats { margin-top: 18px; }
  .sale .muted { display: none; }
  .sale .hero__ctas .btn, .svc__body .hero__ctas .btn { min-height: 46px; }
  .svc__body > p { -webkit-line-clamp: 2; }
  .checklist { grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .checklist li { padding: 9px 0 9px 18px; font-size: 13.5px; line-height: 1.35; }
  .checklist li::before { top: 17px; width: 10px; }
  .site-footer { padding-top: 0 !important; }
  .footer-about { display: none; }
  .logo__img--footer { height: 46px; }
}
@media (max-width: 640px) {
  .stat__num { font-size: 34px; }
  /* hlavička sa pri skrolovaní nadol schová, nahor sa vráti (site.js) */
  .site-header { transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .35s var(--ease); }
  .site-header.is-hidden { transform: translateY(-100%); }
}
@media (max-width: 640px) {
  .pred-po { align-items: stretch; }
}

/* ---------- Iba mobil: blok V predaji ostane v okrajoch aj pri zväčšenom písme v telefóne.
   Stĺpce mriežky sa nesmú rozťahovať podľa tabuľky; tabuľka je užšia a keby bola aj tak širšia,
   posúva sa vo vlastnom rámčeku, tlačidlá ostanú na šírku stránky ---------- */
@media (max-width: 640px) {
  .sale > *, .svc > *, .intro > *, .promise > *, .news > * { min-width: 0; }
  .units { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .units th { padding: 0 8px 8px 0; font-size: 10px; letter-spacing: .06em; }
  .units td { padding-right: 8px; white-space: nowrap; }
  .state { padding: 2px 7px; font-size: 11px; letter-spacing: .02em; }
}

/* ---------- Mobilné menu nižšie: menšie položky, kontakty v dvoch stĺpcoch, celé vojde na displej
   aj pri zväčšenom písme v telefóne ---------- */
.drawer { padding-top: calc(var(--header-h) + 8px); padding-bottom: 20px; }
.drawer a.drawer__link { padding: 10px 0; font-size: 21px; line-height: 1.25; }
.drawer__foot { grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-top: 20px; align-items: center; }
.drawer__foot .btn { grid-column: 1 / -1; min-height: 48px; }
.drawer__foot > a.mono, .drawer__foot > .wa { padding: 6px 0; }
.drawer__foot > a.mono { white-space: nowrap; }
/* menu nikdy širšie ako displej: kontakty pod sebou cez celú šírku, nezalomí sa len samotné číslo */
.drawer { overflow-x: hidden; }
.drawer__foot { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
.drawer__foot > * { min-width: 0; }
.drawer__foot .btn, .drawer__foot > a[href^="tel:"], .drawer__foot > .wa { grid-column: 1 / -1; }
.drawer__foot > .wa { white-space: normal; flex-wrap: wrap; }
.drawer__foot > .lang { justify-self: end; }
@media (max-height: 700px) {
  .drawer a.drawer__link { padding: 7px 0; }
  .drawer__foot { padding-top: 12px; gap: 6px 16px; }
  .drawer__foot .btn { min-height: 44px; }
}

/* ---------- Stránka projektu Rodinné domy Trenčianske Jastrabie (jastrabie.html) ----------
   Fotky a výkresy sa neorezávajú: mriežka v stĺpcoch drží pôvodný pomer strán. */
.jb-stats { margin-top: 0; border-top: 0; }
.jb-note { margin: 28px 0 0; font-size: 12px; }
.jb-grid { columns: 3; column-gap: 16px; }
.jb-grid figure { break-inside: avoid; margin: 0 0 24px; }
.jb-grid a, .jb-plans a { display: block; overflow: hidden; }
.jb-grid img { display: block; width: 100%; height: auto; transition: transform .9s var(--ease); }
.jb-grid a:hover img { transform: scale(1.03); }
.jb-grid figcaption, .jb-plans figcaption { margin-top: 8px; }
.jb-video { position: relative; background: #000; }
.jb-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.jb-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); }
.jb-rooms .units td:last-child, .jb-rooms .units th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.jb-plans { columns: 3; column-gap: 16px; margin-top: clamp(32px, 4vw, 56px); }
.jb-plans figure { break-inside: avoid; margin: 0 0 24px; }
.jb-plans a { padding: 12px; background: #fff; border: 1px solid var(--line); transition: border-color .3s; }
.jb-plans a:hover { border-color: var(--gold); }
.jb-plans img { display: block; width: 100%; height: auto; }
.lightbox.is-plan .lightbox__stage { background: #fff; }
.lightbox.is-plan .lightbox__thumbs button { background: #fff; }
.lightbox.is-plan .lightbox__thumbs img { object-fit: contain; }
@media (max-width: 900px) {
  .jb-grid, .jb-plans { columns: 2; }
}
@media (max-width: 600px) {
  .jb-grid, .jb-plans { columns: 1; }
  .jb-rooms { grid-template-columns: 1fr; }
}

/* ---------- Päta: podpis „Web vytvoril noGrey“ (logo vo farbe projektu, zlatá na tmavej päte) ---------- */
.ng-podpis-riadok { display: flex; align-items: center; gap: 10px; margin: 22px 0 6px; font-family: var(--f-body); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--chalk-2); }
.ng-podpis { display: block; line-height: 0; color: var(--gold); }
.ng-logo { display: block; width: 58px; height: auto; opacity: .85; transition: opacity .2s; }
.ng-podpis:hover .ng-logo { opacity: 1; }

/* ---------- Označenie AI videa v hero (AI Act, čl. 50) ---------- */
.hero-ai { position: absolute; right: var(--gutter); bottom: 18px; z-index: 4; margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: rgba(242, 241, 236, .7); text-shadow: 0 1px 3px rgba(18, 12, 7, .8); pointer-events: none; }
.is-3d .hero-ai { opacity: calc(1 - var(--p) * 2); }
@media (max-width: 640px) {
  .hero-ai { top: calc(var(--header-h) + var(--video-h) - 26px); bottom: auto; right: 12px; font-size: 10px; }
  .is-3d .hero-ai { opacity: 1; }
}

/* ---------- Kontakt: mapa Google až po kliknutí ---------- */
.map-klik { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; border: 1px solid var(--line); background: var(--onyx-2); color: var(--chalk); text-align: center; filter: none; }
.map-klik__adresa { margin: 0; font-size: 16px; line-height: 1.5; }
.map-klik__info { margin: 0; max-width: 34ch; color: var(--chalk-2); font-size: 13px; line-height: 1.5; }
.map-klik.is-nacitana { padding: 0; border: 0; }
.map-klik iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* Lišta s cookies (site.js, listaCookies) */
.cookies { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 80; max-width: 560px; margin-left: auto; padding: 20px 22px; border: 1px solid var(--gold); background: var(--onyx); color: var(--chalk); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.cookies p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; }
.cookies a { color: var(--gold); }
.cookies__tlacidla { display: flex; gap: 10px; }
.cookies__tlacidla .btn { flex: 1; }
.cookies .btn--ghost { border-color: var(--chalk-2); color: var(--chalk); }

/* ---------- Formuláre: pasca na roboty (mimo obrazovky) a chybová správa pri odoslaní ---------- */
.pasca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__chyba { grid-column: 1 / -1; margin: 0; padding: 14px 18px; border: 1px solid #c0533a; color: var(--fg); font-size: 14.5px; }

/* ---------- Ukážkové údaje (mená, portréty, vymyslené telefóny) skryté, kým klient nepošle skutočné (Erik 19. 11. 2026).
   Keď údaje prídu, z prvku stačí odstrániť triedu demo-skryte. ---------- */
.demo-skryte { display: none !important; }

/* ---------- Mobil (Erik 19. 11. 2026): kratšie Projekty, obsah článku pred textom, drobné písmo najmenej 12 px.
   Podpis noGrey (.ng-podpis-riadok) ostáva 10 px podľa štandardu podpisu. ---------- */
@media (max-width: 640px) {
  #referencie .proj-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  #referencie .proj-card__text, #referencie .proj-card .kota, #referencie .proj-card__meta span + span { display: none; }
  #referencie .proj-card h3 { margin: 6px 0 0; font-size: 15px; line-height: 1.3; }
  #referencie .proj-card__tag { padding: 5px 8px; }

  .article-layout .aside { display: contents; }
  .article-layout .toc { order: -1; }

  .eyebrow, .hero--3d .hero__body .eyebrow, .cat, .specs dt, .proj-spec-bar dt, .link-arrow, .btn--sm,
  .footer-cols h4, .footer-bottom, .units th, .hero-ai { font-size: 12px; }
}

/* ---------- Hlavička projektu so svetlou fotkou (Jastrabie, Erik 25. 11. 2026): na PC prechod zľava, aby bol čitateľný
   zlatý popis, omrvinky aj nadpis na bielych stenách domov. Mobil má silnejšie stmavenie už v základnom pravidle. ---------- */
@media (min-width: 641px) {
  .proj-hero--svetla::after {
    background:
      linear-gradient(90deg, rgba(29, 20, 13, .88) 0%, rgba(29, 20, 13, .86) 38%, rgba(29, 20, 13, .5) 62%, rgba(29, 20, 13, 0) 85%),
      linear-gradient(0deg, rgba(29, 20, 13, .95) 8%, rgba(29, 20, 13, .2) 55%, rgba(29, 20, 13, .55) 100%);
  }
}
