/* ===== Variables ===== */
:root {
    --color-primary: #98C454;
    --color-primary-dark: #7aa842;
    --color-text: #404040;
    --color-text-light: #6D6E71;
    --color-white: #FFFFFF;
    --color-bg-light: #f8f9fa;
    --color-border: #e0e0e0;
    
    --font-family: 'Roboto', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    padding: 120px 0 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-full-logo {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ===== About Section ===== */
.about {
    background-color: var(--color-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--color-text-light);
}

/* ===== Advantages Section ===== */
.advantages {
    background-color: var(--color-bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.advantage-card p {
    color: var(--color-text-light);
}

/* ===== Products Preview ===== */
.products-preview {
    background-color: var(--color-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--color-bg-light);
    padding: 40px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.product-card p {
    color: var(--color-text-light);
}

.text-center {
    text-align: center;
}

/* ===== Contacts Section ===== */
.contacts {
    background-color: var(--color-bg-light);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--color-text-light);
}

.contact-item a {
    color: var(--color-text-light);
}

.contact-item a:hover {
    color: var(--color-primary);
}

.contact-form-wrapper {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--color-text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 50px;
    object-fit: contain;
}

.footer-links a {
    color: var(--color-white);
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.privacy-link {
    color: var(--color-text-light);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--color-primary);
}

/* ===== Privacy Page ===== */
.privacy-section {
    background-color: var(--color-white);
}

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

.privacy-content h2 {
    font-size: 1.75rem;
    color: var(--color-text);
    margin-bottom: 30px;
    text-align: center;
}

.privacy-content h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin: 30px 0 15px;
}

.privacy-content p {
    color: var(--color-text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.privacy-content ul {
    margin: 15px 0 15px 30px;
    color: var(--color-text-light);
}

.privacy-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.privacy-content a {
    color: var(--color-primary);
}

.privacy-content a:hover {
    color: var(--color-primary-dark);
}

/* ===== Page Header (for inner pages) ===== */
.page-header {
    padding: 120px 0 60px;
    background-color: var(--color-bg-light);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--color-text);
}

/* ===== Products Page ===== */
.products-section {
    padding: 60px 0;
}

.product-category {
    margin-bottom: 60px;
}

.product-category h2 {
    font-size: 1.75rem;
    color: var(--color-text);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
}

.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    transition: box-shadow 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.product-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.product-item .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ===== Gallery Page ===== */
.gallery-section {
    padding: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background-color: var(--color-bg-light);
}

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

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

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .logo-text {
        display: none;
    }
    
    .hero-full-logo {
        max-height: 40vh;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .advantages-grid,
    .products-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .product-list,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
}
