@import url("./tokens.css");

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--color-paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 0;
}

.site-header.is-compact { box-shadow: none; }
.site-header { transition: background-color 0.2s var(--ease); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--color-ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.brand span { white-space: nowrap; }

.nav {
  display: flex;
  align-items: center;
  gap: 8px 14px;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--color-ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 0.95rem;
}

.nav a[aria-current="page"] { color: var(--color-primary); font-weight: 600; }

.nav .has-sub {
  position: relative;
  display: flex;
  align-items: center;
}

.nav .sub-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav .sub {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 16rem;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: var(--color-paper);
  border: 0;
  border-radius: 0;
  box-shadow: var(--shadow);
  flex-direction: column;
  align-items: stretch;
}

.nav .has-sub.is-open .sub,
.nav .has-sub:focus-within .sub { display: flex; }

.nav .sub a { width: 100%; }

.header-phone {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  margin: 6px 10px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.legal-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-bar { display: none; }

/* Hero — foto až k pravému okraji viewportu */
.hero {
  padding: 0;
  position: relative;
  background-color: var(--color-paper);
}

.hero-stage {
  display: grid;
  grid-template-columns: max(20px, calc((100vw - 1280px) / 2)) minmax(0, 34rem) minmax(0, 1fr);
  align-items: stretch;
  min-height: min(70vh, 620px);
}

.hero-copy {
  grid-column: 2;
  padding: 48px 28px 108px 0;
  min-width: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-copy h1 {
  font-size: clamp(2.05rem, 4.5vw, 3.35rem);
  letter-spacing: -0.03em;
  color: var(--color-ink);
  max-width: 14ch;
  margin: 0 0 14px;
  text-wrap: balance;
}

.hero-copy .lead {
  max-width: 42ch;
  color: var(--color-steel);
  margin: 0 0 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.2rem;
  row-gap: 0;
  margin: 18px 0 0;
  font-size: 0.95rem;
}

.jump a {
  color: var(--color-ink);
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.jump a:hover { color: var(--color-cta); }

.hero-photo {
  grid-column: 3;
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: 70% 50%;
  transform-origin: 70% 50%;
}

.hero-photo::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  left: auto;
  bottom: auto;
  width: var(--trace-size);
  height: var(--trace-size);
  background: var(--trace) center / contain no-repeat;
  opacity: 0.18;
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-paper) 0%, transparent 28%);
  pointer-events: none;
  z-index: 1;
}

.calc-wrap {
  position: relative;
  z-index: 2;
  margin-top: -120px;
  padding: 48px 0 4px;
}

.calc-wrap .jump { margin: 16px 0 8px; }

.jump-mobile { display: none; }

@media (max-width: 767px) {
  .jump-mobile { display: flex; }
  .jump-desk { display: none; }
}

.calc-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0%, var(--color-paper) 44px);
  border: 0;
  padding: 48px 8px 12px 0;
}

.calc-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--trace-size);
  height: 52px;
  background: var(--trace) top right / var(--trace-size) no-repeat;
  opacity: var(--trace-opacity);
  pointer-events: none;
  z-index: 0;
}

.calc-card > * {
  position: relative;
  z-index: 1;
}

.calc-table tr { cursor: pointer; transition: background-color 0.18s var(--ease); }
.calc-table tr:hover td { background: color-mix(in srgb, var(--color-mint) 55%, transparent); }
.calc-table tr.is-on td {
  background: color-mix(in srgb, var(--color-mint) 70%, transparent);
  color: var(--color-primary);
  font-weight: 600;
}

.calc-card h2 {
  margin: 0 0 20px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  text-align: left;
  padding-right: calc(var(--trace-size) - 8px);
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

.calc-fields h3,
.calc-results h3 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-steel);
  font-weight: 600;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  margin: 0 0 16px;
}

.calc-table th {
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-steel);
  font-weight: 600;
  padding: 0 10px 10px 0;
  border-bottom: 0;
}

.calc-table th:last-child,
.calc-table td:last-child { text-align: right; padding-right: 0; }

.calc-table td {
  padding: 12px 10px 12px 0;
  border-bottom: 0;
}

