.inlayers-footer-shell {
  position: relative;
  z-index: 2;
  display: block;
  margin-block: 0;
}

.inlayers-footer {
  border-top: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--background);
}

.inlayers-footer__inner {
  padding-block: clamp(2.5rem, 4vw, 4rem);
}

.inlayers-footer__locale {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  margin: 0;
}

.inlayers-footer .inlayers-footer__locale--en {
  display: none;
}

html[lang^="en"] .inlayers-footer .inlayers-footer__locale--ru {
  display: none;
}

html[lang^="en"] .inlayers-footer .inlayers-footer__locale--en {
  display: grid;
}

.inlayers-footer__section {
  margin: 0;
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.4;
}

.inlayers-footer__section > * {
  margin-block-start: 0;
}

.inlayers-footer__section > * + * {
  margin-block-start: 0.625rem;
}

.inlayers-footer__navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.inlayers-footer__navigation li {
  margin: 0;
}

.inlayers-footer__section h2 {
  margin-block-end: var(--wp--preset--spacing--m);
  color: var(--wp--preset--color--secondary-text);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.inlayers-footer__section a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.inlayers-footer__section a:hover {
  color: var(--wp--preset--color--secondary-text);
}

.inlayers-footer__section a:focus-visible {
  color: var(--wp--preset--color--accent-dark);
}

.inlayers-footer__section a:focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: 3px;
}

.inlayers-footer__newsletter {
  max-width: 30rem;
}

.inlayers-footer__copyright {
  margin-block: clamp(2.5rem, 4vw, 4rem) 0;
  padding-block-start: var(--wp--preset--spacing--s);
  border-top: 1px solid var(--wp--preset--color--border);
  color: var(--wp--preset--color--secondary-text);
}

@media (max-width: 767px) {
  .inlayers-footer__locale,
  html[lang^="en"] .inlayers-footer .inlayers-footer__locale--en {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inlayers-footer__section a {
    transition: none;
  }
}
