/* Web appky The One Percent – stavba stránky. Barvy, písma a třídy .op-* jsou z onepercent.css (brand manuál). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--op-page); color: var(--op-text);
  font-family: var(--op-font-text); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--op-blue); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--op-blue); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

.obal { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Hlavička a patička */
.hlavicka { background: var(--op-page-soft); border-bottom: 1px solid var(--op-line); }
.hlavicka .obal { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; padding: 8px 0; }
.logo img { display: block; width: 150px; height: auto; }
.hlavicka-odkaz { font-family: var(--op-font-display); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.paticka { margin-top: 72px; padding: 32px 0 40px; border-top: 1px solid var(--op-line); color: var(--op-muted); font-size: 0.875rem; }
.paticka nav { margin-bottom: 8px; line-height: 1.9; }
.paticka nav a { font-weight: 600; }
.paticka p { margin: 0; }

/* Úvod stránky */
.uvod { padding: 48px 0 8px; }
.uvod .op-tag { margin-bottom: 18px; }
.uvod .op-h1 { font-size: clamp(2.1rem, 8vw, 3.5rem); overflow-wrap: anywhere; hyphens: auto; }
.perex { font-size: 1.25rem; line-height: 1.55; color: var(--op-text); margin: 18px 0 0; max-width: 36em; }
.obchody { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.obchody .op-btn { flex: 1 1 220px; }

/* Karta s pomocí / kódem */
.op-card { margin-top: 40px; padding: 28px; }
.op-card .op-h3 { color: var(--op-white); }
.op-card a { color: var(--op-blue-light); }
.op-card p:last-child { margin-bottom: 0; }

/* Časté otázky */
.otazky { margin-top: 56px; }
.otazky .op-h2 { margin-bottom: 20px; }
details { background: var(--op-white); border-radius: var(--op-radius-medium); padding: 0 20px; margin-bottom: 10px; box-shadow: 0 1px 0 rgba(20, 40, 90, 0.06); }
summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--op-font-display); font-size: 1.4rem; color: var(--op-blue); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; }

/* Číslované kroky */
.kroky { list-style: none; counter-reset: krok; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.krok { counter-increment: krok; position: relative; background: var(--op-white); border-radius: var(--op-radius-card); padding: 24px 24px 24px 76px; }
.krok::before {
  content: counter(krok); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--op-blue); color: var(--op-white);
  font-family: var(--op-font-display); font-weight: 800; font-size: 1.05rem;
}
.krok .op-h3 { font-size: 1.25rem; margin-bottom: 6px; }
.krok p { margin: 0 0 8px; }
.krok p:last-child { margin-bottom: 0; }
.krok .obchody { margin-top: 14px; }
.pozor { color: var(--op-red); font-weight: 700; }
.pod-carou { margin-top: 28px; color: var(--op-muted); }

/* Kód parťáka */
.kod-karta { text-align: center; }
.kod-popis { margin: 0; font-family: var(--op-font-display); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--op-subtle) !important; }
.kod { margin: 10px 0 18px; font-family: var(--op-font-display); font-weight: 800; font-size: clamp(2.4rem, 12vw, 3.5rem); letter-spacing: 0.18em; color: var(--op-white) !important; font-variant-numeric: tabular-nums; user-select: all; }
.kod-platnost { margin: 14px 0 0; font-size: 0.9375rem; }
.bez-kodu { margin-top: 28px; color: var(--op-muted); }

/* Právní texty */
.pravni { padding-top: 48px; }
.pravni .op-h2 { margin-bottom: 24px; overflow-wrap: anywhere; hyphens: auto; }
.pravni h2 { font-family: var(--op-font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.25; margin: 32px 0 10px; }
.pravni h3, .pravni h4 { font-size: 1.0625rem; margin: 22px 0 8px; }
.pravni p, .pravni li { max-width: 40em; }
.pravni ul, .pravni ol { padding-left: 1.3em; }
.pravni li { margin-bottom: 6px; }

@media (max-width: 480px) {
  .uvod { padding-top: 32px; }
  .krok { padding: 72px 20px 20px; }
  .krok::before { left: 20px; top: 20px; }
  .op-card { padding: 22px; }
}

/* Tabulky v právních textech: na mobilu se posouvají do strany v rámečku, stránka nepřetéká */
.pravni .verze { color: var(--op-muted); font-size: 0.9375rem; margin-top: -12px; }
.tabulka { overflow-x: auto; margin: 16px 0 20px; background: var(--op-white); border-radius: var(--op-radius-small); -webkit-overflow-scrolling: touch; }
.tabulka table { border-collapse: collapse; min-width: 640px; width: 100%; font-size: 0.9375rem; line-height: 1.45; }
.tabulka th, .tabulka td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--op-line); }
.tabulka th { font-weight: 700; background: var(--op-page-soft); }
.tabulka tr:last-child td { border-bottom: 0; }
.pravni .obal-uzky { max-width: 40em; }
