﻿:root {
    --primary: #0A2540; /* Deep Midnight Blue */
    --secondary: #2E8555; /* Eco Green */
    --accent: #F9C80E; /* Solar Yellow */
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background-color: #1a3b5c;
    box-shadow: 0 10px 20px rgba(10, 37, 64, 0.2);
}
.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}
.btn-secondary:hover {
    background-color: #236a43;
}
.btn-accent {
    background-color: var(--accent);
    color: var(--primary);
}
.btn-accent:hover {
    background-color: #e5b60b;
    transform: translateY(-2px);
}
.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* Header */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}
.logo img { height: 40px; }
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    margin: 0 15px;
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--secondary); }

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a3b5c 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(46,133,85,0.15) 0%, transparent 60%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Sections Common */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }

/* Cards */
.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}
.card:hover { transform: translateY(-10px); }
.card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}
.card h3 { margin-bottom: 15px; font-size: 1.3rem; }

/* About & Features */
.img-placeholder {
    width: 100%;
    height: 400px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--text-light);
    font-family: monospace;
}
.about-text h2, .features-content h2 { font-size: 2.5rem; margin-bottom: 25px; }
.about-text p { margin-bottom: 20px; font-size: 1.1rem; }

.features-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}
.features-image { order: -1; width: 50%; }
.features-content { width: 50%; }
.feature-list { list-style: none; margin-top: 30px; }
.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.feature-list i { color: var(--secondary); margin-top: 5px; }

/* Stats */
.dark-bg { background-color: var(--primary); color: var(--white); }
.dark-bg h2 { color: var(--white); margin-bottom: 50px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.stat-number {
    display: block;
    font-size: 4rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent);
    font-weight: 700;
}
.stat-text { font-size: 1.1rem; color: #cbd5e1; }

/* FAQ Accordion */
.accordion { max-width: 800px; margin: 40px auto 0; }
details {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    overflow: hidden;
}
summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary);
    transition: var(--transition);
}
details[open] summary::after { transform: rotate(180deg); }
.details-content { padding: 0 20px 20px; color: var(--text-light); }

/* Form Section */
.form-section { background-color: #e2e8f0; }
.form-container { max-width: 800px; }
.form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.form-wrapper h2 { text-align: center; margin-bottom: 10px; }
.form-wrapper > p { text-align: center; margin-bottom: 30px; color: var(--text-light); }

.input-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.input-group input, .input-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    background: #f8fafc;
    transition: var(--transition);
}
.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(46,133,85,0.1);
}
.checkbox-group {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.checkbox-group input { margin-top: 4px; }

.success-box {
    text-align: center;
    padding: 40px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    color: #166534;
}
.success-box i { font-size: 3rem; color: var(--secondary); margin-bottom: 20px; }

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
}
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; }
.footer-links { margin-bottom: 30px; }
.footer-links a { color: #cbd5e1; text-decoration: none; margin: 0 15px; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.copyright { color: #94a3b8; font-size: 0.9rem; }

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.cookie-content p { font-size: 0.9rem; margin: 0; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

/* Legal Pages Styling */
.legal-page { padding-top: 120px; padding-bottom: 80px; }
.legal-container {
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.legal-container h1 { margin-bottom: 30px; font-size: 2.5rem; }
.legal-container h2 { margin: 30px 0 15px; font-size: 1.5rem; }
.legal-container p, .legal-container ul { margin-bottom: 15px; color: var(--text-light); }
.legal-container ul { margin-left: 20px; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--secondary); text-decoration: none; font-weight: 600; }
.back-link:hover { text-decoration: underline; }
.map-container { margin-top: 30px; width: 100%; height: 350px; border-radius: 12px; overflow: hidden; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .grid-3, .grid-2, .input-group-row, .stats-grid { grid-template-columns: 1fr; }
    .features-wrapper { flex-direction: column; }
    .features-image, .features-content { width: 100%; }
    .cookie-content { flex-direction: column; text-align: center; }
    .form-wrapper { padding: 30px 20px; }
    .legal-container { padding: 30px; }
}

/* --- ИСПРАВЛЕНИЕ ДЛЯ КАРТИНОК --- */
.about-image img, .features-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    display: block;
    object-fit: cover;
}
