body {
    background-color: #fff;
    color: #000;
    font-family: 'Lora',Arial,sans-serif;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

/* Контейнеры */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-mini {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-mini p {
    margin-bottom: 15px;
}

/* Стили для выпадающих списков */
.dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-parent:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-bg {
    background-color: #fefefe;
}

/* Стили для фиксированного меню */
.menu-bottom {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(34, 34, 34, 0.65);
  border-radius:
20px;
  padding:
2px 15px;
  display: flex;
  justify-content: space-around;
  width: 90%;
  max-width: 700px;
  backdrop-filter: blur(13px);
  z-index: 50;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    flex: 1;
    text-align: center;
    min-height: 50px;
}

.menu-item.active {
    color: white;
}

.menu-item.active .menu-icon,
.menu-item.active .menu-text {
    color: white;
}

.menu-icon {
    font-size: 20px;
    color: #aaa;
    transition: all 0.3s ease;
}

.menu-text {
    font-size: 10px;
    color: #aaa;
    transition: all 0.3s ease;
    margin-top: 1px;
}

.menu-item:hover .menu-icon,
.menu-item:hover .menu-text {
    color: white;
}

/* Стили для поисковой панели */
.search-panel {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(26, 26, 26, 0.95);
    border: 1px solid #444;
    border-radius: 15px;
    padding: 2px 25px;
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 650px;
    backdrop-filter: blur(10px);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.search-panel.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-panel-icon {
    font-size: 20px;
    color: #aaa;
    margin-right: 12px;
}

.search-panel-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
    padding: 8px 0;
}

.search-panel-input::placeholder {
    color: #777;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 45;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Стили для карточек категорий */
.category-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0px; /* Я меня с 25 */
}

.category-image-container {
    position: relative;
    width: 100%;
    height: 200px; /* Я меня с 480 */
    overflow: hidden;
    border-radius: 10px;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.category-image.hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.category-card:hover .category-image.main {
    opacity: 0;
}

.category-card:hover .category-image.hover {
    opacity: 1;
}

.category-card:active .category-name {
    color: #f97316;
}

.category-name {
    padding: 15px 0;
    text-align: left;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 22px;
}

/* Стили для таблицы */
.table-container {
    width: 100%;
    max-width: 800px;
    background-color: #111;
    border-radius: 10px;
    overflow-x: auto;
    margin: 0 auto;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #444;
    font-size: 16px;
    min-width: 300px;
}

.styled-table th,
.styled-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.styled-table thead tr {
    background-color: #fefefe;
}

.styled-table thead th {
    font-weight: bold;
    color: #000;
    border-bottom: 2px solid #666;
}

.styled-table tbody tr:nth-child(odd) {
    background-color: #000;
}

.styled-table tbody tr:nth-child(even) {
    background-color: rgb(30, 30, 30);
}

.styled-table tbody tr:last-child td {
    border-bottom: none;
}

.styled-table tbody tr:hover {
    background-color: #1e2a3a;
}

.table-caption {
    text-align: center;
    font-style: italic;
    margin-top: 10px;
    color: #999;
}

/* Адаптивные стили */
@media (max-width: 768px) {
  h1 {
    text-align: center;
    width: 100%;
  }
    .menu-bottom {
        bottom: 10px;
        padding: 4px 10px;
        border-radius: 15px;
    }
    
    .menu-icon {
        font-size: 18px;
    }
    
    .menu-text {
        font-size: 9px;
    }
    
    .search-panel {
        bottom: 70px;
        padding: 2px 15px;
    }
    
    .search-panel-input {
        font-size: 14px;
    }
    
    .category-image-container {
        height: 450px;
    }
    
    .category-name {
        font-size: 18px;
        padding: 10px 0;
    }
    
    .styled-table th,
    .styled-table td {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .menu-bottom {
        width: 95%;
        bottom: 8px;
    }
    
    .menu-item {
        padding: 0px 5px;
    }
    
    .menu-icon {
        font-size: 16px;
    }
    
    .menu-text {
        font-size: 8px;
    }
    
    .search-panel {
        width: 95%;
        bottom: 65px;
    }
    
    .category-image-container {
        height: 200px;  /* Я меня с 480 */
    }
    
    .category-name {
        font-size: 16px;
    }
    
    .styled-table {
        font-size: 12px;
    }
    
    .styled-table th,
    .styled-table td {
        padding: 8px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1400px !important;
    }
}