.calc-table tr { cursor: pointer; }

.calc-table tr.is-on td:first-child { box-shadow: inset 3px 0 0 var(--color-cta); padding-left: 10px; }

.range-row { margin-bottom: 14px; }

.range-row label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.range-row input[type="range"] {
  width: 100%;
  accent-color: var(--color-cta);
  height: 44px;
}

.calc-note {
  color: var(--color-steel);
  font-size: 0.92rem;
  margin: 8px 0 16px;
}

.calc-results { padding: 4px 0 0 8px; }

.calc-price {
  font-size: clamp(2.1rem, 3.4vw, 2.85rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  line-height: 1.1;
  margin: 0 0 8px;
}

.calc-meta {
  margin: 0 0 4px;
  color: var(--color-steel);
}

/* Sections */
.band { padding: 48px 0; }
.band-white { background: var(--color-paper); }
.band-flush { padding-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 8px 32px;
  align-items: end;
  margin: 0 0 20px;
}

.section-head h2 { margin: 0; }
.section-head .lede { margin: 0; max-width: none; }

.band h2,
.solutions h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
}

.band .lede {
  max-width: none;
  color: var(--color-steel);
  margin: 0 0 20px;
}

.after-index { margin-top: 24px; }

.solutions { padding: 28px 0 48px; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.tile {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 260px;
  min-width: 0;
  padding: 22px 20px 24px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.tile-photo { padding: 0; color: var(--color-white); }

.tile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.tile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-ink) 18%, transparent) 0%, color-mix(in srgb, var(--color-ink) 86%, transparent) 100%);
}

.tile-photo .tile-body {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 22px 20px;
}

.tile-photo strong,
.tile-photo span {
  color: var(--color-white);
  text-shadow: 0 1px 10px color-mix(in srgb, var(--color-ink) 70%, transparent);
}

.tile-photo span { color: color-mix(in srgb, var(--color-white) 92%, var(--color-mint)); }

.tile-draw {
  background: transparent;
}

.tile-draw::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 88px;
  height: 88px;
  background: var(--trace) center / contain no-repeat;
  transform: scaleY(-1);
  opacity: 0.11;
  pointer-events: none;
  z-index: 0;
}

.tile-draw .mark,
.tile-draw .mark-svg,
.tile-draw .tile-body {
  position: relative;
  z-index: 1;
}

.tile-draw .mark,
.tile-draw .mark-svg {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 0 16px;
}

.tile-draw .mark {
  background: url("../assets/marks.svg") no-repeat;
  background-size: auto 56px;
}

.tile-draw.mark-tc .mark { background-position: -112px 0; }
.tile-draw.mark-el .mark { background-position: 0 0; }

.tile-body {
  display: grid;
  gap: 6px;
}

.tile-body strong {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.tile-body span { color: var(--color-steel); }

.tile-photo .tile-body span {
  color: color-mix(in srgb, var(--color-white) 92%, var(--color-mint));
}

.tile:hover { background: color-mix(in srgb, var(--color-mint) 55%, transparent); }
.tile-photo:hover { background: transparent; }
.tile-photo:hover img { transform: scale(1.04); }

.index-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 0;
}

.index-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  min-height: 168px;
  padding: 22px 20px;
  background: transparent;
  border: 0;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: background-color 0.2s var(--ease);
}

.index-row:hover {
  transform: none;
  background: color-mix(in srgb, var(--color-mint) 55%, transparent);
}

.index-row:hover strong { color: var(--color-cta); }

.index-mark {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  background: url("../assets/marks.svg") no-repeat;
  background-size: auto 48px;
}

.index-row:nth-child(1) .index-mark { background-position: 0 0; }
.index-row:nth-child(2) .index-mark { background-position: -48px 0; }
.index-row:nth-child(3) .index-mark { background-position: -96px 0; }
.index-row:nth-child(4) .index-mark { background-position: -144px 0; }
.index-row:nth-child(5) .index-mark { background-position: -192px 0; }
.index-row:nth-child(6) .index-mark { background-position: -240px 0; }

