* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.65;
  font-size: 17px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
}

form div {
  display: grid;
  gap: 0 12px;
}

form div>* {
  min-width: 0;
}

input[type=text], textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 400;
  border-radius: 4px;
}

input[type=submit] {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 4px;
  padding: 13px 26px;
  cursor: pointer;
  color: #fff;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
  columns: 4;
}

nav li {
  margin: 0 0 4px;
}

figure {
  margin: 0;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2a3440;
  background: #fff;
}

a {
  color: #0b5cab;
}

header {
  background: #12263f;
  padding: 14px 24px;
}

header a {
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}

body>section {
  background: #eef3f8;
  border-bottom: 1px solid #d5dee8;
  padding: 30px 24px 26px;
}

body>section>div, main {
  max-width: 1000px;
  margin: 0 auto;
}

main {
  padding: 36px 24px 60px;
}

h1, h2, h3 {
  color: #12263f;
  line-height: 1.25;
}

h1 {
  font-size: 34px;
  margin: 0 0 12px;
}

h2 {
  font-size: 24px;
  margin: 1.6em 0 .4em;
}

p {
  margin: 0 0 1.1em;
}

form {
  margin-top: 18px;
}

form div {
  grid-template-columns: 2fr 2fr 1fr;
}

form div+div {
  grid-template-columns: 1fr 1fr;
}

input[type=text], textarea {
  border: 1px solid #b9c6d4;
  background: #fff;
}

input[type=submit] {
  background: #d9601a;
}

main>section {
  display: grid;
  grid-template-columns: minmax(0,1fr) 380px;
  gap: 32px;
  align-items: center;
}

main>section h2 {
  margin-top: 0;
}

figure img {
  border-radius: 6px;
}

footer {
  background: #12263f;
  color: #c9d4e0;
  text-align: center;
  padding: 18px;
  font-size: 14px;
}

@media (max-width: 760px) {
  h1 {
    font-size: 27px;
  }
  form div, form div+div, main>section {
    grid-template-columns: 1fr;
  }
  nav ul {
    columns: 2;
  }
}

header a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

header img {
  width: 44px;
  height: 44px;
}
