/* ===== ХЕДЕР БЕЗ БУРГЕР-МЕНЮ ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;
  height: 80px;

  display: flex;
  align-items: center;

  background-color: #222021;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ===== ВНУТРЕННИЙ КОНТЕЙНЕР ===== */

.header-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 80px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

/* ===== ЛЕВАЯ ЧАСТЬ ===== */

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-link {
  display: block;
  flex-shrink: 0;
}

.site-header .logo {
  display: block;
  width: auto;
  height: 60px;

  box-sizing: border-box;
  border: 2px solid #ffd200;
}

/* ===== ОБЫЧНОЕ МЕНЮ ===== */

.nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;

  font-family: 'Inter', Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.2px;

  transition: color 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: #ffd200;
}

/* ===== КОНТАКТЫ ===== */

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;

  font-family: 'Inter', Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.contact-item:hover {
  color: #ffffff;
  opacity: 1;
}

.contact-item img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav a:focus-visible,
.header-right a:focus-visible {
  outline: 3px solid rgba(255, 208, 0, 0.4);
  outline-offset: 4px;
}



/* Информация из футера внутри мобильного меню */
.mobile-menu-footer {
  display: none;
}

/* ===== КНОПКА БУРГЕР-МЕНЮ ===== */

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;

  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: #ffd200;
  border-color: #ffd200;
}

.menu-toggle:focus-visible {
  outline: 3px solid rgba(255, 208, 0, 0.35);
  outline-offset: 3px;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== АДАПТИВНОЕ МЕНЮ ===== */

@media (max-width: 1180px) {
  .site-header {
    height: 72px;
  }

  .header-inner {
    padding: 0 28px;
    gap: 20px;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
    gap: 20px;
  }

  .site-header .logo {
    height: 52px;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
  }

  .nav {
    position: fixed;
    top: 72px;
    right: 0;
    z-index: 1001;

    width: min(360px, 100%);
    height: calc(100dvh - 72px);
    padding: 28px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    background-color: #222021;
    box-shadow: -12px 16px 30px rgba(0, 0, 0, 0.32);

    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav a {
    padding: 18px 4px;
    font-size: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding: 26px 4px 4px;
    color: #ffffff;
    font-family: 'YS Text Web', 'YS Text', 'Inter', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .mobile-menu-company {
    margin: 0;
    color: #ffd200;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
  }

  .mobile-menu-requisites,
  .mobile-menu-copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
  }

  .mobile-menu-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .nav .mobile-menu-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 0;
    overflow-wrap: anywhere;
  }

  .mobile-menu-contact img {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
  }

  .nav .mobile-menu-contact:hover,
  .nav .mobile-menu-contact:focus-visible {
    color: #ffd200;
  }

  .header-right {
    display: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 72px 0 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.48);
  }
}

@media (max-width: 520px) {
  .site-header {
    height: 64px;
  }

  .header-inner {
    padding: 0 14px;
  }

  .site-header .logo {
    height: 46px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    padding: 9px;
  }

  .nav {
    top: 64px;
    width: 100%;
    height: calc(100dvh - 64px);
    padding: 22px 20px;
  }

  .nav a {
    font-size: 20px;
    padding: 17px 2px;
  }

  .mobile-menu-footer {
    gap: 13px;
    padding-top: 22px;
  }

  .mobile-menu-company {
    font-size: 17px;
  }

  .mobile-menu-requisites,
  .mobile-menu-copyright {
    font-size: 13px;
  }

  .nav .mobile-menu-contact {
    padding: 0;
    font-size: 15px;
  }

  body.menu-open::before {
    inset: 64px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .menu-toggle span {
    transition: none;
  }
}