.index-list-more .index-row:nth-child(1) .index-mark { background-position: -144px 0; }
.index-list-more .index-row:nth-child(2) .index-mark { background-position: -192px 0; }
.index-list-more .index-row:nth-child(3) .index-mark { background-position: -240px 0; }

.index-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.index-body strong {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.index-body span { color: var(--color-steel); }

.index-go { display: none; }

.facts-band {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  min-height: 340px;
  background: var(--color-white);
}

.facts-photo {
  overflow: hidden;
  min-height: 280px;
}

.facts-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: 62% 50%;
}

.facts-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 24px 28px;
  align-items: center;
  padding: 36px clamp(20px, 4vw, 48px);
}

.facts-figure {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.facts-figure span {
  display: block;
  margin-top: 12px;
  font-size: 1rem;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--color-steel);
  line-height: 1.45;
}

.facts-figure > [data-copy="copy.facts.figure"] {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  line-height: inherit;
}

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  counter-reset: krok;
  max-width: none;
}

.process li {
  counter-increment: krok;
  display: block;
  padding: 22px 28px 24px 0;
  margin: 0;
  background: transparent;
  border: 0;
}

.process li::before {
  content: counter(krok);
  display: block;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-cta);
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}

.process h3 { margin: 0 0 8px; font-size: 1.12rem; }
.process p { margin: 0; color: var(--color-steel); }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 28px 36px;
  align-items: start;
}

.faq-aside {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-paper);
}

.faq-aside img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  opacity: 0.38;
}

.faq-aside .faq-aside-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 22px 22px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--color-ink) 88%, transparent) 36%);
  color: var(--color-white);
  text-shadow: 0 1px 8px color-mix(in srgb, var(--color-ink) 55%, transparent);
}

.faq-aside p { margin: 0 0 8px; color: var(--color-white); }
.faq-aside a { color: var(--color-white); text-decoration: underline; text-underline-offset: 3px; }

.cta-band {
  background: var(--color-ink);
  color: var(--color-paper);
  border-top: 0;
  padding: 48px 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--color-ink) 72%, transparent), color-mix(in srgb, var(--color-ink) 58%, transparent)),
    url("../assets/hero-house.png") 70% 50% / cover;
  z-index: -1;
}

.cta-band h2 { color: var(--color-white); text-shadow: 0 1px 12px color-mix(in srgb, var(--color-ink) 45%, transparent); }
.cta-band p { color: color-mix(in srgb, var(--color-white) 92%, var(--color-paper)); }
.cta-band .btn-on-dark {
  background: var(--color-white);
  color: var(--color-ink);
}
.cta-band .btn-on-dark-ghost {
  color: var(--color-white);
  border: 0;
  background: color-mix(in srgb, var(--color-white) 16%, transparent);
}
.cta-band .btn-on-dark-ghost:hover {
  background: color-mix(in srgb, var(--color-white) 26%, transparent);
  color: var(--color-white);
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.cta-band h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.cta-band p { margin: 8px 0 0; max-width: 46ch; }

.page-hero {
  padding: 28px 0 10px;
  position: relative;
  overflow: hidden;
  background-color: var(--color-paper);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 12px;
  right: max(20px, calc((100vw - 1280px) / 2));
  width: var(--trace-size);
  height: var(--trace-size);
  background: var(--trace) top right / contain no-repeat;
  opacity: var(--trace-opacity);
  pointer-events: none;
  z-index: 0;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero.container::before { right: 0; }

.page-hero h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  max-width: 22ch;
  color: var(--color-ink);
}

.page-hero .lede {
  max-width: var(--measure);
  color: var(--color-steel);
  margin: 0 0 12px;
}

.kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 10px;
}

.hero-copy h1,
.page-hero h1,
.prose h1,
.prose h2,
.prose h3,
.section-head h2,
.section-head .lede,
.calc-card h2,
.calc-card h3,
.calc-price,
.facts-copy h2,
.faq-grid h2,
.cta-band h2,
.place-card h2,
.process h3,
.tile-body strong,
.index-body strong,
.hero-copy .lead,
.page-hero .lede,
.kicker,
.spec h2,
.faq summary {
  position: relative;
  padding-bottom: var(--accent-gap, 0.48em);
}

