/* RESET STYLES*/
*, *::before, *::after {
  box-sizing: border-box;
}
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, input, textarea, select, label, button, picture {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
caption, th, td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}
q, blockquote {
  quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after {
  content: "";
  content: none;
}
a img {
  border: 0;
}
img, picture, svg, video, canvas {
  border: 0;
max-width: 100%;
}
a{
  text-decoration: none;
}
img, picture, svg, video, canvas,
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
  display: block;
}

/* GENERAL STYLES */

html, body {
  width: 100%;
  min-height: 100vh;
  font: normal 16px "Montserrat", 'Arial', sans-serif;
  font-optical-sizing: auto;
  background-color: #fff;
  line-height: 1.5;
}

html, body,
a, a:active, a:visited {
  color: #4d4d4d;
}

/* BEHAVIOUR & STRUCTURE */
.block {
  display: block;
}

.flex,
.flex-column {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* APPEARANCE */
.rounded-borders {
  -webkit-border-radius: 0.8125rem;
  -moz-border-radius: 0.8125rem;
  -o-border-radius: 0.8125rem;
  border-radius: 0.8125rem;
}

/* TYPOGRAPHY & TEXT */
strong{
  font-weight: bold;
}

em{
  font-style: italic;
}

.uppercase {
  text-transform: uppercase;
}

/* SPECIFIC ELEMENTS / BLOCKS */
.yellow-bar,
.red-bar {
  height: 13px;
}

.yellow-bar,
.red-bar:not(.alt) {
  width: 50%;
}

.yellow-bar {
  background-color: #d3a82a;
}

.red-bar {
  background-color: #c42c30;
}

.hero-container {
  padding-bottom: 490px;
  background: #fff url(../img/hero.jpg) no-repeat center top;
}

@media (max-width: 1300px) {
  .hero-container {
    background-position-x: 70%;
  }
}

@media (max-width: 995px) {
  .hero-container {
    padding-bottom: 375px;
    background-size: 1490px;
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding-bottom: 255px;
    background-size: 1000px;
  }
}

@media (max-width: 600px) {
  .hero-container {
    padding-bottom: 48%;
    background-size: 190%;
  }
}

.main {
  padding: 3.125rem 0 9.375rem 0;
}

.card,
.card__btn {
  border: 1px solid #4d4d4d;
}

.card {
  width: 24.6875rem;
  padding: 3.75rem 2rem;
  margin: 0.6875rem;
}

.card__img {
  width: 67%;
  margin-bottom: 2.5rem;
}

.card__text {
  margin-bottom: 2.8125rem;
  font-size: 1rem;
}

.card__text,
.card__btn {
  text-align: center;
}

.card__btn {
  width: 7.9375rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

@media (max-width: 400px) {
  .card {
    width: 18.75rem;
    padding: 1.875rem 1rem;
  }

  .card__text br {
    display: none;
  }
}

.footer {
  height: 2.8125rem;
  background-color: #e8e8e8;
}