:root {
  --bg: #f3f7f4;
  --bg-card: #fff;
  --ink: #1a2e24;
  --muted: #5a6f64;
  --accent: #1b5e46;
  --accent-light: #2e7d5f;
  --gold: #c9a227;
  --line: #d8e4dc;
  --shadow: 0 8px 24px rgba(27, 94, 70, 0.1);
  --radius: 14px;
  /* Sirka obsahu: na sirokych displejich roste, ale necha misto pro bocni reklamy. */
  --side-ad-gutter: 0px;
  --max: 1180px;
  --tint1: #e5f1ea;
  --tint2: #f0ebe0;
  --soft: #e9f3ee;
  --header-bg: rgba(243, 247, 244, 0.92);
  --hero-1: #1b5e46;
  --hero-2: #2f6b52;
  --btn-bg: #1b5e46;
  --btn-fg: #fff;
  /* Video v uvodnim banneru:
     --hero-video-opacity: pruhlednost videa (0 = neviditelne, 1 = plne)
     --hero-scrim-opacity: sila tmaveho prekryvu pro citelnost textu (0 = zadny, 1 = plny) */
  --hero-video-opacity: 0.8;
  --hero-scrim-opacity: 1;
  /* Video na pozadi cele stranky (0 = neviditelne, 1 = plne). */
  --page-video-opacity: 0.42;
  --page-scrim-opacity: 0.38;
}

html[data-theme="modra"] {
  --bg: #f4f6f9;
  --accent: #1e3a5f;
  --accent-light: #2d5a8a;
  --line: #dde3ea;
  --tint1: #e8eef5;
  --soft: #eef3f8;
  --header-bg: rgba(244, 246, 249, 0.92);
  --hero-1: #1e3a5f;
  --hero-2: #2a4d73;
  --btn-bg: #1e3a5f;
}

html[data-theme="jantar"] {
  --bg: #f9f6f0;
  --accent: #8a5a12;
  --accent-light: #a8741f;
  --line: #e8dfcd;
  --tint1: #f5ecdb;
  --soft: #f4ecdc;
  --header-bg: rgba(249, 246, 240, 0.92);
  --hero-1: #8a5a12;
  --hero-2: #a1701f;
  --btn-bg: #8a5a12;
}

html[data-theme="fialka"] {
  --bg: #f6f5f9;
  --accent: #533b7d;
  --accent-light: #6e529e;
  --line: #e1dcea;
  --tint1: #ece8f4;
  --soft: #efecf6;
  --header-bg: rgba(246, 245, 249, 0.92);
  --hero-1: #533b7d;
  --hero-2: #644990;
  --btn-bg: #533b7d;
}

html[data-theme="bridlice"] {
  --bg: #f4f5f7;
  --accent: #3a4655;
  --accent-light: #53657c;
  --gold: #b0873d;
  --line: #dce0e6;
  --tint1: #e9ecf0;
  --soft: #edf0f3;
  --header-bg: rgba(244, 245, 247, 0.92);
  --hero-1: #3a4655;
  --hero-2: #4d5d70;
  --btn-bg: #3a4655;
}

html[data-theme="tmavy"] {
  --bg: #12161d;
  --bg-card: #1c232e;
  --ink: #e8edf4;
  --muted: #9fadc0;
  --accent: #6fa3d8;
  --accent-light: #8db8e8;
  --gold: #d4b04a;
  --line: #2d3846;
  --tint1: #171f2a;
  --tint2: #1e1b14;
  --soft: #242e3b;
  --header-bg: rgba(18, 22, 29, 0.92);
  --hero-1: #1e3a5f;
  --hero-2: #2a4d73;
  --btn-bg: #6fa3d8;
  --btn-fg: #12161d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, var(--tint1) 0, transparent 30rem),
    radial-gradient(circle at top right, var(--tint2) 0, transparent 24rem),
    var(--bg);
  line-height: 1.6;
}

