.footer-container {
  width: 100%;
  margin-left: 0;
  background: var(--background);
  padding: 48px 144px 0px 144px;
  box-sizing: border-box;

  background: var(--card);
  border-top: 2px solid var(--background3);
  box-shadow: var(--box-shadow1);
}

body.has-sidebar .footer-container {
  width: calc(100% - var(--sidebar-layout-width, 400px));
  margin-left: var(--sidebar-layout-width, 400px);
}

.footer-top-text {
  text-align: center;
  padding: 0px 0px 48px 0px;
}

.footer-top-text img {
  width: 211px;
  margin-bottom: 10px;
}

.footer-top-text p {
  font-size: 14px;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 58px;
  align-items: start;
  margin-bottom: 48px;
  padding: 0px 38px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column-large {
  padding-right: 38px;
  height: 154px;
  align-content: center;
  justify-content: center;
}

.footer-column-right {
  align-items: flex-start;
}

.footer-column-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}

.footer-column-text {
  width: 250px;
  margin: 0 0 19px 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text3);
}

.footer-column img {
  width: 135px;
  margin-bottom: 19px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 5px;
}

.footer-link {
  text-decoration: none;
  color: var(--text2);
  font-size: 12px;
  transition: color 0.25s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--text-hover);
}

.footer-signup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  height: auto;
  padding: 7px 14px;
  border: 1px solid var(--primary);
  border-radius: 38px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  transition: color 0.35s ease;
}

.footer-signup-btn:hover {
  color: var(--text-hover);
}

.footer-store-buttons {
  display: flex;
  gap: 23px;
  margin-top: 61px;
}

.footer-store-btn {
  width: 207px;
  min-height: 61px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 23px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 11px 19px;
  box-sizing: border-box;
}

.footer-store-small {
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.82;
  text-transform: uppercase;
}

.footer-store-big {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 600;
}

.footer-bottom {
  border-top: 2px solid rgba(255, 255, 255, 0.32);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 2px;
}

.footer-social-link {
  width: 36px;
  height: 38px;
  font-size: 22px;
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.35s ease;
}

.footer-social-link:hover {
  color: var(--text-hover);
}

.footer-social-link svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .footer-container,
  body.has-sidebar .footer-container {
    padding: 27px 0px 66px 0px;
    border-top: 1px solid var(--border);
    margin-left: 0;
    width: 100%;
  }

  .footer-top-text {
    text-align: center;
    padding: 12px 0px 31px 0px;
  }

  .footer-top-text img {
    width: 133px;
    margin-bottom: 4px;
  }

  .footer-top-text p {
    font-size: 15px;
    max-width: 273px;
    margin: 0 auto;
    line-height: 1;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 27px;
    margin-bottom: 31px;
  }

  .footer-column-large {
    display: none;
  }

  .footer-column-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    line-height: 1.2;
  }

  .footer-column-text {
    max-width: 100%;
    margin: 0 0 16px 0;
    font-size: 12px;
    line-height: 1.7;
  }

  .footer-links {
    gap: 12px;
    margin-left: 8px;
    margin: 8px;
  }

  .footer-link {
    font-size: 14px;
    line-height: 1.4;
  }

  .footer-signup-btn {
    width: auto;
    height: auto;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
  }

  .footer-store-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
  }

  .footer-store-btn {
    width: 100%;
    min-height: 55px;
    border-radius: 16px;
    padding: 11px 14px;
  }

  .footer-store-small {
    font-size: 10px;
    line-height: 1.2;
  }

  .footer-store-big {
    font-size: 18px;
    line-height: 1.2;
  }

  .footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 0px 23px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }

  .footer-copy {
    font-size: 12px;
    line-height: 1.5;
  }

  .footer-socials {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .footer-social-link {
    width: 43px;
    height: 35px;
    font-size: 27px;
    color: var(--text);
  }
}

