/* ============== MINDGUARD – stránka aplikace (/mindguard/, /mindguard/en/) ============== */
/* Načítá se jen na těchto stránkách (inc/mindguard.php). Vše pod .mg. */

.mg {
  --mg-green: #2E7D57;      /* text/akcent – na žluté kontrast 4.6:1 */
  --mg-green-dark: #1E5A3E;
  --mg-pink: #DA3999;
  --mg-blue: #0B48F1;
  --mg-ink: #000;
  --mg-muted: #3d4a42;
  --mg-card: #FFFFF5;
  --mg-radius: 28px;
  font-family: "Delight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--mg-ink);
  padding-bottom: 72px;
}
.mg .section-pad {
  max-width: var(--wide-size, 1340px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad, 40px);
  padding-right: var(--page-pad, 40px);
}
.mg-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.mg *, .mg *::before, .mg *::after { box-sizing: border-box; }
.mg img { max-width: 100%; height: auto; display: block; }
.mg a:focus-visible,
.mg button:focus-visible,
.mg summary:focus-visible {
  outline: 3px solid var(--mg-blue);
  outline-offset: 3px;
}

.mg-blue { color: var(--mg-blue); }
.mg-pink { color: var(--mg-pink); }

/* ---------- Typografie ---------- */
.mg-label {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mg-green);
}
.mg-label--light { color: #CFF5DE; }
.mg-h2 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--mg-ink);
}
.mg-h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.mg-text {
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--mg-muted);
  max-width: 62ch;
}

/* ---------- Tlačítka ---------- */
.mg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 9999px;
  border: 2px solid var(--mg-green);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.mg-btn--primary { background: var(--mg-green); color: #fff !important; }
.mg-btn--primary:hover { background: var(--mg-green-dark); border-color: var(--mg-green-dark); }
.mg-btn--ghost { background: transparent; color: var(--mg-green) !important; }
.mg-btn--ghost:hover { background: rgba(46,125,87,.08); }
.mg-btn:active { transform: scale(.98); }

/* ---------- Hero ---------- */
.mg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 48px;
}
.mg-lang {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 28px;
  border-radius: 9999px;
  background: rgba(255,255,255,.6);
}
.mg-lang a {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--mg-green);
  text-decoration: none;
}
.mg-lang a[aria-current="page"] { background: var(--mg-green); color: #fff; }
.mg-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  color: var(--mg-green);
}
.mg-hero__title {
  margin: 0 0 22px;
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.02em;
  color: var(--mg-green);
}
.mg-hero__brand {
  display: block;
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--mg-green);
}
.mg-hero__title2 { display: block; margin-top: 10px; }
.mg-hero__lead {
  margin: 0 0 28px;
  max-width: 34ch;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--mg-green);
}
.mg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mg-hero__note { margin: 16px 0 0; font-size: 15px; color: var(--mg-muted); max-width: 46ch; }
.mg-hero__media { display: flex; justify-content: center; }

/* ---------- Telefon ---------- */
.mg-phone {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 560 / 1217;
  border: 10px solid #111;
  border-radius: 46px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 60px -20px rgba(30,90,62,.35), 0 8px 20px rgba(0,0,0,.12);
}
.mg-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mg-phone--hero { max-width: 340px; transform: rotate(2deg); }

/* ---------- Sekce ---------- */
.mg-section { padding-top: 56px; padding-bottom: 24px; }

.mg-visual {
  margin: 0 0 40px;
  border-radius: var(--mg-radius);
  overflow: hidden;
}
.mg-problem__text .mg-text:last-child { margin-bottom: 0; }

/* Kroky */
.mg-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.mg-step { display: flex; flex-direction: column; align-items: flex-start; }
.mg-step .mg-phone { max-width: 240px; margin: 0 auto 24px; }
.mg-step__num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--mg-pink);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.mg-step .mg-text { font-size: 17px; }

/* Funkce */
.mg-features {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.mg-feature {
  padding: 24px;
  border-radius: 24px;
  background: var(--mg-card);
}
.mg-feature__icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 16px;
  border-radius: 16px;
  color: #fff;
}
.mg-feature--green .mg-feature__icon { background: var(--mg-green); }
.mg-feature--pink  .mg-feature__icon { background: var(--mg-pink); }
.mg-feature--blue  .mg-feature__icon { background: var(--mg-blue); }
.mg-icon { width: 26px; height: 26px; }
.mg-feature__title { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 1.25; }
.mg-feature__text { margin: 0; font-size: 16px; line-height: 1.45; color: var(--mg-muted); }

/* Soukromí */
.mg-privacy {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 40px;
  padding: 48px;
  border-radius: var(--mg-radius);
  background: var(--mg-green-dark);
  color: #fff;
}
.mg-privacy .mg-h2 { color: #fff; }
.mg-privacy .mg-text { color: #E3F5EA; }
.mg-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mg-checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; line-height: 1.45; }
.mg-checklist__icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: #EDFF86;
  color: var(--mg-green-dark);
}

/* Pro koho */
.mg-who { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.mg-card { padding: 32px; border-radius: 24px; background: var(--mg-card); }
.mg-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.mg-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.45; color: var(--mg-muted); }
.mg-list__icon { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; }
.mg-list--yes .mg-list__icon { color: var(--mg-green); }
.mg-list--no  .mg-list__icon { color: var(--mg-pink); }