.page-bg-video,
.page-bg-scrim {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-bg-video {
  z-index: 0;
  object-fit: cover;
  opacity: var(--page-video-opacity);
}

.page-bg-scrim {
  z-index: 1;
  background: var(--bg);
  opacity: var(--page-scrim-opacity);
}

.has-page-video > .site-header,
.has-page-video > main,
.has-page-video > .site-footer {
  position: relative;
  z-index: 2;
}

body:has(.page-bg-video) > .site-header,
body:has(.page-bg-video) > main,
body:has(.page-bg-video) > .site-footer {
  position: relative;
  z-index: 2;
}

.has-page-video main > .section > .wrap,
.has-page-video main.article-page > .wrap,
.has-page-video main.spot-page > .wrap,
.has-page-video main.contact-page > .wrap,
body:has(.page-bg-video) main > .section > .wrap,
body:has(.page-bg-video) main.article-page > .wrap,
body:has(.page-bg-video) main.spot-page > .wrap,
body:has(.page-bg-video) main.contact-page > .wrap {
  padding: 1rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
}

.page-video-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--ink);
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.page-video-toggle[aria-pressed="true"] {
  border-color: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.page-video-toggle:hover {
  border-color: var(--accent-light);
}

@media (prefers-reduced-motion: reduce) {
  .page-bg-video { display: none; }
  .page-bg-scrim { opacity: 1; }
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(100% - 1.5rem, var(--max)); margin: 0 auto; }

/* Sirsi stred podle prohlizece; 2x gutter = misto pro bocni reklamy. */
@media (min-width: 1280px) {
  :root {
    --max: 1280px;
  }
}

@media (min-width: 1500px) {
  :root {
    --side-ad-gutter: 190px;
    --max: min(1400px, calc(100vw - 2 * var(--side-ad-gutter)));
  }
}

@media (min-width: 1700px) {
  :root {
    --side-ad-gutter: 210px;
    --max: min(1520px, calc(100vw - 2 * var(--side-ad-gutter)));
  }
}

@media (min-width: 1920px) {
  :root {
    --side-ad-gutter: 230px;
    --max: min(1600px, calc(100vw - 2 * var(--side-ad-gutter)));
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover { text-decoration: none; }

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  background: transparent;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  margin-left: auto;
}

.nav a {
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--soft);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bars {
  display: grid;
  gap: 5px;
  place-content: center;
  width: 100%;
  height: 100%;
}

.nav-toggle-bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.site-header.is-nav-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header.is-nav-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lang-select,
.theme-select {
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  max-width: 8.25rem;
  flex: 0 0 auto;
}

.lang-select:hover,
.lang-select:focus,
.theme-select:hover,
.theme-select:focus {
  border-color: var(--accent);
  background: var(--soft);
}

#google_translate_element,
.goog-te-banner-frame,
iframe.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-spinner-pos { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

.hero { padding: 1.5rem 0 0.5rem; }

.hero-card {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}

.hero-logo-wrap {
  margin: 0 0 0.85rem;
  line-height: 0;
}

.hero-logo {
  display: block;
  width: min(100%, 420px);
  height: auto;
  border-radius: 12px;
}

.hero-card p {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1rem;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn {
  padding: 0.7rem 1.15rem;
  border: none;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn:hover { text-decoration: none; filter: brightness(1.05); }

.btn-secondary,
a.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover,
a.btn-secondary:hover {
  background: var(--soft);
  filter: none;
}

.btn-on-page {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.section { padding: 1.25rem 0 1.75rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.lead {
  font-size: 1.05rem;
  max-width: 42rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.05rem;
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
  border: 1px solid var(--line);
}

.step h3 { margin: 0 0 0.2rem; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.req-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.req-list li { margin: 0.35rem 0; }

.docs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.docs-list a {
  display: block;
  padding: 0.75rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.docs-list a:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
}

.contact-box p { margin: 0 0 0.5rem; color: var(--muted); }
.contact-box p:last-child { margin-bottom: 0; }

/* ---- Spotove ceny ---- */
.spot-page {
  padding: 1.5rem 0 2.5rem;
}

.spot-heading {
  margin-bottom: 1rem;
}

.spot-heading h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
}

.spot-heading p {
  margin: 0;
  color: var(--muted);
}

.spot-kicker {
  color: var(--accent) !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spot-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.spot-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.spot-filter-form label {
  font-weight: 700;
}

.spot-filter-form input[type="date"],
.spot-filter-form select {
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--bg);
  font: inherit;
}

.spot-filter-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231b5e46' d='M1.1 1.1L6 6l4.9-4.9 1.1 1.1L6 8.2.0 2.2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 8px;
  cursor: pointer;
}

.spot-filter-form select:focus,
.spot-filter-form input[type="date"]:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.spot-today-link {
  padding: 0.45rem 0.3rem;
  font-size: 0.9rem;
}

.spot-month-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: var(--soft);
  font-size: 0.9rem;
}

.spot-month-nav a {
  color: var(--accent-light);
  text-decoration: none;
}

.spot-month-nav a:hover {
  text-decoration: underline;
}

.spot-chart-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.85rem 0 0.35rem;
  padding: 0.45rem 0.35rem;
}

.spot-chart-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--accent-light);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.spot-chart-nav__btn:hover {
  background: var(--panel);
  border-color: var(--accent-light);
  text-decoration: none;
}

.spot-chart-nav__label {
  flex: 1;
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.spot-chart-nav__txt {
  display: inline;
}

@media (max-width: 640px) {
  .spot-chart-nav__txt {
    display: none;
  }

  .spot-chart-nav__btn {
    min-width: 2.6rem;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    font-size: 1.15rem;
  }
}

.spot-compare-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.spot-stat-card--kurz {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.05rem 0.95rem;
  border: 3px solid color-mix(in srgb, var(--gold) 85%, var(--accent));
  border-radius: 14px;
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--gold) 32%, var(--bg-card)) 0%,
    color-mix(in srgb, var(--accent) 16%, var(--bg-card)) 48%,
    color-mix(in srgb, var(--gold) 18%, var(--bg-card)) 100%
  );
  box-shadow:
    0 8px 24px color-mix(in srgb, var(--gold) 28%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent);
}

.spot-stat-card--kurz::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--gold) 45%, var(--accent-light));
}

