/* Shared by every language. The fixed header and page offsets use one height. */
:root {
  --header-main-height: clamp(56px, 4vw, 80px);
  --header-tools-height: clamp(36px, 3vw, 64px);
  --header-height: calc(var(--header-main-height) + var(--header-tools-height));
  --header-icon-size: clamp(20px, 2.3vw, 44px);
}
.header__top-line-1, .header__top-line-2 {
  padding-inline: clamp(12px, 2vw, 32px);
  flex-wrap: nowrap;
}
.header__top-line-2 {
  height: var(--header-main-height);
  z-index: 20;
  border: 1px solid rgb(255 255 255 / 12%);
  border-top: 0;
}
.header__top-line-1 {
  position: relative;
  height: var(--header-tools-height);
  justify-content: space-between;
  gap: clamp(8px, 2vw, 32px);
  padding-block: 4px;
}
.header__social, .header__lang {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(2px, .65vw, 12px);
  min-width: 0;
}
.header__social a, .header__lang a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 6px;
  line-height: 1;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.header__top-line-1 img {
  display: block;
  width: var(--header-icon-size);
  height: var(--header-icon-size);
  object-fit: contain;
  filter: none;
  opacity: 1;
}
.header__top-line-1 img:hover { transform: none; }
.header__logo {
  flex-shrink: 0;
  width: clamp(40px, 3vw, 60px);
  height: clamp(40px, 3vw, 60px);
}
.menu__list { gap: clamp(12px, 1.6vw, 28px); }
.menu__link {
  display: inline-block;
  position: relative;
  font-size: clamp(16px, 1.15vw, 24px);
  white-space: nowrap;
}
.menu__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e9bdff, #fff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.menu__link:hover::after, .menu__link:focus-visible::after { transform: scaleX(1); }
.header__body a:focus-visible, .menu__icon:focus-visible {
  outline: 2px solid #f1d4ff;
  outline-offset: 3px;
}
@media (hover: hover) {
  .header__social a:hover, .header__lang a:hover {
    background: rgb(255 255 255 / 16%);
    box-shadow: 0 3px 10px rgb(20 0 40 / 25%);
    transform: translateY(-1px);
  }
}
.page { padding-top: var(--header-height); }
.page__index { padding-top: 0; }
.header__baner { padding-top: var(--header-height); }
/* A banner already reserves space for the fixed navigation. */
.header:has(.header__baner) + .page { padding-top: 24px; }
@media (max-width: 767px) {
  :root { --header-icon-size: clamp(16px, 4.5vw, 24px); }
  .header__top-line-1 { gap: 8px; }
  .header__social, .header__lang { gap: 2px; }
}
@media (max-width: 359px) {
  :root { --header-icon-size: 14px; }
  .header__top-line-1 { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .header *, .header *::before, .header *::after {
    transition: none !important;
    animation: none !important;
  }
}
