/* Shared storefront footer. All selectors stay inside footer-v2 so the header brand
   and the legacy page styles cannot change the new footer layout. */
.storefront .site-footer.footer-v2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 0;
  background: #121925;
  color: #eef2f8;
  font-family: 'Montserrat', Arial, sans-serif;
}

.storefront .site-footer.footer-v2::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  content: '';
  pointer-events: none;
}

.storefront .site-footer.footer-v2 .footer-shell {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
  padding: 45px 0 22px;
}

.storefront .site-footer.footer-v2 .footer-help {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
  overflow: hidden;
  min-height: 166px;
  padding: 31px 38px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px;
  background: linear-gradient(115deg, #a90d2a 0%, #c71938 54%, #9b0b28 100%);
  box-shadow: 0 22px 55px rgba(4, 7, 14, .26), inset 0 1px rgba(255, 255, 255, .12);
}

.storefront .site-footer.footer-v2 .footer-help::after {
  position: absolute;
  top: -145px;
  right: -52px;
  width: 355px;
  height: 355px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 39px rgba(255, 255, 255, .035), 0 0 0 40px rgba(255, 255, 255, .09), 0 0 0 94px rgba(255, 255, 255, .025);
  content: '';
  pointer-events: none;
}

.storefront .site-footer.footer-v2 .footer-help > * {
  position: relative;
  z-index: 1;
}

.storefront .site-footer.footer-v2 .footer-help-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px rgba(255, 255, 255, .12);
}

.storefront .site-footer.footer-v2 .footer-help-icon img,
.storefront .site-footer.footer-v2 .footer-help-icon svg {
  display: block;
  width: 33px;
  height: 33px;
  object-fit: contain;
}

.storefront .site-footer.footer-v2 .footer-help-copy small,
.storefront .site-footer.footer-v2 .footer-help-copy > span {
  display: block;
  margin-bottom: 9px;
  color: #ffdce4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.storefront .site-footer.footer-v2 .footer-help-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 2.1vw, 29px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.22;
}

.storefront .site-footer.footer-v2 .footer-help-copy p {
  max-width: 550px;
  margin: 9px 0 0;
  color: #ffe2e8;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.storefront .site-footer.footer-v2 .footer-help-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.storefront .site-footer.footer-v2 .footer-help-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #97112a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.storefront .site-footer.footer-v2 .footer-help-actions a img {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
  object-fit: contain;
}

.storefront .site-footer.footer-v2 .footer-help-actions a svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
}

.storefront .site-footer.footer-v2 .footer-help-actions a:hover {
  transform: translateY(-3px);
}

.storefront .site-footer.footer-v2 .footer-help-actions a:active {
  transform: translateY(0) scale(.98);
}

.storefront .site-footer.footer-v2 .footer-help-actions a:focus-visible,
.storefront .site-footer.footer-v2 .footer-body a:focus-visible,
.storefront .site-footer.footer-v2 .footer-bottom a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.storefront .site-footer.footer-v2 .footer-help-telegram {
  background: #fff;
  box-shadow: 0 8px 25px rgba(70, 0, 17, .14);
}

.storefront .site-footer.footer-v2 .footer-help-telegram:hover {
  background: #fff5f6;
  box-shadow: 0 13px 30px rgba(70, 0, 17, .22);
}

.storefront .site-footer.footer-v2 .footer-help-page {
  border-color: rgba(255, 255, 255, .42) !important;
  background: rgba(255, 255, 255, .08);
  color: #fff !important;
}

.storefront .site-footer.footer-v2 .footer-help-page:hover {
  background: rgba(255, 255, 255, .17);
}

.storefront .site-footer.footer-v2 .footer-body {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) minmax(145px, .72fr) minmax(175px, .82fr) minmax(215px, 1fr);
  gap: clamp(22px, 4vw, 64px);
  padding: 52px 9px 48px;
}

.storefront .site-footer.footer-v2 .footer-identity,
.storefront .site-footer.footer-v2 .footer-links,
.storefront .site-footer.footer-v2 .footer-contact {
  min-width: 0;
}

.storefront .site-footer.footer-v2 .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  color: #f4f6fa;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.storefront .site-footer.footer-v2 .footer-brand img {
  display: block;
  width: 43px;
  height: 43px;
  flex: none;
  object-fit: contain;
}

.storefront .site-footer.footer-v2 .footer-brand .brand-suffix,
.storefront .site-footer.footer-v2 .footer-brand > span > span {
  color: #ff576e;
  font-size: inherit;
  letter-spacing: inherit;
}

.storefront .site-footer.footer-v2 .footer-identity > p {
  max-width: 270px;
  margin: 18px 0 0;
  color: #aab4c3;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.storefront .site-footer.footer-v2 .footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin: 0;
}

.storefront .site-footer.footer-v2 .footer-links h3,
.storefront .site-footer.footer-v2 .footer-contact h3 {
  margin: 4px 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.4;
}

.storefront .site-footer.footer-v2 .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 100%;
  color: #aab4c3;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.storefront .site-footer.footer-v2 .footer-links a:hover,
.storefront .site-footer.footer-v2 .footer-links a[aria-current='page'] {
  color: #fff;
  transform: translateX(3px);
}

