﻿* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5em;
  font-weight: 400;
}

#wrapper {
  max-width: 540px;
  margin: 16px auto;
  border: 1px solid #00305f;
  background-color: #fff;
  overflow: hidden;
}

header {
  padding: 32px 0 48px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.qrcode {
  padding: 36px 26px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  flex-direction: row-reverse;
}

.box {
  flex: 1 1 0;
}

.box p {
  color: #000;
}

footer {
  padding: 16px 26px;
  background: #00305f;
}

.margin {
  margin: 0 8px;
}

h1 {
  padding: 10px 26px;
  font-size: 39px;
  line-height: 44px;
  font-weight: 700;
  background: #00305f;
}

h1 span {
  font-size: 18px;
  line-height: 24px;
}

h2 {
  padding: 16px 26px 10px;
  font-size: 38px;
  line-height: 42px;
  font-weight: 700;
  background: #ed1c24;
}

h3 {
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  color: #00305f;
}

h4 {
  margin: -40px 0 0;
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
  color: #00305f;
}

h4 span {
  margin: 0 0 0 -8px;
  padding: 2px 26px 2px 8px;
  font-size: 27px;
  line-height: 32px;
  display: block;
  background: #00305f;
  color: #fff;
}

a {
  color: #fff;
  text-decoration: none;
}

ul {
  list-style: none;
  color: #00305f;
  font-size: 15px;
  line-height: 1.1;
}

ul li {
  padding-left: 10px;
}

li:before {
  content: '\2022';
  float: left;
  font-size: 20px;
  text-indent: -10px;
  margin: -2px 0 0;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

@media all and (max-width: 538px) {
  #wrapper {
    margin: 0;
    border: none;
    hyphens: auto;
  }

  header {
    padding: 32px 0 32px 16px;
  }

  :is(.qrcode, footer) {
    padding: 16px;
  }

  h1 {
    padding: 10px 16px;
  }

  h2 {
    padding: 16px 16px 10px;
  }

  span {
    white-space: nowrap;
  }

  br:not(footer br) {
    display: none;
  }
}

@media all and (max-width: 495px) {
  header {
    flex-direction: column;
    padding: 16px;
  }

  .qrcode {
    flex-direction: column;
  }

  h4 {
    margin: 0;
    text-align: center;
  }

  h4 span {
    margin-left: 0;
    padding: 2px 16px;
  }
}

@media all and (max-width: 374px) {
  h2 {
    font-size: 32px;
    line-height: 1.2;
  }
}