/* ============================================================
   RADIO GROUP · DIGITÁLNY DIZAJN SYSTÉM · ds.css
   Doplnkové štýly katalógovej stránky /v2/design-system.html.
   Všetky farby čítajú výhradne CSS premenné zo styles.css,
   téma sa prepína atribútom data-brand na <html>.
   Nové triedy majú prefix .ds- a nekolidujú so styles.css.
   ============================================================ */

/* kotvy pod sticky hlavičkou */
.ds [id] { scroll-margin-top: 150px; }

/* ---------- 1) HLAVIČKA (sticky glass) ---------- */
.ds-top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.ds-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 0 9px;
}
.ds-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ds-title-mark {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--brand);
  color: var(--on-brand);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  transition: background .3s var(--ease);
}
.ds-title strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  font-size: .98rem;
  line-height: 1.15;
}
.ds-title .small { display: block; font-size: .72rem; line-height: 1.3; }

.ds-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.ds-swbtn {
  padding: 8px 15px;
  border-radius: var(--r-pill);
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.ds-swbtn:hover { color: var(--ink); background: var(--brand-soft); }
.ds-swbtn.active { background: var(--brand); color: var(--on-brand); }

.ds-subnav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.ds-subnav::-webkit-scrollbar { display: none; }
.ds-subnav a {
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.ds-subnav a:hover { color: var(--ink); background: var(--brand-soft); }

/* ---------- 2) INTRO ---------- */
.ds-intro .eyebrow { margin-bottom: 14px; }
.ds-intro h1 { margin-bottom: 16px; max-width: 14em; }
.ds-intro .lead { max-width: 42em; }

/* ---------- 3) VŠEOBECNÉ BLOKY ---------- */
.ds-stack { display: flex; flex-direction: column; gap: 18px; }

.ds-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.ds-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ds-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.ds-card p { color: var(--muted); font-size: .92rem; }

.ds-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 30px);
}
.ds-panel > .eyebrow { margin-bottom: 16px; }

.ds-comprow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ds-comprow + .eyebrow { display: inline-block; margin-top: 26px; margin-bottom: 14px; }

.ds-note { font-size: .82rem; color: var(--muted); max-width: 46em; }

.ds-list { display: flex; flex-direction: column; gap: 9px; }
.ds-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: .92rem;
}
.ds-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.ds-list strong { color: var(--ink); }

/* tabuľky */
.ds-tablewrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.ds-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.ds-table th {
  text-align: left;
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ds-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink);
}
.ds-table td.ds-td-muted { color: var(--muted); }
.ds-table tr:last-child td { border-bottom: 0; }
.ds-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* ---------- 4) ZNAČKY ---------- */
.ds-brandcard-logo { min-height: 46px; display: flex; align-items: center; }
.ds-brandcard-logo img { height: 40px; width: auto; }
.ds-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 1.4rem;
  color: var(--ink);
}
.ds-chipcolors { display: flex; gap: 6px; }
.ds-chipcolor {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(22, 20, 31, .08);
}
.ds-brandclaim { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.ds-card .link { margin-top: auto; }

/* ---------- 5) FARBY ---------- */
.ds-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}
.ds-swatch {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px;
}
.ds-swatch-chip {
  display: block;
  height: 64px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.ds-swatch-name {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .73rem;
  font-weight: 600;
  color: var(--ink);
}
.ds-swatch-hex {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .71rem;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
}

/* ---------- 6) TYPOGRAFIA ---------- */
.ds-typo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 30px); }
.ds-typo-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.ds-typo-row:first-child { padding-top: 4px; }
.ds-typo-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.ds-typo-meta { font-size: .75rem; color: var(--muted); font-weight: 500; line-height: 1.45; }

