:root {
  color: #171717;
  background: #f4f3ef;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  width: min(900px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 190px;
  border-bottom: 3px solid #171717;
}

header img {
  width: 150px;
  height: auto;
  aspect-ratio: 4724 / 1374;
  object-fit: contain;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 8px;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 6px 0 8px;
  font-size: 1.25rem;
  letter-spacing: 0;
}

p {
  max-width: 580px;
  color: #555;
  line-height: 1.5;
}

.index,
footer {
  color: #b42318;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  min-height: 155px;
  border-bottom: 1px solid #aaa;
}

a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #171717;
  border-radius: 4px;
  color: #171717;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #fff;
  background: #171717;
  outline: none;
}

nav {
  display: flex;
  gap: 8px;
}

footer {
  padding: 28px 0 40px;
}

@media (max-width: 660px) {
  body {
    width: min(100% - 28px, 900px);
  }

  header {
    min-height: 150px;
    gap: 16px;
  }

  header img {
    width: 108px;
  }

  section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
  }

  nav {
    flex-wrap: wrap;
  }

  a {
    width: 100%;
  }
}
