/* Barvy a písmo převzaté z energievzivote.cz (Mioweb): Open Sans, zlatá #b7963b, zaoblení 8 px.
   Tlačítka mají tmavší zlatou, aby bílý text splnil kontrast WCAG AA (4,9 : 1). */
:root {
  color-scheme: light;
  --pozadi: #fbf8f2;
  --karta: #ffffff;
  --text: #1f1a14;
  --text-tlumeny: #5c544a;
  --zlata: #b7963b;
  --zlata-tlacitko: #866d28;
  --zlata-tlacitko-hover: #6f5a20;
  --zlata-svetla: #f4ecd9;
  --linka: #e6dcc6;
  --chyba: #a3261a;
  --radius: 8px;
  --sirka: 560px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--pozadi);
  color: var(--text);
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--zlata-tlacitko); text-underline-offset: 2px; }
a:hover { color: var(--zlata-tlacitko-hover); }

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

.hlavicka {
  padding: 14px 16px;
  text-align: center;
}
.znacka {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--zlata-tlacitko);
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--sirka);
  margin: 0 auto;
  padding: 0 0 32px;
}
main:focus { outline: none; }

.obrazovka[hidden] { display: none; }

.fotka {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 35%;
  background: var(--zlata-svetla);
}

.karta {
  background: var(--karta);
  padding: 28px 20px 32px;
}

@media (min-width: 600px) {
  main { padding: 8px 0 48px; }
  .fotka { border-radius: var(--radius) var(--radius) 0 0; }
  .karta { padding: 36px 40px 40px; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(60, 45, 10, .08); }
  .fotka + .karta { border-radius: 0 0 var(--radius) var(--radius); }
}

h1 {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 16px;
}
h2 { font-size: 21px; line-height: 1.35; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0 0 16px; }

.perex { font-weight: 700; }

.tlacitko {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--zlata-tlacitko);
  color: #fff;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s;
}
.tlacitko:hover { background: var(--zlata-tlacitko-hover); }
.tlacitko:disabled { background: #cfc4ab; color: #fff; cursor: not-allowed; }

/* Postup */
.postup { margin-bottom: 20px; }
.postup-text { font-size: 14px; color: var(--text-tlumeny); margin: 0 0 6px; }
.postup-lista { height: 6px; border-radius: 3px; background: var(--zlata-svetla); overflow: hidden; }
.postup-lista span { display: block; height: 100%; width: 0; background: var(--zlata); transition: width .3s ease; }

/* Otázka */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.otazka-nadpis { font-size: 21px; font-weight: 700; line-height: 1.35; padding: 0; margin-bottom: 20px; }
.moznosti { display: grid; gap: 10px; }

.moznost { position: relative; }
.moznost input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.moznost label {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 16px;
  border: 2px solid var(--linka);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.moznost label::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--zlata);
  background: #fff;
}
.moznost input:hover + label { border-color: var(--zlata); }
.moznost input:checked + label { border-color: var(--zlata-tlacitko); background: var(--zlata-svetla); }
.moznost input:checked + label::before { background: var(--zlata-tlacitko); box-shadow: inset 0 0 0 3px #fff; }
.moznost input:focus-visible + label { outline: 3px solid var(--zlata); outline-offset: 2px; }

.ovladani { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.ovladani .tlacitko { flex: 1; }
.tlacitko-zpet {
  min-height: 56px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--text-tlumeny);
  font: inherit;
  cursor: pointer;
}
.tlacitko-zpet:hover { color: var(--text); }
.tlacitko-zpet[hidden] { display: none; }

/* E-mail */
.popisek { display: block; font-weight: 600; margin-bottom: 6px; }
.popisek-dalsi { margin-top: 18px; }
input[type="email"],
input[type="text"] {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 2px solid var(--linka);
  border-radius: var(--radius);
  font: inherit;
  font-size: 18px;
  color: var(--text);
  background: #fff;
}
input[type="email"]:focus,
input[type="text"]:focus { border-color: var(--zlata); outline: none; }
input[aria-invalid="true"] { border-color: var(--chyba); }

.souhlas { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; }
.souhlas input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--zlata-tlacitko); cursor: pointer; }
.souhlas label { cursor: pointer; }

.chyba { color: var(--chyba); font-size: 15px; margin: 6px 0 0; }
.chyba[hidden] { display: none; }
.drobne { font-size: 14px; margin: 12px 0 24px 36px; }

/* Výsledek */
.stitek { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--zlata-tlacitko); margin-bottom: 4px; }
.vysledek-text ul { padding-left: 22px; margin: 0 0 16px; }
.vysledek-text .body-seznam { list-style: none; padding: 0; }
.vysledek-text .body-seznam li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.vysledek-text .body-seznam li::before { content: '➡️'; position: absolute; left: 0; font-size: 15px; }
.dulezite {
  border-left: 4px solid var(--zlata);
  background: var(--zlata-svetla);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 18px 4px;
  margin: 24px 0;
}
.serie { border: 2px solid var(--linka); border-radius: var(--radius); padding: 18px 18px 2px; margin: 0 0 20px; }
.serie-nazev { font-weight: 700; font-style: italic; font-size: 19px; margin-bottom: 8px; }
.vysledek-odkaz { margin: 28px 0 0; }

.paticka {
  text-align: center;
  font-size: 14px;
  color: var(--text-tlumeny);
  padding: 24px 16px 32px;
}
.paticka p { margin: 0 0 4px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