.hero-copy h1::before,
.page-hero h1::before,
.prose h1::before,
.prose h2::before,
.prose h3::before,
.section-head h2::before,
.section-head .lede::before,
.calc-card h2::before,
.calc-card h3::before,
.calc-price::before,
.facts-copy h2::before,
.faq-grid h2::before,
.cta-band h2::before,
.place-card h2::before,
.process h3::before,
.tile-body strong::before,
.index-body strong::before,
.hero-copy .lead::before,
.page-hero .lede::before,
.kicker::before,
.spec h2::before,
.faq summary::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1em;
  width: var(--accent-w, 2.4rem);
  height: var(--accent-h, 2px);
  background: var(--accent);
  transform-origin: left center;
  pointer-events: none;
  z-index: 0;
}

.hero-copy h1,
.page-hero h1,
.prose h1 {
  --accent-w: 3.4rem;
  --accent-h: 2px;
  --accent-gap: 0.5em;
}

.hero-copy .lead,
.page-hero .lede,
.section-head .lede {
  --accent: color-mix(in srgb, var(--color-leaf) 34%, transparent);
  --accent-w: 1.7rem;
  --accent-h: 1px;
  --accent-gap: 0.4em;
}

.kicker {
  --accent-w: 1.15rem;
  --accent-h: 1.5px;
  --accent-gap: 0.38em;
}

.spec h2,
.calc-card h3 {
  --accent-w: 1.35rem;
  --accent-h: 1.5px;
  --accent-gap: 0.36em;
}

.faq summary {
  --accent-w: 1.6rem;
  --accent-h: 1.5px;
  --accent-gap: 0.28em;
}

.calc-price {
  --accent-w: 2.8rem;
  --accent-h: 2px;
  --accent-gap: 0.32em;
}

.cta-band h2 {
  --accent: color-mix(in srgb, var(--color-mint) 62%, var(--color-leaf));
}

.tile-photo .tile-body strong {
  --accent: color-mix(in srgb, var(--color-mint) 78%, white);
}

.tile-body strong,
.index-body strong,
.process h3,
.place-card h2 {
  --accent-w: 1.85rem;
  --accent-h: 2px;
  --accent-gap: 0.42em;
}

.accent-word {
  background-image: linear-gradient(
    color-mix(in srgb, var(--color-leaf) 26%, transparent),
    color-mix(in srgb, var(--color-leaf) 26%, transparent)
  );
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.36em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.tile-photo .accent-word,
.cta-band .accent-word {
  background-image: linear-gradient(
    color-mix(in srgb, var(--color-mint) 42%, transparent),
    color-mix(in srgb, var(--color-mint) 42%, transparent)
  );
}

.accent-word-lg {
  background-position: 0 82%;
  background-size: 100% 0.22em;
}

.prose a:not(.btn),
.lede a:not(.btn),
.lead a:not(.btn),
.page-hero .lede a,
.jump a {
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0.9rem 1px;
  transition: background-size 0.4s var(--ease), color 0.2s var(--ease);
}

.prose a:not(.btn):hover,
.lede a:not(.btn):hover,
.lead a:not(.btn):hover,
.page-hero .lede a:hover,
.jump a:hover {
  background-size: 100% 1px;
}

@media (min-width: 960px) {
  .page-hero .lede,
  .page-hero .crumbs {
    max-width: min(var(--measure), calc(100% - (var(--trace-size) + 24px)));
  }
}

@media (max-width: 959px) {
  .page-hero::before,
  .calc-card::after,
  .spec::after {
    content: none;
  }
  .calc-card h2,
  .spec h2 { padding-right: 0; }
}

.split-article {
  display: grid;
  grid-template-columns: minmax(0, 40rem);
  gap: 28px 40px;
  align-items: stretch;
  padding: 16px 0 48px;
}

.split-article:has(.frame),
.split-article:has(.spec),
.split-article:has(.place-grid) {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.split-article > div > p { max-width: var(--measure); }

.split-article .place-grid {
  grid-template-columns: minmax(0, 1fr);
}

.split-article .frame {
  overflow: hidden;
  min-height: 320px;
  background: var(--color-mint);
}

.split-article .frame img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.spec {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 0;
  padding: 4px 0 8px 8px;
}

.spec::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 44px;
  background: var(--trace) top right / 56px no-repeat;
  opacity: 0.11;
  pointer-events: none;
  z-index: 0;
}

.spec h2,
.spec dl {
  position: relative;
  z-index: 1;
}

.spec h2 {
  margin: 0 0 4px;
  padding-right: 56px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-steel);
}

