:root {
  color-scheme: light;
  --ink: #1f252c;
  --muted: #64727f;
  --line: #dce3ea;
  --paper: #ffffff;
  --soft: #f5f7f9;
  --accent: #b4232c;
  --accent-dark: #78151c;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
}

.page {
  min-height: 100vh;
}

.hero {
  min-height: 54vh;
  display: grid;
  place-items: center;
  padding: 72px 24px 48px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.92)),
    url("https://images.unsplash.com/photo-1513326738677-b964603b136d?auto=format&fit=crop&w=1800&q=80") center/cover;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  width: min(920px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  width: min(680px, 100%);
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: var(--accent-dark);
}

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1060px, calc(100% - 48px));
  margin: -34px auto 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 16px 40px rgba(31, 37, 44, 0.08);
}

.detail {
  padding: 26px;
  background: var(--paper);
}

.detail span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.detail strong {
  font-size: 1.1rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 80px;
}

.contact-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.contact-copy p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(31, 37, 44, 0.07);
}

.thank-you {
  align-self: start;
  grid-column: 2;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(180, 35, 44, 0.28);
  border-radius: 8px;
  background: #fff2f3;
  color: var(--accent-dark);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.5;
}

.form-error {
  align-self: start;
  grid-column: 2;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #e0a7a7;
  border-radius: 8px;
  background: #fff1f1;
  color: #8a1f1f;
  font-weight: 700;
  line-height: 1.5;
}

label {
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid #c8d4de;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(180, 35, 44, 0.18);
  border-color: var(--accent);
}

textarea {
  resize: vertical;
}

@media (max-width: 760px) {
  .hero {
    min-height: 50vh;
    padding-top: 56px;
  }

  .details,
  .contact-section {
    width: min(100% - 32px, 560px);
  }

  .details,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .details {
    margin-bottom: 52px;
  }

  .contact-section {
    gap: 28px;
  }

  .contact-form {
    padding: 22px;
  }

  .thank-you,
  .form-error {
    grid-column: 1;
  }
}
