:root {
  font-size: 16px;
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/open-sans-v35-latin-regular.eot');
  src: url('../fonts/open-sans-v35-latin-regular.eot?#iefix') format('embedded-opentype'),
    url('../fonts/open-sans-v35-latin-regular.woff2') format('woff2'),
    url('../fonts/open-sans-v35-latin-regular.woff') format('woff'),
    url('../fonts/open-sans-v35-latin-regular.ttf') format('truetype'),
    url('../fonts/open-sans-v35-latin-regular.svg#OpenSans') format('svg');
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/open-sans-v35-latin-700.eot');
  src: url('../fonts/open-sans-v35-latin-700.eot?#iefix') format('embedded-opentype'),
    url('../fonts/open-sans-v35-latin-700.woff2') format('woff2'),
    url('../fonts/open-sans-v35-latin-700.woff') format('woff'),
    url('../fonts/open-sans-v35-latin-700.ttf') format('truetype'),
    url('../fonts/open-sans-v35-latin-700.svg#OpenSans') format('svg');
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-size: 16px;
  line-height: 20px;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #000;
  font-weight: 400;
}

#wrapper {
  position: relative;
  max-width: 620px;
  margin: 16px auto;
  border: 3px solid #629A52;
  overflow: hidden;
  background: #f3f9ef url('../images/background.jpg') no-repeat center center;
}

h1 {
  margin: 6px -16px 16px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 400;
  background-color: #FFEB8C;
  padding: 12px 16px;
}

h2 {
  margin: 2px 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: #629A52;
}

h3 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
}

h4 {
  margin: 16px 0 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #629A52;
}

h5 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

p+h2 {
  margin-top: 16px;
}

p:not(:last-of-type) {
  margin-bottom: 16px;
}

header {
  padding: 22px 16px 46px;
  background: url('../images/background-top.png') no-repeat bottom left;
}

article {
  padding: 16px;
}

footer {
  padding: 35px 16px 24px;
  text-align: center;
  background: url('../images/background-footer.png') no-repeat top left;
  color: #fff;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

ul {
  margin: 0 0 16px;
  list-style: none;
}

ul li {
  padding-left: 10px;
}

ul li:before {
  content: "\2022";
  color: #000;
  float: left;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1em;
  text-indent: -10px;
  font-family: Arial, Helvetica, sans-serif;
}

:is(a:link, a:visited, a:hover, a:active) {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

span {
  white-space: nowrap;
}

@media all and (max-width:620px) {
  #wrapper {
    margin: 0;
    border: none;
  }

  :is(p, ul) {
    hyphens: auto;
    text-wrap: pretty;
  }

  br:not(footer br) {
    display: none;
  }
}

@media all and (max-width:620px) {

  header,
  footer {
    background-color: #6BB343;
    padding: 16px;
  }
}