@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');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  font-size: 16px;
}

body {
  color: #4D4D4F;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5em;
  font-weight: 400;
}

#wrapper {
  max-width: 654px;
  margin: 1rem auto;
  border: 2px solid #949599;
  padding: 0.75rem 16.875rem 0.75rem 0.75rem;
  background: #fff url(../images/background.jpg) top 12px right 12px no-repeat;
  position: relative;
}

header img {
  display: none;
}

article p {
  font-size: 1.25rem;
  line-height: 1.5;
}

footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kontakt {
  position: relative;
  width: 220px;
}

.kontakt p {
  line-height: 1.2;
  margin: 0;
}

.kontakt img {
  position: absolute;
  top: 0;
  right: 0;
}

p {
  margin: 0 0 1rem;
}

strong {
  font-weight: 700;
}

h1 {
  margin: 4.0625rem 0 1rem;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 2.125rem;
}

h1 span {
  font-size: 0.875rem;
  line-height: 1.125rem;
}

h2 {
  margin: 2.25rem 0 0.875rem;
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.5rem;
}

h2 span {
  font-size: 1.625rem;
  line-height: 1.875rem;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

:is(a:link, a:visited, a:hover, a:active) {
  color: #4D4D4F;
  text-decoration: none;
}

@media all and (max-width: 40.875rem) {
  #wrapper {
    padding: 1rem 16.875rem 1rem 1rem;
    margin: 0;
    border: none;
    background: #fff url(../images/background.jpg) top 0 right 0 no-repeat;
  }

  h1 {
    margin: 1rem 0;
  }

  :is(p, ul) {
    hyphens: auto;
  }

  :is(a, footer span) {
    white-space: nowrap;
  }

  br:not(footer br) {
    display: none;
  }
}

@media all and (max-width: 609px) {
  #wrapper {
    padding: 1rem;
    background: #fff;
  }

  header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  header img {
    display: inline;
  }

  footer {
    justify-content: center;
    flex-wrap: wrap;
  }

  h1 {
    width: 100%;
    margin: 1rem 0;
  }

  h2 {
    margin: 1.25rem 0 0.75rem;
  }

  :is(h1, h2, article p) {
    text-align: center;
  }
}