.mg-disclaimer {
  margin: 20px 0 0;
  padding: 18px 22px;
  border: 2px solid #000;
  border-radius: 18px;
  background: #fff;
  font-size: 17px;
  line-height: 1.5;
}
.mg-disclaimer--small {
  max-width: var(--content-size, 760px);
  margin: 20px auto 0;
  font-size: 15px;
}

/* ---------- Hlasování ---------- */
.mg-poll {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--mg-radius);
  background: #fff;
  box-shadow: 0 20px 50px -25px rgba(30,90,62,.35);
}
.mg-poll__question { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.mg-poll__question[hidden], .mg-poll__done[hidden], .mg-poll__error[hidden] { display: none; }
.mg-poll__legend { padding: 0; margin-bottom: 14px; font-size: 21px; font-weight: 700; }
.mg-poll__options { display: grid; gap: 10px; }
.mg-poll__option {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 16px;
  width: 100%;
  min-height: 60px;
  padding: 14px 20px;
  border: 2px solid var(--mg-green);
  border-radius: 18px;
  background: #fff;
  color: var(--mg-ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.mg-poll__option:hover:not([disabled]) { background: #F1FBE0; }
.mg-poll__option:active:not([disabled]) { transform: scale(.99); }
.mg-poll__option[disabled] { cursor: default; }
.mg-poll__bar, .mg-poll__pct { display: none; }

/* Stav po hlasování: výsledky jako pruhy */
.mg-poll__question.is-voted .mg-poll__option { border-color: #DCE6D9; }
.mg-poll__question.is-voted .mg-poll__option.is-chosen { border-color: var(--mg-green); background: #F1FBE0; }
.mg-poll__question.is-voted .mg-poll__bar {
  display: block;
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 9999px;
  background: #EEF1EA;
  overflow: hidden;
}
.mg-poll__question.is-voted .mg-poll__bar span {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  border-radius: inherit;
  background: var(--mg-green);
  transition: width .6s ease;
}
.mg-poll__question.is-voted .mg-poll__pct {
  display: block;
  grid-column: 2;
  grid-row: 1;
  font-weight: 800;
  color: var(--mg-green);
}
.mg-poll__thanks { margin: 0 0 14px; font-size: 18px; font-weight: 700; color: var(--mg-green); }
.mg-poll__done { margin-top: 28px; }
.mg-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 20px 24px;
  border-radius: 18px;
  background: #F6FAEC;
}
.mg-share__title { margin: 0; font-size: 18px; font-weight: 700; flex: 1 1 220px; }
.mg-poll__news { margin: 16px 0 0; font-size: 16px; color: var(--mg-muted); }
.mg-poll__news a { color: var(--mg-green); font-weight: 700; }
.mg-poll__error { margin: 16px 0 0; font-weight: 700; color: #B0175F; }
.mg-poll__privacy { margin: 24px 0 0; font-size: 14px; color: var(--mg-muted); }
.mg-poll__privacy a { color: inherit; }

/* ---------- Podpora ---------- */
.mg-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: var(--mg-radius);
  background: var(--mg-pink);
  color: #fff;
}
.mg-support .mg-label, .mg-support .mg-h2 { color: #fff; }
.mg-support .mg-text { color: #FFF0F8; }
.mg-support__account { margin: 8px 0 0; font-size: 20px; }
.mg-support__account strong { font-weight: 800; white-space: nowrap; }
.mg-support__qr {
  margin: 0;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  color: #000;
  text-align: center;
}
.mg-support__qr img { width: 180px; height: 180px; }
.mg-support__qr figcaption { margin-top: 8px; font-size: 14px; }

/* ---------- FAQ ---------- */
.mg-faq { display: grid; gap: 10px; max-width: 900px; }
.mg-faq__item { border-radius: 18px; background: var(--mg-card); }
.mg-faq__item summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.mg-faq__item summary::-webkit-details-marker { display: none; }
.mg-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 500;
  color: var(--mg-green);
}
.mg-faq__item[open] summary::after { content: "–"; }
.mg-faq__item p { margin: 0; padding: 0 24px 22px; font-size: 17px; line-height: 1.55; color: var(--mg-muted); }

/* Krize */
.mg-crisis .zn-crisis { margin-top: 0 !important; }

/* ---------- Responzivita ---------- */
@media (max-width: 1100px) {
  .mg-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mg-hero { grid-template-columns: 1fr; gap: 40px; }
  .mg-phone--hero { max-width: 280px; transform: none; }
  .mg-steps { grid-template-columns: 1fr; gap: 48px; }
  .mg-step { align-items: center; text-align: center; }
  .mg-step .mg-text { margin-left: auto; margin-right: auto; }
  .mg-privacy { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .mg-who { grid-template-columns: 1fr; }
  .mg-support { grid-template-columns: 1fr; padding: 32px 24px; }
  .mg-support__qr { justify-self: start; }
}
@media (max-width: 600px) {
  .mg-section { padding-top: 40px; }
  .mg-features { grid-template-columns: 1fr; }
  .mg-poll { padding: 28px 20px; }
  .mg-card { padding: 24px 20px; }
  .mg-text { font-size: 17px; }
  .mg-hero__actions .mg-btn { flex: 1 1 100%; }
  .mg-visual { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-btn, .mg-poll__option, .mg-poll__bar span { transition: none; }
}
