:root {
  --color-background: #f0f9ff;
  --color-surface: #ffffff;
  --color-text: #242431;
  --color-text-muted: #686873;
  --color-accent: #00b4ff;
  --color-accent-soft: #d6f3ff;
  --color-accent-hover: #33c4ff;
  --color-border: #d9e6f2;
  --accent: var(--color-accent);
  --accent-dark: #0086cc;
  --ink: var(--color-text);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --soft: #e8f4fc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--color-background);
  color: var(--ink);
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

.page-shell {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 100vh;
  padding: 0 28px 28px;
  text-align: center;
  width: 100%;
}

.site-header {
  padding: 22px 0 0;
}

.brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.preview-flag {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  margin: 6px 0 0;
}

.intro,
.headline-panel {
  margin: 0 auto;
  max-width: 860px;
  padding: 42px 0 12px;
}

.kicker {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1 {
  color: var(--ink);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 auto;
  max-width: 920px;
  overflow-wrap: anywhere;
}

.subhead {
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  margin: 18px auto 0;
  max-width: 720px;
}

.benefits {
  list-style: none;
  margin: 26px auto 0;
  max-width: 560px;
  padding: 0;
  text-align: left;
}

.benefits li {
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0;
  padding: 14px 16px 14px 42px;
  position: relative;
}

.benefits li::before {
  background: var(--accent);
  border-radius: 50%;
  content: "";
  height: 10px;
  left: 18px;
  position: absolute;
  top: 22px;
  width: 10px;
}

.hero-cta-wrap {
  margin: 28px auto 0;
  max-width: 420px;
}

.hero-primary-cta,
.cta {
  appearance: none;
  background: var(--accent);
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 180, 255, 0.18);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  min-height: 60px;
  min-width: 240px;
  padding: 0 28px;
}

.hero-primary-cta:hover,
.hero-primary-cta:focus-visible,
.cta:hover,
.cta:focus-visible {
  background: var(--color-accent-hover);
  outline: 0;
}

.hero-microtext,
.gdpr-note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  margin: 12px auto 0;
  max-width: 640px;
}

.route-list {
  display: grid;
  gap: 16px;
  margin: 32px auto 0;
  max-width: 720px;
}

.route-card {
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: inherit;
  display: block;
  padding: 22px 22px 18px;
  text-align: left;
  text-decoration: none;
}

.route-card:hover,
.route-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 180, 255, 0.14);
  outline: 0;
}

.route-card h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 8px;
}

.route-card p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.route-card .go {
  color: var(--accent-dark);
  display: inline-block;
  font-weight: 800;
  margin-top: 14px;
}

.quiz-card {
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.08) 0%, rgba(255, 255, 255, 0.96) 55%, rgba(0, 180, 255, 0.05) 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  margin: 28px auto 0;
  max-width: 930px;
  padding: 28px 28px 24px;
  scroll-margin-top: 18px;
  text-align: left;
}

.progress-row {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 10px;
  max-width: 760px;
}

.progress-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.progress {
  background: #e2eff8;
  border-radius: 999px;
  height: 11px;
  margin: 0 auto 26px;
  max-width: 760px;
  overflow: hidden;
}

.progress span {
  background: linear-gradient(90deg, #0086cc 0%, #00b4ff 100%);
  display: block;
  height: 100%;
  transition: width 0.25s ease;
  width: 0;
}

form {
  margin: 0 auto;
  max-width: 760px;
}

.step {
  display: none;
  min-height: 160px;
}

.step.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.question {
  color: var(--ink);
  font-size: clamp(22px, 2.5vw, 31px);
  font-weight: 900;
  line-height: 1.18;
  margin: 0 0 8px;
}

.question:focus {
  outline: 0;
}

.hint {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 8px;
}

label.choice,
label.consent {
  align-items: center;
  background: #fff;
  border: 1px solid #d0deea;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  min-height: 60px;
  padding: 14px 18px;
}

label.choice:hover,
label.choice:focus-within,
label.consent:hover,
label.consent:focus-within {
  border-color: #7ddeff;
  box-shadow: 0 8px 18px rgba(36, 36, 49, 0.08);
}

label.choice:has(input:checked),
label.consent:has(input:checked) {
  background: #d6f3ff;
  border-color: #00b4ff;
  box-shadow: 0 10px 22px rgba(0, 180, 255, 0.16);
}

label.consent {
  align-items: flex-start;
  font-size: 16px;
  font-weight: 600;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--accent);
  flex: 0 0 auto;
  height: 18px;
  margin: 2px 12px 0 0;
  width: 18px;
}

.option-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
}

