:root {
  color-scheme: light;
  --blue-950: #062b67;
  --blue-800: #064fcb;
  --blue-600: #0878f9;
  --cyan-400: #1ed8ef;
  --ink: #102746;
  --muted: #5e7089;
  --surface: #ffffff;
  --background: #f4f8ff;
  --line: #dbe7f8;
  --orange: #ff8a1f;
  --orange-dark: #d85b00;
  --success: #008a66;
  font-family: Inter, Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, #bdeeff 0, transparent 24rem),
    radial-gradient(circle at 96% 16%, #dce8ff 0, transparent 20rem),
    var(--background);
}

a { color: var(--blue-800); }

.site-header {
  background: linear-gradient(120deg, var(--blue-950), var(--blue-600) 66%, var(--cyan-400));
  color: white;
  box-shadow: 0 8px 22px rgb(6 43 103 / 18%);
}

.header-inner,
.page,
.footer-inner {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 900;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgb(0 0 0 / 18%);
}

.top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.top-nav a { color: white; font-weight: 800; text-decoration: none; }
.top-nav a:hover, .top-nav a:focus-visible { text-decoration: underline; }

.page { padding-block: 44px 72px; }
.page.narrow { max-width: 780px; }

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 340px);
  align-items: center;
  gap: 42px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 18px 48px rgb(16 39 70 / 11%);
}

.hero-logo {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 14px 32px rgb(8 120 249 / 22%);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-800);
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.12; }
h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 6vw, 4rem); }
h2 { margin-top: 34px; font-size: 1.5rem; }
h3 { margin: 0 0 8px; }
p, li { line-height: 1.65; }
.lead { color: var(--muted); font-size: 1.08rem; }
.meta { color: var(--muted); font-size: .92rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 5px 0 var(--blue-950);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}

.button:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--blue-950); }
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--blue-950); }
.button.secondary { background: white; color: var(--blue-800); border: 2px solid var(--blue-600); }
.button.danger { background: linear-gradient(135deg, #ff9d35, var(--orange)); box-shadow: 0 5px 0 var(--orange-dark); }
.button:disabled { opacity: .55; cursor: wait; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgb(16 39 70 / 7%);
}

.card { padding: 22px; }
.legal-card { padding: clamp(22px, 5vw, 44px); }
.legal-card h1 { font-size: clamp(2rem, 6vw, 3.3rem); }

.notice {
  margin-block: 22px;
  padding: 18px;
  border-left: 5px solid var(--cyan-400);
  border-radius: 12px;
  background: #eafaff;
}

.form-grid { display: grid; gap: 18px; margin-top: 26px; }
label { display: grid; gap: 7px; font-weight: 850; }
input, textarea {
  width: 100%;
  border: 2px solid #cbd9ed;
  border-radius: 14px;
  padding: 13px 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}
input:focus, textarea:focus { outline: 3px solid rgb(30 216 239 / 28%); border-color: var(--blue-600); }
textarea { min-height: 112px; resize: vertical; }
.field-help { color: var(--muted); font-size: .84rem; font-weight: 500; }
.status { display: none; padding: 16px; border-radius: 14px; font-weight: 750; }
.status.visible { display: block; }
.status.success { color: #075843; background: #dff8ef; border: 1px solid #95dec7; }
.status.error { color: #8b2b00; background: #fff0e6; border: 1px solid #ffc69e; }

.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 26px; color: var(--muted); }
.footer-inner > span { color: var(--muted); font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.developer-credit {
  flex: 1 0 100%;
  max-width: 820px;
  margin: 0 auto 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: #7a8798;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .012em;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 720px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 16px; }
  .top-nav { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero-logo { max-width: 290px; margin-inline: auto; grid-row: 1; }
  .cards { grid-template-columns: 1fr; }
}
