/**
 * Шапка и навигация ATV/UTV (на базе starta).
 * Aside-меню вынесено из .atv-header__surface, чтобы backdrop-filter не ломал position:fixed.
 */

.atv-utv--dev .atv-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  width: 100%;
}

.atv-utv--dev .atv-header__surface {
  background: rgba(28, 28, 28, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 0;
}

.atv-utv--dev .atv-header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.atv-utv--dev .atv-header__tools {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

.atv-utv--dev .header__contact {
  display: flex;
  align-items: center;
  gap: 30px;
}

.atv-utv--dev .header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.atv-utv--dev .header__contact-phone {
  color: #fff;
  text-decoration: none;
}

.atv-utv--dev .header__burger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  flex-shrink: 0;
}

.atv-utv--dev .header__burger-btn .bar {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
}

/* Desktop nav */
.atv-utv--dev .atv-header__nav--desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.atv-utv--dev .atv-header__nav--desktop .nav__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.atv-utv--dev .atv-header__nav--desktop .nav__menu-item {
  display: flex;
  padding: 0;
}

.atv-utv--dev .atv-header__nav--desktop .nav__menu-link {
  font-family: "Bebas Neue Cyrillic", "Bebas Neue", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.atv-utv--dev .atv-header__nav--desktop .nav__menu-item:hover .nav__menu-link {
  color: #ee1b2d;
}

/* Mobile nav — вне surface */
.atv-utv--dev .atv-header__nav--mobile {
  display: none;
}

.atv-utv--dev .nav__overlay {
  display: none;
}

.atv-utv--dev .nav__close-btn {
  background-image: url(../../img/icons/cross.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 32px;
  height: 32px;
  opacity: 0.8;
  cursor: pointer;
}

.atv-utv--dev .nav__contact-text {
  color: #81898f;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.34;
  text-align: center;
}

.atv-utv--dev .nav__contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
}

body.atv-utv--dev.atv-header-nav-open {
  overflow: hidden;
}

@media screen and (max-width: 1366px) {
  .atv-utv--dev .atv-header__nav--desktop .nav__menu {
    gap: 8px 16px;
  }

  .atv-utv--dev .atv-header__nav--desktop .nav__menu-link {
    font-size: 18px;
  }
}

@media screen and (max-width: 1239px) {
  .atv-utv--dev .atv-header__nav--desktop {
    display: none;
  }

  .atv-utv--dev .header__burger-btn {
    display: flex;
  }

  .atv-utv--dev .atv-header__bar {
    grid-template-columns: auto 1fr;
  }

  .atv-utv--dev .atv-header__tools {
    justify-self: end;
  }

  .atv-utv--dev .nav__overlay {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: none;
    background-color: rgba(29, 32, 34, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .atv-utv--dev .nav__overlay.active {
    display: block;
  }

  .atv-utv--dev .atv-header__nav--mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 220;
    width: 35%;
    min-width: 300px;
    max-width: 420px;
    padding: 95px 20px 40px;
    background: #fff;
    color: #1c1c1c;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  }

  .atv-utv--dev .atv-header__nav--mobile.active {
    transform: translateX(0);
  }

  .atv-utv--dev .atv-header__nav--mobile .nav__close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .atv-utv--dev .atv-header__nav--mobile .nav__close-btn:hover {
    filter: invert(51%) sepia(94%) saturate(7188%) hue-rotate(342deg) brightness(91%) contrast(107%);
  }

  .atv-utv--dev .atv-header__nav--mobile .nav__menu {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: auto;
    font-family: "Bebas Neue Cyrillic", "Bebas Neue", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
  }

  .atv-utv--dev .atv-header__nav--mobile .nav__menu-item {
    display: block;
    width: 100%;
    border-top: 1px dashed #81898f;
    color: #1c1c1c;
  }

  .atv-utv--dev .atv-header__nav--mobile .nav__menu-link {
    display: block;
    padding: 15px 0;
    color: #1c1c1c !important;
    text-decoration: none;
    text-transform: uppercase;
  }

  .atv-utv--dev .atv-header__nav--mobile .nav__menu-item:hover .nav__menu-link {
    color: #ee1b2d !important;
  }

  .atv-utv--dev .atv-header__nav--mobile .nav__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
  }
}

@media screen and (max-width: 640px) {
  .atv-utv--dev .atv-header__surface {
    padding: 10px 0;
  }

  .atv-utv--dev .header__callback-btn {
    display: none;
  }

  .atv-utv--dev .atv-header__nav--mobile {
    width: min(100%, 360px);
    min-width: 0;
    max-width: none;
  }
}