.spec dl {
  margin: 0;
}

.spec div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.4fr) minmax(0, 0.6fr);
  gap: 8px 16px;
  padding: 12px 0;
  border-top: 0;
}

.spec dt {
  margin: 0;
  font-weight: 600;
}

.spec dd {
  margin: 0;
  color: var(--color-steel);
}

.page-visual { display: none; }

.lead-form {
  display: grid;
  gap: 14px;
  max-width: none;
}

.lead-form label { display: grid; gap: 6px; font-weight: 600; }

.lead-form input,
.lead-form select,
.lead-form textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px 12px;
  border: 0;
  border-radius: 0;
  background: var(--fill-quiet);
  width: 100%;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

.check input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px 40px;
  padding: 16px 0 56px;
}

.place-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 32px;
  margin-top: 20px;
}

.place-card {
  background: transparent;
  padding: 8px 8px 24px 0;
  border: 0;
}

.place-card h2 { margin: 0 0 8px; font-size: 1.1rem; }
.place-card p { margin: 0 0 8px; }
.place-card a { color: var(--color-cta); }
.contact-grid .place-card + .place-card { margin-top: 16px; }

.container.prose { max-width: min(1280px, calc(100% - 40px), calc(100vw - 40px)); }
.prose { padding: 28px 0 56px; }
.prose h1 { letter-spacing: -0.03em; }
.prose h2 { margin-top: 1.6em; }
.prose > :where(p, ul, table, .faq, .faq-search, h1, h2) { max-width: var(--measure); }

.prose table { width: 100%; border-collapse: collapse; }
.prose th,
.prose td {
  border-bottom: 0;
  text-align: left;
  padding: 10px 12px 10px 0;
  vertical-align: top;
}

.site-footer {
  padding: 48px 0 24px;
  background: var(--color-ink);
  color: color-mix(in srgb, var(--color-paper) 88%, white);
}

.site-footer a { color: inherit; }

.footer-brand {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 12px;
  text-decoration: none;
}

.footer-brand img {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(220px, 100%);
}

.footer-grid {
  align-items: start;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer-grid h2 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--color-leaf);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 8px;
  border-top: 0;
}

.footer-mescon img { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }

.cookie-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 22rem;
  padding: 16px;
  background: var(--color-paper);
  border: 0;
  box-shadow: var(--shadow);
}

body.has-mobile-bar .cookie-bar {
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 12px;
  right: 12px;
  max-width: none;
}

.cookie-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cookie-bar-actions .btn { flex: 1; min-width: 9rem; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--color-cta);
  pointer-events: none;
}

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

.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 45;
  min-height: 40px;
  padding: 0 14px;
  background: var(--color-ink);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

body.has-mobile-bar .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); }

#kalkulacka,
#reseni,
#faq,
#jak-to-funguje,
#co-umime,
#proc,
#poptavka,
#ucely,
#udaje,
#prijemci,
#prava,
#cookies {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.9rem;
  color: var(--color-steel);
  margin: 0 0 16px;
}

.crumbs a { color: var(--color-steel); }

.faq {
  display: grid;
  gap: 0;
  max-width: none;
  border-top: 0;
}

.faq details {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.faq summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--color-cta);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after { content: "–"; }

.faq summary:hover { color: var(--color-cta); }

.faq details p {
  margin: 0 0 20px;
  color: var(--color-steel);
}

.quick-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}

.copy-btn,
.calc-chips button,
.service-chips button {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 0;
  border: 0;
  background: var(--fill-quiet);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-ink);
}