.spot-stat-card--kurz .spot-stat-card__title {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.spot-stat-card--kurz .spot-stat-card__meta {
  color: color-mix(in srgb, var(--accent) 55%, var(--muted));
  font-weight: 600;
}

.spot-stat-card__kurz {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.spot-stat-card__kurz strong {
  color: var(--accent);
  font-size: 1.55rem;
  text-shadow: 0 1px 0 color-mix(in srgb, #fff 40%, transparent);
}

.spot-stat-card__kurz-note {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.spot-label--kurz {
  background: color-mix(in srgb, var(--gold) 52%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--gold) 75%, var(--accent));
  color: color-mix(in srgb, var(--accent) 85%, #000);
  font-weight: 800;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--gold) 25%, transparent);
}

.spot-stat-card {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.spot-stat-card--active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-card));
}

.spot-stat-card__title {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
}

.spot-stat-card__meta {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.spot-stat-card__avg {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.spot-stat-card__avg span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.spot-stat-card__range {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}

.spot-val--min {
  color: #1b7a4a;
  font-weight: 700;
}

.spot-val--max {
  color: #c94b4b;
  font-weight: 700;
}

.spot-range-sep {
  color: var(--muted);
  font-weight: 500;
}

.spot-unit {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.74rem;
}

.spot-label {
  display: inline-block;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
  line-height: 1.3;
}

.spot-label--avg {
  background: color-mix(in srgb, var(--accent) 16%, var(--soft));
  color: var(--accent);
}

.spot-label--min {
  background: #e3f3e9;
  color: #1b7a4a;
}

.spot-label--max {
  background: #fde2e2;
  color: #c94b4b;
}

.spot-stats-legend {
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  font-size: 0.82rem;
  color: var(--muted);
}

.spot-stats-legend strong {
  color: var(--ink);
}

.spot-stats-legend ul {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.spot-stats-legend__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.spot-stats-legend__more {
  display: grid;
  gap: 0.3rem;
}

.spot-stats-legend li {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.spot-stat-card__change {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
}

.spot-change {
  font-weight: 700;
}

.spot-change--up { color: #c94b4b; }
.spot-change--down { color: #2e7d5f; }
.spot-change--flat { color: var(--muted); }
.spot-change--na { color: var(--muted); }

html[data-theme="tmavy"] .spot-label--min,
html[data-theme="tmavy"] .spot-val--min { color: #7dcea0; }
html[data-theme="tmavy"] .spot-label--min { background: #203b31; }
html[data-theme="tmavy"] .spot-label--max,
html[data-theme="tmavy"] .spot-val--max { color: #f1948a; }
html[data-theme="tmavy"] .spot-label--max { background: #45272b; }

.spot-chart {
  width: 100%;
  height: 390px;
  margin: 0.5rem 0 1rem;
}

.spot-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.spot-legend span {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.spot-legend .low,
.price-low { background: #e3f3e9; }
.spot-legend .medium,
.price-medium { background: #fff1c7; }
.spot-legend .high,
.price-high { background: #fde2e2; }

.spot-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.spot-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.spot-table th,
.spot-table td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.spot-table--compact th,
.spot-table--compact td {
  padding: 0.28rem 0.55rem;
  font-size: 0.8rem;
  line-height: 1.25;
}

.spot-table--month th,
.spot-table--month td {
  padding: 0.42rem 0.65rem;
  font-size: 0.84rem;
}

.spot-table th {
  color: var(--muted);
  background: var(--soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.spot-table th:first-child,
.spot-table td:first-child,
.spot-table th:last-child,
.spot-table td:last-child {
  text-align: left;
}

.spot-table th small,
.spot-table td small {
  display: inline;
  margin-left: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.spot-table--compact th small,
.spot-table--compact td small {
  font-size: 0.68rem;
}

.spot-table tbody tr:last-child td {
  border-bottom: none;
}

.spot-table tbody tr:hover {
  filter: brightness(0.97);
}

.spot-current-hour {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.spot-table tbody tr.spot-row-selected {
  outline: 2px solid #1a5c9e;
  outline-offset: -2px;
  box-shadow: inset 4px 0 0 #1a5c9e;
  background: rgba(26, 92, 158, 0.12);
  filter: none;
}

html[data-theme="tmavy"] .spot-table tbody tr.spot-row-selected {
  background: rgba(90, 160, 230, 0.18);
  outline-color: #7eb6e8;
  box-shadow: inset 4px 0 0 #7eb6e8;
}

.spot-level {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

html[data-theme="tmavy"] .price-low,
html[data-theme="tmavy"] .spot-legend .low { background: #203b31; }
html[data-theme="tmavy"] .price-medium,
html[data-theme="tmavy"] .spot-legend .medium { background: #44391d; }
html[data-theme="tmavy"] .price-high,
html[data-theme="tmavy"] .spot-legend .high { background: #45272b; }

.spot-ote-box {
  margin-top: 1.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.spot-ote-box h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.spot-ote-box p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.spot-ote-box__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin-bottom: 0 !important;
}

.spot-ote-box__links a {
  font-size: 0.9rem;
}

/* ---- Info stranky (OTE apod.) ---- */
.info-page {
  padding: 0 0 2.5rem;
}

.info-page .info-hero {
  padding-top: 1.25rem;
  padding-bottom: 0.35rem;
}

.info-page .info-hero .offer-banner {
  margin-bottom: 0.85rem;
}

.info-heading {
  margin-bottom: 1.15rem;
}

.info-heading h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
}

.info-heading p {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
}

.info-card {
  margin-bottom: 0.85rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.info-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.info-card p {
  margin: 0 0 0.75rem;
  color: var(--ink);
  line-height: 1.65;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-list,
.info-timeline {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  color: var(--ink);
  line-height: 1.65;
}

.info-list li,
.info-timeline li {
  margin-bottom: 0.35rem;
}

.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem !important;
}

.info-card--note {
  background: var(--soft);
}

.info-footnote {
  margin-top: 0.75rem !important;
  color: var(--muted) !important;
  font-size: 0.88rem;
}

/* ---- Kontakt ---- */
.contact-page {
  padding: 1.5rem 0 2.5rem;
}

.contact-heading {
  margin-bottom: 1.2rem;
}

.contact-heading h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
}

.contact-heading p {
  margin: 0;
  color: var(--muted);
}

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

.contact-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
}

.contact-card address {
  color: var(--ink);
  font-style: normal;
  line-height: 1.7;
}

.contact-ico {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: grid;
  gap: 0.05rem;
}

.contact-list span {
  color: var(--muted);
  font-size: 0.78rem;
}

.contact-list a {
  font-weight: 650;
}

.contact-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.contact-offer h2 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}

.contact-offer p {
  margin: 0;
  color: var(--muted);
}

.contact-offer .btn {
  flex: 0 0 auto;
}

.site-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 1.5rem 0 2rem;
}

.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 28%, transparent);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent-light);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 2fr 0.8fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li { margin: 0.28rem 0; }
.footer-list a { color: var(--ink); font-size: 0.9rem; }

.footer-guide-list {
  columns: 2;
  column-gap: 1.25rem;
}

.footer-guide-list li {
  break-inside: avoid;
  margin: 0 0 0.45rem;
  line-height: 1.35;
}

.footer-guide-list a {
  font-size: 0.78rem;
}

.footer-copy {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-domains {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.9;
  word-break: break-word;
}

.footer-domains a {
  color: var(--muted);
}

.footer-domains a:hover {
  color: var(--accent);
}

.footer-copy .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.footer-copy .links a { color: var(--muted); }

/* ---- Clanky ---- */
.article-page {
  padding: 1.25rem 0 2.5rem;
}

.article-back {
  margin: 0 0 0.85rem;
}

.article-back a {
  color: var(--muted);
  font-size: 0.92rem;
}

.article-back a:hover { color: var(--accent); }

.article {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.6rem;
}

.article-header {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.article-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 0.78rem;
}

.article-header h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
}

.article-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.7;
}

.article-body > *:first-child { margin-top: 0; }

.article-body h2 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.3rem;
  line-height: 1.3;
}

.article-body h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.1rem;
}

.article-body p { margin: 0 0 0.9rem; }

.article-body ul,
.article-body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.article-body li { margin: 0.3rem 0; }

.article-body a { color: var(--accent-light); }

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 0.5rem 0 1rem;
}

.article-body pre,
.article-body code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}

.article-body code {
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.article-body pre {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  line-height: 1.45;
}

.article-body pre code {
  padding: 0;
  border: none;
  background: none;
}

.article-body blockquote {
  margin: 0 0 1rem;
  padding: 0.65rem 0 0.65rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
  text-align: left;
}

.article-body th {
  background: var(--soft);
  font-weight: 700;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}

/* Diskuze pod clankem */
.diskuze {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.diskuze-title {
  margin: 0 0 0.9rem;
  font-size: 1.25rem;
}

.diskuze-ok,
.diskuze-err {
  margin: 0 0 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

.diskuze-ok {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--soft);
}

.diskuze-err {
  border: 1px solid #c0392b;
  color: #c0392b;
  background: rgba(192, 57, 43, 0.07);
}

.diskuze-empty {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.diskuze-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.diskuze-item {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.diskuze-item + .diskuze-item { margin-top: 0.6rem; }

.diskuze-meta {
  margin: 0 0 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}

.diskuze-autor { font-size: 0.95rem; }

.diskuze-datum {
  color: var(--muted);
  font-size: 0.8rem;
}

.diskuze-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.diskuze-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.diskuze-form {
  position: relative;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.diskuze-form-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.diskuze-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.diskuze-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.diskuze-form-full { grid-column: 1 / -1; }

.diskuze-form-grid input,
.diskuze-form-grid textarea {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.diskuze-form-grid input:focus,
.diskuze-form-grid textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.diskuze-form-grid textarea {
  resize: vertical;
  min-height: 7rem;
}

.diskuze-form-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.diskuze-note {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .diskuze-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .feature-grid,
  .docs-list,
  .footer-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .footer-guide-list { columns: 1; }
  .spot-card { padding: 0.9rem; }
  .spot-chart { height: 320px; }
  .spot-compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spot-stat-card--kurz { grid-column: 1 / -1; }
  .contact-offer { align-items: flex-start; flex-direction: column; }

  .article { padding: 1.05rem 1rem 1.25rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-grid; margin-left: auto; }

  .lang-select,
  .theme-select {
    order: 3;
    max-width: none;
    flex: 1 1 auto;
  }

  .theme-select { margin-left: 0; }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    margin: 0.35rem 0 0;
    order: 4;
  }

  .site-header.is-nav-open .nav { display: flex; }

  .nav a {
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
  }
}

/* ---- Homepage expo (ai-expo styl) ---- */
.hero--expo { padding: 1.75rem 0 0.75rem; }

.hero-card--expo {
  padding: 1.75rem 1.5rem 1.5rem;
}

/* Hero s videem na pozadi */
.hero-card--video {
  position: relative;
  overflow: hidden;
  border: none;
  background: var(--hero-1); /* fallback nez se video nacte */
  color: #fff;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: var(--hero-video-opacity);
}

.hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: var(--hero-scrim-opacity);
  background: linear-gradient(
    100deg,
    rgba(8, 18, 13, 0.78) 0%,
    rgba(8, 18, 13, 0.62) 45%,
    rgba(8, 18, 13, 0.42) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero-card--video p,
.hero-card--video .hero-lead {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero-card--video .hero-sub {
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero-card--video .btn-secondary,
.hero-card--video a.btn-secondary {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-card--video .btn-secondary:hover,
.hero-card--video a.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.5);
}

.hero-card--video .hero-chips li {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  max-width: 46rem;
  margin: 0 0 0.75rem !important;
}

.hero-sub {
  margin: 0 0 1.1rem !important;
  color: var(--muted) !important;
  max-width: 40rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.hero-chips li {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.section--offer {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.offer-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem);
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--bg-card)) 0%, var(--bg-card) 55%, color-mix(in srgb, var(--accent-light) 10%, var(--bg-card)) 100%);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--accent) 12%, transparent);
}

.offer-banner__glow,
.offer-banner__pulse {
  position: absolute;
  pointer-events: none;
}

.offer-banner__glow {
  inset: -40% -20%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    color-mix(in srgb, var(--accent) 22%, transparent) 70deg,
    transparent 140deg,
    color-mix(in srgb, var(--accent-light) 18%, transparent) 220deg,
    transparent 300deg
  );
  opacity: 0.55;
  animation: offer-glow-spin 18s linear infinite;
}

.offer-banner__pulse {
  top: -30%;
  right: -8%;
  width: min(42vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent) 0%, transparent 68%);
  animation: offer-pulse 4.5s ease-in-out infinite;
}

.offer-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.offer-banner__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.offer-banner h2,
.offer-banner h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  line-height: 1.25;
  max-width: 40rem;
}

.offer-banner__lead {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 44rem;
  line-height: 1.55;
}

.offer-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.offer-banner__ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-banner__ticks li {
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--bg-card) 82%, var(--accent) 18%);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  animation: offer-tick-in 0.7s ease both;
  animation-delay: calc(var(--offer-i, 0) * 80ms + 120ms);
}

.offer-banner__ticks li:nth-child(1) { --offer-i: 0; }
.offer-banner__ticks li:nth-child(2) { --offer-i: 1; }
.offer-banner__ticks li:nth-child(3) { --offer-i: 2; }
.offer-banner__ticks li:nth-child(4) { --offer-i: 3; }
.offer-banner__ticks li:nth-child(5) { --offer-i: 4; }
.offer-banner__ticks li:nth-child(6) { --offer-i: 5; }

@keyframes offer-glow-spin {
  to { transform: rotate(360deg); }
}

@keyframes offer-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.45; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes offer-tick-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.offer-head {
  margin-top: 0.25rem;
}

.offer-deck {
  position: relative;
  margin-top: 0.35rem;
}

.offer-deck__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, var(--bg-card)) 0%, var(--bg-card) 48%, color-mix(in srgb, var(--accent-light) 8%, var(--bg-card)) 100%);
  box-shadow: 0 22px 56px color-mix(in srgb, var(--accent) 14%, transparent);
  min-height: clamp(24rem, 48vh, 32rem);
}

.offer-deck__track {
  position: relative;
  min-height: inherit;
}

.offer-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1.5rem, 5vw, 3.5rem);
  opacity: 0;
  visibility: hidden;
  transform: translateX(36px) scale(0.985);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    visibility 0.55s;
  pointer-events: none;
}

.offer-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.offer-slide__inner {
  width: 100%;
  max-width: 52rem;
}

.offer-slide__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.offer-slide__num {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, var(--soft));
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
}

.offer-slide__cat {
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: lowercase;
}

.offer-slide__title {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 44rem;
}

.offer-slide.is-active.is-animated .offer-slide__meta {
  animation: offer-part-in 0.5s ease both;
}

.offer-slide.is-active.is-animated .offer-slide__title {
  animation: offer-part-in 0.55s ease both 0.08s;
}

.offer-slide__text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.65;
  max-width: 46rem;
}

.offer-slide.is-active.is-animated .offer-slide__text {
  animation: offer-part-in 0.55s ease both 0.16s;
}

@keyframes offer-part-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.offer-slide__bullets {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  max-width: 44rem;
}

.offer-slide__bullets li {
  position: relative;
  overflow: hidden;
  padding: 0.55rem 0.85rem 0.55rem 2.15rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--bg-card) 88%, var(--accent) 12%);
  color: var(--ink);
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  line-height: 1.45;
  opacity: 0;
  transform: translateX(-18px);
}

