:root {
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-text: #102033;
  --color-muted: #5f6f82;
  --color-border: #dce3ec;
  --color-primary: #0d2742;
  --color-accent: #2b78c5;
  --color-accent-soft: #e8f2fc;
  --shadow: 0 24px 70px rgba(16, 32, 51, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(43, 120, 197, 0.14), transparent 34rem),
    linear-gradient(135deg, #ffffff 0%, var(--color-bg) 55%, #edf3f9 100%);
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.hero {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__content {
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--color-accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  color: var(--color-primary);
}

.subtitle {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.contact-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(220, 227, 236, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 38px);
  backdrop-filter: blur(16px);
}

.contact-intro h2 {
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.contact-intro p {
  margin-bottom: 28px;
  color: var(--color-muted);
  line-height: 1.65;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

label {
  font-size: 0.94rem;
  font-weight: 650;
  color: var(--color-primary);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px 15px;
  color: var(--color-text);
  background: #ffffff;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), #16466f);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  box-shadow: 0 14px 32px rgba(13, 39, 66, 0.22);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(13, 39, 66, 0.26);
}

button:focus-visible {
  outline: 4px solid var(--color-accent-soft);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-message {
  min-height: 1.5em;
  margin: 0;
  color: var(--color-accent);
  font-weight: 650;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .page {
    place-items: start center;
    padding: 36px 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero__content {
    padding-top: 8px;
  }
}

@media (max-width: 520px) {
  .contact-card {
    border-radius: 18px;
    padding: 22px;
  }

  input,
  textarea,
  button {
    border-radius: 12px;
  }

  button {
    width: 100%;
  }
}
