.footer {
  position: relative;
  z-index: var(--z-footer);
  color: #f4ede0;
}

.footer__inner {
  position: relative;
}

.footer__logo,
.footer__logo-mark,
.footer__cap,
.footer__stroke,
.footer__flag,
.footer__lang-chevron,
.footer__social > span {
  display: block;
}

.footer__logo-mark .svg,
.footer__cap .svg,
.footer__social .svg,
.footer__flag .svg,
.footer__lang-chevron .svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer__line {
  display: block;
  position: relative;
}

.footer__stroke {
  position: absolute;
  background: linear-gradient(180deg, #6f4414 0, #724715 16.7%, #ffcd55 50%, #7a4b15 83.3%, #6f4312 100%);
}

.footer__line--left .footer__stroke {
  transform-origin: 100% 50%;
}

.footer__line--right .footer__stroke {
  transform-origin: 0% 50%;
}

.footer__cap {
  position: absolute;
}

.footer__cap .svg {
  transform-origin: 50% 50%;
}

.footer__text {
  font-family: var(--font-sans);
  font-weight: 450;
  color: #f5eee1;
}

.footer__link {
  --foot-ls: 0.15em;
  position: relative;
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  color: #faf4e8;
  transition: color var(--exit-ms) var(--ease-in-quad);
}

.footer__link::after {
  content: "";
  position: absolute;
  left: var(--foot-ls);
  right: var(--foot-ls);
  bottom: var(--foot-line-bottom, 4px);
  height: var(--foot-line-h, 1.5px);
  background: linear-gradient(90deg, rgba(226, 173, 69, 0), #e2ad45 18%, #fde08a 50%, #e2ad45 82%, rgba(226, 173, 69, 0));
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform var(--exit-ms) var(--ease-in-quad);
  pointer-events: none;
}

@media (hover: hover) {
  .footer__link:hover {
    color: #f2c14e;
    transition: color var(--enter-ms) var(--ease-in-out-quad);
  }

  .footer__link:hover::after {
    transform: scaleX(1);
    transition: transform var(--enter-ms) var(--ease-in-out-quad);
  }
}

.footer__link:focus-visible {
  color: #f2c14e;
  outline-offset: 2px;
  transition: color var(--enter-ms) var(--ease-in-out-quad);
}

.footer__link:focus-visible::after {
  transform: scaleX(1);
  transition: transform var(--enter-ms) var(--ease-in-out-quad);
}

.footer__social,
.footer__lang {
  position: relative;
  display: block;
  border-style: solid;
  border-color: transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: box-shadow var(--exit-ms) var(--ease-in-quad), filter var(--exit-ms) var(--ease-in-quad);
}

.footer__social {
  background-image: linear-gradient(180deg, #2a1f0d, #2d220f 40%, #1f170a), linear-gradient(170deg, #b98629, #b67d1c 40%, #9a6812 80%, #8c5c0d);
}

.footer__lang {
  background-image: linear-gradient(180deg, #100f09, #1e1a13 45%, #141310 85%, #0c0b08), linear-gradient(170deg, #a5701d, #c5871a 30%, #9a6812 70%, #85580c);
}

.footer__social::before,
.footer__lang::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.78), inset 0 2px 5px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.footer__lang-code {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1;
  color: #f3f3f3;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}

@media (hover: hover) {
  .footer__social:hover,
  .footer__lang:hover {
    filter: brightness(1.14);
    box-shadow: 0 0 12px rgba(240, 190, 80, 0.22);
    transition: box-shadow var(--enter-ms) var(--ease-in-out-quad), filter var(--enter-ms) var(--ease-in-out-quad);
  }
}

.footer__social:focus-visible,
.footer__lang:focus-visible {
  filter: brightness(1.14);
  outline-offset: 3px;
}

.js [data-footer-logo].is-pending,
.js [data-footer-line].is-pending {
  opacity: 0;
  animation: footer-failsafe 600ms var(--ease-in-out-quad) 4s forwards;
}

.js [data-footer-item].is-pending {
  opacity: 0;
  transform: translateY(-4px);
  animation: footer-failsafe 600ms var(--ease-in-out-quad) 4s forwards;
}

.js .footer.is-armed .is-pending {
  animation: none;
}

@keyframes footer-failsafe {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .footer {
    --fu: min(var(--u), calc(1100px / 1074));
    --y0: 4029;
    margin-top: calc(-333 * var(--u));
    height: calc(333 * var(--u));
    pointer-events: none;
  }

  .footer__inner {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: calc(1440 * var(--fu));
    height: calc(333 * var(--fu));
    margin-left: calc(-720 * var(--fu));
  }

  .footer__brand {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .footer__logo {
    position: absolute;
    left: calc(664.5 * var(--fu));
    top: calc((4125.9 - var(--y0)) * var(--fu));
    width: calc(110.8 * var(--fu));
    height: calc(110.8 * var(--fu));
  }

  .footer__logo-mark {
    width: 100%;
    height: 100%;
  }

  .footer__line {
    position: absolute;
    top: calc((4180.2 - var(--y0)) * var(--fu));
    height: calc(16.6 * var(--fu));
  }

  .footer__line--left {
    left: calc(358.9 * var(--fu));
    width: calc((650.4 - 358.9) * var(--fu));
  }

  .footer__line--right {
    left: calc(790.8 * var(--fu));
    width: calc((1081.5 - 790.8) * var(--fu));
  }

  .footer__stroke {
    top: calc((4187 - 4180.2) * var(--fu));
    height: calc(3 * var(--fu));
    box-shadow: 0 calc(-1 * var(--fu)) 0 rgba(0, 0, 0, 0.96), 0 calc(1.6 * var(--fu)) 0 calc(1 * var(--fu)) rgba(0, 0, 0, 0.97), 0 calc(1 * var(--fu)) calc(2.6 * var(--fu)) calc(1.6 * var(--fu)) rgba(0, 0, 0, 0.55);
  }

  .footer__line--left .footer__stroke {
    left: calc((376.5 - 358.9) * var(--fu));
    right: 0;
  }

  .footer__line--right .footer__stroke {
    left: 0;
    width: calc((1063.9 - 790.8) * var(--fu));
  }

  .footer__cap {
    top: 0;
    width: calc(17.6 * var(--fu));
    height: calc(16.6 * var(--fu));
  }

  .footer__line--left .footer__cap {
    left: 0;
  }

  .footer__line--right .footer__cap {
    left: calc((1063.9 - 790.8) * var(--fu));
  }

  .footer__text {
    position: absolute;
    left: calc(194.6 * var(--fu));
    top: calc((4255.94 - var(--y0)) * var(--fu));
    width: calc(236 * var(--fu));
    font-size: calc(17 * var(--fu));
    line-height: calc(22.3 * var(--fu));
    letter-spacing: calc(0.55 * var(--fu));
    text-shadow: 0 0 calc(1.5 * var(--fu)) rgba(0, 0, 0, 0.95), 0 0 calc(5 * var(--fu)) rgba(22, 10, 0, 0.75);
    pointer-events: auto;
  }

  .footer__nav,
  .footer__list,
  .footer__actions {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .footer__list > li {
    position: absolute;
    top: calc((4267.37 - var(--y0)) * var(--fu));
    width: 0;
    display: flex;
    justify-content: center;
  }

  .footer__list > li:nth-child(1) {
    left: calc(512 * var(--fu));
  }

  .footer__list > li:nth-child(2) {
    left: calc(637.5 * var(--fu));
  }

  .footer__list > li:nth-child(3) {
    left: calc(776.5 * var(--fu));
  }

  .footer__list > li:nth-child(4) {
    left: calc(909 * var(--fu));
  }

  .footer__link {
    --foot-ls: calc(2.3 * var(--fu));
    --foot-line-bottom: calc(3.4 * var(--fu));
    --foot-line-h: max(1px, calc(1.4 * var(--fu)));
    flex: none;
    padding: calc(8 * var(--fu)) 0 calc(8 * var(--fu)) var(--foot-ls);
    font-size: calc(17 * var(--fu));
    line-height: calc(24 * var(--fu));
    letter-spacing: var(--foot-ls);
    text-shadow: 0 0 calc(1.5 * var(--fu)) rgba(0, 0, 0, 0.95), 0 0 calc(5 * var(--fu)) rgba(22, 10, 0, 0.8);
    pointer-events: auto;
  }

  .footer__link::after {
    right: var(--foot-ls);
  }

  .footer__social,
  .footer__lang {
    position: absolute;
    top: calc((4252.75 - var(--y0)) * var(--fu));
    height: calc(41.4 * var(--fu));
    border-width: calc(1.6 * var(--fu));
    pointer-events: auto;
  }

  .footer__social {
    border-radius: calc(8.5 * var(--fu));
  }

  .footer__social:nth-child(1) {
    left: calc(1029.3 * var(--fu));
    width: calc(42.8 * var(--fu));
  }

  .footer__social:nth-child(2) {
    left: calc(1083.9 * var(--fu));
    width: calc(42.4 * var(--fu));
  }

  .footer__social > span {
    position: absolute;
  }

  .footer__social:nth-child(1) > span {
    left: calc((1040.3 - 1029.3) * var(--fu) - 1.6 * var(--fu));
    top: calc((4262.8 - 4252.75) * var(--fu) - 1.6 * var(--fu));
    width: calc(21.5 * var(--fu));
    height: calc(21.05 * var(--fu));
  }

  .footer__social:nth-child(2) > span {
    left: calc((1094.5 - 1083.9) * var(--fu) - 1.6 * var(--fu));
    top: calc((4262.6 - 4252.75) * var(--fu) - 1.6 * var(--fu));
    width: calc(21.4 * var(--fu));
    height: calc(21.85 * var(--fu));
  }

  .footer__lang {
    left: calc(1138.7 * var(--fu));
    width: calc(116 * var(--fu));
    border-radius: calc(20.75 * var(--fu));
  }

  .footer__flag {
    position: absolute;
    left: calc((1150.4 - 1138.7) * var(--fu) - 1.6 * var(--fu));
    top: calc((4261.25 - 4252.75) * var(--fu) - 1.6 * var(--fu));
    width: calc(24 * var(--fu));
    height: calc(24 * var(--fu));
  }

  .footer__lang-code {
    position: absolute;
    left: calc((1196.5 - 1138.7) * var(--fu) - 1.6 * var(--fu));
    top: calc((4280 - 13.634 - 4252.75) * var(--fu) - 1.6 * var(--fu));
    font-size: calc(17 * var(--fu));
    transform: translateX(-50%);
  }

  .footer__lang-chevron {
    position: absolute;
    left: calc((1227.7 - 1138.7) * var(--fu) - 1.6 * var(--fu));
    top: calc((4270.5 - 4252.75) * var(--fu) - 1.6 * var(--fu));
    width: calc(11.6 * var(--fu));
    height: calc(7.2 * var(--fu));
  }
}

@media (max-width: 1023.98px) {
  .footer {
    --fg: max(clamp(16px, 6.2vw, 24px), env(safe-area-inset-left), env(safe-area-inset-right));
    margin-top: -1px;
    padding: 64px var(--fg) calc(40px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 64px);
  }

  .footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 560px;
    margin: 0 auto;
  }

  .footer__brand {
    order: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .footer__logo {
    flex: none;
    width: 96px;
    height: 96px;
    margin: 0 10px;
  }

  .footer__logo-mark {
    width: 100%;
    height: 100%;
  }

  .footer__line {
    flex: 0 1 112px;
    height: 14px;
  }

  .footer__stroke {
    top: 5.5px;
    height: 3px;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.9), 0 1.5px 0 1px rgba(0, 0, 0, 0.9);
  }

  .footer__line--left .footer__stroke {
    left: 14px;
    right: 0;
  }

  .footer__line--right .footer__stroke {
    left: 0;
    right: 14px;
  }

  .footer__cap {
    top: 0;
    width: 14.8px;
    height: 14px;
  }

  .footer__line--left .footer__cap {
    left: 0;
  }

  .footer__line--right .footer__cap {
    right: 0;
  }

  .footer__nav {
    order: 1;
    margin-top: 26px;
    width: 100%;
  }

  .footer__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: clamp(10px, 3.1vw, 28px);
    row-gap: 0;
  }

  .footer__link {
    --foot-ls: 0.12em;
    --foot-line-bottom: 10px;
    padding: 11px 0 11px 0.12em;
    font-size: clamp(13px, 3.55vw, 17px);
    line-height: 22px;
    letter-spacing: 0.12em;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.95), 0 0 6px rgba(22, 10, 0, 0.8);
  }

  .footer__actions {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
  }

  .footer__social,
  .footer__lang {
    height: 44px;
    border-width: 1.5px;
  }

  .footer__social {
    width: 44px;
    border-radius: 9px;
  }

  .footer__social > span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
  }

  .footer__lang {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    padding: 0 14px 0 9px;
    border-radius: 22px;
  }

  .footer__flag {
    width: 25px;
    height: 25px;
  }

  .footer__lang-code {
    font-size: 17px;
    padding-top: 1px;
  }

  .footer__lang-chevron {
    width: 12px;
    height: 7.5px;
    margin-left: 6px;
  }

  .footer__text {
    order: 3;
    margin-top: 26px;
    max-width: 30ch;
    text-align: center;
    text-wrap: balance;
    font-size: 15.5px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: rgba(243, 236, 223, 0.86);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.9);
  }
}

@media (max-width: 359.98px) {
  .footer__list {
    column-gap: 8px;
  }

  .footer__link {
    --foot-ls: 0.1em;
    padding-left: 0.1em;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer__link,
  .footer__link::after,
  .footer__social,
  .footer__lang {
    transition-duration: 1ms;
  }
}

.footer__text {
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .footer__text {
    width: calc(262 * var(--fu));
    font-size: calc(15 * var(--fu));
    letter-spacing: 0.08em;
  }
}

@media (max-width: 1023.98px) {
  .footer__text {
    font-size: 13.5px;
    letter-spacing: 0.08em;
  }
}
