:root {
  --ink: #14213d;
  --muted: #68738a;
  --line: #e5e9f1;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --accent: #4b62ee;
  --accent-dark: #384ed0;
  --accent-soft: #eef1ff;
  --success: #25855d;
  --danger: #c44e58;
  --shadow: 0 28px 70px rgba(25, 43, 82, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #eef2f8;
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 720px;
  margin: 42px auto;
  display: grid;
  grid-template-columns: minmax(310px, 0.83fr) minmax(510px, 1.17fr);
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 720px;
  padding: 42px 48px 40px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(118, 137, 255, 0.42) 0, rgba(118, 137, 255, 0) 32%),
    radial-gradient(circle at 84% 76%, rgba(31, 187, 168, 0.18) 0, rgba(31, 187, 168, 0) 33%),
    linear-gradient(153deg, #172750 0%, #202b63 47%, #263887 100%);
}

.hero-panel::before,
.hero-panel::after {
  position: absolute;
  z-index: 0;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.hero-panel::before {
  width: 470px;
  height: 470px;
  top: 168px;
  left: -280px;
}

.hero-panel::after {
  width: 360px;
  height: 360px;
  right: -220px;
  bottom: -110px;
}

.brand, .hero-content, .hero-footer { position: relative; z-index: 1; }

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #aebaff;
}

.brand-mark svg { width: 100%; height: 100%; }

.hero-content { margin: auto 0; padding: 52px 0 72px; }

.eyebrow, .section-kicker {
  margin: 0 0 20px;
  color: #aebaff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-line { width: 24px; height: 1px; background: currentColor; }

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

h1 {
  max-width: 400px;
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(34px, 4vw, 49px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.hero-copy {
  max-width: 386px;
  margin-bottom: 0;
  color: rgba(238, 242, 255, 0.72);
  font-size: 15px;
  line-height: 1.8;
}

.hero-footer { margin-top: auto; }
.footer-rule { width: 100%; height: 1px; margin-bottom: 20px; background: rgba(255, 255, 255, 0.14); }
.hero-footer p { max-width: 280px; margin-bottom: 0; color: rgba(238, 242, 255, 0.58); font-size: 12px; line-height: 1.65; }

.form-panel { padding: 72px clamp(38px, 6vw, 78px) 54px; }
.form-heading { margin-bottom: 40px; }
.section-kicker { margin-bottom: 13px; color: var(--accent); }

h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 33px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.form-heading > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.field-group { margin-bottom: 33px; }
label, legend { color: var(--ink); font-size: 13px; font-weight: 700; }
label { display: block; }

.input-wrap { position: relative; margin-top: 10px; }
.field-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  color: #9ba5ba;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
  transform: translateY(-50%);
  pointer-events: none;
}

input[type='text'] {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #fbfcfe;
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input[type='text']::placeholder { color: #aeb5c3; }
input[type='text']:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(75, 98, 238, 0.1); }
.input-wrap.invalid input[type='text'] { border-color: var(--danger); }

.field-hint { margin: 8px 0 0; color: #8b94a7; font-size: 11px; line-height: 1.55; }

.products-fieldset { min-width: 0; margin: 0 0 32px; padding: 0; border: 0; }
.legend-hint { margin-top: 6px; margin-bottom: 17px; }

.product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-card {
  position: relative;
  min-height: 83px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.product-card:hover { border-color: #bfc8e9; transform: translateY(-1px); }
.product-card:has(input:checked) { border-color: #9caaf5; background: #f8f9ff; box-shadow: 0 5px 14px rgba(75, 98, 238, 0.08); }
.product-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.checkbox-visual {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid #cdd4e1;
  border-radius: 5px;
  background: #fff;
  transition: background 160ms ease, border-color 160ms ease;
}
.checkbox-visual svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; opacity: 0; }
.product-card:has(input:checked) .checkbox-visual { border-color: var(--accent); background: var(--accent); }
.product-card:has(input:checked) .checkbox-visual svg { opacity: 1; }
.product-card input:focus-visible ~ .checkbox-visual { outline: 3px solid rgba(75, 98, 238, 0.22); outline-offset: 2px; }

.product-icon { flex: 0 0 auto; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; }
.product-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; }
.product-icon-blue { color: #536cf3; background: #edf0ff; }
.product-icon-violet { color: #9766e8; background: #f3edff; }
.product-icon-orange { color: #e58a45; background: #fff3e7; }
.product-icon-green { color: #2fa27e; background: #e9f8f1; }
.product-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding-right: 16px; }
.product-copy strong { overflow-wrap: anywhere; font-size: 11px; font-weight: 700; line-height: 1.3; }
.product-copy small { color: #8b94a7; font-size: 9px; line-height: 1.35; }

.validation-message { min-height: 16px; margin: 9px 0 0; color: var(--danger); font-size: 11px; }

.submit-button {
  position: relative;
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 20px rgba(75, 98, 238, 0.2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.submit-button:hover { background: var(--accent-dark); box-shadow: 0 13px 24px rgba(75, 98, 238, 0.27); transform: translateY(-1px); }
.submit-button:active { transform: translateY(0); }
.submit-button:disabled { cursor: wait; opacity: 0.78; transform: none; }
.button-arrow { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.button-loader { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.38); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.is-loading .button-loader { display: block; }
.submit-button.is-loading .button-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.privacy-note { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin: 17px auto 0; color: #929bad; font-size: 10px; line-height: 1.5; text-align: center; }
.privacy-note svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 1px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }

.form-message { display: flex; align-items: flex-start; gap: 11px; margin-top: 22px; padding: 15px 16px; border-radius: 10px; font-size: 12px; line-height: 1.55; }
.form-message::before { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: currentColor; content: ''; }
.form-message.success { color: var(--success); background: #edf9f3; }
.form-message.error { color: var(--danger); background: #fff0f1; }

@media (max-width: 820px) {
  .page-shell { grid-template-columns: 1fr; margin: 20px auto; }
  .hero-panel { min-height: 430px; padding: 30px 34px; }
  .hero-content { margin: 50px 0 44px; padding: 0; }
  .hero-footer { margin-top: 0; }
  h1 { max-width: 580px; }
  .hero-copy { max-width: 560px; }
  .form-panel { padding: 48px 34px 42px; }
}

@media (max-width: 500px) {
  .page-shell { width: min(100% - 20px, 460px); margin: 10px auto; border-radius: 20px; }
  .hero-panel { min-height: 420px; padding: 25px 24px 29px; }
  .form-panel { padding: 38px 22px 30px; }
  .form-heading { margin-bottom: 32px; }
  .product-list { grid-template-columns: 1fr; }
  .product-card { min-height: 74px; }
  h1 { font-size: 35px; }
}

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