:root {
  --bg: #f5f6fb;
  --ink: #222635;
  --muted: #707588;
  --card: #ffffff;
  --line: #e7eaf2;
  --input-bg: #f3f4f8;
  --brand: #1f63d4;
  --brand-dark: #0e4fbf;
  --ok: #1b8a4a;
  --err: #be2e2e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.topbar {
  height: 64px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.brand-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #5ca6ff, #2059ca);
}

.brand-text {
  font-size: 22px;
}

.top-link {
  color: #30466f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page {
  min-height: calc(100vh - 64px - 60px);
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.hero {
  text-align: center;
  margin: 10px auto 28px;
}

.pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #555984;
  background: #e9ebf8;
  border: 1px solid #d7d9ee;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
}

.subtitle {
  color: var(--muted);
  max-width: 690px;
  margin: 10px auto 0;
  font-size: clamp(15px, 2.2vw, 28px);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 28px;
  box-shadow: 0 10px 40px rgba(26, 52, 100, 0.05);
}

h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 32px;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field > span {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #363d51;
}

input,
textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--input-bg);
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: #a2a8bd;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #96b8ff;
  box-shadow: 0 0 0 3px rgba(31, 99, 212, 0.13);
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

textarea {
  resize: vertical;
  min-height: 170px;
}

.submit-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

button {
  min-width: 220px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(24, 83, 198, 0.25);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  text-align: center;
  margin: 12px 0 0;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 14px;
}

.status.ok {
  color: var(--ok);
}

.status.err {
  color: var(--err);
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-alt {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin: 24px auto 0;
}

.contact-alt a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  height: 60px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #9da2b5;
  font-size: 13px;
  background: #fff;
}

.footer nav {
  display: flex;
  gap: 16px;
}

.footer a {
  color: #9da2b5;
  text-decoration: none;
}

@media (max-width: 760px) {
  .two-cols {
    grid-template-columns: 1fr;
  }

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

  .footer {
    height: auto;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
  }

  h2 {
    font-size: 28px;
  }
}
