@font-face {
  font-family: 'Almaden Sans';
  src: url('/fonts/almaden-sans/AlmadenSans-Regular-WebXL.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Almaden Sans';
  src: url('/fonts/almaden-sans/AlmadenSans-RegularItalic-WebXL.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Almaden Sans';
  src: url('/fonts/almaden-sans/AlmadenSans-SemiBold-WebXL.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Almaden Sans';
  src: url('/fonts/almaden-sans/AlmadenSans-SemiBoldItalic-WebXL.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

body {
  margin: 0;

  display: flex;
  flex-direction: column;
  height: 100dvh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: inherit;
  outline: none;
}

input,
button {
  padding: 0;

  display: block;
  width: fit-content;

  font: inherit;
  text-align: start;

  color: inherit;
  background-color: transparent;

  border: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
}

button:disabled {
  cursor: not-allowed;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
}

.language-selector {
  position: relative;
}

.language-selector__button {
  color: #0e71eb;
}

.language-selector__button::after {
  display: inline-block;
  content: '';

  width: 0;
  height: 0;

  margin-left: 5px;
  vertical-align: middle;

  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.language-selector__button:hover,
.language-selector__button:focus-visible {
  text-decoration: underline;
}

.language-selector-menu {
  padding-block: 8px;

  position: absolute;
  z-index: 1337;

  display: flex;
  flex-direction: column;

  flex-wrap: wrap;
  column-gap: 20px;

  width: max-content;
  height: 300px;

  border-radius: 4px;
  border: 1px solid white;

  background-color: #fff;
  box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
}

.language-selector-menu:not(.language-selector-menu_shown) {
  visibility: hidden;
}

.language-selector-menu_top {
  right: 0;
  top: 0;
  translate: 0 calc(-100% - 15px);
}

.language-selector-menu_top::after {
  position: absolute;
  bottom: -6px;
  right: 35px;

  border: 0;
  content: '';

  border-right: 6px solid transparent;
  border-top: 6px solid #fff;
  border-left: 6px solid transparent;
  border-bottom: 0;
}

.language-selector-menu_bottom {
  right: 0;
  bottom: 0;

  height: fit-content;
  flex-wrap: nowrap;

  translate: 0 calc(100% + 31px);
  border: 1px solid #eee;
}

.language-selector-menu_bottom::after {
  position: absolute;
  content: '';
  right: 40px;
  top: -6px;

  border-bottom: 6px solid #fff;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.language-selector-menu__item {
  width: 150px;
  padding: 8px 14px;

  font-size: 14px;
  font-weight: 300;

  line-height: 15px;
  white-space: nowrap;

  color: #555;
  background-color: #fff;
}

.language-selector-menu_bottom .language-selector-menu__item {
  padding: 10px 20px;
  color: #232323;
}

.language-selector-menu__item_active {
  color: #fff;
  background-color: #428bca;
}

.language-selector-menu_bottom .language-selector-menu__item_active {
  color: #232323;
  background-color: #f5f5f5;
}

.language-selector-menu__item:not(.language-selector-menu__item_active):hover,
.language-selector-menu__item:not(.language-selector-menu__item_active):focus-visible {
  background-color: #f5f5f5;
}