.footer-language {
  position: relative;
  width: max-content;
  max-width: 100%;
}
.footer-language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  text-align: left;
}
.footer-language-toggle > i {
  font-size: 9px;
  transition: transform 0.18s ease;
}
.footer-language.is-open .footer-language-toggle > i {
  transform: rotate(180deg);
}
.footer-language-current {
  color: var(--text3);
  font-size: 11px;
}
.footer-language-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 9px);
  z-index: 1000;
  width: 190px;
  padding: 7px;
  border: 1px solid var(--background4);
  border-radius: 13px;
  background: var(--card);
  box-shadow: var(--box-shadow2);
}
.footer-language-menu[hidden] {
  display: none !important;
}
.footer-language-form {
  margin: 0;
}
.footer-language-option {
  display: grid;
  grid-template-columns: 20px 1fr 16px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text2);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.footer-language-option:hover,
.footer-language-option:focus-visible {
  background: var(--background3);
  color: var(--text);
  outline: none;
}
.footer-language-option.is-selected {
  color: var(--text);
  font-weight: 650;
}
.footer-theme .footer-language-option {
  text-decoration: none;
  box-sizing: border-box;
}
.footer-theme .footer-language-option > i:first-child {
  width: 18px;
  text-align: center;
  color: var(--text3);
}
.footer-language-option .fi {
  width: 18px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent);
}
.footer-language-option > i {
  font-size: 10px;
  color: var(--primary);
}
@media (max-width: 768px) {
  .footer-language-menu {
    position: absolute;
    margin-top: 0;
    width: 220px;
    max-width: calc(100vw - 32px);
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.footer-signup-btn {
  min-height: 34px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 7px 14px;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
}
@media (max-width: 768px) {
  .footer-signup-btn {
    font-size: 12px;
    padding: 7px 14px;
  }
}

.footer-container {
  container-type: inline-size;
  container-name: site-footer;
  padding-inline: clamp(24px, 5vw, 100px);
}
.footer-main {
  grid-template-columns: minmax(250px, 1.5fr) repeat(3, minmax(130px, 1fr));
  gap: 36px;
  padding: 0;
}
.footer-column-large {
  height: auto;
  padding-right: 0;
  display: flex;
}
.footer-column-text {
  width: auto;
  max-width: 300px;
}
.footer-bottom {
  gap: 20px;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-inline: 0;
}
.footer-socials {
  gap: 6px;
  flex-wrap: nowrap;
}
.footer-social-link {
  width: 32px;
  height: 36px;
  font-size: 20px;
}
@container site-footer (max-width:1000px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
    text-align: center;
  }
  .footer-column-large {
    grid-column: 1/-1;
    align-items: center;
    justify-self: center;
    max-width: 400px;
  }
  .footer-column {
    align-items: center;
    min-width: 0;
  }
  .footer-links {
    align-items: center;
    margin-left: 0;
  }
  .footer-column-title {
    font-size: 16px;
  }
  .footer-language-toggle {
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-language-menu {
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
  }
}
@container site-footer (max-width:480px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .footer-language-menu {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-copy {
    font-size: 11px;
  }
  .footer-bottom {
    gap: 8px;
  }
  .footer-socials {
    gap: 2px;
  }
  .footer-social-link {
    width: 27px;
    font-size: 18px;
  }
}
@media (max-width: 768px) {
  .footer-language-toggle {
    line-height: 1.4;
    min-height: 0;
  }
  .footer-column-right .footer-links {
    gap: 12px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .footer-copy {
    width: 100%;
    text-align: center;
  }
  .footer-socials {
    width: 100%;
    justify-content: center;
  }
}

.footer-language-menu {
  opacity: 0;
  translate: 0 6px;
  scale: 0.985;
  transform-origin: bottom center;
  transition:
    opacity 160ms ease,
    translate 160ms ease,
    scale 160ms ease;
  pointer-events: none;
}
.footer-language-menu.is-open {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .footer-language-menu {
    transition: none;
  }
}
