* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f9fcf9;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 12px;
}

header {
    background: linear-gradient(90deg, #008000, #2e8b57);
    color: white;
    padding: 1rem 0;
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    padding: 4px;
    margin-right: 12px;
}

header h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.8rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #d4ffd4;
}

/* Мобильное меню */
@media (max-width: 820px) {
    header h1 {
        display: none;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #006400;
        box-shadow: 0 6px 14px rgba(0,0,0,0.3);
        z-index: 100;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    nav li {
        text-align: center;
    }

    nav a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }

    body.menu-open {
        overflow: hidden;
    }
}

main {
    padding: 2rem 0;
}

.content-page h2 {
    color: #006400;
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 1.5rem;
}

.content-page h3 {
    color: #008000;
    font-size: 1.4rem;
    margin: 2rem 0 0.8rem;
}

.content-page ol {
    padding-left: 1.8rem;
    font-size: 1.05rem;
}

.content-page li {
    margin-bottom: 1rem;
}

.offers-vitrina {
    margin-top: 3rem;
    text-align: center;
}

.offers-vitrina h2 {
    color: #006400;
    font-size: 1.8rem;
}

.offer-card {
    background: white;
    border: 1px solid #e0f0e0;
    border-radius: 12px;
    padding: 1.8rem;
    margin: 1.5rem auto;
    max-width: 380px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.offer-card h3 {
    color: #008000;
    margin-top: 0;
}

.btn {
    display: inline-block;
    background: #008000;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: background 0.2s;
}

.btn:hover {
    background: #006400;
}

/* Попап */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.popup.active {
    display: flex;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.2rem;
    color: #777;
    cursor: pointer;
}

.close-button:hover {
    color: #000;
}

/* Футер */
footer {
    background: #1a1a1a;
    color: #ccc;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: 0.92rem;
}

footer a {
    color: #4caf50;
    text-decoration: none;
}

footer a:hover {
    color: #81c784;
}