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

:root {
    --primary: #4a7c54; /* приглушенный зеленый */
    --primary-light: #6b9a76;
    --secondary: #8a7f8d; /* приглушенный фиолетово-серый */
    --light: #f9f7f4;
    --light-gray: #f0efec;
    --gray: #a0a0a0;
    --dark: #333333;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
}

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

section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-gray);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 60px 0; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: rgba(74, 124, 84, 0.1);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-call {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-contacts {
    display: flex;
    align-items: center;
    gap: 25px;
}

.phone {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 1.1rem;
}

.phone i {
    margin-right: 8px;
    color: var(--primary);
}

/* Hero */
.hero {
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), 
                url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    margin-top: 70px;
}

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

.hero-title {
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--dark);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(74, 124, 84, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.8rem;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 15px;
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step {
    text-align: center;
}

.step-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(74, 124, 84, 0.2);
    margin-bottom: 15px;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.step p {
    color: var(--gray);
}

/* Why */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-card {
    text-align: center;
    padding: 30px 20px;
}

.why-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.why-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.why-card p {
    color: var(--gray);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    text-align: left;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: var(--transition);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 0 20px;
    color: var(--gray);
}

/* CTA */
.cta {
    background-color: var(--light);
    text-align: center;
}

.cta-title {
    margin-bottom: 15px;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta-info {
    margin-top: 30px;
}

.cta-info p {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
    color: var(--gray);
}

.cta-info i {
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-logo i {
    margin-right: 10px;
    color: var(--white);
}

.footer-tagline {
    margin-top: 10px;
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-contacts h3,
.footer-info h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-contacts a,
.footer-info a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-contacts a:hover,
.footer-info a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1999;
}

.overlay.active {
    display: block;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 2001;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.modal h3 {
    margin-bottom: 10px;
    text-align: center;
}

.modal p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--gray);
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

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

.form-note {
    font-size: 0.85rem;
    margin-top: 15px;
    text-align: center;
}

.docs-list p {
    text-align: left;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.docs-list p:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-contacts {
        flex-direction: column;
        gap: 15px;
        align-items: flex-end;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-info p {
        display: block;
        margin: 10px 0;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}
