/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Индикатор прогресса прокрутки */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #4a7c59, #2c5530);
    z-index: 9999;
    transition: width 0.25s ease;
}

/* Анимация загрузки */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Плавные анимации */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

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

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c5530;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Ссылки */
a {
    color: #4a7c59;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2c5530;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4a7c59;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #2c5530;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Хедер */
.header {
    background: linear-gradient(135deg, #4a7c59 0%, #2c5530 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo h1 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.logo p {
    color: #a8d5a8;
    font-size: 0.9rem;
    margin: 0;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* Главная секция */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="50" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="30" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 124, 89, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #2c5530;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.hero h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4a7c59, #2c5530);
    border-radius: 2px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 400;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a7c59, #2c5530);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    transform: scale(1.1);
}

.feature:hover .feature-icon svg {
    fill: white;
}

.feature h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Методы борьбы */
.methods {
    padding: 80px 0;
    background-color: white;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.method-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
    border-left: 5px solid #4a7c59;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.method-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.05), rgba(44, 85, 48, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.method-card:hover::after {
    opacity: 1;
}

.method-card:hover {
    background: #e8f5e8;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-left-color: #2c5530;
    border-left-width: 8px;
}

.method-card h3 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.method-card ul {
    list-style: none;
    margin-top: 1rem;
}

.method-card li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.method-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4a7c59;
    font-weight: bold;
}

/* Услуги */
.services {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8f5e8 0%, #f8f9fa 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.05), rgba(44, 85, 48, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.service-card h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.service-card p {
    position: relative;
    z-index: 1;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    border-radius: 50px;
    display: inline-block;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .price {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.4);
}

/* О компании */
.about {
    padding: 80px 0;
    background-color: white;
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.achievement {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.achievement h3 {
    font-size: 2.5rem;
    color: #4a7c59;
    margin-bottom: 0.5rem;
}

.achievement p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Контакты */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
}

.contact h2 {
    color: white;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 2.5rem;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-item h3 {
    color: #a8d5a8;
    margin-bottom: 1rem;
}

.contact-item p {
    font-size: 1.1rem;
    margin: 0;
}

/* Футер */
.footer {
    background-color: #1a3d1f;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: #a8d5a8;
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.8;
    color: #ccc;
}

.footer-section a {
    color: #a8d5a8;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* Дополнительные анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.achievement:hover h3 {
    animation: pulse 0.6s ease-in-out;
}

/* Улучшенные тени */
.feature:hover,
.method-card:hover,
.service-card:hover {
    box-shadow: 0 20px 40px rgba(74, 124, 89, 0.2);
}

/* Плавные переходы для всех элементов */
* {
    transition: all 0.3s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .methods, .services, .about, .contact {
        padding: 60px 0;
    }
    
    .methods-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature, .method-card, .service-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .achievement h3 {
        font-size: 1.8rem;
    }
    
    .price {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* Дополнительные улучшения */
.header {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.95) 0%, rgba(44, 85, 48, 0.95) 100%);
}

.methods {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.about {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%);
}

/* Эффект размытия для карточек */
.feature, .method-card, .service-card {
    backdrop-filter: blur(5px);
}

/* Красивые градиенты для секций */
.services {
    background: linear-gradient(135deg, #e8f5e8 0%, #d0e8d0 50%, #f8f9fa 100%);
}

.contact {
    background: linear-gradient(135deg, #2c5530 0%, #1a3d1f 50%, #4a7c59 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contactPattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23contactPattern)"/></svg>');
    pointer-events: none;
}

/* Стили для страниц документов */
.document-page {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

.document-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.document-content h1 {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 3px solid #4a7c59;
    padding-bottom: 1rem;
}

.last-updated {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.document-section {
    margin-bottom: 3rem;
}

.document-section h2 {
    font-size: 1.8rem;
    color: #2c5530;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 5px solid #4a7c59;
    background: linear-gradient(90deg, #f0f8f0 0%, transparent 100%);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.document-section h3 {
    font-size: 1.3rem;
    color: #4a7c59;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.document-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

.document-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.document-section li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 0.5rem;
    position: relative;
}

.document-section li::marker {
    color: #4a7c59;
    font-weight: bold;
}

.document-section strong {
    color: #2c5530;
    font-weight: 600;
}

/* Адаптивность для страниц документов */
@media (max-width: 768px) {
    .document-page {
        padding: 100px 0 60px;
    }
    
    .document-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .document-content h1 {
        font-size: 2rem;
    }
    
    .document-section h2 {
        font-size: 1.5rem;
    }
    
    .document-section h3 {
        font-size: 1.2rem;
    }
    
    .document-section p,
    .document-section li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .document-content {
        padding: 1.5rem;
    }
    
    .document-content h1 {
        font-size: 1.8rem;
    }
    
    .document-section h2 {
        font-size: 1.3rem;
        padding-left: 0.5rem;
    }
    
    .document-section ul {
        margin-left: 1.5rem;
    }
} 