* {
  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: Georgia, "Times New Roman", serif;
  color: #2b2f2b;
  background: #fbfaf6;
}

a {
  color: #2f6b3a;
}

header {
  border-bottom: 3px solid #2f6b3a;
  padding: 16px 24px;
  background: #fff;
}

header a {
  font: 700 22px/1.2 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1d2a1f;
  text-decoration: none;
}

main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 350px;
  gap: 0 48px;
  align-items: start;
}

section, article {
  grid-column: 1;
}

aside {
  grid-column: 2;
  grid-row: 1/span 2;
  position: sticky;
  top: 16px;
  background: #fff;
  border: 1px solid #d9d6c8;
  border-top: 4px solid #2f6b3a;
  padding: 20px;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

aside h2 {
  font-size: 20px;
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1d2a1f;
  line-height: 1.25;
}

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

h2 {
  font-size: 23px;
  margin: 1.7em 0 .4em;
}

h3 {
  font-size: 17px;
  margin: 1.2em 0 .3em;
}

p {
  margin: 0 0 1.1em;
}

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

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

input[type=submit] {
  background: #2f6b3a;
  width: 100%;
}

nav ul {
  columns: 3;
}

footer {
  border-top: 1px solid #d9d6c8;
  text-align: center;
  padding: 18px;
  font-size: 14px;
  background: #fff;
}

@media (max-width: 860px) {
  main {
    display: block;
  }
  aside {
    position: static;
    margin: 0 0 8px;
  }
  h1 {
    font-size: 28px;
  }
  nav ul {
    columns: 2;
  }
}

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

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