/* css/style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f5f0e6;
    color: #333;
    padding: 25px;
}

.grid-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: 240px 1fr auto;
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
    min-height: calc(100vh - 50px);
}

.box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(180, 170, 155, 0.2);
    padding: 25px;
    border: none;
    transition: all 0.3s ease;
}

.logo-box {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fffbf7 0%, #f7f1e7 100%);
    border: 1px solid #e2d7c7;
    padding: 0 !important;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-box {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    font-weight: 700;
    color: #3a3130;
    letter-spacing: 3px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.menu-box {
    grid-column: 1;
    grid-row: 2;
    background: #ffffff;
    border: 1px solid #e8e1d5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    align-items: stretch;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #4a403f;
    background: linear-gradient(180deg, #ffffff 0%, #f4eee4 100%);
    border: 1px solid #dcd3c5;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.menu-item:hover {
    background: linear-gradient(180deg, #f4eee4 0%, #eaddce 100%);
    color: #1a1514;
}

.menu-item.active {
    background: linear-gradient(135deg, #d47a2a 0%, #b85c14 100%) !important;
    color: #ffffff !important;
    border-color: #a34e0c !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 5px 15px rgba(184, 92, 20, 0.4);
}

/* Выпадающее подменю */
.dropdown-container {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding-left: 20px;
    margin-top: 8px;
}

.dropdown-box.open .dropdown-container {
    display: flex;
}

.dropdown-container .menu-item {
    padding: 10px 20px;
    font-size: 14px;
    background: #faf8f5;
}

.content-box {
    grid-column: 2;
    grid-row: 2;
    border: 1px solid #e8e1d5;
    padding: 40px;
}

.footer-box {
    grid-column: 1 / span 2;
    grid-row: 3;
    background: #231e1d;
    color: #e2d7c7;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    font-size: 14px;
}

.footer-contacts { display: flex; gap: 35px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
    color: #ffffff; background: rgba(255, 255, 255, 0.07); padding: 8px 16px; border-radius: 20px; text-decoration: none; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-socials a:hover { background: #b85c14; }

/* Сетка магазина и услуг */
.main-shop-container { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.shop-sidebar { background: #fff; border-radius: 16px; padding: 20px; border: 1px solid #e8e1d5; align-self: start; }
.product-grid, .services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

@media (max-width: 768px) {
    body { padding: 10px; }
    .grid-container { display: flex; flex-direction: column; gap: 15px; }
    .logo-box { width: 100%; height: 180px; aspect-ratio: auto; }
    .banner-box { height: 150px; font-size: 24px; }
    .main-shop-container { display: flex; flex-direction: column; }
    .footer-box { flex-direction: column; gap: 20px; text-align: center; }
    .footer-contacts { flex-direction: column; gap: 12px; }
}