/* ==========================================================================
   Pampadu footer — only in the 320px phone design
   ========================================================================== */

.site-footer {
  display: none;
  color: #838b9c;
  font-size: 13px;
  /* 13/15 lines; --lh feeds the global rounded line height */
  --lh: calc(15 / 13);
}

@media (max-width: 639px) {
  .site-footer {
    display: block;
  }
}

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

.site-footer__main {
  padding: 26px 15px 6px;
  background: #f9f9fc;
}

.site-footer__legal {
  padding: 26px 15px 22px;
  background: #dadce3;
}

.site-footer__inner {
  display: grid;
  gap: 12px;
  max-width: 290px;
  margin-inline: auto;
}

.site-footer__legal .site-footer__inner {
  gap: 9.075px;
}

/* Logo and tagline */
.site-footer__brand {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.site-footer__logo img {
  width: 148px;
  height: 32px;
}

/* Social links and phone */
.site-footer__contacts {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__socials {
  display: flex;
  gap: 9px;
}

.site-footer__socials a,
.site-footer__stores a {
  display: block;
  transition: opacity 0.2s;
}

.site-footer__socials a:hover,
.site-footer__stores a:hover {
  opacity: 0.8;
}

.site-footer__socials img {
  width: 24px;
  height: 24px;
}

.site-footer__phone {
  font-size: 15px;
  --lh: calc(17 / 15);
  white-space: nowrap;
}

/* Accordion menus */
.site-footer__nav {
  display: grid;
  gap: 20px;
  padding-bottom: 11px;
  border-bottom: 1px solid #dadce3;
}

.site-footer__more {
  display: grid;
  gap: 7px;
}

.site-footer__more .site-footer__group + .site-footer__group {
  padding-top: 8px;
  border-top: 1px solid #f0f0fc;
}

.site-footer__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  --lh: calc(17 / 15);
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.site-footer__group summary::-webkit-details-marker {
  display: none;
}

.site-footer__group summary::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: url("../img/footer/arrow-down.svg") center / 16px 16px no-repeat;
  transition: transform 0.2s;
}

.site-footer__group[open] summary::after {
  transform: scaleY(-1);
}

.site-footer__group--large summary {
  font-size: 18px;
  --lh: calc(21 / 18);
}

.site-footer__links {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.site-footer__links--grid {
  grid-template-columns: repeat(3, 87px);
}

.site-footer a:hover {
  color: var(--c-purple);
}

/* Mobile app */
.site-footer__app {
  display: grid;
  gap: 8px;
}

.site-footer__app-title {
  display: flex;
  align-items: center;
  gap: 8.067px;
  font-weight: 500;
  --lh: calc(14 / 13);
}

.site-footer__app-title img {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.site-footer__stores {
  display: flex;
  gap: 8px;
}

.site-footer__stores img {
  width: auto;
  height: 26px;
}

/* Legal block */
.site-footer__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__docs a {
  text-decoration: underline;
  text-decoration-skip-ink: none;
}

.site-footer__sk {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__sk img {
  width: 24px;
  height: 24px;
}
