:root {
  /* Barvy z webu atrium.cz (hp-redesign.css :root a styly.css, 2026). */
  --bg: #f4f7fb;
  --bg-2: #eef3fb;
  --ink: #0b1a2b;
  --muted: #5a7a96;
  --lead: #33526e;
  --line: #dde6ef;
  --card: #ffffff;
  --pine: #006cb0;
  --pine-2: #115a9e;
  --pine-deep: #005a96;
  --clay: #006cb0;
  --gold: #d08a1e;
  --akce: #e30613;
  --nova: #9fb734;
  --shadow: 0 8px 24px rgba(16, 45, 80, 0.08);
  --serif: "Nunito Sans", "Segoe UI", sans-serif;
  --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; }

.top {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.top-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 22px 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: end;
}
.eyebrow {
  margin: 0 0 6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--pine);
  font-weight: 700;
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.lede {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--lead);
  border-left: 3px solid var(--pine);
  padding-left: 16px;
}
.stupen { display: grid; gap: 8px; }
.stupen-label { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; font-weight: 700; text-transform: uppercase; }
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 4px;
  gap: 4px;
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
  padding: 10px 8px;
  cursor: pointer;
}
.seg button strong { display: block; font-size: 13px; letter-spacing: 0.04em; font-weight: 800; }
.seg button span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.seg button.is-on { background: var(--pine); color: #fff; }
.seg button.is-on span { color: #dbe6f1; }
.stupen-help { margin: 0; font-size: 13px; color: var(--lead); min-height: 2.6em; }

.layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px;
  display: grid;
  grid-template-columns: 292px 1fr;
  gap: 22px;
  align-items: start;
}
.filters {
  position: sticky;
  top: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 24px);
  overflow: auto;
}
.filters h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
}
.filter-block { margin: 0 0 14px; }
.filter-block h3 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .check {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 13px;
}
.chips button.is-on, .check.is-on {
  background: var(--pine);
  color: #fff;
  border-color: var(--pine);
}
.chips button:disabled,
.check:disabled,
.quick button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  text-decoration: none;
}
.opt-n { font-variant-numeric: tabular-nums; }
.search, .range input, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
}
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick button {
  border: 0;
  background: transparent;
  color: var(--pine-2);
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.quick button.is-on {
  color: var(--pine);
  font-weight: 650;
  text-decoration: none;
}
.reset {
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
}
.checks { display: grid; gap: 6px; }
.check { border-radius: 10px; text-align: left; display: flex; justify-content: space-between; gap: 8px; }
.check em { font-style: normal; color: var(--muted); }
.check.is-on em { color: rgba(255, 255, 255, 0.82); }

.results-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.count { margin: 0; font-size: 15px; }
.count strong { font-family: var(--serif); font-size: 22px; font-weight: 800; color: var(--pine); }
.sort { display: grid; gap: 4px; font-size: 12px; color: var(--muted); min-width: 240px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card.is-compared { outline: 2px solid var(--pine); }
.card-photo {
  aspect-ratio: 16 / 10;
  background: #eaf1f8;
  position: relative;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-nav, .gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pine);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
}
.card-nav.prev, .gallery-nav.prev { left: 8px; }
.card-nav.next, .gallery-nav.next { right: 8px; }
.card-nav:hover, .gallery-nav:hover { background: var(--pine); color: #fff; }
.photo-count, .gallery-cap {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.photo-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  background: rgba(11, 26, 43, 0.72);
  color: #fff;
  border-radius: 4px;
  padding: 2px 6px;
}
.gallery-stage {
  position: relative;
  background: #eaf1f8;
  border-radius: 12px;
  min-height: 280px;
}
.gallery-stage img {
  width: 100%;
  height: min(62vh, 560px);
  object-fit: contain;
  background: #eaf1f8;
  border-radius: 12px;
}
.gallery-cap { margin: 8px 0; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.gallery-thumbs button {
  height: 96px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #eaf1f8;
  cursor: pointer;
  overflow: hidden;
}
.gallery-thumbs button.is-on { border-color: var(--pine); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.is-plan img { object-fit: contain; background: #fff; }
.badges {
  position: absolute;
  left: 8px;
  top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  background: rgba(255, 255, 255, 0.94);
  color: var(--pine-2);
  border-radius: 4px;
  font-weight: 800;
  padding: 3px 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge.akce { background: var(--akce); color: #fff; }
.badge.nova { background: var(--nova); color: var(--ink); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 800; line-height: 1.12; }
.sub { margin: 0; color: var(--muted); font-size: 13px; min-height: 1.3em; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.specs li {
  background: var(--bg);
  border-radius: 8px;
  padding: 3px 7px;
  font-size: 12px;
}
.price { margin-top: auto; }
.price b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--pine); }
.price span { color: var(--muted); font-size: 13px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-actions button, dialog .links button, dialog button.primary, .compare-actions button {
  appearance: none;
  border: 2px solid var(--pine);
  background: var(--pine);
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.card-actions button:hover, dialog .links button:hover, dialog button.primary:hover, .compare-actions button:hover {
  background: var(--pine-deep);
  border-color: var(--pine-deep);
}
.card-actions button.ghost, .compare-actions button.ghost, dialog button.ghost {
  background: #fff;
  color: var(--pine);
  border: 2px solid var(--pine);
}
.card-actions button.ghost:hover, dialog button.ghost:hover {
  background: var(--pine);
  color: #fff;
}
.compare-bar .compare-actions button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}
.compare-bar .compare-actions button.ghost:hover {
  background: #fff;
  color: var(--ink);
}
.empty {
  padding: 32px 8px;
  color: var(--muted);
}

.foot {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 22px 80px;
  color: var(--muted);
  font-size: 13px;
}

.compare-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 24px));
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  z-index: 5;
}
.compare-bar[hidden] { display: none; }
.compare-bar p { margin: 0; }

dialog {
  width: min(980px, calc(100% - 24px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: var(--bg-2);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}
dialog::backdrop { background: rgba(11, 26, 43, 0.55); }
#compare { width: min(1100px, 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-family: var(--serif); font-size: 34px; font-weight: 800; }
.dialog-head p { margin: 4px 0 0; color: var(--muted); }
dialog .x {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.dialog-body { padding: 16px 18px 20px; display: grid; gap: 16px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 12px; }
.hero-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; background: #eaf1f8; }
.plans { display: grid; gap: 8px; }
.plans a { display: block; background: white; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.plans img { object-fit: contain; background: white; max-height: 220px; width: 100%; }
.plans figcaption { padding: 6px 8px; font-size: 12px; color: var(--muted); }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.levels button {
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}
.levels button.is-on { border-color: var(--pine); background: #eaf1f8; }
.levels b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 800; color: var(--pine); }
.levels small { color: var(--muted); }
.spec-grid, .derived {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin: 0;
}
.spec-grid div, .derived div {
  background: white;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--line);
}
.spec-grid dt, .derived span { display: block; font-size: 12px; color: var(--muted); }
.spec-grid dd { margin: 2px 0 0; font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { background: var(--bg-2); color: var(--pine-2); border-radius: 6px; padding: 4px 8px; font-size: 13px; font-weight: 700; }
.note { margin: 0; font-size: 13px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}
table.compare th, table.compare td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
table.compare th { font-family: var(--serif); font-size: 18px; font-weight: 800; }
table.compare td.lbl { color: var(--muted); width: 28%; }
.table-wrap { overflow: auto; padding: 0 18px 18px; }

.guide-launch-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px 0;
}
.guide-launch {
  appearance: none;
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon kicker" "icon title" "icon blurb";
  column-gap: 16px;
  row-gap: 2px;
  align-items: center;
  background: var(--pine);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 20px 24px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.guide-icon { grid-area: icon; display: flex; }
.guide-kicker { grid-area: kicker; }
.guide-launch strong { grid-area: title; }
.guide-blurb { grid-area: blurb; }
.guide-launch:hover { background: var(--pine-deep); }
.guide-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}
.guide-launch strong {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.guide-blurb { max-width: 68ch; font-size: 15px; }
.guide-head { align-items: center; }
.guide-back {
  appearance: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--pine);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--line);
}
.guide-back:hover { background: var(--pine); color: #fff; }
.guide-head-tools { display: flex; align-items: center; gap: 8px; }
.guide-view {
  display: flex;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
  box-shadow: 0 0 0 1px var(--line);
}
.guide-view button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--pine-2);
  border-radius: 4px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.guide-view button.is-on { background: var(--pine); color: #fff; }
#guide {
  width: min(1080px, calc(100% - 24px));
  max-height: calc(100% - 24px);
}
#guide .dialog-body { overflow: auto; }
.guide-progress { display: flex; gap: 6px; }
.guide-progress i {
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: #d5e1ee;
}
.guide-progress i.is-on { background: var(--pine); }
.guide-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.guide-choice {
  appearance: none;
  text-align: left;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  display: grid;
  gap: 6px;
}
.guide-choice.is-on { border-color: var(--pine); background: #eaf1f8; }
.guide-choice:disabled { opacity: 0.4; cursor: not-allowed; }
.guide-choice-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.guide-choice strong { font-size: 18px; font-weight: 800; }
.guide-choice em { font-style: normal; color: var(--pine); font-weight: 800; font-size: 13px; }
.guide-hint { color: var(--muted); font-size: 13px; }
.guide-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.guide-mosaic img, .guide-ph {
  width: 100%;
  height: 58px;
  border-radius: 4px;
  background: #eaf1f8;
}
.guide-mosaic img { object-fit: cover; }
.guide-mosaic img.is-plan { object-fit: contain; background: #fff; }
.guide-nav { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.guide-nav button {
  appearance: none;
  border: 2px solid var(--pine);
  background: var(--pine);
  color: #fff;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}
.guide-nav button.ghost { background: #fff; color: var(--pine); }
.guide-nav button:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: #fff; }
.guide-nav button:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 900px) {
  .top-in, .layout, .hero-grid, .levels { grid-template-columns: 1fr; }
  .guide-head { flex-wrap: wrap; }
  .guide-head-tools { width: 100%; justify-content: space-between; }
  .filters { position: static; max-height: none; }
  .results-bar { align-items: stretch; flex-direction: column; }
  .sort { min-width: 0; }
}