.ds-t {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.06;
  overflow-wrap: break-word;
}
.ds-t-64 { font-size: 64px; line-height: 1.02; }
.ds-t-48 { font-size: 48px; line-height: 1.02; }
.ds-t-36 { font-size: 36px; }
.ds-t-28 { font-size: 28px; }
.ds-t-24 { font-size: 24px; font-weight: 600; }
.ds-t-20 { font-size: 20px; font-weight: 600; }
.ds-t-body { font-family: var(--font-body); font-size: 16px; font-weight: 400; line-height: 1.55; letter-spacing: 0; max-width: 46em; }
.ds-t-small { font-family: var(--font-body); font-size: 13.6px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--muted); max-width: 50em; }
.ds-t-micro {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 7) TVARY A ELEVÁCIA ---------- */
.ds-shape-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ds-radius {
  width: 138px;
  height: 96px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.ds-radius--xl { border-radius: var(--r-xl); }
.ds-radius--lg { border-radius: var(--r-lg); }
.ds-radius--md { border-radius: var(--r-md); }
.ds-radius--pill { border-radius: var(--r-pill); height: 54px; }

.ds-shadowbox {
  width: 176px;
  height: 112px;
  background: var(--surface);
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.ds-shadowbox--line { border: 1px solid var(--line); }
.ds-shadowbox--soft { box-shadow: var(--shadow-soft); }
.ds-shadowbox--lift { box-shadow: var(--shadow-lift); }

.ds-glass-stage {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 200px;
  border: 1px solid var(--line);
  background:
    radial-gradient(300px 190px at 18% 16%, var(--accent-2) 0%, transparent 68%),
    radial-gradient(320px 210px at 82% 26%, var(--accent-3) 0%, transparent 68%),
    radial-gradient(280px 210px at 55% 96%, var(--brand-soft) 0%, transparent 70%),
    var(--bg);
  display: grid;
  place-items: center;
  padding: 26px;
}
.ds-glass-panel {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ds-glass-panel strong { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }

/* ---------- 8) KOMPONENTY: doplnky ---------- */
.ds-btn--ink { background: var(--ink); color: var(--surface); }
.ds-btn--ink:hover { box-shadow: var(--shadow-lift); opacity: .9; }

.ds .btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }

/* search pill */
.ds-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 5px 4px 18px;
  min-width: min(260px, 100%);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.ds-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.ds-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.ds-search input::placeholder { color: var(--muted); }
.ds-search .search-circle { border: 0; background: var(--brand-soft); color: var(--brand-strong); width: 36px; height: 36px; flex: none; }

/* toggle */
.ds-toggle { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; }
.ds-toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ds-toggle i {
  position: absolute;
  inset: 0;
  border-radius: var(--r-pill);
  background: var(--line);
  transition: background .3s var(--ease);
}
.ds-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(22, 20, 31, .22);
  transition: transform .3s var(--ease);
}
.ds-toggle input:checked + i { background: var(--brand); }
.ds-toggle input:checked + i::after { transform: translateX(22px); }
.ds-toggle input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 3px; }

/* pole formulára s pevnou šírkou v ukážkach */
.ds-field { width: min(260px, 100%); }
.ds-field label { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }

/* iniciálkové avatary (neutrálne voči značke) */
.ds-av {
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--brand-strong);
  font-family: var(--font-body);
}
.avatar-stack--lg .ds-av { font-size: .84rem; }

/* mini fotka pre glass chip ukážku */
.ds-photo-mini {
  position: relative;
  width: 230px;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--brand-soft);
}
.ds-photo-mini img { width: 100%; height: 100%; object-fit: cover; }
.ds-photo-mini .chip { position: absolute; left: 10px; bottom: 10px; }

/* mriežka kariet v katalógu */
.ds-cardsrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 18px;
  align-items: start;
}
.ds-cardsrow .lr-card { width: 100%; cursor: default; }
.ds-span-all { grid-column: 1 / -1; }

.ds-tile-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 176px;
}

/* ---------- 9) ANATÓMIA (číslované anotácie) ---------- */
.ds-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-style: normal;
  font-size: .68rem;
  font-weight: 700;
  font-family: var(--font-body);
  line-height: 1;
  box-shadow: 0 0 0 2px var(--surface), var(--shadow-lift);
  flex: none;
}
.ds-anno { position: relative; display: inline-block; }
.ds-anno > .ds-num { position: absolute; top: -9px; right: -11px; z-index: 2; }
.ds-num--abs { position: absolute; z-index: 2; }

