* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2E8B57;
    --secondary-color: #FFD700;
    --accent-color: #1E90FF;
    --dark-color: #0D47A1;
    --light-color: #F8F9FA;
    --text-color: #212121;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
}

body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #F0FFF0, #FFF8F0);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 0px 0;
    margin-bottom: 0px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    width: 181px;
    height: 159px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.3);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Main Content Styles */
.main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: center;
}

.emoji-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.emoji {
    font-size: 2.5rem;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.description {
    background: linear-gradient(135deg, #F0FFF0, #FFF8F0);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(46, 139, 87, 0.1);
}

.description p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.catalog-info {
    /* background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); */
    color: rgb(88, 88, 88);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    font-weight: 600;
    text-align: center;
}

.catalog-link {
    /* color: white; */
    color: rgb(88, 88, 88);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid rgb(88, 88, 88);
}

.catalog-link:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.delivery-info {
    background: linear-gradient(135deg, #E6F7FF, #D1F0FF);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    margin-top: 20px;
}

/* Footer Styles */
.footer {
    /* background: var(--dark-color); */
    color: rgb(88, 88, 88);
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .emoji {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .description {
        padding: 20px;
    }
    
    .catalog-link {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .emoji {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .description p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .catalog-info {
        padding: 15px;
    }
    
    .catalog-link {
        display: block;
        margin: 10px 0;
    }
    
    .footer {
        padding: 15px;
    }
}

/* Additional Styling */
@media (min-width: 769px) {
    .description p {
        font-size: 1.15rem;
    }
}

/* Hover Effects */
.description p:hover {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Галерея стилей */
.gallery {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 25px 0;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-item {
    display: block;
    flex: 0 0 18%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.2);
    transition: all 0.3s ease;
    scroll-snap-align: start;
    cursor: pointer;
    height: 200px;
    background: linear-gradient(135deg, #f0fff0, #fff8f0);
    border: 2px solid var(--primary-color);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(46, 139, 87, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 28%;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 45%;
    }
}

/* Модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.modal:target {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 32px;
    text-decoration: none;
    transition: color 0.3s;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.modal-close:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.2);
}

.modal img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--secondary-color);
    transition: transform 0.3s;
}

.modal img:hover {
    transform: scale(1.03);
}

/* Добавлено для плавного закрытия */
.modal:target ~ .gallery-item {
    pointer-events: none;
}