.offer-slide.is-active.is-animated .offer-slide__bullets li {
  animation: offer-bullet-in 0.55s ease forwards;
}

.offer-slide.is-active.is-animated .offer-slide__bullets li:nth-child(1) {
  animation-delay: 0.28s;
}

.offer-slide.is-active.is-animated .offer-slide__bullets li:nth-child(2) {
  animation-delay: 0.44s;
}

.offer-slide.is-active.is-animated .offer-slide__bullets li:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes offer-bullet-in {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.offer-slide__bullets li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.offer-slide.is-active.is-animated .offer-slide__bullets li::before {
  animation: offer-bullet-dot 1.9s ease-in-out infinite;
}

.offer-slide.is-active.is-animated .offer-slide__bullets li:nth-child(2)::before {
  animation-delay: 0.35s;
}

.offer-slide.is-active.is-animated .offer-slide__bullets li:nth-child(3)::before {
  animation-delay: 0.7s;
}

@keyframes offer-bullet-dot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 32%, transparent);
  }
}

.offer-slide__bullets li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 28%,
    color-mix(in srgb, var(--accent) 16%, transparent) 46%,
    color-mix(in srgb, #fff 22%, transparent) 50%,
    color-mix(in srgb, var(--accent) 16%, transparent) 54%,
    transparent 72%
  );
  transform: translateX(-130%);
  pointer-events: none;
  opacity: 0;
}

