/* Společný design systém pěti webů. Mezi weby se mění jen --accent a obsah. */

:root {
  --accent: #B794FF;
  --on-accent: #0A0A0A;
  --paper: #FFFFFF;
  --ink: #0A0A0A;
  --soft: #555555;
  --faint: #F0F0F0;
  --line: #0A0A0A;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

:root[data-tema="tmavy"] {
  --paper: #0A0A0A;
  --ink: #F2F2F2;
  --soft: #A9A9A9;
  --faint: #1D1D1D;
  --line: #F2F2F2;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--sans);
}

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--accent); color: var(--on-accent); text-decoration-color: transparent; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 68rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

main > section { padding-top: 2.25rem; padding-bottom: 2.25rem; }

h1, h2, h3 { font-weight: 900; margin: 0; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -.02em; line-height: 1.1; margin-bottom: .75rem; }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; max-width: 40rem; }

/* Zvýrazňovač: používá se jen tam, kde barva něco znamená (poptávky, věta o tom, co nevyšlo). */
.marker {
  background-image: linear-gradient(100deg, transparent 0, var(--accent) 1.5%, var(--accent) 98.5%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 100% .92em;
  background-position: 0 62%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .2em;
  color: var(--on-accent);
}

/* Hlavička */
.hlavicka { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.znacka { display: inline-flex; align-items: center; gap: .55rem; font-weight: 900; letter-spacing: -.02em; font-size: 1.15rem; text-decoration: none; }
.znacka:hover { background: transparent; color: var(--ink); }
.dot { width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--line); background: var(--accent); flex: none; }
.dot--off { background: transparent; }

.tema {
  font: inherit; font-size: .95rem; font-weight: 700; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 4px; padding: .45rem .8rem; cursor: pointer;
}
.tema[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Úvod */
.hero { padding-top: 2.5rem; }
h1 {
  font-size: clamp(2.75rem, 9vw, 6.25rem);
  line-height: .94;
  letter-spacing: -.04em;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}
.lede { font-size: 1.25rem; max-width: 38rem; }
.stav { font-weight: 800; font-size: 1.25rem; margin-bottom: .25rem; }
#souhrn { color: var(--soft); }

/* Tlačítka */
.btn {
  display: inline-block; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  color: var(--on-accent); background: var(--accent);
  border: 2px solid var(--line); border-radius: 4px; padding: .75rem 1.2rem;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { background: var(--accent); color: var(--on-accent); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--line); }
.btn--tich { background: var(--paper); color: var(--ink); }
.btn--tich:hover { background: var(--paper); color: var(--ink); }

/* Výzva */
.cta { background: var(--accent); color: var(--on-accent); border: 2px solid var(--line); border-radius: 4px; padding: 2rem 1.5rem; }
.cta h2 { margin-bottom: .5rem; }
.cta a { color: var(--on-accent); }
.cta a:hover { background: #0A0A0A; color: #FFFFFF; }
.cta .btn { background: #0A0A0A; color: #FFFFFF; border-color: #0A0A0A; box-shadow: 4px 4px 0 #FFFFFF; }
.cta .btn:hover { background: #0A0A0A; color: #FFFFFF; box-shadow: 5px 5px 0 #FFFFFF; }
.cta .btn:active { box-shadow: 0 0 0 #FFFFFF; }

/* Patička */
.paticka { border-top: 2px solid var(--line); margin-top: 2rem; padding-top: 1.5rem; padding-bottom: 3rem; font-size: 1rem; }
.paticka p { margin-bottom: .35rem; }

/* kolikstojipoptavka.cz: kalkulačka */
.hero { padding-top: 3rem; padding-bottom: 1.5rem; }
.formular { display: grid; gap: 1.25rem; max-width: 34rem; margin-top: 1.5rem; }
.pole label { display: block; font-weight: 800; margin-bottom: .2rem; }
.pole .napoveda { display: block; color: var(--soft); font-size: 1rem; margin-bottom: .4rem; }
.pole input {
  font: inherit; font-size: 1.5rem; font-weight: 800; width: 100%; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 4px; padding: .6rem .8rem; font-variant-numeric: tabular-nums;
}
.pole input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; background: var(--accent); color: var(--on-accent); }
.pole--volitelne label::after { content: " (nepovinné)"; font-weight: 400; color: var(--soft); }
.chyba { font-weight: 800; margin: 0; min-height: 1.5em; }
.vysledek { margin-top: 2.5rem; border: 2px solid var(--line); border-radius: 4px; padding: 1.5rem; }
.vysledek[hidden] { display: none; }
.velke { font-size: clamp(2.2rem, 7vw, 4.25rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; margin: 0 0 1rem; max-width: none; }
.pas { display: flex; height: 3.25rem; border: 2px solid var(--line); border-radius: 4px; overflow: hidden; margin: 1.25rem 0 .5rem; }
.pas__reklama { background: var(--accent); }
.pas__zbytek { background: repeating-linear-gradient(135deg, var(--line) 0 3px, var(--paper) 3px 9px); flex: 1; }
.pas__popisky { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.cisla { margin: 0; }
.cisla div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-top: 2px solid var(--line); }
.cisla dt { font-weight: 700; }
.cisla dd { margin: 0; font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; text-align: right; }
.akce { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.cta { padding: 2.5rem 1.75rem; }
.btn { max-width: 100%; overflow-wrap: anywhere; }
.pozn { color: var(--soft); font-size: 1rem; }
@media (max-width: 30rem) { .cta { padding: 1.75rem 1.1rem; } .vysledek { padding: 1.1rem; } }
.definice { margin: 0; max-width: 40rem; }
.definice dt { font-weight: 800; margin-top: 1rem; }
.definice dd { margin: .15rem 0 0; }

.sit { margin: 0 0 1rem; }
.sit p { margin: 0 0 .35rem; font-weight: 700; }
.sit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.sit [aria-current] { color: var(--soft); }
/* serioznipoptavky.cz */
.hero h1 { font-size: clamp(2.5rem, 8vw, 5.5rem); }
.formular { max-width: 36rem; }
.pole textarea { font: inherit; font-size: 1.1rem; width: 100%; min-height: 6rem; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 4px; padding: .6rem .8rem; }
.pole textarea:focus-visible, .pole select:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; background: var(--accent); color: var(--on-accent); }
.pole input[type=text], .pole input[type=email] { font-size: 1.15rem; }
.pole select { font: inherit; font-size: 1.15rem; font-weight: 700; width: 100%; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 4px; padding: .6rem .8rem; }
.poznamka-form { color: var(--soft); font-size: 1rem; }
.tab { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tab th, .tab td { padding: .7rem .6rem; text-align: left; vertical-align: top; border-bottom: 2px solid var(--line); }
.tab thead th { font-weight: 800; font-size: .95rem; }
.zn { display: inline-block; min-width: 2rem; text-align: center; font-weight: 900; border: 2px solid var(--line); border-radius: 4px; padding: 0 .35rem; }
.zn--a { background: var(--accent); color: var(--on-accent); }
.ukazka { background: var(--ink); color: var(--paper); text-align: center; padding: .5rem 1rem; font-weight: 700; font-size: .95rem; }
@media (max-width: 44rem) {
  .tab thead { position: absolute; left: -9999px; }
  .tab, .tab tbody, .tab tr, .tab td { display: block; }
  .tab tr { border: 2px solid var(--line); border-radius: 4px; margin-bottom: 1rem; padding: .5rem .75rem; }
  .tab td { border: 0; padding: .3rem 0; display: grid; grid-template-columns: 8rem 1fr; column-gap: .5rem; }
  .tab td::before { content: attr(data-label); font-weight: 700; color: var(--soft); }
}
.kroky { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kroky li { border-top: 2px solid var(--line); padding-top: .9rem; }
.kroky h3 { margin-bottom: .4rem; }
.kroky p { margin: 0; }
.zn { justify-self: start; }
@media (max-width: 40rem) { .kroky { grid-template-columns: 1fr; } }
