/* Сброс */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Навигация */
nav {
    background-color: black;
    padding: 15px 0;
    text-align: center;
    position: fixed;   /* фиксируем сверху */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-size: 18px;
}

nav a:hover {
    text-decoration: underline;
}

/* Чтобы контент не прилипал к шапке */
.hero {
    margin-top: 80px; /* отступ под фиксированную шапку */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    background-color: #111;
}

/* Надпись */
.hero h1 {
    color: white;
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
}

/* Картинка */
.hero img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Подвал */
footer {
    background-color: black;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between; /* кнопки слева, поля справа */
    align-items: center;
}

/* Левая часть футера */
.footer-left a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
}

.footer-left a:hover {
    text-decoration: underline;
}

.catalog-container {
  display: flex;
  align-items: flex-start;
  margin: 40px;
}

.catalog-sidebar {
  display: flex;
  flex-direction: column;
  width: 200px;
}

.catalog-item {
  background-color: #111;
  color: white;
  border: none;
  margin: 5px 0;
  padding: 12px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 8px;
  transition: background 0.3s;
}

.catalog-item:hover {
  background-color: #333;
}

.catalog-preview {
  margin-left: 40px;
  flex: 1;
  padding: 20px;
  border-radius: 12px;
  background-color: #f3f3f3;
  min-height: 250px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.catalog-preview img {
  max-width: 300px;
  display: block;
  margin-bottom: 10px;
  border-radius: 8px;
}

footer {
    background-color: #000;
    padding: 20px;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
}

footer a:hover {
    color: #bbb;
}

.catalog {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.catalog-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-btn,
.subcategory-btn {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s;
}

.category-btn:hover,
.subcategory-btn:hover {
  background-color: #333;
}

.subcategories {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-left: 20px;
}

.category-btn[data-category="drones"]:hover + #drones-sub,
#drones-sub:hover {
  display: flex;
}

.catalog-preview {
  flex-grow: 1;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.catalog {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  position: relative;
}

.category {
  position: relative;
}

.category-btn {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
  margin-bottom: 8px;
}

.category-btn:hover {
  background-color: #333;
}

/* Подменю с моделями */
.subcategory-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 180px; /* справа от кнопки "Дроны" */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  z-index: 100;
}

.category:hover .subcategory-menu {
  display: flex;
}

.subcategory-btn {
  color: #000;
  text-decoration: none;
  background: #f5f5f5;
  padding: 10px 16px;
  border-radius: 8px;
  transition: 0.3s;
}

.subcategory-btn:hover {
  background: #e0e0e0;
}

.catalog-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding: 20px;
}

/* Кнопка категории */
.category {
  position: relative;
  margin-bottom: 10px;
}

.category-btn {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.category-btn:hover {
  background-color: #333;
}

/* Меню подкатегорий */
.subcategory-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 180px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  z-index: 100;
}

.category:hover .subcategory-menu {
  display: flex;
}

/* Кнопки подкатегорий */
.subcategory-btn {
  color: #000;
  text-decoration: none;
  background: #f5f5f5;
  padding: 10px 16px;
  border-radius: 8px;
  transition: 0.3s;
}

.subcategory-btn:hover {
  background: #e0e0e0;
}
.category:hover .subcategory-menu {
  display: flex;
}