.calc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.calc-chips button.is-on,
.service-chips button.is-on {
  background: var(--color-cta);
  color: var(--color-white);
}

.copy-btn { font-size: 0.88rem; }

.field-error {
  color: var(--color-danger);
  font-weight: 400;
  font-size: 0.9rem;
}

[data-form-status].is-ok { color: var(--color-cta); }

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  padding-top: 8px;
  border-top: 0;
}

.related::before {
  content: "Související";
  width: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-steel);
  font-weight: 600;
}

.related a {
  color: var(--color-cta);
  font-weight: 600;
  text-decoration: none;
  padding: 0;
  background: none;
  border: 0;
}

.related a:hover { text-decoration: underline; }

.calc-echo {
  margin: 0 0 16px;
  padding: 12px 0;
  border: 0;
}

.calc-echo span { color: var(--color-steel); font-weight: 400; }

.faq-search {
  display: grid;
  gap: 6px;
  font-weight: 600;
  margin: 0 0 18px;
  max-width: 36rem;
}

.faq-search input {
  font: inherit;
  font-size: 16px;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  background: var(--fill-quiet);
}

.useful-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 24px;
  max-width: 36rem;
}

.useful-links a { font-weight: 600; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 0 0 24px;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat span { color: var(--color-steel); font-size: 0.92rem; }

body.nav-open::after {
  content: "";
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: color-mix(in srgb, var(--color-ink) 34%, transparent);
  z-index: 20;
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    z-index: 30;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-paper);
    color: var(--color-ink);
    padding: 16px 20px 24px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 0;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav .sub {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
  }
  body.nav-open { overflow: hidden; }
  .mosaic,
  .index-list,
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic .tile:first-child { grid-column: 1 / -1; min-height: 240px; }
}

@media (max-width: 980px) {
  .hero-stage,
  .hero-grid,
  .calc-grid,
  .split-article,
  .split-article:has(.frame),
  .split-article:has(.spec),
  .split-article:has(.place-grid),
  .contact-grid,
  .facts,
  .facts-band,
  .facts-copy,
  .section-head,
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { min-height: 0; }
  .hero-copy {
    grid-column: 1;
    padding: 28px 0 20px;
    width: min(1280px, calc(100% - 40px));
    margin-inline: auto;
  }
  .hero-photo {
    grid-column: 1;
    min-height: 240px;
  }
  .hero-photo img { min-height: 240px; }
  .hero-photo::after {
    background: linear-gradient(180deg, var(--color-paper) 0%, transparent 22%);
  }
  .calc-wrap { margin-top: -36px; }
  .facts-photo img { min-height: 220px; }
}