.offer-slide.is-active.is-animated .offer-slide__bullets li::after {
  animation: offer-bullet-shine 3.2s ease-in-out infinite;
}

.offer-slide.is-active.is-animated .offer-slide__bullets li:nth-child(1)::after {
  animation-delay: 0.9s;
}

.offer-slide.is-active.is-animated .offer-slide__bullets li:nth-child(2)::after {
  animation-delay: 1.5s;
}

.offer-slide.is-active.is-animated .offer-slide__bullets li:nth-child(3)::after {
  animation-delay: 2.1s;
}

@keyframes offer-bullet-shine {
  0%, 72%, 100% {
    transform: translateX(-130%);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  38% {
    transform: translateX(130%);
    opacity: 0;
  }
}

.offer-deck__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.offer-deck__nav {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--accent);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.offer-deck__nav:hover {
  background: var(--soft);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.offer-deck__nav:active {
  transform: scale(0.96);
}

.offer-deck__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  min-width: 4rem;
}

.offer-deck__dot {
  width: 0.72rem;
  height: 0.72rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, var(--line));
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.offer-deck__dot.is-active {
  width: 1.65rem;
  background: var(--accent);
}

.offer-deck__hint {
  margin: 0.55rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.section--tight { padding-top: 0.75rem; }

.section-head--expo {
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.chapters.timeline {
  position: relative;
  display: block;
  padding: 0.75rem 0 2rem;
  overflow-x: clip;
  /* dovoli stinum karet presahnout okraj bez orezu (kde je podporovano) */
  overflow-clip-margin: 40px;
}

.chapters.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.5rem;
  bottom: 1.5rem;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    var(--line) 8%,
    var(--accent) 50%,
    var(--line) 92%,
    transparent
  );
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
}

.chapter {
  --timeline-gap: 1.75rem;
  position: relative;
  display: block;
  width: calc(50% - var(--timeline-gap));
  max-width: calc(50% - var(--timeline-gap));
  margin-bottom: clamp(3rem, 8vh, 5.5rem);
  background: transparent;
  border: none;
  padding: 0;
  opacity: 0;
  z-index: 1;
  will-change: transform, opacity;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--slide-i, 0) * 80ms);
}

