@import url("fonts.css");
/* Night Library — klidná ink-blue knihovna. Bez gradientů, bez skla, bez neonu. */
:root {
  --bg: #101b2b;
  --bg-deep: #0b1522;
  --panel: #142235;
  --panel-2: #18283d;
  --mist: #ecf3f7;
  --dim: #a9bccc;
  --muted: #8296a8;
  --ice: #83d3e9;
  --line: rgba(236, 243, 247, .14);
  --line-strong: rgba(236, 243, 247, .28);
  --focus: #83d3e9;
  --thumb-bg: #0b1522;
  --thumb-fg: #8296a8;
  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --display: var(--serif);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--mist);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
body.filters-open { background: var(--bg); }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.shell { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: clamp(16px, 4vw, 44px); padding-right: clamp(16px, 4vw, 44px); }

/* masthead */
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner {
  min-height: 76px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding-top: 12px; padding-bottom: 12px;
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-height: 44px; }
.wordmark-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--ice); color: var(--ice);
  font-family: var(--serif); font-size: 20px; line-height: 1;
}
.wordmark-text { font-family: var(--serif); font-size: 21px; letter-spacing: .01em; line-height: 1.05; }
.wordmark-text small {
  display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}
.topnav { display: flex; gap: 24px; margin-left: 12px; flex-wrap: wrap; }
.topnav a {
  min-height: 44px; display: inline-flex; align-items: center;
  font-size: 13.5px; color: var(--dim); text-decoration: none; letter-spacing: .02em;
}
.topnav a:hover { color: var(--ice); text-decoration: underline; }
.masthead-note {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* hero */
.hero { padding-top: clamp(30px, 4vw, 54px); padding-bottom: clamp(26px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ice);
}
.eyebrow-rule { width: 26px; height: 1px; background: var(--ice); display: inline-block; }
.hero h1 {
  margin-top: 14px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.2vw, 68px); line-height: .97; letter-spacing: -.02em;
}
.hero-lede {
  max-width: 540px; margin-top: 18px; color: var(--dim);
  font-size: clamp(15.5px, 1.4vw, 17px); line-height: 1.6;
}
.hero-search { max-width: none; margin-top: 0; }
.search-label {
  display: block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.search-plate { position: relative; }
.search-plate input {
  width: 100%; height: 64px; padding: 0 54px 0 18px;
  background: var(--bg-deep); color: var(--mist);
  border: 1px solid var(--line-strong); border-radius: 2px;
  font-size: 18px; line-height: 1.2;
}
.search-plate input::placeholder { color: #7e93a5; opacity: 1; }
.search-plate input:hover { border-color: rgba(131, 211, 233, .5); }
.search-plate input:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; border-color: transparent; }
.search-key {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); padding: 1px 7px; border-radius: 2px;
}
.search-hint { margin-top: 9px; font-size: 12.5px; color: var(--muted); }

.facts {
  display: flex; flex-wrap: wrap; gap: 0; margin: 26px 0 0;
  border-top: 1px solid var(--line); max-width: none;
}
.facts > div { padding: 12px 20px 0 0; margin-right: 20px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.facts dt {
  order: 2; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-top: 2px;
}
.facts dd {
  order: 1; margin: 0; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--mist);
}
.facts > div { display: flex; flex-direction: column; }
.facts-note { margin-top: 10px; max-width: 520px; color: var(--muted); font-size: 11px; line-height: 1.5; }

/* mobile sticky bar */
.mobilebar {
  display: none; position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line-strong);
  padding: 7px 0;
}
.mobilebar-inner { display: flex; align-items: center; gap: 8px; }
.mobilebar input {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px;
  background: var(--bg-deep); border: 1px solid var(--line-strong);
  border-radius: 2px; color: var(--mist); font-size: 16px;
}
.mobilebar input::placeholder { color: #7e93a5; opacity: 1; }
.filter-trigger {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; min-height: 44px; padding: 0 14px;
  background: transparent; color: var(--ice);
  border: 1px solid var(--ice); border-radius: 2px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.filter-trigger:hover { background: rgba(131, 211, 233, .1); }
.filter-count {
  min-width: 18px; height: 18px; padding: 0 4px; display: inline-grid; place-items: center;
  background: var(--ice); color: var(--bg); border-radius: 9px;
  font-size: 10px; font-weight: 700; letter-spacing: 0;
}
.inline-filter { display: none; }

/* catalog layout */
.catalog {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 60px);
  padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(60px, 8vw, 100px);
}

.rail {
  position: sticky; top: 24px; align-self: start;
  max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line); padding-right: 26px;
}
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.rail-head h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.rail-close { display: none; min-height: 44px; background: none; border: 1px solid var(--line); color: var(--dim); padding: 0 12px; border-radius: 2px; font-size: 12px; }
.rail-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 16px 4px 10px 0; scrollbar-width: thin; scrollbar-color: #3c5269 transparent; }