@media (max-width: 767px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    z-index: 30;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-paper);
    color: var(--color-ink);
    padding: 16px 20px 24px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 0;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav .sub {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
  }
  body.nav-open { overflow: hidden; }
  .mobile-bar {
    display: flex;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--color-paper) 90%, transparent);
    backdrop-filter: blur(14px);
    border-top: 0;
  }
  .mobile-bar .btn {
    flex: 1;
    min-width: 0;
    padding-inline: 12px;
  }
  body.has-mobile-bar { padding-bottom: 72px; }
  .place-grid,
  .footer-grid,
  .useful-links { grid-template-columns: minmax(0, 1fr); }
  .hero-copy,
  .hero-stage,
  .hero-grid,
  .jump,
  .calc-wrap,
  .calc-card { min-width: 0; max-width: 100%; }
  .calc-card { padding: 40px 0 8px; }
  .calc-card h2 { font-size: 1.2rem; padding-right: 0; }
  .tile-draw::after { content: none; }
  .hero-photo::before {
    width: 72px;
    height: 72px;
    top: 10px;
    right: 10px;
    opacity: 0.14;
  }
  .header-inner { min-width: 0; }
  .hero-copy h1 { max-width: none; }
  .calc-table { font-size: 0.95rem; }
  .calc-price { font-size: 2rem; }
  .calc-card .btn { width: 100%; }
  .mosaic,
  .index-list,
  .process { grid-template-columns: minmax(0, 1fr); }
  .mosaic .tile:first-child { grid-column: auto; min-height: 220px; }
  .tile { min-height: 220px; }
  .facts-copy { padding: 28px 20px 32px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-photo img {
    animation: photo-drift 36s ease-in-out infinite alternate;
  }
  .tile-draw .mark-svg {
    animation: mark-nudge 7s ease-in-out infinite alternate;
  }

  html.has-motion .fade-text,
  html.has-motion .fade-obj {
    opacity: 0;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), color 0.9s var(--ease);
  }
  html.has-motion .fade-text { transform: translateY(14px); }
  html.has-motion .fade-obj { transform: translateY(22px) scale(0.985); }
  html.has-motion .fade-text.is-in,
  html.has-motion .fade-obj.is-in {
    opacity: 1;
    transform: none;
  }
  html.has-motion .fade-text:not(.is-in).is-up { transform: translateY(-12px); }
  html.has-motion .fade-obj:not(.is-in).is-up { transform: translateY(-18px) scale(0.985); }

  html.has-motion .hero-copy h1.fade-text:not(.is-in),
  html.has-motion .page-hero h1.fade-text:not(.is-in),
  html.has-motion .section-head h2.fade-text:not(.is-in),
  html.has-motion .facts-copy h2.fade-text:not(.is-in),
  html.has-motion .faq-grid h2.fade-text:not(.is-in),
  html.has-motion .prose h1.fade-text:not(.is-in),
  html.has-motion .prose h2.fade-text:not(.is-in) {
    color: color-mix(in srgb, var(--color-leaf) 38%, var(--color-ink));
  }
  html.has-motion .hero-copy h1.is-in,
  html.has-motion .page-hero h1.is-in,
  html.has-motion .section-head h2.is-in,
  html.has-motion .facts-copy h2.is-in,
  html.has-motion .faq-grid h2.is-in,
  html.has-motion .prose h1.is-in,
  html.has-motion .prose h2.is-in {
    color: var(--color-ink);
  }
  html.has-motion .cta-band h2.fade-text:not(.is-in) {
    color: color-mix(in srgb, var(--color-mint) 48%, var(--color-white));
  }
  html.has-motion .cta-band h2.is-in { color: var(--color-white); }
  html.has-motion .kicker.fade-text:not(.is-in) {
    color: color-mix(in srgb, var(--color-leaf) 70%, var(--color-primary));
  }
  html.has-motion .kicker.is-in { color: var(--color-primary); }

  html.has-motion .hero-copy h1::before,
  html.has-motion .page-hero h1::before,
  html.has-motion .prose h1::before,
  html.has-motion .prose h2::before,
  html.has-motion .prose h3::before,
  html.has-motion .section-head h2::before,
  html.has-motion .section-head .lede::before,
  html.has-motion .calc-card h2::before,
  html.has-motion .calc-card h3::before,
  html.has-motion .calc-price::before,
  html.has-motion .facts-copy h2::before,
  html.has-motion .faq-grid h2::before,
  html.has-motion .cta-band h2::before,
  html.has-motion .place-card h2::before,
  html.has-motion .process h3::before,
  html.has-motion .tile-body strong::before,
  html.has-motion .index-body strong::before,
  html.has-motion .hero-copy .lead::before,
  html.has-motion .page-hero .lede::before,
  html.has-motion .kicker::before,
  html.has-motion .spec h2::before,
  html.has-motion .faq summary::before {
    transform: scaleX(0);
    opacity: 0.25;
    transition: transform 0.8s var(--ease) 0.16s, opacity 0.55s var(--ease) 0.16s;
  }
  html.has-motion .hero-copy h1.is-in::before,
  html.has-motion .page-hero h1.is-in::before,
  html.has-motion .prose h1.is-in::before,
  html.has-motion .prose h2.is-in::before,
  html.has-motion .prose h3.is-in::before,
  html.has-motion .section-head h2.is-in::before,
  html.has-motion .section-head .lede.is-in::before,
  html.has-motion .faq-grid h2.is-in::before,
  html.has-motion .cta-band h2.is-in::before,
  html.has-motion .hero-copy .lead.is-in::before,
  html.has-motion .page-hero .lede.is-in::before,
  html.has-motion .kicker.is-in::before,
  html.has-motion .spec h2.is-in::before,
  html.has-motion .faq summary.is-in::before,
  html.has-motion .facts-copy h2.is-in::before,
  html.has-motion .is-in.calc-card h2::before,
  html.has-motion .is-in.calc-card h3::before,
  html.has-motion .is-in .calc-price::before,
  html.has-motion .is-in .place-card h2::before,
  html.has-motion .is-in .process h3::before,
  html.has-motion .is-in .tile-body strong::before,
  html.has-motion .is-in .index-body strong::before,
  html.has-motion .is-in.spec h2::before {
    transform: scaleX(1);
    opacity: 1;
  }
  html.has-motion .calc-price.is-flash::before {
    animation: tick-redraw 0.55s var(--ease);
  }

  html.has-motion .accent-word {
    background-size: 0 0.36em;
    transition: background-size 0.9s var(--ease) 0.28s;
  }
  html.has-motion .accent-word-lg { background-size: 0 0.22em; }
  html.has-motion .is-in .accent-word,
  html.has-motion h1.is-in .accent-word,
  html.has-motion h2.is-in .accent-word,
  html.has-motion h3.is-in .accent-word,
  html.has-motion .kicker.is-in .accent-word,
  html.has-motion .facts-figure.is-in .accent-word,
  html.has-motion .lede.is-in .accent-word,
  html.has-motion .lead.is-in .accent-word {
    background-size: 100% 0.36em;
  }
  html.has-motion .is-in .accent-word-lg,
  html.has-motion .facts-figure.is-in .accent-word-lg {
    background-size: 100% 0.22em;
  }
  html.has-motion .jump.fade-text:not(.is-in) a {
    background-size: 0 1px;
  }
  html.has-motion .jump.is-in a {
    background-size: 0.9rem 1px;
    transition-delay: 0.2s;
  }

  html.has-motion .hero-copy h1.is-in { transition-delay: 0.04s; }
  html.has-motion .hero-copy .lead.is-in { transition-delay: 0.12s; }
  html.has-motion .hero-copy .hero-actions.is-in { transition-delay: 0.2s; }
  html.has-motion .hero-photo.fade-obj.is-in { transition-delay: 0.08s; }
  html.has-motion .mosaic .fade-obj.is-in:nth-child(1) { transition-delay: 0.04s; }
  html.has-motion .mosaic .fade-obj.is-in:nth-child(2) { transition-delay: 0.12s; }
  html.has-motion .mosaic .fade-obj.is-in:nth-child(3) { transition-delay: 0.2s; }
  html.has-motion .index-list .fade-obj.is-in:nth-child(1) { transition-delay: 0.04s; }
  html.has-motion .index-list .fade-obj.is-in:nth-child(2) { transition-delay: 0.1s; }
  html.has-motion .index-list .fade-obj.is-in:nth-child(3) { transition-delay: 0.16s; }
  html.has-motion .process .fade-obj.is-in:nth-child(1) { transition-delay: 0.04s; }
  html.has-motion .process .fade-obj.is-in:nth-child(2) { transition-delay: 0.12s; }
  html.has-motion .process .fade-obj.is-in:nth-child(3) { transition-delay: 0.2s; }
}

@keyframes photo-drift {
  from { transform: scale(1); }
  to { transform: scale(1.04) translate(-1.2%, 0.8%); }
}

@keyframes mark-nudge {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

@keyframes tick-redraw {
  from { transform: scaleX(0.15); opacity: 0.4; }
  to { transform: scaleX(1); opacity: 1; }
}

@media print {
  .site-header,
  .mobile-bar,
  .to-top,
  .scroll-progress,
  .nav-toggle,
  .cta-band,
  .cookie-bar,
  .jump { display: none !important; }
  body { background: #fff; }
  .fade-text,
  .fade-obj {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-copy h1::before,
  .page-hero h1::before,
  .section-head h2::before,
  .accent-word {
    transform: none !important;
    background-size: 100% 0.36em !important;
    opacity: 1 !important;
  }
}