.chapter--left {
  margin-right: auto;
  margin-left: 0;
  transform: translate3d(-90px, 12px, 0);
}

.chapter--right {
  margin-left: auto;
  margin-right: 0;
  transform: translate3d(90px, 12px, 0);
}

.chapter.is-visible {
  opacity: 1;
  /* transform: none + will-change: auto uvolni GPU vrstvu — jinak se na
     zlomkovem skalovani displeje (125 %) obcas ztraci 1px ramecek karet */
  transform: none;
  will-change: auto;
}

.chapter-dot {
  --dot-shift: 0;
  position: absolute;
  top: 1.7rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent), 0 0 10px color-mix(in srgb, var(--accent) 35%, transparent);
  z-index: 3;
  pointer-events: none;
  transform: translateX(var(--dot-shift));
  animation: timeline-dot-blink var(--dot-dur, 1.7s) ease-in-out infinite;
  animation-delay: var(--dot-delay, 0s);
}

/* bod na stredove lince, mimo box */
.chapter--left .chapter-dot {
  right: calc(var(--timeline-gap) * -1);
  --dot-shift: 50%;
}

.chapter--right .chapter-dot {
  left: calc(var(--timeline-gap) * -1);
  --dot-shift: -50%;
}

@keyframes timeline-dot-blink {
  0%,
  100% {
    transform: translateX(var(--dot-shift)) scale(1);
    opacity: 1;
    box-shadow:
      0 0 0 2px var(--accent),
      0 0 8px color-mix(in srgb, var(--accent) 28%, transparent);
  }
  50% {
    transform: translateX(var(--dot-shift)) scale(1.32);
    opacity: 0.82;
    box-shadow:
      0 0 0 2px var(--accent),
      0 0 0 11px color-mix(in srgb, var(--accent) 16%, transparent),
      0 0 24px color-mix(in srgb, var(--accent) 48%, transparent);
  }
}

