*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #02152f;
  color: #f5f7ff;
}

.page {
  min-height: 100vh;
  padding: 32px 56px 40px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 600;
}

.nav-links a {
  margin-left: 24px;
  font-size: 0.95rem;
  text-decoration: none;
  color: #e3ecff;
  position: relative;
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #e3ecff;
}

.nav-links a:hover {
  opacity: 0.85;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  column-gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 3.8vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 32px;
}

.lede {
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 34rem;
  margin: 0 0 16px;
  color: #e0e8ff;
}

.hero-media img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 6px;
}

.footer {
  margin-top: 64px;
  font-size: 0.8rem;
  color: #8a96b8;
}

/* Contact layout */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  column-gap: 48px;
  align-items: flex-start;
}

.contact-form h1 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin: 0 0 32px;
}

form {
  max-width: 520px;
}

.field-group {
  margin-bottom: 24px;
}

.field-group label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.required {
  font-size: 0.8rem;
  color: #9fb3ff;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field-caption {
  font-size: 0.78rem;
  color: #9fb3ff;
  margin-bottom: 4px;
}

input,
textarea {
  border-radius: 999px;
  border: 1px solid #1f3250;
  background-color: #040f24;
  color: #f5f7ff;
  padding: 10px 16px;
  font-size: 0.95rem;
  outline: none;
}

textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus {
  border-color: #4b7cff;
  box-shadow: 0 0 0 1px rgba(75, 124, 255, 0.5);
}

.btn {
  margin-top: 8px;
  padding: 10px 28px;
  border-radius: 999px;
  border: none;
  background: #f5f7ff;
  color: #07111f;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
}

.contact-art img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .page {
    padding: 20px 20px 32px;
  }

  .nav {
    margin-bottom: 40px;
  }

  .hero,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .hero-media,
  .contact-art {
    order: -1;
  }

  .hero-text h1,
  .contact-form h1 {
    margin-top: 8px;
  }

  form {
    max-width: 100%;
  }
}