.ds-legend { display: flex; flex-direction: column; gap: 12px; }
.ds-legend li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.ds-legend li strong { display: block; color: var(--ink); font-size: .94rem; }

.ds-splitgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }

/* ---------- 10) PREHRÁVAČ (statické ukážky docku) ---------- */
.ds-playgrid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; }
.ds-dockrow { display: flex; flex-direction: column; gap: 20px; }
.ds-dockdemo { display: flex; flex-direction: column; gap: 8px; }
.ds-dockdemo .dock {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  width: min(430px, 100%);
}

/* ---------- 11) VZORY ---------- */
.ds-pattern { display: flex; flex-direction: column; gap: 12px; }

.ds-hero-demo {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 46px);
  background:
    radial-gradient(560px 300px at 94% 0%, var(--accent-2-soft) 0%, transparent 60%),
    radial-gradient(480px 280px at 0% 100%, var(--accent-3-soft) 0%, transparent 62%),
    var(--surface);
}
.ds-hero-demo .eyebrow { margin-bottom: 14px; }
.ds-hero-demo .d2 { margin-bottom: 12px; max-width: 13em; }
.ds-hero-demo .lead { margin-bottom: 22px; }

.ds-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

.ds-statband { display: flex; gap: clamp(18px, 4vw, 52px); flex-wrap: wrap; }
.ds-statband .stat { flex: 1; min-width: 170px; }

.ds-appband { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: center; }
.ds-appband h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: 1.5rem; margin-bottom: 8px; }
.ds-appband p { color: var(--muted); font-size: .94rem; margin-bottom: 18px; max-width: 30em; }
.ds-appband .badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ds-appband .badge-row img { height: 42px; width: auto; border-radius: 8px; }
.ds-phone { max-height: 300px; width: auto; margin-inline: auto; object-fit: contain; }

.ds-b2b-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: center; }
.ds-b2b-grid .d3 { margin-bottom: 10px; max-width: 17em; }
.ds-b2b-grid .ds-ctas { margin-top: 18px; margin-bottom: 14px; }
.ds-b2b-stats { display: flex; flex-direction: column; gap: 20px; }

/* ---------- 12) FOOTER ---------- */
.ds-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(44px, 7vw, 84px);
  padding: 26px 0 42px;
}
.ds-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted);
}
.ds-footer-links { display: flex; gap: 4px; flex-wrap: wrap; }
.ds-footer-links a {
  padding: 6px 11px;
  border-radius: var(--r-pill);
  font-weight: 500;
  color: var(--ink);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.ds-footer-links a:hover { color: var(--brand-strong); background: var(--brand-soft); }

/* ---------- 13) RESPONZÍVNE ---------- */
@media (max-width: 980px) {
  .ds-grid3 { grid-template-columns: 1fr 1fr; }
  .ds-playgrid, .ds-splitgrid { grid-template-columns: 1fr; }
  .ds-b2b-grid { grid-template-columns: 1fr; }
  .ds-b2b-stats { flex-direction: row; flex-wrap: wrap; gap: 26px; }
  .ds-typo-row { grid-template-columns: 170px 1fr; }
}

@media (max-width: 680px) {
  .ds [id] { scroll-margin-top: 170px; }
  .ds-grid3 { grid-template-columns: 1fr; }
  .ds-appband { grid-template-columns: 1fr; }
  .ds-typo-row { grid-template-columns: 1fr; gap: 8px; }
  .ds-t-64 { font-size: 46px; }
  .ds-t-48 { font-size: 37px; }
  .ds-t-36 { font-size: 30px; }
  .ds-switch { width: 100%; justify-content: stretch; }
  .ds-swbtn { flex: 1; text-align: center; padding: 8px 8px; }
}