.chapter-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--line);
  /* pojistka: inset stin kopiruje ramecek zevnitr, nic nepresahuje ven,
     takze ho overflow clip casove osy nikdy neorizne */
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 16px;
  padding: 1.45rem 1.55rem 1.5rem;
  min-height: 9.5rem;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.chapter.is-visible:hover .chapter-card {
  border-color: var(--accent);
  background: var(--soft);
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 14px 36px color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(-4px);
}

.chapter-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.65rem;
}

.chapter-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--hero-2));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
}

.chapter-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.chapter-cat {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.chapter-body h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.3;
}

.chapter-body p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.chapter-link {
  margin: 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}

.chapter-link a {
  font-weight: 700;
  color: var(--accent-light);
  text-decoration: none;
}

.chapter-link a:hover { text-decoration: underline; }

.chapter-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.chapter-kw {
  display: inline;
  border-radius: 0.25em;
  padding: 0.04em 0.22em;
  margin: 0 -0.04em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    text-shadow 0.28s ease;
}

a.chapter-kw:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chapter:hover .chapter-kw {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition-delay: calc(var(--kw-i, 0) * 60ms);
}

.chapter:hover .chapter-kw--a {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent),
    0 3px 12px color-mix(in srgb, var(--accent) 30%, transparent);
}

