:root {
  --red: #e31b23;
  --black: #151515;
  --grey: #676b73;
  --line: #e7e7e7;
  --soft: #f7f7f7;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
}

.shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--black);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.back {
  color: var(--grey);
  text-decoration: none;
  font-size: 14px;
}

.back:hover {
  color: var(--black);
}

main {
  padding: 76px 0 110px;
}

.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 66px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

h2 {
  margin-top: 44px;
  font-size: 22px;
}

.intro {
  color: var(--grey);
  font-size: 18px;
  max-width: 720px;
  margin-bottom: 40px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: var(--soft);
  margin: 26px 0;
}

p {
  margin: 0 0 14px;
}

a {
  color: var(--red);
}

dl {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px 22px;
  margin: 0;
}

dt {
  color: var(--grey);
}

dd {
  margin: 0;
  font-weight: 550;
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 650;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 9px;
  font: inherit;
  background: white;
}

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

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  color: var(--grey);
}

.checkbox input {
  width: auto;
  margin-top: 5px;
}

button {
  width: fit-content;
  border: 0;
  border-radius: 9px;
  padding: 13px 22px;
  background: var(--red);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #c9151c;
}

.note {
  color: var(--grey);
  font-size: 13px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 44px;
  color: var(--grey);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--grey);
  text-decoration: none;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 920px);
  }

  dl {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  dd {
    margin-bottom: 12px;
  }
}