label.field-label {
  background: none;
  border: 0;
  cursor: default;
  font-size: 15px;
  font-weight: 800;
  min-height: 0;
  padding: 8px 2px 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  background: #fff;
  border: 1px solid #d0deea;
  border-radius: 16px;
  display: block;
  font: inherit;
  font-size: clamp(17px, 2vw, 20px);
  min-height: 58px;
  padding: 14px 16px;
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: #00b4ff;
  box-shadow: 0 0 0 4px rgba(0, 180, 255, 0.2);
  outline: 0;
}

.actions {
  align-items: center;
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
  margin-top: 22px;
}

.cta {
  min-width: 210px;
  padding: 15px 34px;
}

.cta:disabled {
  cursor: wait;
  opacity: 0.7;
}

.back-link {
  background: none;
  border: 0;
  color: #666;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: #aaa;
  text-underline-offset: 3px;
}

.back-link[hidden] {
  display: none;
}

.form-error {
  color: #9b2335;
  font-weight: 700;
  margin: 14px 0 0;
}

.thank-you {
  margin: 28px auto 0;
  max-width: 760px;
}

.thank-you h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.thank-you p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  margin: 16px auto 0;
  max-width: 640px;
}

.legal {
  margin: 28px auto 0;
  max-width: 760px;
  text-align: left;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 48px);
  text-align: left;
}

.legal h2 {
  font-size: 22px;
  margin: 28px 0 8px;
}

.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.5;
}

.footer {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: auto auto 0;
  max-width: 640px;
  padding-top: 48px;
}

.footer p {
  margin: 8px 0;
}

.footer-legal {
  margin: 0 auto;
  text-align: center;
}

.footer-legal__summary {
  align-items: center;
  color: #b7bec6;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
  justify-content: center;
  line-height: 1.4;
  list-style: none;
  padding: 2px 0;
}

.footer-legal__summary::-webkit-details-marker {
  display: none;
}

.footer-legal__summary::after {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  flex: 0 0 auto;
  height: 5px;
  margin-top: -2px;
  opacity: 0.7;
  transform: rotate(45deg);
  width: 5px;
}

.footer-legal[open] > .footer-legal__summary::after {
  margin-top: 2px;
  transform: rotate(225deg);
}

.footer-legal__summary:hover,
.footer-legal__summary:focus-visible {
  color: #8b939c;
}

.footer-legal__summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.footer-legal__content {
  color: #8b939c;
  font-size: 12px;
  padding-top: 8px;
  text-align: center;
}

.meta-disclaimer {
  font-size: 13px;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.hp {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

@media (max-width: 720px) {
  .page-shell {
    padding: 0 16px 36px;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .quiz-card {
    padding: 22px 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress span {
    transition: none;
  }
}

body.page-pojisteni .site-header {
  padding-top: 36px;
}

body.page-pojisteni .intro {
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;
  padding: 64px 0 8px;
  text-align: center;
}

body.page-pojisteni .intro .kicker {
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

body.page-pojisteni .intro h1,
body.page-pojisteni .intro .subhead {
  text-align: center;
}

body.page-pojisteni .intro h1 {
  font-size: clamp(40px, 4.8vw, 56px);
  line-height: 1.16;
  max-width: 14em;
  overflow-wrap: normal;
}

body.page-pojisteni .intro .subhead {
  line-height: 1.55;
  margin-top: 28px;
  max-width: 22em;
}

body.page-pojisteni .hero-cta-wrap {
  margin-left: auto;
  margin-right: auto;
  margin-top: 44px;
}

body.page-pojisteni .hero-microtext {
  margin-top: 20px;
}

body.page-pojisteni .question,
body.page-pojisteni .gdpr-note,
body.page-pojisteni .quiz-card {
  overflow-wrap: break-word;
}

body.page-pojisteni .quiz-card input {
  max-width: 100%;
  scroll-margin-bottom: 140px;
}

body.page-pojisteni .quiz-card .actions {
  scroll-margin-bottom: 28px;
}

body.page-pojisteni.quiz-active .site-header {
  padding-top: 18px;
  padding-bottom: 0;
}

body.page-pojisteni.quiz-active .quiz-card {
  margin-top: 14px;
}

@media (max-width: 720px) {
  body.page-pojisteni .intro {
    padding-top: 36px;
  }

  body.page-pojisteni .intro .kicker {
    margin-bottom: 18px;
  }

  body.page-pojisteni .intro .subhead {
    margin-top: 18px;
  }

  body.page-pojisteni .hero-cta-wrap {
    margin-top: 32px;
  }

  body.page-pojisteni.quiz-active .site-header {
    padding-top: 12px;
  }

  body.page-pojisteni.quiz-active .quiz-card {
    margin-top: 10px;
  }
}
