:root {
  --blue: #00aee7;
  --blue-dark: #008fc8;
  --ink: #333c4e;
  --muted: #667085;
  --line: #d9e2ea;
  --pale-blue: #eefaff;
  --white: #ffffff;
  --shadow: 0 28px 70px rgba(51, 60, 78, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  /* Stejná bílá jako transparentní podklad dodané grafiky s bublinkami. */
  background-color: #ffffff;
  background-image: url("assets/bg-left.webp"), url("assets/bg-right.webp");
  background-position: left top, right top;
  background-repeat: repeat-y, repeat-y;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
}

.site-header,
.hero,
.site-footer {
  /* Na běžných obrazovkách využije 90 % plochy, na ultraširokých zůstane čitelně soustředěný. */
  width: min(90vw, 1440px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; }

.brand img { display: block; width: 178px; height: auto; }

.header-link {
  color: #566274;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.header-link span { margin-left: 5px; color: var(--blue); }
.header-link:hover { color: var(--blue-dark); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(380px, 0.93fr);
  align-items: center;
  flex: 1 0 auto;
  min-height: calc(100vh - 180px);
  min-height: calc(100svh - 180px);
  gap: clamp(44px, 5.5vw, 120px);
  padding: 48px 0;
}

.hero-copy { padding: 18px 0; }

.eyebrow,
.card-kicker {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 17px;
  color: #0079ac;
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(0, 174, 231, 0.14);
}

h1,
h2,
p { margin-top: 0; }

h1 {
  max-width: 650px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(2.55rem, 4.8vw, 4.4rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.035;
}

.lead {
  max-width: 610px;
  margin-bottom: 31px;
  color: #586679;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.64;
}

.webinar-note {
  display: flex;
  max-width: 585px;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 30px;
  padding: 17px 18px;
  border: 1px solid #cceefa;
  border-radius: 12px;
  background: var(--pale-blue);
}

.webinar-note p { margin: 0; color: #4f6472; font-size: 0.94rem; line-height: 1.55; }
.webinar-note strong { color: var(--ink); }

.calendar-icon {
  width: 22px;
  min-width: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--blue-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.benefits { display: grid; gap: 13px; }

.benefits-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.benefit { display: flex; align-items: flex-start; gap: 11px; color: #3e4b5c; font-size: 0.98rem; line-height: 1.45; }

.check {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.form-card {
  width: min(100%, 660px);
  justify-self: end;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(205, 222, 231, 0.9);
  border-radius: 19px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-card-heading { margin-bottom: 29px; }
.form-card-heading .card-kicker { margin-bottom: 10px; font-size: 0.76rem; }

h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.7vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.13;
}

.form-card-heading p:not(.card-kicker) { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

#formEK { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }

label { color: #3c495a; font-size: 0.88rem; font-weight: 700; }
.required { color: #e64747; }

input {
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  border: 1px solid #cbd6df;
  border-radius: 7px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.98rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:hover { border-color: #9daeba; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 174, 231, 0.15); }
input[aria-invalid="true"] { border-color: #e14d4d; box-shadow: 0 0 0 4px rgba(225, 77, 77, 0.12); }

.field-error { display: none; min-height: 0; margin: -1px 0 -4px; color: #c53434; font-size: 0.79rem; line-height: 1.4; }
.field-error.is-visible { display: block; }

.submit-button {
  display: inline-flex;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 3px;
  padding: 13px 20px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 20px rgba(0, 174, 231, 0.25);
  font: inherit;
  font-size: 1rem;
  font-weight: 750;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.submit-button span { font-size: 1.25rem; line-height: 0; }
.submit-button:hover { background: var(--blue-dark); box-shadow: 0 12px 24px rgba(0, 143, 200, 0.3); transform: translateY(-1px); }
.submit-button:focus-visible { outline: 3px solid rgba(0, 174, 231, 0.3); outline-offset: 3px; }
.submit-button:active { transform: translateY(0); }

.form-legal { margin: 2px 0 0; color: #85909f; font-size: 0.74rem; line-height: 1.48; }
.form-legal a { color: #6d7c8f; text-decoration: underline; text-underline-offset: 2px; }
.form-legal a:hover { color: var(--blue-dark); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(205, 222, 231, 0.8);
  color: #7d8997;
  font-size: 0.8rem;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--blue-dark); text-decoration: underline; }

.thank-page {
  display: grid;
  min-height: calc(100vh - 182px);
  place-items: center;
  padding: 58px 0 80px;
}

.thank-card {
  max-width: 670px;
  padding: clamp(34px, 6vw, 64px);
  border: 1px solid rgba(205, 222, 231, 0.9);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.success-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin: 0 auto 25px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 0 0 9px rgba(0, 174, 231, 0.13);
}

.success-icon svg { width: 34px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.thank-card .eyebrow { margin: 0 auto 15px; }
.thank-card h1 { max-width: 540px; margin: 0 auto 17px; font-size: clamp(2.15rem, 4.3vw, 3.65rem); }
.thank-card > p { max-width: 530px; margin: 0 auto; color: #5f6d7d; font-size: 1.05rem; line-height: 1.62; }

.next-step {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid #cceefa;
  border-radius: 12px;
  color: #4f6472;
  background: var(--pale-blue);
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.52;
}

.next-step strong { color: var(--ink); }
.next-step svg { width: 22px; min-width: 22px; margin-top: 2px; fill: none; stroke: var(--blue-dark); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.event-details {
  display: grid;
  gap: 10px;
  max-width: 430px;
  margin: 30px auto 0;
  padding: 0;
  text-align: left;
}

.event-detail {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 11px 14px;
  border: 1px solid #dcebf1;
  border-radius: 11px;
  color: var(--ink);
  background: #fafdff;
  box-shadow: 0 5px 13px rgba(51, 60, 78, 0.06);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.42;
}

.event-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
}

.event-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.event-icon--blue { background: var(--blue); }
.event-icon--teal,
.event-icon--navy,
.event-icon--violet { background: var(--blue); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 29px;
  color: #4f6374;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover { color: var(--blue-dark); }

@media (max-width: 860px) {
  body { background-image: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 34px; padding-top: 42px; }
  .hero-copy { padding-top: 0; }
  .form-card { max-width: 620px; width: 100%; justify-self: start; }
}

@media (max-width: 540px) {
  .site-header,
  .hero,
  .site-footer { width: 90vw; }
  .site-header { min-height: 84px; }
  .brand img { width: 145px; }
  .header-link { display: none; }
  .hero { padding: 34px 0 42px; }
  h1 { font-size: clamp(2.32rem, 12vw, 3rem); }
  .lead { font-size: 1.02rem; }
  .form-card { padding: 27px 22px; border-radius: 15px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .site-footer { flex-direction: column; gap: 8px; padding-bottom: 24px; }
  .thank-page { min-height: calc(100vh - 162px); padding: 35px 0 50px; }
  .thank-card { padding: 35px 22px; border-radius: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
