* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-content {
    display: flex;
    gap: 30px;
    padding: 20px 0;
}

/* Header styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    min-height: 70px;
}

.logo a {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.search {
    position: relative;
    display: flex;
    align-items: center;
}

.search input {
    padding: 8px 15px;
    width: 900px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
}

.cart {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}

#cart-count {
    background-color: #4CAF50;
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
}

/* Main content layout */
.main-content {
    display: flex;
    gap: 30px;
    margin-top: 90px; /* Add space for fixed header */
    flex: 1;
    padding-bottom: 40px; /* Add space before footer */
}

/* Sidebar styles */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.sidebar h2 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

.categories-nav ul {
    list-style: none;
    padding: 0;
}

.categories-nav li {
    margin-bottom: 8px;
}

.category-link {
    display: block;
    padding: 8px 12px;
    /* color: #666; */
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-link.section {
    border-radius: 0;
    border-bottom: 2px solid #4CAF50;
}

.category-link:hover {
    /* background: #f0f8f0; */
    color: #4CAF50;
}

.category-link.active {
    background: #4CAF50;
    color: white;
}

/* Products section */
.products-section {
    flex-grow: 1;
}

.products-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Product cards */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card-content {
    padding: 15px;
}

.product-card h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.1rem;
}

.product-card .category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.product-card .description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-card .price {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.product-card .size {
    color: #666;
    font-size: 0.9rem;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: auto;
}

.promotional-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #e7c33a;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Categories */
.categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 200px;
}

/* Admin panel styles */
.admin-panel {
    margin-top: 90px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    min-height: calc(100vh - 110px);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4CAF50;
}

.admin-header h1 {
    color: #333;
    margin: 0;
}

.admin-form {
    max-width: 800px;
    margin: 0 auto;
}

.products-table {
    width: 100%;
    margin-top: 20px;
    overflow-x: auto;
}

.products-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.products-table th,
.products-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.products-table th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #333;
}

.products-table tr:hover {
    background-color: #f5f5f5;
}

.product-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.actions {
    display: flex;
    gap: 10px;
}

/* Adjust admin page container */
.admin-panel .container {
    padding-top: 90px;
    height: auto;
    overflow: visible;
}

/* Override main-content styles for admin pages */
.admin-page .main-content {
    height: auto;
    overflow: visible;
    margin-top: 0;
}

/* Override body overflow for admin pages */
.admin-page {
    overflow: auto !important;
}

/* Back to site button */
.back-to-site {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.back-to-site:hover {
    background: #45a049;
}

/* Admin Menu Styles */
.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-menu-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.admin-menu-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 20px;
}

.admin-menu-item p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.5;
}

.admin-menu-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Login Form Styles */
.admin-form {
    max-width: 400px !important;
    margin: 100px auto !important;
}

.admin-form h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.admin-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group select {
    background-color: #fff;
}

