@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-v30-latin-regular.eot');
  src: url('../fonts/roboto-v30-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'), url('../fonts/roboto-v30-latin-regular.woff') format('woff'), url('../fonts/roboto-v30-latin-regular.ttf') format('truetype'), url('../fonts/roboto-v30-latin-regular.svg#Roboto') format('svg');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/roboto-v30-latin-700.eot');
  src: url('../fonts/roboto-v30-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/roboto-v30-latin-700.woff2') format('woff2'), url('../fonts/roboto-v30-latin-700.woff') format('woff'), url('../fonts/roboto-v30-latin-700.ttf') format('truetype'), url('../fonts/roboto-v30-latin-700.svg#Roboto') format('svg');
}

@font-face {
  font-display: swap;
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/pt-serif-v18-latin-regular.eot');
  src: url('../fonts/pt-serif-v18-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/pt-serif-v18-latin-regular.woff2') format('woff2'), url('../fonts/pt-serif-v18-latin-regular.woff') format('woff'), url('../fonts/pt-serif-v18-latin-regular.ttf') format('truetype'), url('../fonts/pt-serif-v18-latin-regular.svg#PTSerif') format('svg');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  font-size: 16px;
}

body {
  color: #6d6e71;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.1em;
  font-weight: 400;
}

#wrapper {
  max-width: 410px;
  margin: 16px auto;
  border: 2px solid #7c0037;
  padding: 6px 50px 10px 12px;
  background: #fff url(../images/background.jpg) right bottom no-repeat;
  position: relative;
  overflow: hidden;
}

header:before {
  content: '';
  width: 44px;
  height: 180px;
  shape-outside: polygon(0 0, 100% 100%, 100% 0);
  float: right;
}

.logo div {
  padding: 0 0 27px;
}

.color {
  margin: 0 0 6px;
  color: #7c0037;
}

.home img {
  display: none;
}

.home p {
  position: absolute;
  right: 3%;
  bottom: 22%;
  transform: translate(50%, -50%);
  margin: 0;
  font-size: 15px;
}

.home p a {
  display: inline-block;
  transform: rotate(-90deg);
  color: #fff;
}

:is(strong, h1) {
  font-weight: 700;
}

h1 {
  margin: 36px 0;
  font-size: 19px;
  line-height: 22px;
  text-align: right;
  color: #231f20;
}

:is(h2, h3) {
  font-weight: 400;
}

h2 {
  margin: 0 0 12px;
  font-size: 47px;
  line-height: 49px;
  font-family: 'PT Serif', Arial, sans-serif;
  text-align: right;
}

h2 span {
  color: #9d4c60;
}

h3 {
  margin: 6px 0;
  font-size: 21px;
  line-height: 25px;
  text-align: right;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

:is(a:link, a:visited, a:hover, a:active) {
  color: #000;
  text-decoration: none;
}

@media all and (max-width: 410px) {
  #wrapper {
    padding: 6px 40px 10px 16px;
    margin: 0;
    border: none;
  }

  footer {
    padding: 0 182px 0 0;
  }

  :is(p, h2, h3) {
    hyphens: auto;
    text-wrap: pretty;
  }

  :is(a, span:not(h2 span)) {
    white-space: nowrap;
  }

  br:not(footer br) {
    display: none;
  }
}

@media all and (max-width: 398px) {
  #wrapper {
    padding: 16px;
    background: #fff;
  }

  header:before {
    display: none;
  }

  footer {
    padding: 0;
  }

  .logo div {
    display: flex;
    justify-content: center;
  }

  .home {
    margin: 16px -16px -16px;
  }

  .home img {
    display: inline;
  }

  .home p {
    position: static;
    background: #7c0037;
    transform: none;
    padding: 16px;
    text-align: center;
  }

  .home p a {
    transform: none;
  }

  :is(p, h1, h2, h3) {
    text-align: center;
  }

  h2 {
    font-size: 36px;
    line-height: 42px;
  }

  h3 {
    font-size: 18px;
  }
}