:root {
  --public-footer-bg: #eeecec;
  --public-footer-text: #101010;
  --public-footer-muted: rgba(16, 16, 16, 0.68);
  --public-footer-line: rgba(16, 16, 16, 0.12);
  --public-footer-panel: rgba(255, 255, 255, 0.96);
  --public-footer-panel-border: rgba(16, 16, 16, 0.08);
  --public-footer-panel-shadow: 0 18px 60px rgba(16, 16, 16, 0.14);
}

[data-site-footer] {
  width: 100%;
  display: block;
  margin-top: 100px;
}

.site-footer-shell {
  width: 100%;
}

.site-footer {
  background: var(--public-footer-bg);
  color: var(--public-footer-text);
  padding: 80px 0 0 40px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.footer-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 64px;
}

.footer-col-title {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer ul li {
  color: var(--public-footer-text);
  opacity: 0.88;
  margin-bottom: 4px;
}

.site-footer ul li:hover,
.site-footer ul li:focus-within {
  opacity: 1;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.site-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: none;
  outline: none;
}

.site-footer a:hover::after,
.site-footer a:focus-visible::after {
  transform: scaleX(1);
}

.footer-lang {
  display: inline-flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  z-index: 30;
  justify-self: end;
  align-self: start;
  width: max-content;
}

.langbox {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  min-height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--public-footer-text);
}

.lang-flag,
.lang-option-flag {
  width: 30px;
  height: 24px;
  border-radius: 0;
  object-fit: cover;
}

.langtext {
  display: grid;
  gap: 2px;
  text-align: left;
}

.langcountry {
  font-size: 13px;
  font-weight: 600;
}

.langlocale {
  font-size: 12px;
  color: var(--public-footer-muted);
}

.chev {
  font-size: 14px;
  line-height: 1;
}

.lang-panel {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 2px;
  width: min(280px, 85vw);
  max-height: 320px;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--public-footer-panel-border);
  background: var(--public-footer-bg);
  opacity: 1;
  isolation: isolate;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--public-footer-panel-shadow);
  padding: 10px;
  display: none;
  z-index: 999;
}

.lang-panel.open {
  display: grid;
  gap: 6px;
}

.lang-option {
  border: 0;
  background: var(--public-footer-bg);
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  color: var(--public-footer-text);
}

.site-footer--dark .lang-panel {
  border-color: rgba(255, 255, 255, 0.18);
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(16, 16, 16, 0.05);
  outline: none;
}

.lang-option-locale {
  color: var(--public-footer-muted);
  font-size: 12px;
}

.lower {
  margin-top: 36px;
}

.footer-app-actions {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.footer-app-store-badge {
  min-width: 178px;
  min-height: 58px;
  border-radius: 8px;
  border: 1px solid rgba(16, 16, 16, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 242, 239, 0.94)),
    #f7f5f2;
  color: var(--public-footer-text);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 22px;
  box-shadow:
    0 12px 30px rgba(16, 16, 16, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-footer--dark .footer-app-store-badge {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    #050505;
  color: #ffffff;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-footer .footer-app-store-badge::after {
  display: none;
}

.footer-app-store-badge:hover,
.footer-app-store-badge:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(247, 15, 22, 0.26);
  box-shadow:
    0 16px 34px rgba(16, 16, 16, 0.14),
    0 8px 20px rgba(247, 15, 22, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.site-footer--dark .footer-app-store-badge:hover,
.site-footer--dark .footer-app-store-badge:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.36),
    0 8px 20px rgba(247, 15, 22, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.footer-app-store-icon {
  width: 25px;
  color: var(--public-footer-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 27px;
  line-height: 1;
  text-align: center;
  flex: 0 0 auto;
}

.site-footer--dark .footer-app-store-icon {
  color: #ffffff;
}

.footer-app-store-copy {
  display: grid;
  gap: 2px;
  line-height: 1.08;
  padding-bottom: 1px;
}

.footer-app-store-copy small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--public-footer-muted);
}

.site-footer--dark .footer-app-store-copy small {
  color: rgba(255, 255, 255, 0.68);
}

.footer-app-store-copy strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--public-footer-text);
}

.site-footer--dark .footer-app-store-copy strong {
  color: #ffffff;
}

.footer-app-discover-link {
  font-size: 13px;
  color: var(--public-footer-muted);
}

.footer-bottom {
  margin-top: 0;
  border-top: 1px solid var(--public-footer-line);
  padding-top: 18px;
  font-size: 12px;
  color: var(--public-footer-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copyright {
  padding-bottom: 10px;
  color: var(--public-footer-text);
}

.legal-info p {
  margin: 0;
  color: var(--public-footer-muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .site-footer {
    min-height: auto;
    padding: 56px 0 0;
  }

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

  .footer-lang {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .footer-wrap {
    padding: 16px 18px 28px;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer {
    padding: 42px 0 0;
  }

  .footer-grid:first-of-type {
    display: flex;
    flex-direction: column;
  }

  .footer-grid:first-of-type > .footer-lang {
    order: 1;
  }

  .footer-grid:first-of-type > :nth-child(1) {
    order: 2;
  }

  .footer-grid:first-of-type > :nth-child(2) {
    order: 3;
  }

  .footer-grid:first-of-type > :nth-child(3) {
    order: 4;
  }

  .lang-panel {
    left: 0;
    right: auto;
    width: min(280px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
  }
}
