/* логотип */
.logo {
  display: block;
  position: relative;
  max-width: 150px;
}

/* логотип компании целиком: знак, название и «Spleiße Atelier» */
.logo__image {
  width: 100%;
  height: 100%;
}

/* шапка */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s;
}

/* после прокрутки шапка получает сплошной фон, чтобы не налезать на контент */
.header--scrolled {
  background: var(--color-night);
  border-bottom-color: var(--color-line);
  border-radius: 0 0 25px 25px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 16px var(--gutter);
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
}

.header__logo {
  flex-shrink: 0;
  transition: max-width 0.3s ease;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.header__phone {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-mist);
  transition: color 0.3s;
}

.header__phone:hover {
  color: var(--color-snow);
}

.header__burger {
  display: none;
}

/* меню */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(246, 250, 253, 0.82);
  white-space: nowrap;
  transition: color 0.3s;
}

/* линия под ссылкой: при наведении раскрывается из центра к краям */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-out);
}

.nav__link:hover {
  color: var(--color-snow);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

/* текущая страница: линия раскрыта всегда */
.nav__link--current {
  color: var(--color-snow);
}

.nav__link--current::after {
  transform: scaleX(1);
}

/* переключатель языка */
.lang {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang__item+.lang__item::before {
  content: "/";
  margin: 0 8px;
  font-size: 12px;
  color: rgba(179, 207, 229, 0.3);
}

.lang__link {
  position: relative;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(246, 250, 253, 0.82);
  transition: color 0.3s;
}

.lang__link[aria-current="true"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.lang__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-out);
}

.lang__link:hover {
  color: var(--color-snow);
}

.lang__link:hover::after,
.lang__link:focus-visible::after {
  transform: scaleX(1);
}

.lang--large .lang__link {
  font-size: 15px;
}

/* бургер */
.burger {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(246, 250, 253, 0.18);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.burger__line {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--color-snow);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}

.burger__line:nth-child(1) {
  top: 18px;
}

.burger__line:nth-child(2) {
  top: 26px;
}

.burger--active .burger__line:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.burger--active .burger__line:nth-child(2) {
  top: 22px;
  transform: rotate(-45deg);
}

/* мобильное меню */
.header--menu-open { background: var(--color-night); }
.mobile-menu {
  position: fixed;
  inset: var(--header-height, var(--header-h)) 0 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px var(--gutter) 32px;
  background: var(--color-night);
  animation: mobile-menu-in 0.4s var(--ease-out);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.mobile-menu__list {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu__item {
  border-bottom: 1px solid var(--color-line);
}

.mobile-menu__link {
  display: block;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(20px, 5.4vw, 28px);
  line-height: 1.2;
}

.mobile-menu__link--current {
  color: var(--color-mist);
}

.mobile-menu__footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu__phone {
  font-size: 18px;
  color: var(--color-mist);
}

@keyframes mobile-menu-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
}

