* { box-sizing: border-box; }
:root {
  --blue: #005ca8;
  --blue-dark: #003f7c;
  --red: #d71920;
  --text: #172033;
  --muted: #5f6b7a;
  --line: #dbe5ef;
  --bg: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(0, 45, 90, 0.12);
  --radius: 20px;
}
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: var(--blue); }
.page { min-height: 100vh; }
.hero { position: relative; min-height: 430px; display: grid; align-items: center; overflow: hidden; background: var(--blue-dark); }
.hero__media, .hero__banner, .hero__overlay { position: absolute; inset: 0; }
.hero__banner { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { background: linear-gradient(90deg, rgba(0,45,90,0.9), rgba(0,92,168,0.64), rgba(0,92,168,0.18)), linear-gradient(0deg, rgba(0,0,0,0.18), rgba(0,0,0,0.02)); }
.hero__content { position: relative; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0; color: var(--white); }
.logo { width: 190px; max-width: 55vw; height: auto; display: block; margin-bottom: 36px; }
.eyebrow { margin: 0 0 10px; color: #dbeeff; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.82rem; font-weight: 700; }
h1, h2 { line-height: 1.15; margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 18px; font-size: clamp(2.1rem, 5vw, 4.7rem); letter-spacing: -0.04em; }
.lead { max-width: 720px; margin: 0; color: #eef7ff; font-size: clamp(1.04rem, 2vw, 1.25rem); }
.content { width: min(1120px, calc(100% - 40px)); margin: -72px auto 0; position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; }
.card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow); }
.card h2 { color: var(--blue); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 32px; margin: 13px 0; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 4px #dceeff; }
.form-note { margin: -4px 0 24px; color: var(--muted); font-size: 0.95rem; }
.field { margin-bottom: 18px; }
label { font-weight: 700; }
label span, .checkbox strong { color: var(--red); }
input[type='text'], input[type='email'] { width: 100%; min-height: 50px; margin-top: 7px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
input[type='text']:focus, input[type='email']:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0,92,168,0.12); }
.checkbox { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 16px 0; font-weight: 400; color: var(--text); }
.checkbox input { margin-top: 0.2em; width: 18px; height: 18px; accent-color: var(--blue); }
.privacy { margin: 18px 0 22px; color: var(--muted); font-size: 0.92rem; }
.button { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--blue); color: var(--white); font-weight: 800; font-size: 1rem; cursor: pointer; transition: transform 0.2s, background 0.2s, box-shadow 0.2s; box-shadow: 0 12px 30px rgba(0,92,168,0.24); }
.button:hover, .button:focus-visible { background: var(--blue-dark); transform: translateY(-1px); }
.button:disabled { opacity: 0.65; cursor: wait; transform: none; }
.message { margin-top: 16px; padding: 13px 15px; border-radius: 12px; display: none; font-weight: 700; }
.message.is-success { display: block; background: #e8f7ef; color: #12633a; }
.message.is-error { display: block; background: #fdecec; color: #9d1c1c; }
.footer { width: min(1120px, calc(100% - 40px)); margin: 42px auto 0; padding: 0 0 48px; color: var(--muted); text-align: center; font-size: 0.95rem; }
.footer p { margin: 6px 0; }
.footer__links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 820px) { .hero { min-height: 520px; } .content { grid-template-columns: 1fr; margin-top: 28px; } .card--text { order: 2; } .card--form { order: 1; } }


/* Finální oprava: karty už se nepřekrývají s horním textem */
.content {
  margin-top: 42px;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 34px 0 52px;
  }

  .content {
    margin-top: 28px;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }
}

@media (max-width: 520px) {
  .content,
  .hero__content,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .card {
    border-radius: 16px;
  }
}
