@font-face {
  font-family: 'H2 Montserrat';
  src: url('montserrat-cyrillic.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'H2 Montserrat';
  src: url('montserrat-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

.h2-brand-header,
.h2-brand-header *,
.h2-brand-header *::before,
.h2-brand-header *::after,
.h2-brand-footer,
.h2-brand-footer *,
.h2-brand-footer *::before,
.h2-brand-footer *::after {
  box-sizing: border-box;
}

.h2-brand-header {
  width: 100%;
  background: #ffffff;
  color: #236484;
  font-family: 'H2 Montserrat', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}

.h2-brand-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1160px;
  min-height: 69px;
  margin: 0 auto;
}

.h2-brand-header__logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  border-radius: 3px;
}

.h2-brand-header__logo img {
  display: block;
  width: 131px;
  height: 49px;
  max-width: 100%;
  object-fit: contain;
}

.h2-brand-header__contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  min-width: 0;
  margin-left: auto;
}

.h2-brand-header__contact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.h2-brand-header__icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 25px;
  margin-top: 1px;
  color: #00cf50;
  font-size: 24px;
  line-height: 1;
  text-align: center;
}

.h2-brand-header__contact-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.h2-brand-header__phone,
.h2-brand-header__email {
  display: inline-block;
  color: #236484;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.h2-brand-header__phone:hover,
.h2-brand-header__email:hover {
  color: #0b7d55;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.h2-brand-header__meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #236484;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
}

.h2-brand-header__clock {
  flex: 0 0 auto;
  color: #236484;
  font-size: 12px;
  line-height: 1;
}

.h2-brand-header__logo:focus-visible,
.h2-brand-header__phone:focus-visible,
.h2-brand-header__email:focus-visible {
  outline: 2px solid #236484;
  outline-offset: 3px;
  border-radius: 3px;
}

.h2-brand-footer {
  width: 100%;
  color: #ffffff;
  background-color: #081e38;
  background-image: url('footer-bg.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: 'H2 Montserrat', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}

.h2-brand-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr) auto;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.h2-brand-footer__col {
  min-width: 0;
}

.h2-brand-footer p {
  margin: 0;
}

.h2-brand-footer__col--legal p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.55;
}

.h2-brand-footer__col--legal p:last-child {
  margin-bottom: 0;
}

.h2-brand-footer__col--legal .h2-brand-footer__name {
  color: #ffffff;
  font-weight: 600;
  line-height: 1.5;
}

.h2-brand-footer__address {
  overflow-wrap: anywhere;
}

.h2-brand-footer__contact-line {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.55;
}

.h2-brand-footer__label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.h2-brand-footer__link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  overflow-wrap: anywhere;
}

.h2-brand-footer__link:hover {
  color: #00cf50;
  border-bottom-color: #00cf50;
}

.h2-brand-footer__copyright {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.5;
}

.h2-brand-footer__col--logo {
  justify-self: end;
  align-self: center;
}

.h2-brand-footer__logo-link {
  display: inline-flex;
  max-width: 100%;
  line-height: 0;
  text-decoration: none;
  border-radius: 3px;
}

.h2-brand-footer__logo-link img {
  display: block;
  width: 143px;
  height: auto;
  max-width: 100%;
}

.h2-brand-footer__link:focus-visible,
.h2-brand-footer__logo-link:focus-visible {
  outline: 2px solid #00cf50;
  outline-offset: 3px;
  border-radius: 3px;
}

@media (max-width: 991px) {
  .h2-brand-footer__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px 32px;
  }

  .h2-brand-footer__col--logo {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .h2-brand-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
    padding: 12px 20px;
  }

  .h2-brand-header__contacts {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-left: 0;
  }

  .h2-brand-header__contact {
    width: 100%;
  }

  .h2-brand-header__contact-body {
    flex: 1 1 auto;
  }

  .h2-brand-header__phone,
  .h2-brand-header__email {
    font-size: 19px;
  }

  .h2-brand-footer__inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .h2-brand-footer__col--logo {
    grid-column: auto;
    justify-self: start;
  }

  .h2-brand-footer__copyright {
    margin-top: 10px;
  }
}

@media (max-width: 359px) {
  .h2-brand-header__inner {
    padding: 12px 14px;
  }

  .h2-brand-header__icon {
    width: 22px;
    font-size: 22px;
  }

  .h2-brand-header__phone,
  .h2-brand-header__email {
    font-size: 18px;
  }

  .h2-brand-footer__inner {
    padding: 20px 14px;
  }
}
section#footer.h2-brand-footer-shell {
  position: relative;
  padding: 0;
}
section#footer.h2-brand-footer-shell .back-to-top {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}
