:root {
  --cervena: #c8102e;
  --text: #1f2937;
  --sedy: #6b7280;
  --okraj: #e5e7eb;
  --pozadi: #ffffff;
  --podklad: #f4f4f5;
  --karta: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--pozadi); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
.hlavicka { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 16px; flex-wrap: wrap; }
.logo { height: 72px; width: auto; }
.jazyky { display: flex; gap: 6px; }
.jazyky button { border: 1px solid var(--okraj); background: var(--karta); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--text); }
.jazyky button[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.karta { background: var(--karta); border: 1px solid var(--okraj); border-radius: 16px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 16px; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 0 0 4px; }
.uvod { color: var(--sedy); margin: 0; }
.platnost { margin-top: 12px; font-size: 14px; color: var(--cervena); font-weight: 600; }
label, .popisek { display: block; font-weight: 600; margin: 16px 0 6px; }
.popisek:first-child, .pole:first-child label, .radky2 .pole label { margin-top: 0; }
.radky2 .pole + .pole { margin-top: 0; }
@media (max-width: 560px) { .radky2 .pole + .pole label { margin-top: 16px; } }
.drobne { font-weight: 400; color: var(--sedy); font-size: 14px; }
input[type="text"], textarea { width: 100%; border: 1.5px solid var(--okraj); border-radius: 10px; padding: 12px; font: inherit; color: var(--text); background: #fff; }
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--text); }
textarea { min-height: 96px; resize: vertical; }
.radky2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.znamka { padding: 14px 0; border-top: 1px solid var(--okraj); }
.znamka:first-of-type { border-top: 0; }
.znamka-nadpis { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 8px; }
.znamka-hodnota { font-size: 20px; font-weight: 800; min-width: 2ch; text-align: right; }
.stupnice { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.stupnice button { height: 46px; border: 1.5px solid var(--okraj); border-radius: 10px; background: #fff; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; }
.stupnice button:hover { border-color: var(--sedy); }
.stupnice button[aria-checked="true"] { color: #fff; border-color: transparent; }
.celkove { display: flex; align-items: center; justify-content: space-between; background: var(--podklad); border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.celkove strong { font-size: 30px; }
.chyba { color: var(--cervena); font-weight: 600; margin: 12px 0 0; min-height: 1.5em; }
.odeslat { display: block; width: 100%; margin-top: 16px; padding: 16px; border: 0; border-radius: 12px; background: var(--cervena); color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.odeslat:disabled { opacity: .6; cursor: wait; }
.gdpr { font-size: 13px; color: var(--sedy); margin: 12px 0 0; }
.skryte { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.diky { text-align: center; padding: 48px 24px; }
.diky .ikona { font-size: 56px; line-height: 1; }
@media (max-width: 560px) {
  main { padding: 12px; }
  .karta { padding: 18px; }
  .logo { height: 56px; }
  h1 { font-size: 22px; }
  .radky2 { grid-template-columns: 1fr; }
  .stupnice { grid-template-columns: repeat(5, 1fr); }
}
