:root {
  --navy: #08233c;
  --navy-light: #123f68;
  --blue: #0969da;
  --blue-dark: #0755b3;
  --orange: #f47b31;
  --green: #17854b;
  --red: #b42318;
  --ink: #112d4e;
  --muted: #60748d;
  --line: #d8e1ec;
  --surface: #ffffff;
  --background: #eef4fb;
  --shadow: 0 24px 60px rgba(8, 35, 60, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: light;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(9, 105, 218, 0.13),
      transparent 32rem
    ),
    linear-gradient(135deg, #f7faff 0%, var(--background) 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue), #0753aa);
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(9, 105, 218, 0.25);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 24px;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.back-link {
  padding: 11px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 11px;
  text-decoration: none;
  font-weight: 700;
}

.back-link:hover {
  color: var(--blue);
  border-color: #a9c8ed;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 24px auto 60px;
}

.contact-intro {
  padding: 28px 0;
}

.eyebrow,
.form-kicker {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.contact-intro h1 {
  max-width: 650px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.intro-copy {
  max-width: 610px;
  margin: 28px 0 0;
  color: #425b76;
  font-size: 18px;
  line-height: 1.75;
}

.benefits {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.benefits li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
}

.benefits span {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--green);
  background: #e8f8ef;
  border-radius: 50%;
  font-weight: 900;
}

.form-card {
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid rgba(177, 195, 216, 0.6);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.form-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.025em;
}

.form-help {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.field span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid #bdcad9;
  border-radius: 11px;
  outline: none;
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.field input {
  min-height: 48px;
  padding: 11px 13px;
}

.field textarea {
  min-height: 122px;
  padding: 13px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(9, 105, 218, 0.13);
}

.field textarea::placeholder {
  color: #8393a7;
}

.privacy-field {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 2px 0 22px;
  color: #4b627a;
  font-size: 13px;
  line-height: 1.55;
}

.privacy-field input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.submit-button {
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #0756b8);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(9, 105, 218, 0.24);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(9, 105, 218, 0.3);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 0;
  margin: 0;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.form-status:not(:empty) {
  margin-top: 18px;
  padding: 13px 15px;
}

.form-status.success {
  color: #106b3d;
  background: #e9f8ef;
  border: 1px solid #bce5cb;
}

.form-status.error {
  color: var(--red);
  background: #fff1f0;
  border: 1px solid #f3c0bc;
}

footer {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 34px;
  color: var(--muted);
  border-top: 1px solid rgba(177, 195, 216, 0.7);
  font-size: 13px;
}

footer span:first-child {
  color: var(--navy);
  font-weight: 900;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 0;
  }

  .contact-intro {
    padding-bottom: 12px;
  }

  .contact-intro h1 {
    font-size: clamp(38px, 11vw, 56px);
  }
}

@media (max-width: 620px) {
  .site-header,
  .contact-layout,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding-top: 16px;
  }

  .brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 15px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand small {
    display: none;
  }

  .back-link {
    padding: 9px 11px;
    font-size: 13px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-card {
    padding: 24px 20px;
    border-radius: 19px;
  }

  footer {
    flex-direction: column;
  }
}