html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f5f6f8;
  color: #172033;
  display: flex;
  flex-direction: column;
}

body > .container {
  flex: 1;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e1e5ec;
}

.site-header__content {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-brand img {
  display: block;
  width: 230px;
  height: auto;
}

.site-header__title {
  display: grid;
  gap: 2px;
  text-align: right;
}

.site-header__title strong {
  font-size: 1.05rem;
}

.site-header__title span {
  color: #687286;
  font-size: .9rem;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #2f6fed;
}

.converter {
  width: min(760px, 100%);
  margin: 40px auto 48px;
  padding: 32px;
  background: #fff;
  border: 1px solid #d9dde5;
  border-radius: 8px;
}

.footer {
  width: 100%;
  background: #172033;
  color: #fff;
}

.footer__main {
  padding-top: 40px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 48px;
}

.company-card__eyebrow {
  margin: 0 0 8px;
  color: #87aefb;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.company-card__about h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
}

.company-card__about > p:not(.company-card__eyebrow) {
  color: #cbd3e1;
  line-height: 1.65;
}

.company-card__site {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.company-card__site:hover {
  color: #a9c5ff;
}

.company-card__contacts {
  display: grid;
  gap: 10px;
}

.company-card__contacts h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.contact-link {
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  transition: border-color .15s ease, background-color .15s ease;
}

.contact-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .3);
}

.contact-link svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: #75a2ff;
}

.contact-link span {
  display: grid;
  line-height: 1.25;
}

.contact-link small {
  color: #aeb8c9;
  font-size: .73rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .12);
}

.footer__legal {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__legal a {
  color: #a9c5ff;
}

@media (max-width: 767px) {
  .site-header__content {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-header__title {
    text-align: left;
  }

  .converter {
    padding: 22px;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .footer__legal {
    padding-top: 16px;
    padding-bottom: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.converter__header {
  margin-bottom: 28px;
}

.converter__header h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 700;
}

.converter__header p {
  max-width: 620px;
  margin: 0;
  color: #596171;
}

.converter__form {
  display: grid;
  gap: 14px;
}

.converter__form .btn {
  justify-self: start;
  min-width: 180px;
}

.converter__rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  color: #4d5668;
}

.converter__rules strong {
  margin-right: 4px;
}

.converter__rules span {
  padding: 4px 8px;
  border: 1px solid #d9dde5;
  border-radius: 6px;
  background: #fafbfc;
}
