/* Общие стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* Стили для шапки */
header {
    background-color: #43C835;
    color: black;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
}

.logo {
    height: 80px;
    width: auto;
    flex-shrink: 0;
}

.contact-info {
    text-align: right;
    flex-shrink: 0;
}

.contact-info p {
    margin: 5px 0;
    font-size: 14px;
}

/* Стили для навигации */
nav {
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #43C835;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: black;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: #36A62A;
}

/* Стили для основного контента */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

h1, h2 {
    color: #36A62A;
    text-align: center;
}

/* Стили для кнопок категорий */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    height: 250px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

.category-btn img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.category-btn span {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #f9fff9;
    color: #43C835;
}

/* Стили для таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #43C835;
    color: white;
    transition: background-color 0.3s ease;
}

tr.category-row td {
    font-weight: bold;
    background-color: #f0f0f0;
    text-align: center;
}

.price-cell {
    text-align: right;
}

tr:hover:not(.category-row) {
    background-color: #f9f9f9;
}

/* Стили для футера */
footer {
    background-color: #43C835;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
}

footer h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

footer p {
    margin: 10px 0;
}

/* Стили для карты */
.map {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.map iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
    transition: all 0.3s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-bar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 15px;
    }

    .logo {
        margin: 0 auto;
        height: 60px;
    }

    .contact-info {
        text-align: center;
        margin-top: 0;
    }

    nav {
        max-width: 100%;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 5px 0;
    }

    .category-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .category-btn {
        width: 150px;
        height: 200px;
    }

    .category-btn img {
        width: 130px;
        height: 130px;
    }

    .category-btn span {
        font-size: 14px;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
    }

    .map iframe {
        height: 300px;
    }
}

.catalog-list {
    max-width: 800px;
    margin: 40px auto;
}

.catalog-list-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.catalog-list-item:hover {
    background: #e9ecef;
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.catalog-list-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}

.catalog-list-text {
    flex: 1;
}

.catalog-list-text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.catalog-list-hint {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.catalog-list-arrow {
    font-size: 24px;
    color: #007bff;
}