:root {
  --site-color-brand: #d71c20;
  --site-color-heading: #172033;
  --site-color-text: #485569;
  --site-color-muted: #7b8797;
  --site-color-dark: #2c2727;
  --site-color-white: #ffffff;
  --site-content-width: 1200px;
  --site-gutter-desktop: 24px;
  --site-gutter-pad: 40px;
  --site-gutter-mobile: 20px;
}

.site-footer-service,
.site-footer-main,
.site-footer-service *,
.site-footer-main * {
  box-sizing: border-box;
}

.site-footer-service,
.site-footer-main,
.site-footer-service__inner,
.site-footer-main__content,
.site-footer-main__left,
.site-footer-main__right,
.site-footer-follow,
.site-footer-follow__item,
.site-footer-copyright,
.site-footer-copyright__info {
  float: none;
  clear: none;
}

.site-footer-service {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #f2f5f8 0%, #e7edf3 100%);
}

.site-footer-service__inner,
.site-footer-main__content,
.site-footer-copyright {
  width: min(var(--site-content-width), calc(100% - (var(--site-gutter-desktop) * 2)));
  margin: 0 auto;
  box-sizing: border-box;
}

.site-footer-service__inner {
  padding: 72px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.site-footer-service__copy {
  text-align: left;
}

.site-footer-service__title {
  margin: 0;
  color: var(--site-color-heading);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}

.site-footer-service__desc {
  margin: 16px 0 0;
  color: var(--site-color-text);
  font-size: 18px;
  line-height: 1.7;
}

.site-footer-service__qrs {
  display: flex;
  gap: 32px;
}

.site-footer-qr {
  width: 132px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-footer-qr__img {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: cover;
  margin: 0 auto 12px;
}

.site-footer-qr__label {
  display: block;
  color: var(--site-color-heading);
  font-size: 18px;
  line-height: 1.4;
}

.site-footer-main {
  display: block;
  background: var(--site-color-dark);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer-main__content {
  padding: 72px 0 56px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.site-footer-main__left {
  text-align: left;
}

.site-footer-main__logo {
  width: 95px;
  display: block;
  margin-bottom: 28px;
}

.site-footer-main__text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.site-footer-main__text--last {
  margin-bottom: 0;
}

.site-footer-main__right {
  min-width: 0;
}

.site-footer-main__heading {
  margin: 0;
  color: var(--site-color-white);
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.site-footer-follow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 80px));
  gap: 28px 32px;
  margin-top: 24px;
}

.site-footer-follow__item {
  text-align: center;
}

.site-footer-follow__item--link {
  cursor: pointer;
}

.site-footer-follow__img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin: 0 auto;
}

.site-footer-follow__label {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.4;
}

.site-footer-copyright {
  padding: 0 0 72px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer-copyright__info {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer-copyright a {
  color: inherit;
  text-decoration: none;
}

.site-footer-copyright a:hover,
.site-footer-follow__item--link:hover .site-footer-follow__label,
.site-footer-qr:hover .site-footer-qr__label {
  color: var(--site-color-brand);
}

.site-qr-preview {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.site-qr-preview.is-open {
  display: flex;
}

.site-qr-preview__mask {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(22, 16, 16, 0.65);
  cursor: pointer;
}

.site-qr-preview__box {
  position: relative;
  z-index: 1;
  width: 300px;
  padding: 24px 24px 20px;
  background: var(--site-color-white);
  text-align: center;
}

.site-qr-preview__close {
  position: absolute;
  right: 8px;
  top: 4px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--site-color-muted);
  font-size: 24px;
  line-height: 30px;
  cursor: pointer;
}

.site-qr-preview__img {
  display: block;
  width: 240px;
  height: 240px;
  object-fit: cover;
  margin: 0 auto 14px;
}

.site-qr-preview__title {
  margin: 0;
  color: var(--site-color-heading);
  font-size: 18px;
  line-height: 1.4;
}

@media screen and (max-width: 1199px) {
  .site-footer-service__inner,
  .site-footer-main__content,
  .site-footer-copyright {
    width: calc(100% - (var(--site-gutter-pad) * 2));
  }

  .site-footer-service__inner,
  .site-footer-main__content {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media screen and (max-width: 767px) {
  .site-footer-service__inner,
  .site-footer-main__content,
  .site-footer-copyright {
    width: calc(100% - (var(--site-gutter-mobile) * 2));
  }

  .site-footer-service__inner {
    padding: 56px 0;
    gap: 24px;
  }

  .site-footer-service__title {
    font-size: 26px;
    line-height: 1.35;
  }

  .site-footer-service__desc {
    font-size: 15px;
  }

  .site-footer-service__qrs {
    gap: 18px;
  }

  .site-footer-qr,
  .site-footer-qr__img {
    width: 108px;
    height: 108px;
  }

  .site-footer-main__content {
    padding: 56px 0 36px;
  }

  .site-footer-follow {
    grid-template-columns: repeat(2, minmax(0, 80px));
  }

  .site-footer-copyright {
    padding-bottom: 48px;
    flex-direction: column;
    gap: 10px;
  }
}
