.site-footer {
  padding: 40px 20px 24px;
  background: var(--ep-cream);
  color: var(--ep-ink-muted);
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 32px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--ep-ink-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}

.site-footer a[href]:hover {
  color: var(--ep-accent);
}

.site-footer a:not([href]) {
  cursor: default;
}

.site-footer__logo {
  display: block;
  width: 96px;
  height: auto;
}

.site-footer__social {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.site-footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d1d0cb;
  border-radius: 50%;
}

.site-footer__social svg,
.site-footer__social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.site-footer .opening-hours-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer .opening-hours-summary > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 6px;
}

.site-footer .opening-hours-summary dt::after {
  content: ":";
}

.site-footer .opening-hours-summary dd {
  margin: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.site-footer__contact,
.site-footer__company {
  font-size: 14px;
  line-height: 1.8;
}

.site-footer__contact address {
  margin: 0;
  font-style: normal;
  white-space: pre-line;
}

.site-footer__contact > a,
.site-footer__contact > span {
  display: block;
  overflow-wrap: anywhere;
}

.site-footer__company p {
  margin: 0;
  max-width: 42ch;
}

.site-footer__download {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__qr {
  display: block;
  width: 112px;
  height: 112px;
  padding: 4px;
  background: #fff;
  object-fit: contain;
}

.site-footer__stores {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer .site-footer__stores a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 144px;
  min-height: 52px;
  padding: 8px 12px;
  background: #111827;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

.site-footer .site-footer__stores a:hover {
  background: #263328;
  color: #fff;
}

.site-footer__stores svg {
  flex: 0 0 22px;
  width: 22px;
  height: 24px;
}

.site-footer__stores small {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
}

.site-footer .site-footer__stores a.site-footer__store-badge {
  display: block;
  width: 144px;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

.site-footer .site-footer__stores a.site-footer__store-badge:hover {
  background: transparent;
  color: inherit;
}

.site-footer__store-badge img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-footer__centres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  max-width: 320px;
}

.site-footer__centres a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
}

.site-footer__centres img {
  display: block;
  width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.site-footer .site-footer__partners-title {
  margin-top: 24px;
  margin-bottom: 12px;
}

.site-footer__partners {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer__partners img {
  width: 70px;
  height: 36px;
  object-fit: contain;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  padding: 20px 0;
  border-top: 1px solid var(--ep-line);
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ep-ink-strong);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.site-footer__nav span {
  transition: transform 200ms ease;
}

.site-footer__nav a[href]:hover span {
  transform: translateY(-3px);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
}

.site-footer__certified {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
}

.site-footer__certified img {
  width: 110px;
  height: auto;
}

.site-footer__legal {
  flex: 1 1 100%;
  order: 3;
  font-size: 11px;
  line-height: 1.6;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer .site-footer__privacy {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  color: var(--ep-ink-strong);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 64px clamp(24px, 4.2vw, 80px) 32px;
  }

  .site-footer h2 {
    margin-bottom: 20px;
  }

  .site-footer__top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding-bottom: 56px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer__social {
    margin-top: 0;
  }

  .site-footer__app {
    grid-column: 1 / 3;
  }

  .site-footer__network {
    grid-column: 3;
    grid-row: 2 / 4;
  }

  .site-footer .opening-hours-summary > div {
    justify-content: flex-start;
  }

  .site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 36px;
  }

  .site-footer__bottom {
    flex-wrap: nowrap;
    gap: 24px;
  }

  .site-footer__legal {
    flex: 1;
    order: 0;
  }

  .site-footer .site-footer__privacy {
    margin-left: 0;
  }
}

@media (min-width: 1200px) {
  .site-footer__top {
    grid-template-columns: minmax(0, .65fr) minmax(0, .95fr) minmax(0, 1.25fr) 268px minmax(0, 1.2fr);
    gap: 28px;
  }

  .site-footer__brand {
    grid-column: auto;
    display: block;
  }

  .site-footer__social {
    margin-top: 24px;
  }

  .site-footer__app,
  .site-footer__network {
    grid-column: auto;
    grid-row: auto;
  }

  .site-footer__centres {
    max-width: none;
    gap: 16px;
  }
}
