.elix-footer,
.elix-footer * {
  box-sizing: border-box;
}

.elix-footer {
  --elix-footer-thumb: 108px;
  --elix-footer-feed-gap: 48px;
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 72px 28px 28px;
  background: #fff;
  color: #000;
  font-family: inherit;
  overflow: hidden;
}

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

.elix-footer__media {
  width: 100%;
  margin-bottom: 74px;
  padding: 0;
  overflow: visible;
}

.elix-footer__feed {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--elix-footer-feed-gap, 48px);
  width: 100%;
  min-height: calc((var(--elix-footer-thumb, 108px) * 1.33) + 70px);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.elix-footer__feed::-webkit-scrollbar {
  display: none;
}

.elix-footer__feed.is-elix-overflowing {
  justify-content: flex-start;
}

.elix-footer__feed.is-elix-dragging {
  cursor: grabbing;
  user-select: none;
}

.elix-footer__feed-item {
  position: relative;
  display: flex;
  flex: 0 0 var(--elix-footer-thumb, 108px);
  width: var(--elix-footer-thumb, 108px);
  flex-direction: column;
  color: inherit;
  outline: none;
  cursor: pointer;
  scroll-snap-align: start;
}

.elix-footer__image-wrap {
  display: block;
  width: 100%;
  height: calc(var(--elix-footer-thumb, 108px) * 1.33);
  overflow: hidden;
  background: #f3f3f3;
}

.elix-footer__feed-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.elix-footer__caption {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: .01em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
}

.elix-footer__middle {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
  margin-bottom: 96px;
}

.elix-footer__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.elix-footer__menu-break {
  display: none;
}

.elix-footer__menu-link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 1.28;
  font-weight: 600;
}

.elix-footer__animated-link {
  position: relative;
}

.elix-footer__animated-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(.19, 1, .22, 1);
}

.elix-footer__animated-link:hover::after,
.elix-footer__animated-link:focus-visible::after {
  transform: scaleX(1);
}

.elix-footer__brand-row {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 0;
}

.elix-footer__logo {
  width: 42vw;
  max-width: 740px;
  line-height: 1;
}

.elix-footer__logo img,
.elix-footer__builtin-logo-svg {
  display: block;
  width: 100%;
  height: auto;
  color: currentColor;
  vertical-align: bottom;
}

.elix-footer__logo-text {
  display: block;
  font-size: clamp(76px, 8.2vw, 150px);
  line-height: .82;
  font-weight: 300;
  letter-spacing: .01em;
  white-space: nowrap;
}

.elix-footer__bottom {
  position: absolute;
  left: 55%;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}

.elix-footer__privacy,
.elix-footer__copyright {
  white-space: nowrap;
}

.elix-footer__overlay {
  position: fixed;
  inset: 0;
  z-index: 99980;
  background: rgba(130,130,130,.26);
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  opacity: 0;
  pointer-events: none;
}

.elix-footer__drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99981;
  width: min(480px, 92vw);
  height: 100vh;
  background: #fff;
  transform: translateX(104%);
  pointer-events: none;
  padding: 28px;
  overflow-y: auto;
}

.elix-footer__drawer-close {
  display: inline-block;
  margin-bottom: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.elix-footer.is-drawer-open .elix-footer__overlay,
.elix-footer.is-drawer-open .elix-footer__drawer {
  pointer-events: auto;
}

.elix-footer__template-store {
  display: none;
}

.elix-footer--light {
  background: #fff;
  color: #000;
}

.elix-footer--light .elix-footer__drawer {
  background: #fff;
  color: #000;
}

.elix-footer--dark {
  background: #000;
  color: #fff;
}

.elix-footer--dark .elix-footer__drawer {
  background: #000;
  color: #fff;
}

.elix-footer--light .elix-footer__builtin-logo-svg {
  color: #000;
}

.elix-footer--dark .elix-footer__builtin-logo-svg {
  color: #fff;
}

@media (max-width: 767px) {
  .elix-footer {
    min-height: 100vh;
    padding-top: 26px;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 72px;
    overflow: hidden;
  }

  .elix-footer__media {
    padding-top: 215px;
    margin-bottom: 62px;
  }

  .elix-footer__feed {
    justify-content: flex-start;
    gap: var(--elix-footer-feed-gap, 32px);
    min-height: calc((var(--elix-footer-thumb, 106px) * 1.33));
    width: 100%;
    padding: 0 48px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .elix-footer__feed-item {
    flex-basis: var(--elix-footer-thumb, 106px);
    width: var(--elix-footer-thumb, 106px);
  }

  .elix-footer__image-wrap {
    height: calc(var(--elix-footer-thumb, 106px) * 1.33);
  }

  .elix-footer__caption {
    display: none;
  }

  .elix-footer__middle {
    min-height: 0;
    margin-bottom: 62px;
    padding: 0 48px;
    justify-content: center;
  }

  .elix-footer__menu {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }

  .elix-footer__menu-link {
    font-size: 14px;
  }

  .elix-footer__brand-row {
    position: static;
    width: 100%;
    min-height: 0;
    align-items: flex-end;
    justify-content: center;
    padding: 0 18px;
  }

  .elix-footer__logo {
    width: 100%;
    max-width: none;
  }

  .elix-footer__logo-text {
    font-size: clamp(72px, 18vw, 92px);
    line-height: .86;
    letter-spacing: -.02em;
  }

  .elix-footer__bottom {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 0;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
  }

  .elix-footer__privacy,
  .elix-footer__copyright {
    white-space: normal;
  }

  .elix-footer__drawer {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 78vh;
    transform: translateY(104%);
  }
}
