:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: #e3e7ee;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --accent: #1f4fd8;
  --accent-dark: #163aa3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
  padding: 32px 0 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

[hidden] {
  display: none !important;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.07);
}

.hero {
  margin: 0;
  background: #eef1f6;
  border-right: 1px solid var(--line);
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(32px, 5vw, 64px);
  align-items: stretch;
}

@media (min-width: 761px) {
  .hero img {
    height: 100%;
  }
}

h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 750;
}

.headline-primary {
  color: var(--accent);
}

.subtext {
  margin: 20px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

.subtext a {
  color: var(--accent);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.subtext a:hover {
  color: var(--accent-dark);
}

.subtext a:focus-visible {
  outline: 3px solid rgba(31, 79, 216, 0.35);
  outline-offset: 3px;
  border-radius: 2px;
}

.contact-form {
  margin-top: 28px;
  background: #f9fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 32px);
}

.contact-form h2 {
  margin: 0 0 20px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d3d9e3;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 104px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 79, 216, 0.14);
}

button {
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

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

button:focus-visible {
  outline: 3px solid rgba(31, 79, 216, 0.35);
  outline-offset: 2px;
}

.form-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding: 28px clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #f9fafc;
}

.newsletter > p {
  flex: 1 1 320px;
  margin: 0;
  max-width: 52ch;
  font-weight: 600;
}

.newsletter-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter-form input {
  width: 240px;
  max-width: 100%;
  padding: 11px 13px;
  border: 1px solid #d3d9e3;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 79, 216, 0.14);
}

.newsletter-form button {
  width: auto;
  white-space: nowrap;
}

.newsletter-form .form-status {
  flex: 1 0 100%;
  margin: 0;
  min-height: 0;
}

.site-footer {
  margin-top: auto;
  padding-top: 24px;
  color: #848d9b;
  font-size: 0.8125rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 28px, 560px);
    padding-top: 20px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .newsletter-form {
    width: 100%;
  }

  .newsletter-form input {
    flex: 1 1 180px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
