/* Úpravy nad stránkami z Claude Design (index, navod, pruvodce).
   Načítá se až po stylech stránky, takže tady se přepisuje. */

/* ── Navigace: pod 920 px burger (třídu .js přidává skript v <head>, bez JS zůstane původní navigace) ── */
.nav-toggle { display: none; }
@media (max-width: 920px) {
  .js .nav { row-gap: 0; }
  .js .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
    background: #fff; color: var(--color-text); cursor: pointer;
  }
  .js .nav-toggle:focus-visible { outline: 2px solid var(--pohoda-solid); outline-offset: 2px; }
  .js .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .js .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .js .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .js .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .js .nav > a:not(.nav-brand) { display: none; }
  .js .nav.open > a:not(.nav-brand) {
    display: block; flex: 1 0 100%; padding: 13px 4px; font-size: 17px;
    border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  }
  .js .nav.open > .nav-toggle + a { margin-top: 12px; }
  .js .nav.open > a.btn { margin: 14px 0 6px; padding: 14px 20px; border-top: 0; border-radius: 999px; text-align: center; }
}

/* ── Úvod: hero ───────────────────────────────────────────── */
/* Hero se skládá pod sebe pod ~978 px (dva sloupce po 420 px + mezera). Obrázek pak jde nahoru. */
@media (max-width: 977px) {
  .hero > img { order: -1; width: 100%; max-width: 460px; justify-self: center; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(34px, 11.5vw, 44px) !important; }
}

/* ── Úvod: POHODA plus (oficiální banner STORMWARE, obsah iframe neměníme) ── */
.stw {
  position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px;
  margin-top: calc(48px - clamp(88px, 9vw, 140px));
  padding: 12px; border-radius: 32px; background: #fff;
  transition: box-shadow .15s ease;
}
.stw:hover { box-shadow: 0 0 0 2px var(--pohoda-tint-2); }
/* Banner se vykreslí vždy v 728 px (na užší šířce se sám přeskládá a ořízne) a site.js ho zmenší na šířku karty. */
.stw-banner { position: relative; flex: 1 1 360px; max-width: 640px; aspect-ratio: 728 / 111; border-radius: 22px; overflow: hidden; }
.stw-scale { position: absolute; left: 0; top: 0; width: 728px; height: 111px; overflow: hidden; transform-origin: 0 0; }
.stw-scale iframe { position: absolute; left: -10px; top: -10px; width: 748px; height: 131px; border: 0; pointer-events: none; }
.stw-text { flex: 1 1 240px; margin: 0; padding: 4px 12px 4px 4px; font-size: 14px; line-height: 1.5; color: var(--color-neutral-700); }
.stw-text b { color: var(--pohoda-ink); font-weight: 700; }
.stw-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stw-link:focus-visible { outline: 2px solid var(--pohoda-solid); outline-offset: 3px; }

/* ── Úvod: ceník, mPOHODA a POHODA každá na svém řádku ────── */
.plans-group { display: flex; flex-direction: column; gap: 12px; }
.plans-label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--color-neutral-700); }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 14px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr 1fr; gap: 10px; } .plans .card { padding: 18px !important; border-radius: 26px !important; } }
.pill { border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.pill-mp { background: var(--pohoda-tint-2); color: var(--pohoda-ink); }
.pill-p { background: var(--pohoda-solid); color: var(--color-bg); }

/* ── Úvod: „Na rovinu“ na mobilu bez posouvání do strany ───── */
@media (max-width: 640px) {
  .cmp-wrap { overflow: visible !important; padding: 4px 18px !important; }
  .cmp { min-width: 0 !important; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody { display: block; }
  .cmp tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 14px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp tbody tr:hover { background: none; }
  .cmp td { display: flex; align-items: center; align-content: flex-start; flex-wrap: wrap; gap: 4px 8px; padding: 0; border: 0; }
  .cmp td:first-child { grid-column: 1 / -1; font-weight: 600; }
  .cmp td:nth-child(2)::before, .cmp td:nth-child(3)::before {
    border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 700; line-height: 1.5;
  }
  .cmp td:nth-child(2)::before { content: "mPOHODA"; background: var(--pohoda-tint-2); color: var(--pohoda-ink); }
  .cmp td:nth-child(3)::before { content: "POHODA"; background: var(--pohoda-solid); color: var(--color-bg); }
}

/* ── Průvodce na mobilu ────────────────────────────────────── */
/* Bez minmax(0, …) roztáhne tabulka (min-width 520 px) celý sloupec a stránka je širší než displej. */
@media (max-width: 980px) {
  .pv .shell { grid-template-columns: minmax(0, 1fr); }
  .pv .rail { border-bottom: 0; }
  .toc-d { border: 1px solid var(--rule); border-radius: 18px; background: var(--sheet); padding: 0 14px; }
  .toc-d > summary {
    cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; font-size: 14px; font-weight: 600; color: var(--ink);
  }
  .toc-d > summary::-webkit-details-marker { display: none; }
  .toc-d > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
  .toc-d[open] > summary::after { content: "–"; }
  .toc-d[open] > .toc { padding-bottom: 12px; }
}
@media (min-width: 981px) {
  .toc-d > summary { display: none; }
}
@media (max-width: 640px) {
  .pv .tw { border: 0; background: none; overflow: visible; }
  .pv table.stack { min-width: 0; }
  .pv table.stack thead { display: none; }
  .pv table.stack, .pv table.stack tbody, .pv table.stack tr, .pv table.stack td { display: block; }
  .pv table.stack tr { background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; padding: 10px 14px; margin-bottom: 10px; }
  .pv table.stack td { border: 0; padding: 3px 0; background: none !important; white-space: normal; }
  .pv table.stack td:first-child { font-weight: 600; }
  .pv table.stack td[data-label]::before {
    content: attr(data-label); display: block; margin-top: 4px;
    font-family: var(--font-body); font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  }
  .pv table.stack td.nil { display: none; }
}