.filter-group { border: 0; padding: 0; margin: 0 0 24px; }
.filter-group legend, .group-head h3 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--mist); padding: 0;
}
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.group-head h3 { font-size: 10.5px; }
.group-note { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line); padding: 1px 5px; }
.group-help { color: var(--muted); font-size: 11.5px; line-height: 1.45; margin: 4px 0 10px; }

.kind-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 8px; }
.kind-btn {
  min-height: 44px; padding: 0 8px; background: transparent; border: 1px solid var(--line-strong);
  color: var(--dim); font-size: 12px; letter-spacing: .02em;
}
.kind-btn:first-child { border-right: 0; }
.kind-btn:hover { color: var(--ice); border-color: var(--ice); }
.kind-btn[aria-pressed="true"] { background: var(--ice); color: #0b1522; border-color: var(--ice); font-weight: 700; }

.selected-list, .active-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 2px; }
.selected-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); width: 100%; }
.selected-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  padding: 0 10px; background: rgba(131, 211, 233, .08);
  border: 1px solid rgba(131, 211, 233, .45); color: var(--mist);
  font-size: 12px; border-radius: 2px;
}
.selected-chip:hover { background: rgba(131, 211, 233, .16); }
.selected-x { color: var(--ice); font-size: 15px; line-height: 1; }
.selected-clear {
  min-height: 44px; padding: 0 8px; background: none; border: 0; color: var(--muted);
  font-size: 11.5px; text-decoration: underline; text-underline-offset: 3px;
}
.selected-clear:hover { color: var(--ice); }

.tag-search {
  width: 100%; height: 44px; padding: 0 10px; margin: 10px 0 4px;
  background: var(--bg-deep); border: 1px solid var(--line-strong); border-radius: 2px;
  color: var(--mist); font-size: 14px;
}
.tag-search::placeholder { color: #7e93a5; opacity: 1; }
.tag-list { max-height: 38vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3c5269 transparent; }
.tag-list .tag-option { color: var(--dim); }
.tag-list .tag-option:hover { color: var(--mist); background: rgba(236, 243, 247, .04); }
.tag-list .tag-option[aria-pressed="true"] { color: var(--ice); border-bottom-color: var(--ice); }
.tag-empty { color: var(--muted); font-size: 12px; padding: 8px 0; }

.rail-foot { border-top: 1px solid var(--line-strong); padding-top: 12px; margin-top: auto; }
.draft-info { color: var(--muted); font-size: 11.5px; line-height: 1.45; margin-bottom: 8px; }
.apply-btn {
  width: 100%; min-height: 48px; padding: 0 14px;
  background: var(--ice); color: #0b1522; border: 1px solid var(--ice); border-radius: 2px;
  font-weight: 700; font-size: 13.5px; letter-spacing: .02em;
}
.apply-btn:hover { background: #a2e2f2; border-color: #a2e2f2; }
.reset-draft, .reset-all-link {
  width: 100%; min-height: 44px; margin-top: 4px; background: none; border: 0;
  color: var(--muted); font-size: 11.5px; text-decoration: underline; text-underline-offset: 3px;
}
.reset-draft:disabled { opacity: .45; cursor: default; text-decoration: none; }
.reset-draft:not(:disabled):hover, .reset-all-link:hover { color: var(--ice); }

/* results */
.results { min-width: 0; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.results-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.results-head h2:focus-visible { outline-offset: 6px; }
.results-count { margin-top: 4px; font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ice); letter-spacing: .04em; }
.active-line { margin-top: 3px; color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.results-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sort-label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.results-tools select {
  height: 44px; min-height: 44px; padding: 0 34px 0 10px; max-width: 100%;
  background: var(--bg-deep); color: var(--mist); border: 1px solid var(--line-strong);
  border-radius: 2px; font-size: 13px;
}
.active-chips { margin-top: 14px; }
.active-chips:empty { display: none; }

.grid {
  display: grid; gap: clamp(14px, 1.6vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  margin-top: 22px;
}
.game-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; transition: border-color 160ms ease, transform 160ms ease;
}
.game-card:hover, .game-card:focus-within { border-color: rgba(131, 211, 233, .55); }
@media (hover: hover) { .game-card:hover { transform: translateY(-2px); } }
.game-card:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
.card-media { position: relative; display: block; text-decoration: none; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.badge-new { background: var(--ice); color: #0b1522; }
.card-body { padding: 14px 15px 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.card-title { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; overflow-wrap: anywhere; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--ice); text-decoration: underline; }
.card-desc {
  color: var(--dim); font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 2px; }
.card-tag {
  min-height: 32px; padding: 3px 7px; background: transparent;
  border: 1px solid var(--line); color: var(--muted); border-radius: 2px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.25; text-align: left;
}
.card-tag:hover { color: var(--ice); border-color: var(--ice); }
.card-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 6px; }
.card-detail, .card-steam { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; text-decoration: none; }
.card-detail { color: var(--ice); font-weight: 700; letter-spacing: .03em; }
.card-detail:hover { text-decoration: underline; }
.card-steam { color: var(--muted); margin-left: auto; }
.card-steam:hover { color: var(--mist); text-decoration: underline; }

.more-wrap { padding: 34px 0 8px; text-align: center; }
.more-btn {
  min-height: 48px; padding: 0 26px; background: transparent; color: var(--ice);
  border: 1px solid var(--ice); border-radius: 2px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
}
.more-btn:hover { background: rgba(131, 211, 233, .1); }

.empty { border: 1px solid var(--line-strong); padding: clamp(28px, 5vw, 52px); margin-top: 22px; max-width: 640px; }
.empty-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ice); }
.empty h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 32px); margin-top: 8px; line-height: 1.15; }
.empty p { color: var(--dim); margin-top: 8px; line-height: 1.6; overflow-wrap: anywhere; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-primary, .btn-ghost { min-height: 44px; padding: 0 16px; border-radius: 2px; font-size: 13px; }
.btn-primary { background: var(--ice); border: 1px solid var(--ice); color: #0b1522; font-weight: 700; }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--dim); }
.btn-ghost:hover { color: var(--mist); border-color: var(--ice); }

/* explain */
.explain { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(42px, 6vw, 76px) 0; background: var(--bg-deep); }
.explain h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin-top: 16px; max-width: 700px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 34px; }
.steps li { border-top: 1px solid var(--line-strong); padding-top: 16px; min-width: 0; }
.step-no { font-family: var(--mono); font-size: 11px; color: var(--ice); letter-spacing: .1em; }
.steps h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-top: 10px; }
.steps p { color: var(--dim); font-size: 14px; line-height: 1.65; margin-top: 8px; }

