:root {
  --bg: #f4f7fb;
  --bg-2: #eef3fb;
  --ink: #0b1a2b;
  --muted: #5a7a96;
  --lead: #33526e;
  --line: #dde6ef;
  --card: #ffffff;
  --pine: #006cb0;
  --pine-2: #115a9e;
  --pine-deep: #005a96;
  --akce: #e30613;
  --nova: #9fb734;
  --shadow: 0 8px 24px rgba(16, 45, 80, 0.08);
  --sans: "Nunito Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}
button, select, input { font: inherit; color: inherit; }
a { color: var(--pine-2); }
img { max-width: 100%; display: block; }
button { appearance: none; }

.top {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--pine);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.back:hover { background: var(--pine); color: #fff; }
.back[hidden] { display: none; }
.brand { min-width: 0; }
.eyebrow {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  color: var(--pine);
}
.brand h1, .page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cenik { position: relative; }
.cenik-narrow { display: none; }
.cenik-label { display: block; margin: 0 2px 2px; text-align: right; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cenik-current {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: var(--bg-2);
  border-radius: 6px;
  padding: 7px 10px;
  font-weight: 800;
  font-size: 13px;
  color: var(--pine);
  cursor: pointer;
  white-space: nowrap;
}
.cenik-current .chev { transition: transform 0.15s ease; }
.cenik-current[aria-expanded="true"] .chev { transform: rotate(180deg); }
.cenik-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 6;
  display: grid;
  min-width: 100%;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.cenik-menu[hidden] { display: none; }
.cenik-menu button {
  border: 0;
  background: transparent;
  border-radius: 4px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 13px;
  color: var(--pine-2);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.cenik-menu button.is-on { background: var(--pine); color: #fff; }
.seg, .view-switch {
  display: flex;
  background: var(--bg-2);
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}
.seg button, .view-switch button, .text-btn, .primary, .ghost {
  border: 0;
  background: transparent;
  border-radius: 4px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: var(--pine-2);
}
.seg button.is-on, .view-switch button.is-on, .primary {
  background: var(--pine);
  color: #fff;
}
.primary { border-radius: 6px; padding: 9px 14px; }
.primary:hover, .seg button.is-on:hover, .view-switch button.is-on:hover { background: var(--pine-deep); }
.ghost, .text-btn { background: #fff; color: var(--pine); box-shadow: inset 0 0 0 2px var(--pine); border-radius: 6px; }
.ghost:hover, .text-btn:hover { background: var(--pine); color: #fff; }

.progress {
  display: flex;
  gap: 6px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 12px;
}
.progress i { height: 4px; flex: 1; border-radius: 99px; background: #d5e1ee; }
.progress i.is-on { background: var(--pine); }

.stage, .results, .detail {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 22px 64px;
}
.stage h2 {
  margin: 8px 0 6px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.lead { margin: 0 0 18px; color: var(--lead); max-width: 68ch; }
.trail-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 16px;
}
.trail { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; flex: 1; }
.all-filters {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #8aa0b5;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 0;
  cursor: pointer;
  white-space: nowrap;
}
.all-filters:hover, .all-filters.is-on { color: #5a7a96; }
.trail button {
  border: 0;
  background: #fff;
  color: var(--pine-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.trail button:hover { background: var(--pine); color: #fff; }

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.choice {
  text-align: left;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow);
}
.choice:hover { border-color: var(--pine); }
.choice:disabled { opacity: 0.4; cursor: not-allowed; }
.choice-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.choice strong { font-size: 22px; font-weight: 800; }
.choice em { font-style: normal; color: var(--pine); font-weight: 800; font-size: 13px; }
.hint { color: var(--muted); font-size: 14px; }
.choice-price { color: var(--pine); font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mosaic img, .ph {
  width: 100%;
  height: 64px;
  border-radius: 4px;
  background: #eaf1f8;
  object-fit: cover;
}
.mosaic img.is-plan { object-fit: contain; background: #fff; }
.skip-row { margin-top: 16px; }

.results-bar, .detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.count { margin: 0; font-size: 18px; font-weight: 800; }
.count span { font-weight: 600; color: var(--muted); font-size: 14px; }
.bar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sort { display: grid; gap: 2px; font-size: 12px; color: var(--muted); font-weight: 700; }
.sort select { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 8px 10px; font-weight: 700; color: var(--ink); }

.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  display: grid;
  gap: 14px;
}
.filters[hidden] { display: none; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.filter-wide { width: 100%; }
.filter-wide h3,
.filter-grid h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.chips, .checks, .quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .checks button, .quick button {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.chips button.is-on, .checks button.is-on, .quick button.is-on { background: #eaf1f8; border-color: var(--pine); color: var(--pine-2); }
.chips button:disabled, .checks button:disabled, .quick button:disabled { opacity: 0.38; cursor: not-allowed; }
.range { display: flex; gap: 8px; }
.range label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 700; flex: 1; }
.range input, .search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}
.opt-n, .checks em { font-style: normal; color: var(--muted); font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  cursor: pointer;
  width: 100%;
}
.card:hover { border-color: var(--pine); }
.card img { width: 100%; height: 160px; object-fit: cover; background: #eaf1f8; }
.card-body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.card h2 { margin: 0; font-size: 22px; font-weight: 800; }
.meta { margin: 0; color: var(--muted); font-size: 13px; }
.price { margin: 0; color: var(--pine); font-size: 22px; font-weight: 800; }
.empty { color: var(--muted); padding: 24px 0; }

.hero-stage { overflow: hidden; border-radius: 14px; touch-action: pan-y; cursor: grab; }
.hero-stage.is-dragging { cursor: grabbing; }
.hero-track { display: flex; }
.hero-stage.is-dragging .hero-track { transition: none; }
.hero { width: 100%; height: min(62vh, 520px); flex: 0 0 auto; object-fit: contain; background: #eaf1f8; border-radius: 14px; user-select: none; }
.hero-track .hero { border-radius: 0; }
.offer-prices { margin-top: 18px; }
.offer-tiers { display: flex; gap: 8px; }
.offer-tier {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
}
.offer-tier span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; }
.offer-tier b { display: block; margin-top: 2px; color: var(--muted); font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.offer-tier.is-on b { color: var(--pine); }
.offer-tier small { display: block; margin-top: 6px; color: #8aa0b5; font-size: 12px; font-weight: 600; line-height: 1.35; }
.buy-row { display: flex; justify-content: flex-end; margin: 18px 0 0; }
.buy-cta { padding: 12px 16px; font-size: 18px; line-height: 1.15; text-align: left; }
.buy-cta span { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; }
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin: 10px 0 16px;
}
.thumbs button { height: 96px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #eaf1f8; cursor: pointer; overflow: hidden; }
.thumbs button.is-on { border-color: var(--pine); }
.thumbs button.thumb-land {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--pine);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.is-plan img { object-fit: contain; background: #fff; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 0 0 14px; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 800; }
.note { color: var(--muted); font-size: 14px; }
.steps { max-width: 1180px; margin: 0 auto; padding: 8px 22px 72px; }
.steps-toggle {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.steps-toggle span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine);
}
.steps-body { padding-top: 14px; }
.steps-body[hidden] { display: none; }
.step-list { list-style: none; margin: 8px 0 0; padding: 0; }
.step-list li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.step-list span { font-size: 22px; font-weight: 800; color: var(--pine); letter-spacing: -0.03em; }
.step-list h3 { margin: 0 0 4px; font-size: 18px; }
.step-list p { margin: 0; color: var(--lead); font-size: 14px; max-width: 72ch; }
.step-more { margin: 16px 0 0; }

dialog {
  width: min(560px, calc(100% - 24px));
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}
dialog::backdrop { background: rgba(11, 26, 43, 0.55); }
#interest { width: min(680px, calc(100% - 24px)); }
.dialog-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 18px 18px 0; }
.dialog-head h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.dialog-head p { margin: 4px 0 0; color: var(--muted); }
.x {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.sheet-body { display: grid; gap: 12px; padding: 16px 18px 20px; }
.sheet-body[hidden] { display: none; }
.sheet-body label, .ask { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sheet-body input, .sheet-body textarea, .sheet-body select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}
.sheet-body input:disabled { background: #f3f6f9; color: #5c7286; }
.file input { padding: 8px 0; border: 0; }
#land-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; background: #eaf1f8; }
.demo-note { margin: 0; color: var(--muted); font-size: 12px; }
.sheet-body h3 { margin: 0; font-size: 18px; }
.slots { display: grid; gap: 8px; }
.slot-day { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.slot-day strong { min-width: 7.5em; font-size: 13px; }
.slot-day button, .ask-row label {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 6px;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.slot-day button.is-on { background: var(--pine); color: #fff; border-color: var(--pine); }
.ask { border: 0; margin: 0; padding: 0; }
.ask-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-row label { display: flex; align-items: center; gap: 6px; }
.ask-row input { width: auto; }
.land-hint { background: var(--bg); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.land-hint p { margin: 0; color: var(--lead); font-weight: 600; }
.sheet-body .primary, .sheet-body .ghost { justify-self: start; }
.sheet-body .primary:disabled { opacity: 0.45; cursor: not-allowed; }
.foot { max-width: 1180px; margin: 0 auto; padding: 0 22px 40px; color: var(--muted); font-size: 13px; }

@media (max-width: 800px) {
  .top-in { align-items: flex-start; }
  .top-tools { width: 100%; margin-left: 0; justify-content: flex-start; }
  .brand h1 { font-size: 18px; }
  .top.is-compact-cenik .top-in { align-items: center; }
  .top.is-compact-cenik .brand { flex: 1; min-width: 0; }
  .top.is-compact-cenik .brand h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top.is-compact-cenik .top-tools { width: auto; margin-left: auto; flex: 0 0 auto; }
  .top.is-compact-cenik .cenik-wide { display: none; }
  .top.is-compact-cenik .cenik-narrow { display: grid; justify-items: end; }
  .offer-tiers { flex-wrap: wrap; }
  .buy-row { justify-content: stretch; }
  .buy-cta { width: 100%; }
}
