body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #a8e063, #56ab2f); /* Зеленый и лаймовый фон */
    color: #333;
    margin: 0;
    padding: 0;
    border-left: 2px solid #4caf50; /* Тонкая рамка слева */
    border-right: 2px solid #4caf50; /* Тонкая рамка справа */
}

header {
    background: #2a4d14; /* Темно-зеленый цвет */
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 4px solid #4caf50; /* Зеленая рамка снизу */
}

header a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

#hero {
    background: url('Jungle.webp') no-repeat center center/cover;
    color: #fff;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 2rem;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.5); /* Тёмное наложение */
    position: relative;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.button {
    background: #4caf50;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.button:hover {
    background: #388e3c;
    transform: scale(1.05);
}

.section {
    padding: 2rem 0;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px;
    background-color: #ffffff; /* Белый фон контейнера */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 2rem);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    max-width: 80%;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
    border-radius: 5px 5px 0 0;
}

.product-card h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.product-card p {
    margin-bottom: 1rem;
}

.price {
    font-size: 1.3rem;
    color: #4caf50;
    font-weight: bold;
}

.buy-button {
    background: #4caf50;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.buy-button:hover {
    background: #388e3c;
    transform: scale(1.05);
}

footer {
    background: #2a4d14;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

footer ul li {
    margin: 0 0.5rem;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #4caf50;
}

footer p {
    margin-top: 1rem;
    font-size: 1rem;
}

.trees {
    position: absolute;
    bottom: 0;
    width: 50px;
    height: 100px;
    background: url('j.png') no-repeat center center/cover;
    animation: appear 2s ease-in-out;
}

.trees.left {
    left: 10px;
}

.trees.right {
    right: 10px;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trees {
    opacity: 0;
    animation: slideIn 2s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-details {
    text-align: center;
}

.product-details img {
    max-width: 50%;
    margin-bottom: 1rem;
}

.gallery {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.gallery img {
    width: 20%;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}