.chapter:hover .chapter-kw--b {
  background: linear-gradient(135deg, var(--hero-2), var(--accent));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--hero-2) 45%, transparent),
    0 3px 12px color-mix(in srgb, var(--accent) 28%, transparent);
}

.article-index {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.article-index li {
  display: inline-flex;
  align-items: baseline;
}

.article-index li + li::before {
  content: "•";
  margin: 0 0.6rem;
  color: var(--muted);
  opacity: 0.55;
}

.article-index a {
  color: var(--accent-light);
  font-weight: 400;
}

.home-alert,
.home-empty {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
}

@media (max-width: 820px) {
  .offer-deck__viewport {
    min-height: clamp(20rem, 52vh, 26rem);
  }

  .offer-slide {
    padding: 1.35rem 1.2rem 1.5rem;
  }

  .offer-banner__pulse {
    width: min(56vw, 220px);
    right: -18%;
  }

  .chapters.timeline::before {
    left: 14px;
    transform: none;
  }

  .chapter,
  .chapter--left,
  .chapter--right {
    --timeline-gap: 1.25rem;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 2.35rem;
    transform: translate3d(-56px, 10px, 0);
  }

  .chapter.is-visible,
  .chapter--left.is-visible,
  .chapter--right.is-visible {
    transform: none;
  }

  .chapter-dot,
  .chapter--left .chapter-dot,
  .chapter--right .chapter-dot {
    left: 14px;
    right: auto;
    --dot-shift: -50%;
  }

  .chapter-card {
    padding: 1.25rem 1.2rem 1.3rem;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-banner__glow,
  .offer-banner__pulse,
  .offer-banner__ticks li,
  .offer-slide {
    animation: none !important;
  }

  .offer-slide {
    transition: none !important;
  }

  .offer-slide.is-active .offer-slide__bullets li {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .offer-slide__bullets li::before,
  .offer-slide__bullets li::after {
    animation: none !important;
  }

  .chapter,
  .chapter--left,
  .chapter--right {
    opacity: 1;
    transform: none !important;
    transition: none;
  }

  .chapter-dot,
  .chapter.is-visible .chapter-dot {
    animation: none !important;
  }
}
