.site-footer {
  color: #4e5b70;
  background: #f4f7fb;
  border-top: 1px solid #e4e9f1;
}

.site-footer .page-shell {
  padding-top: 0;
}

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

.footer-services {
  background: #f8fafc;
  border-bottom: 1px solid #dfe5ee;
}

.footer-service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-service-item {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 112px;
  padding: 24px 32px;
  gap: 18px;
  border-left: 1px solid #e3e8ef;
  transition: background-color 180ms ease;
}

.footer-service-item:first-child {
  border-left: 0;
}

.footer-service-item:hover {
  background: #fff;
}

.footer-service-item img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  transition: transform 180ms ease;
}

.footer-service-placeholder {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: #8090a5;
  background: #e9eef5;
  font-size: 20px;
}

.footer-service-item:hover img {
  transform: translateY(-2px);
}

.footer-service-item span {
  min-width: 0;
}

.footer-service-item strong,
.footer-service-item small {
  display: block;
}

.footer-service-item strong {
  color: #152238;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.footer-service-item small {
  margin-top: 5px;
  color: #7b8799;
  font-size: 13px;
  line-height: 1.5;
}

.footer-main > .page-shell {
  padding-top: 46px;
  padding-bottom: 28px;
}

.footer-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 54px;
  padding-bottom: 42px;
  border-bottom: 1px solid #dfe5ee;
}

.footer-link-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 28px;
}

.footer-navigation--full {
  grid-template-columns: 1fr;
}

.footer-navigation--contact-only {
  grid-template-columns: minmax(260px, 360px);
  justify-content: end;
}

.footer-navigation--contact-only .footer-contact {
  border-left: 0;
}

.footer-link-group {
  min-width: 0;
}

.footer-link-group h2,
.footer-contact h2 {
  margin: 0 0 18px;
  color: #17243a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.footer-link-group a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 11px;
  color: #657187;
  font-size: 13px;
  line-height: 1.55;
  transition: color 160ms ease;
}

.footer-link-group a:hover,
.footer-shortcuts a:hover,
.footer-legal a:hover {
  color: #1664ff;
}

.footer-contact {
  padding-left: 42px;
  border-left: 1px solid #dfe5ee;
}

.footer-contact > p {
  max-width: 250px;
  margin: -3px 0 25px;
  color: #7b8799;
  font-size: 13px;
  line-height: 1.7;
}

.footer-contact-label,
.footer-contact-time {
  display: block;
  color: #7b8799;
  font-size: 12px;
  line-height: 1.6;
}

.footer-contact .footer-contact-phone {
  display: inline-block;
  min-height: 0;
  margin: 3px 0 4px;
  padding: 0;
  color: #17243a !important;
  background: transparent;
  border: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.35;
}

.footer-contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.footer-qrcodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.footer-qrcodes figure {
  min-width: 0;
  margin: 0;
}

.footer-qrcodes img {
  width: 78px;
  height: 78px;
  display: block;
  object-fit: cover;
  background: #fff;
  border: 1px solid #dfe5ee;
}

.footer-qrcodes figcaption {
  display: grid;
  gap: 2px;
  margin-top: 7px;
}

.footer-qrcodes strong {
  color: #26364e;
  font-size: 12px;
}

.footer-qrcodes small {
  overflow: hidden;
  color: #8995a6;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.footer-contact-primary {
  color: #fff !important;
  background: #1664ff;
  border: 1px solid #1664ff;
}

.footer-contact-primary:hover {
  background: #0f55de;
  border-color: #0f55de;
}

.footer-contact-secondary {
  color: #35445c !important;
  background: #fff;
  border: 1px solid #cfd7e3;
}

.footer-contact-secondary:hover {
  color: #1664ff !important;
  border-color: #1664ff;
}

.footer-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 22px 0;
  border-bottom: 1px solid #dfe5ee;
}

.footer-shortcuts span,
.footer-shortcuts a {
  font-size: 12px;
  line-height: 1.6;
}

.footer-shortcuts span {
  color: #26364e;
  font-weight: 600;
}

.footer-shortcuts a {
  color: #718096;
  transition: color 160ms ease;
}

.footer-meta {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  align-items: end;
  gap: 40px;
  padding-top: 25px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1664ff !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.footer-brand svg {
  width: 34px;
  height: 27px;
}

.footer-brand-image {
  width: auto;
  max-width: 128px;
  height: 34px;
  object-fit: contain;
}

.footer-identity p {
  margin: 10px 0 0;
  color: #7b8799;
  font-size: 12px;
  line-height: 1.6;
}

.footer-legal {
  text-align: right;
}

.footer-legal > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.footer-legal a,
.footer-legal p {
  color: #7b8799;
  font-size: 12px;
  line-height: 1.7;
}

.footer-legal a {
  transition: color 160ms ease;
}

.footer-legal p {
  margin: 0;
}

.footer-compliance {
  margin-top: 5px;
}

.footer-meta > :only-child {
  grid-column: 1 / -1;
}

@media (min-width: 641px) {
  .site-footer .is-hidden-desktop {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .footer-service-item {
    padding-right: 20px;
    padding-left: 20px;
  }

  .footer-navigation {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 36px;
  }

  .footer-link-groups {
    gap: 20px;
  }

  .footer-contact {
    padding-left: 30px;
  }
}

@media (max-width: 980px) {
  .footer-service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-service-item:nth-child(odd) {
    border-left: 0;
  }

  .footer-service-item:nth-child(n + 3) {
    border-top: 1px solid #e3e8ef;
  }

  .footer-navigation {
    grid-template-columns: 1fr;
  }

  .footer-link-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
  }

  .footer-contact {
    padding: 30px 0 0;
    border-top: 1px solid #dfe5ee;
    border-left: 0;
  }

  .footer-contact > p {
    max-width: 520px;
  }

  .footer-contact-actions {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .site-footer .is-hidden-mobile {
    display: none !important;
  }
  .footer-service-item {
    min-height: 88px;
    padding: 17px 12px;
    gap: 10px;
  }

  .footer-service-item img {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .footer-service-item strong {
    font-size: 14px;
  }

  .footer-service-item small {
    display: none;
  }

  .footer-main > .page-shell {
    padding-top: 34px;
    padding-bottom: 24px;
  }

  .footer-navigation {
    gap: 32px;
    padding-bottom: 30px;
  }

  .footer-link-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
  }

  .footer-link-group h2,
  .footer-contact h2 {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .footer-link-group a {
    margin-top: 9px;
    font-size: 12px;
  }

  .footer-contact-phone {
    font-size: 22px;
  }

  .footer-contact-actions {
    max-width: none;
  }

  .footer-qrcodes {
    max-width: 240px;
  }

  .footer-shortcuts {
    align-items: flex-start;
    gap: 8px 18px;
    padding: 20px 0;
  }

  .footer-shortcuts span {
    flex-basis: 100%;
  }

  .footer-meta {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
    padding-top: 22px;
  }

  .footer-legal {
    text-align: left;
  }

  .footer-legal > div {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .footer-service-item {
    padding-right: 8px;
    padding-left: 8px;
  }

  .footer-service-item img {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .footer-service-item strong {
    font-size: 13px;
  }

  .footer-contact-actions {
    grid-template-columns: 1fr;
  }
}
