:root {
  font-size: 16px;
}

@font-face {
  font-display: swap;
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/work-sans-v19-latin-regular.eot');
  src: url('../fonts/work-sans-v19-latin-regular.eot?#iefix') format('embedded-opentype'),
    url('../fonts/work-sans-v19-latin-regular.woff2') format('woff2'),
    url('../fonts/work-sans-v19-latin-regular.woff') format('woff'),
    url('../fonts/work-sans-v19-latin-regular.ttf') format('truetype'),
    url('../fonts/work-sans-v19-latin-regular.svg#WorkSans') format('svg');
}

@font-face {
  font-display: swap;
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/work-sans-v19-latin-700.eot');
  src: url('../fonts/work-sans-v19-latin-700.eot?#iefix') format('embedded-opentype'),
    url('../fonts/work-sans-v19-latin-700.woff2') format('woff2'),
    url('../fonts/work-sans-v19-latin-700.woff') format('woff'),
    url('../fonts/work-sans-v19-latin-700.ttf') format('truetype'),
    url('../fonts/work-sans-v19-latin-700.svg#WorkSans') format('svg');
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-size: 16px;
  line-height: 1.4;
  font-family: 'Work Sans', Arial, sans-serif;
  color: #1E2C4F;
  font-weight: 400;
}

#wrapper {
  position: relative;
  max-width: 1110px;
  margin: 16px auto;
  border: 5px solid #A12634;
  overflow: hidden;
  background-color: #fff;
  background: #fff url('../images/background.jpg') no-repeat bottom right;
  background-size: 100%;
}

h1 {
  margin: 16px 0 24px;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 400;
}

h1+p {
  margin-bottom: 42px;
}

h2 {
  margin: 0 0 22px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

h3 {
  margin: 0 0 40px 0;
  font-size: 55px;
  line-height: 1.125;
  font-weight: 700;
}

h4 {
  margin: 0 0 22px;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 700;
}

h5 {
  margin: 16px 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

p:not(:last-of-type) {
  margin-bottom: 16px;
}

header {
  margin: 0;
  padding: 0;
}

article {
  margin: 0 249px 0 0;
  padding: 43px 0 50px 62px;
  position: relative;
}

footer {
  position: absolute;
  bottom: 49px;
  right: 60px;
  text-align: right;
}

footer>div {
  margin-bottom: 4px;
}

.main {
  position: relative;
}


.flexbox {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

.flexbox>div {
  width: 48%;
}

.contact {
  width: 190px;
  position: absolute;
  top: 78px;
  right: -205px;
  font-size: 13px;
  line-height: 1.65;
  color: #A12634;
}

.contact figure {
  margin: 100px 0 40px;
}

.contact small {
  font-size: 12px;
}

.contact p {
  margin-bottom: 28px;
}

.avata {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  text-align: center;
  font-size: 16px;
  margin: 29px 0 36px -30px;
  color: #A12634;
}

.color {
  color: #1E2C4F;
  padding-left: 16px;
}

.avata>div {
  width: 31%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blocktext {
  display: block;
  margin-bottom: 16px;
}

strong.block {
  font-weight: normal;
}

.block {
  display: block;
}

.intro {
  columns: 2;
  gap: 18px;
  padding-right: 0;
  align-items: flex-end;
  margin-right: 0px;
  font-size: 16px;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

ul {
  margin: 0 0 16px;
  list-style: none;
}

ul li {
  padding-left: 30px;
}

ul li:before {
  content: "\2022";
  color: #000;
  float: left;
  margin-top: 1px;
  font-size: 18px;
  line-height: 1em;
  text-indent: -21px;
}

:is(a:link, a:visited, a:hover, a:active) {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

@media all and (max-width:1100px) {
  #wrapper {
    margin: 0;
    border: none;
  }

  :is(p, ul) {
    hyphens: auto;
    text-wrap: pretty;
  }

  br:not(footer br) {
    display: none;
  }


  .blocktext {
    display: inline;
    margin-bottom: 0;
  }
}

@media all and (max-width:900px) {
  article {
    margin: 0 210px 0 0;
    padding: 16px 0 16px 16px;
    position: relative;
  }

  .avata {
    margin: 16px 0;

  }

  .contact {
    width: 190px;
    position: absolute;
    top: 78px;
    right: -205px;
    font-size: 13px;
    line-height: 1.65;
    color: #A12634;
  }
}

@media all and (max-width:767px) {
  article {
    margin: 0;
    padding: 16px;
    position: relative;
  }


  h3 {
    margin: 0 0 16px;
    font-size: 7vw;
  }

  h3 br {
    display: none;
  }

  h1+p {
    margin-bottom: 16px;
  }

  .flexbox>div {
    width: 100%;
  }

  .flexbox {
    margin-bottom: 16px;
  }

  .flexbox ul {
    margin-bottom: 0;
  }

  footer {
    position: static;
    padding: 0 16px 16px;
  }

  .contact {
    position: static;
    width: 100%;
    margin-top: 16px;
    text-align: center;
  }

  .contact figure {
    margin: 16px 0;
  }
}

@media all and (max-width:638px) {
  .avata {
    flex-direction: column;
  }

  .avata div {
    width: 100%;
  }

  .intro {
    columns: 1;
  }
}