/* Registration and voluntary support — same Night Library world. */
.availability-notice { max-width: 65ch; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; line-height: 1.65; }
.availability-notice strong { color: var(--mist); font-weight: 600; }
.availability-notice a, .access-guide a, .support-qr a { color: var(--ice); }
.topnav .support-nav { color: var(--ice); text-decoration: underline; }
#pristup, #podpora { scroll-margin-top: 90px; }
.access-guide { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.access-guide > p { max-width: 75ch; margin-top: 18px; color: var(--dim); line-height: 1.7; }
.access-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; margin-top: 28px; }
.access-modes > div { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.access-modes dt { font-family: var(--serif); font-size: 23px; line-height: 1.35; color: var(--mist); }
.access-modes dt span { display: block; margin-top: 6px; font-family: var(--sans); font-size: 14px; color: var(--dim); }
.access-modes dd { margin: 14px 0 0; color: var(--dim); line-height: 1.7; }
.access-guide .source-note { font-size: 14px; }
.support-section { padding: clamp(38px, 5vw, 68px) 0; border-bottom: 1px solid var(--line); background: var(--panel); }
.support-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(28px, 6vw, 80px); align-items: start; }
.support-copy { min-width: 0; }
.support-copy h2 { font-family: var(--serif); font-size: clamp(29px, 3.5vw, 42px); font-weight: 400; line-height: 1.2; max-width: 22ch; }
.support-copy > p { max-width: 68ch; margin-top: 16px; color: var(--dim); line-height: 1.7; }
.support-copy .support-lead { color: var(--mist); font-size: 17px; }
.support-account { margin-top: 22px; }
.support-account > div { margin-top: 14px; }
.support-account dt { font-size: 13px; color: var(--dim); }
.support-account dd { margin: 4px 0 0; color: var(--mist); overflow-wrap: anywhere; }
.support-account code { font-family: var(--mono); font-size: 16px; }
.support-copy .support-note { font-size: 14px; }
.support-qr { margin: 0; max-width: 240px; }
.support-qr img { display: block; width: 240px; max-width: 100%; height: auto; background: #fff; }
.support-qr figcaption { margin-top: 12px; color: var(--dim); font-size: 13px; line-height: 1.6; }
.support-qr a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 14px; }
@media (max-width: 760px) {
  .access-modes, .support-layout { grid-template-columns: 1fr; gap: 26px; }
  .support-copy .support-lead { font-size: 16px; }
  .access-modes dt { font-size: 21px; }
}

