/* Верхняя панель */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 56px;
  background-color: #000;
  color: #fff;
  z-index: 1000;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

/* Логотип */
.logo {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  margin-right: auto;
}

/* Навигация */
.main-nav {
  flex: 1;
  margin-left: 2rem;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    flex-direction: column;
    z-index: 999;
  }

  .main-nav.open {
    display: flex;
    margin-left: 0px;
  }
}

/* Меню */
.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    gap: 1rem;
  }
}

.menu li {
  position: relative;
}

.menu a {
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Подменю */
.has-submenu:hover .submenu {
  display: block;
}

.has-submenu > a {
  position: relative;
  padding-right: 1rem;
}

.has-submenu > a::after {
  content: '▼';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  color: #ccc;
  transition: transform 0.2s;
}

.has-submenu:hover > a::after {
  transform: translateY(-50%) rotate(180deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  list-style: none;
  padding: 0.5rem 0;
  display: none;
  min-width: 150px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.submenu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #ccc;
}

.submenu li a:hover {
  background: #222;
  color: var(--brand-yellow);
}

@media (max-width: 768px) {
  .submenu {
    position: static;
    box-shadow: none;
    background: none;
  }
}

/* Контакты */
.contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}

.contact a {
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.contact i {
  font-size: 1.2rem;
}

.contact .phone {
  text-decoration: none;
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact .whatsapp img {
  width: 20px;
  height: 20px;
}

.phone-icon {
  display: none;
}

.phone-text {
  display: inline;
}

@media (max-width: 768px) {
  .phone-text {
    display: none;
  }

  .phone-icon {
    display: inline;
  }

  .contact i {
    font-size: 1.6rem;
  }
}

/* Бургер-меню */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  margin-right: 1rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

/* Оверлей */
.overlay {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 998;
}

.overlay.active {
  display: block;
}
