:root {
  --bg: #f5f1ea;
  --paper: #fffdf9;
  --ink: #171311;
  --muted: #5f5550;
  --accent: #202020;
  --line: rgba(23, 19, 17, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Georgia, "Times New Roman", serif;
}

.page-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 32px 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 0;
  border: 1px solid var(--accent);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
}

.simple-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.12;
}

.form-heading {
  margin: 28px 0 14px;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

.simple-copy,
.lead-form label {
  color: var(--muted);
}

.simple-copy {
  margin: 0 0 24px;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.7;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 600;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(34, 24, 20, 0.16);
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 14px 15px;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(159, 61, 45, 0.18);
  border-color: rgba(159, 61, 45, 0.46);
}

.field-span,
.button-submit {
  grid-column: 1 / -1;
}

.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;
}

@media (max-width: 860px) {
  .panel {
    padding: 24px 18px;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }
}