.storefront .site-footer.footer-v2 .footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  max-width: 100%;
  padding: 8px 12px 8px 8px;
  border: 1px solid #384353;
  border-radius: 11px;
  background: #1c2635;
  color: #f6f9ff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.storefront .site-footer.footer-v2 .footer-contact-link:hover {
  transform: translateY(-2px);
  border-color: #5b7895;
  background: #263448;
}

.storefront .site-footer.footer-v2 .footer-contact-link img {
  width: 25px;
  height: 25px;
  flex: none;
  object-fit: contain;
}

.storefront .site-footer.footer-v2 .footer-contact > p {
  max-width: 240px;
  margin: 12px 0 0;
  color: #95a2b3;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.storefront .site-footer.footer-v2 .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px 25px;
  min-height: 52px;
  padding: 15px 9px 3px;
  border-top: 1px solid rgba(219, 229, 243, .13);
}

.storefront .site-footer.footer-v2 .footer-bottom p,
.storefront .site-footer.footer-v2 .footer-bottom span,
.storefront .site-footer.footer-v2 .footer-bottom a {
  margin: 0;
  color: #8895a6;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.storefront .site-footer.footer-v2 .footer-bottom a {
  text-decoration: none;
  transition: color .18s ease;
}

.storefront .site-footer.footer-v2 .footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 1080px) {
  .storefront .site-footer.footer-v2 .footer-help {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
  }

  .storefront .site-footer.footer-v2 .footer-help-icon {
    width: 56px;
    height: 56px;
  }

  .storefront .site-footer.footer-v2 .footer-help-actions {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 3px;
  }

  .storefront .site-footer.footer-v2 .footer-body {
    grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(145px, 1fr));
  }

  .storefront .site-footer.footer-v2 .footer-contact {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 17px;
    padding-top: 23px;
    border-top: 1px solid rgba(219, 229, 243, .1);
  }

  .storefront .site-footer.footer-v2 .footer-contact h3 {
    width: 100%;
    margin-top: 0;
  }

  .storefront .site-footer.footer-v2 .footer-contact > p {
    margin: 0;
  }
}

@media (max-width: 700px) {
  .storefront .site-footer.footer-v2 .footer-shell {
    width: min(100% - 28px, 1320px);
    padding-top: 23px;
    padding-bottom: 18px;
  }

  .storefront .site-footer.footer-v2 .footer-help {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 22px 18px;
    border-radius: 17px;
  }

  .storefront .site-footer.footer-v2 .footer-help-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .storefront .site-footer.footer-v2 .footer-help-icon img,
  .storefront .site-footer.footer-v2 .footer-help-icon svg {
    width: 26px;
    height: 26px;
  }

  .storefront .site-footer.footer-v2 .footer-help-copy small,
  .storefront .site-footer.footer-v2 .footer-help-copy > span {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .storefront .site-footer.footer-v2 .footer-help-copy h2 {
    font-size: clamp(18px, 5vw, 24px);
  }

  .storefront .site-footer.footer-v2 .footer-help-copy p {
    font-size: 12px;
  }

  .storefront .site-footer.footer-v2 .footer-help-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 5px;
  }

  .storefront .site-footer.footer-v2 .footer-help-actions a {
    min-height: 48px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .storefront .site-footer.footer-v2 .footer-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 29px 22px;
    padding: 37px 2px 31px;
  }

  .storefront .site-footer.footer-v2 .footer-identity,
  .storefront .site-footer.footer-v2 .footer-contact {
    grid-column: 1 / -1;
  }

  .storefront .site-footer.footer-v2 .footer-identity > p {
    max-width: 370px;
    margin-top: 11px;
  }

  .storefront .site-footer.footer-v2 .footer-links h3 {
    margin-bottom: 9px;
  }

  .storefront .site-footer.footer-v2 .footer-links a {
    min-height: 44px;
    font-size: 13px;
  }

  .storefront .site-footer.footer-v2 .footer-contact {
    padding-top: 23px;
  }

  .storefront .site-footer.footer-v2 .footer-contact-link {
    min-height: 48px;
  }

  .storefront .site-footer.footer-v2 .footer-bottom {
    align-items: flex-start;
    padding-inline: 2px;
  }
}

@media (max-width: 430px) {
  .storefront .site-footer.footer-v2 .footer-help-actions {
    grid-template-columns: 1fr;
  }

  .storefront .site-footer.footer-v2 .footer-help-actions a {
    min-height: 47px;
  }

  .storefront .site-footer.footer-v2 .footer-brand {
    gap: 9px;
    font-size: 17px;
  }

  .storefront .site-footer.footer-v2 .footer-brand img {
    width: 38px;
    height: 38px;
  }

  .storefront .site-footer.footer-v2 .footer-body {
    column-gap: 14px;
  }

  .storefront .site-footer.footer-v2 .footer-bottom {
    display: grid;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storefront .site-footer.footer-v2 a {
    transition: none !important;
  }

  .storefront .site-footer.footer-v2 a:hover,
  .storefront .site-footer.footer-v2 a:active {
    transform: none !important;
  }
}