/* Alert styles */
.alert, .message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.alert-success, .message {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* File input specific styles */
.form-group input[type="file"] {
    padding: 8px;
    background-color: #f8f9fa;
}

.form-group img.product-thumbnail {
    display: block;
    margin-top: 10px;
    max-width: 200px;
    border-radius: 4px;
}

/* Delete form styles */
.delete-form {
    margin: 0;
    display: inline;
}

/* No image placeholder */
.no-image {
    color: #999;
    font-style: italic;
}

/* Footer styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Стили для сетки работ */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.work-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.work-gallery {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 0; /* Убираем отступ снизу */
}

.work-item h3 {
    padding: 15px 15px 10px;
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.work-item p {
    padding: 0 15px 15px;
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.gallery-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image.active {
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 2;
}

.gallery-nav:hover {
    opacity: 1;
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.stats-dashboard {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.stats-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 10px;
    border: 1px solid #dee2e6;
    text-align: left;
}

.stats-table th {
    background: #f8f9fa;
}

/* Responsive design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .search input {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .work-item img {
        height: 200px;
    }
}

@media screen and (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 992px) {
    .main-content {
        flex-direction: column;
        padding-top: 90px; /* Увеличиваем отступ сверху на мобильных */
        margin-top: 0; /* Убираем старый отступ */
    }
    
    .products-section h2 {
        margin-top: 120px; /* Добавляем отступ для заголовков */
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .products-section {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .categories-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .categories-nav li {
        margin: 0;
    }
    
    .category-link {
        padding: 8px 15px;
        white-space: nowrap;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-card img {
        height: 200px;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    /* Admin Panel Responsive */
    .admin-form .form-group {
        margin-bottom: 15px;
    }
    
    .admin-form input[type="text"],
    .admin-form input[type="number"],
    .admin-form textarea,
    .admin-form select {
        width: 100%;
        padding: 8px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .work-item h3 {
        font-size: 1.1rem;
        padding: 12px 12px 8px;
    }

    .work-item p {
        padding: 0 12px 12px;
    }
}

@media screen and (max-width: 992px) {
    .categories-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    
    .categories-nav::-webkit-scrollbar {
        height: 4px;
    }
    
    .categories-nav::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .categories-nav::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }
    
    .categories-nav ul {
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
    
    .category-link.section {
        margin-left: 15px;
        position: relative;
    }
    
    .category-link.section::before {
        content: '';
        position: absolute;
        left: -15px;
        top: 50%;
        width: 1px;
        height: 70%;
        background: #ddd;
        transform: translateY(-50%);
    }
}

@media screen and (max-width: 576px) {
    .product-image-container {
        height: 250px;
        overflow: hidden;
    }
    
    .product-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .promotional-badge {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .product-card-content {
        padding: 10px;
    }
    
    .description {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

@media screen and (max-width: 576px) {
    .form-group {
        margin-bottom: 12px;
    }
    
    label {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .checkbox-group label {
        font-size: 0.9rem;
    }
    
    .message {
        font-size: 0.9rem;
        padding: 8px;
        margin: 10px 0;
    }
}

/* Мобильное меню */
.mobile-header {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 10px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #4CAF50;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Медиа-запросы для мобильного меню */
@media screen and (max-width: 992px) {
    .search {
        flex: 1;
        margin: 0 15px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .main-content {
        flex-direction: column;
        padding-top: 20px;
        /* margin-top: 0; */
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 280px;
        background: #fff;
        z-index: 1002;
        padding: 20px;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        margin: 0;
    }

    .sidebar.active {
        left: 0;
    }

    /* Стили для пунктов меню в мобильной версии */
    .categories-nav ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .categories-nav li {
        width: 100%;
    }

    .categories-nav a {
        display: block;
        padding: 10px 15px;
        color: #333;
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.3s;
    }

    .categories-nav a:hover,
    .categories-nav a.active {
        background-color: #4CAF50;
        color: white;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }

    .menu-overlay.active {
        display: block;
    }

    .sidebar-header {
        margin-bottom: 20px;
    }

    .sidebar-header h2 {
        margin: 0;
    }

    .close-menu {
        display: none !important;
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    /* .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
    } */

    /* .close-menu {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #4CAF50;
    } */
}

@media screen and (max-width: 576px) {
    .search input {
        padding: 6px 10px;
        font-size: 16px;
    }

    .menu-toggle {
        width: 25px;
        height: 18px;
    }

    .menu-toggle span {
        height: 2px;
    }

    .sidebar {
        width: 85%;
        max-width: 300px;
    }

    .logo span {
        /* display: none; */
    }
}

.close-menu {
    display: none !important;
}

@media screen and (max-width: 992px) {
    .close-menu {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #4CAF50;
    }
}

/* Анимация кнопки меню */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Кнопка каталога */
.category-btn {
    display: block;
    padding: 8px 12px;
    /* color: #666; */
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-btn:hover {
    /* background: #f0f8f0; */
    color: #4CAF50;
}

.arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
    font-size: 12px;
}

/* Модальное окно категорий */
.categories-modal {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.categories-modal.active {
    opacity: 1;
    visibility: visible;
}

.categories-modal-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.categories-modal.active .categories-modal-overlay {
    opacity: 1;
}

.categories-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.categories-modal.active .categories-modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 24px;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #000;
}

/* Сетка категорий в модальном окне */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.category-item {
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-name {
    font-size: 18px;
    font-weight: 500;
    display: block;
    text-align: center;
}

/* Медиа-запросы для модального окна */
@media screen and (max-width: 768px) {
    .categories-modal-content {
        width: 95%;
        padding: 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .category-name {
        font-size: 16px;
    }
}

.categories-grid {
    padding: 20px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.categories-grid ul {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    list-style: none;
}

/* Стиль для основной категории */
.categories-grid ul > a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

/* Стиль для изображения категории */
.categories-grid ul > a img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

/* Стили для подкатегорий */
.categories-grid ul li {
    margin: 8px 0;
    padding-left: 15px;
}

.categories-grid ul a {
    transition: color 0.2s ease;
}

.categories-grid ul a:hover {
    color: #4CAF50;
}

.categories-grid ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.categories-grid ul li a:hover {
    color: #4CAF50;
}

/* Стили для страницы контактов */
.map-container {
    width: 100%;
    margin-bottom: 30px;
}

.map-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-section h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-section p {
    color: #666;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

social-links a img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.1);
}

/* Медиа-запросы для страницы контактов */
@media screen and (max-width: 768px) {
    .map-wrapper iframe {
        height: 300px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 15px;
    }
}

/* Стили для страницы ухода за растениями */
.care-section {
    max-width: 100%;
}

.care-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.care-block {
    margin-bottom: 30px;
}

.care-block h3 {
    color: #333;
    margin: 20px 0 15px;
    font-size: 1.2rem;
}

.care-image {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.care-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.care-list, 
.care-steps {
    padding-left: 20px;
    margin: 15px 0;
}

.care-list li,
.care-steps li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
}

.care-section p {
    margin: 15px 0;
    line-height: 1.6;
    color: #444;
}

/* Медиа-запросы для страницы ухода */
@media screen and (max-width: 768px) {
    .care-content {
        padding: 15px;
    }

    .care-block h3 {
        font-size: 1.1rem;
    }

    .care-list,
    .care-steps {
        padding-left: 15px;
    }

    .care-image {
        margin: 15px -15px;
        border-radius: 0;
    }

    .care-image img {
        border-radius: 0;
    }
}

@media screen and (max-width: 576px) {
    .care-content {
        padding: 10px;
    }

    .care-block {
        margin-bottom: 20px;
    }

    .care-list li,
    .care-steps li,
    .care-section p {
        font-size: 0.95rem;
    }
}

/* Стили для страницы видео */
.video-container {
    width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

/* Медиа-запросы для страницы видео */
@media screen and (max-width: 768px) {
    .video-container {
        padding: 15px;
    }
}

@media screen and (max-width: 576px) {
    .video-container {
        padding: 10px;
        margin: 0 -10px;
        border-radius: 0;
    }
    
    .video-wrapper iframe {
        border-radius: 0;
    }
}

details {
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 0.5em 0.5em 0;
}

summary {
    font-weight: bold;
    margin: -0.5em -0.5em 0;
    padding: 0.5em;
    text-align: center;
}

details[open] {
    padding: 0.5em;
}

details[open] summary {
    border-bottom: 1px solid #aaa;
    margin-bottom: 0.5em;
}

.category-link.with-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.category-link.with-image:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 100%;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.category-link.with-image .category-name {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}