
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/poppins-v22-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('../fonts/poppins-v22-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/poppins-v22-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('../fonts/poppins-v22-latin-regular.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
       url('../fonts/poppins-v22-latin-regular.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
       url('../fonts/poppins-v22-latin-regular.svg#Poppins') format('svg'); /* Legacy iOS */
}

@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/poppins-v22-latin-700.eot'); /* IE9 Compat Modes */
  src: url('../fonts/poppins-v22-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/poppins-v22-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('../fonts/poppins-v22-latin-700.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
       url('../fonts/poppins-v22-latin-700.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
       url('../fonts/poppins-v22-latin-700.svg#Poppins') format('svg'); /* Legacy iOS */
}

* {
  box-sizing: border-box;
  margin: 0;
}

:root {
  font-size: 16px;
}

body {
  color: #333;
  font: 400 1em/1.5em 'Poppins', Arial, sans-serif;
}

#wrapper {
  position: relative;
  max-width: 800px;
  margin: 1rem auto;
  border: 1px solid #333333;
  background: #fff;
  overflow: hidden;
  padding: 1rem 1.5rem 0;
}

.link {
  font-weight: 500;
  color: #057EC5;
}

:is(h1, h3, h4, strong) {
  font-weight: 600;
}

:is(a:link, a:visited, a:hover, a:active) {
  color: inherit;
  text-decoration: none;
}

.under:not(.flex .under) {
  text-decoration: underline;
}

p {
  padding-bottom: 1rem;
}

h1 {
  margin: 0 0 1rem -24px;
  padding: 6px 16px 6px 24px;
  font-size: 1.65em;
  line-height: 1.3;
  flex: 1 1 0;
  background: #057EC5;
  color: #fff;
}

.font {
  font-size: 1.125em;
}

h2 {
  font: 400 1.5em/1.2em 'Source Sans Pro', Arial, sans-serif;
  background: #057EC5;
  color: #fff;
  width: 312px;
  border-radius: 0 30px 30px 0;
  margin: 1rem 0 1.5rem -1.5rem;
  padding: 0.5rem 0.5rem 0.5rem 2.5rem;
  font-weight: 400;
}

h3 {
  font-size: 1.625em;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

h3 span {
  color: #E30613;
  text-transform: none;
}

h4 {
  font-size: 1.55em;
  line-height: 1.3;
}

:is(h4, h4+p, .contact p) {
  text-align: center;
}

ul {
  padding: 0 0 0.5rem;
  list-style: none;
}

li {
  padding: 0 0 0 1.5rem;
  position: relative;
}

li:before {
  content: url('../images/icon.jpg');
  margin: 0 10px 0 -1.5rem;
  vertical-align: -8px;
}

.flex {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  align-items: center;
  gap: 16px;
  margin-right: -0.5rem;
  flex-wrap: wrap;
}

.text {
  font-size: 0.938em;
  line-height: 1.4;
  text-align: center;
}

.img p {
  text-align: center;
  margin-top: 0.5rem;
}

.mt {
  margin-top: -4rem;
}

.benefits {
  background: linear-gradient(180deg, #E30A17, #EC5F67);
  margin: 2rem -1.5rem;
  padding: 3.25rem 1.5rem 2rem;
  border-radius: 40px;
  display: flex;
  justify-content: space-between;
}

.benefits .box {
  width: 20%;
}

.benefits figure {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefits p {
  color: #fff;
  text-align: center;
  font-weight: 500;
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 3rem;
}

.contact p strong {
  font-size: 1.25em;
  line-height: 1.3;
}

header {
  padding: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@-webkit-keyframes slidy {
0% { left: 0%; }
25% { left: 0%; }
50% { left: -100%; }
75% { left: -100%; }
100% { left: -200%; }
}

@keyframes slidy {
0% { left: 0%; }
25% { left: 0%; }
50% { left: -100%; }
75% { left: -100%; }
100% { left: -200%; }
}
.slide {
    overflow: hidden;
    margin: 0 -1.5rem;
}
.slide figure img { width: 33.333333%; float: left; }
.slide figure { 
  position: relative;
  width:300%;
  margin: 0;
  left: 0;
  text-align: left;
  font-size: 0;
  -webkit-animation-name:slidy;
  -webkit-animation-duration: 18s;
  -webkit-animation-delay: 2s;
  -webkit-animation-iteration-count: infinite;
  animation: 18s slidy infinite; 
}
article {
  position: relative;
}

footer {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
  margin: 1rem -1.5rem 0;
}

footer iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border: none;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

@media only screen and (max-width: 799px) {
  #wrapper {
    border: none;
    margin: 0 auto;
  }

  .benefits {
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 16px -16px;
    padding: 32px 16px 16px;
  }

  .benefits .box {
    width: 30%;
    gap: 0.5rem;
  }

  :is(p, h1, ul) {
    hyphens: auto;
    text-wrap: pretty;
  }

  :is(a:not(.under), span:not(h3 span)) {
    white-space: nowrap;
  }

  br:not(.flex p br, .contact br) {
    display: none;
  }
}

@media only screen and (max-width:768px) {
  .flex {
    flex-direction: column;
    gap: 0;
  }

  .imgs {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
  }

  .imgs img {
    max-height: 238px;
  }

  .mt {
    margin-top: 2rem;
  }

  .contact {
    gap: 1rem;
  }

  h1 br {
    display: none;
  }
}

@media only screen and (max-width:480px) {
  #wrapper {
    padding: 1rem;
  }

  .flex {
    margin-right: 0;
  }

  .benefits .box {
    width: 48%;
    gap: 0.5rem;
  }

  .mt {
    margin-top: 1rem;
  }

  header {
    padding-bottom: 1rem;
    flex-direction: column;
    align-items: center;
  }
  .slide {
    margin: 0 -1rem;
  }
  footer {
    margin: 1rem -1rem -16px;
  }

  h1 {
    margin: 0 0 16px -16px;
    padding: 8px 16px;
  }

  h2 {
    margin: 0 0 1rem -1rem;
    padding: 8px 8px 8px 16px;
    width: 298px;
  }
}