/* footer */
.site-foot { padding: clamp(36px, 5vw, 64px) 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: clamp(24px, 4vw, 56px); }
.foot-brand { font-family: var(--serif); font-size: 24px; }
.foot-brand small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.foot-head { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); margin-bottom: 8px; }
.foot-text { color: var(--muted); font-size: 12.5px; line-height: 1.65; margin-top: 8px; max-width: 460px; }
.foot-links li { margin: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--dim); font-size: 13px; text-decoration: none; }
.foot-links a:hover { color: var(--ice); text-decoration: underline; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 30px; padding-top: 14px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.noscript { padding: 20px; background: #2a1a1a; color: #ffd7d7; text-align: center; }

/* ---------- responsivní ---------- */
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .hero h1 { font-size: clamp(40px, 8vw, 60px); }
  .hero-search { margin-top: 22px; max-width: 720px; }
  .facts { max-width: 720px; }
  .catalog { grid-template-columns: 1fr; }
  .rail {
    position: fixed; z-index: 80; inset: 0 auto 0 0;
    width: min(92vw, 420px);
    height: 100vh; height: 100dvh; max-height: 100dvh;
    background: var(--panel); border-right: 1px solid var(--line-strong);
    padding: 18px 18px max(14px, env(safe-area-inset-bottom)); box-shadow: 12px 0 40px rgba(0, 0, 0, .35);
  }
  .rail[data-open="true"] { display: flex !important; }
  .rail-head h2 { font-size: 24px; }
  .rail-close { display: inline-flex; align-items: center; }
  .rail-scroll { max-height: none; flex: 1 1 auto; min-height: 0; }
  .tag-list { max-height: none; }
  .rail-foot { padding-top: 10px; background: var(--panel); }
  .inline-filter { display: inline-flex; }
  .mobilebar { display: block; }
  .results-head { align-items: flex-start; }
}

@media (min-width: 1121px) {
  .rail[data-open="false"] { display: flex !important; }
  .scrim { display: none !important; }
  .rail-close { display: none; }
}

@media (max-width: 760px) {
  .masthead-inner { min-height: 64px; gap: 12px 18px; }
  .masthead-note { display: none; }
  .topnav { margin-left: auto; gap: 16px; }
  .topnav a { font-size: 12.5px; }
  .hero { padding-top: 30px; }
  .hero h1 { font-size: clamp(38px, 12vw, 56px); }
  .hero-lede { font-size: 15.5px; }
  .search-plate input { height: 56px; font-size: 16px; padding-right: 44px; }
  .search-key { display: none; }
  .facts > div { padding-right: 18px; margin-right: 18px; }
  .facts dd { font-size: 23px; }
  .facts dt { font-size: 8.5px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .foot-bottom { font-size: 9px; }
}

@media (max-width: 480px) {
  .shell { padding-left: 14px; padding-right: 14px; }
  .wordmark-text { font-size: 18px; }
  .wordmark-mark { width: 30px; height: 30px; }
  .topnav a[href="#jak-to-funguje"] { display: none; }
  .hero h1 { font-size: 40px; }
  .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .facts > div { padding: 12px 8px 0 0; margin-right: 0; border-right: 1px solid var(--line); }
  .facts > div + div { padding-left: 10px; }
  .facts dd { font-size: 20px; }
  .facts dt { letter-spacing: .06em; }
  .results-head h2 { font-size: 28px; }
  .results-tools { width: 100%; }
  .results-tools select { flex: 1 1 auto; }
  .grid { grid-template-columns: 1fr; }
  .card-title { font-size: 20px; }
  .card-desc { -webkit-line-clamp: 4; font-size: 13.5px; }
  .empty-actions .btn-primary, .empty-actions .btn-ghost { width: 100%; }
  .foot-bottom { flex-direction: column; gap: 4px; }
}

@media (max-width: 340px) {
  .mobilebar .filter-trigger { padding: 0 10px; font-size: 10px; }
  .masthead-inner { gap: 8px 10px; }
  .topnav { gap: 10px; }
  .topnav a { font-size: 11.5px; }
  .settled { overflow-wrap: anywhere; }
}
