:root {
    --soft-green: #d4edda;
    --beige: #f8f9fa;
    --dark-green: #2e7d32;
    --light-green: #a5d6a7;
}

body {
    background-color: var(--beige);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.7s ease, color 0.7s ease;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

header, footer {
    background-color: var(--soft-green);
    transition: background-color 0.7s ease;
}

html {
    scroll-behavior: smooth;
}

/* Добавляем красивые тени и анимации */
.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.transition-shadow {
    transition: box-shadow 0.3s ease;
}

/* Добавляем анимацию для карточек */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Стили для формы */
#contactForm input,
#contactForm textarea {
    transition: all 0.3s ease;
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color: var(--soft-green);
    box-shadow: 0 0 0 3px rgba(212, 237, 218, 0.5);
}

/* Анимация при загрузке */
body {
    opacity: 1;
    transition: opacity 0.7s ease-in-out;
}

/* Стили для секции услуг */
.services-section {
    background: linear-gradient(135deg, var(--soft-green) 0%, #e8f5e9 100%);
}

/* Стили для отзывов */
blockquote {
    position: relative;
    border-left: 4px solid var(--soft-green);
    padding-left: 1.5rem;
    margin: 1rem 0;
}

blockquote::before {
    content: "\"";
    font-size: 4rem;
    position: absolute;
    left: -0.5rem;
    top: -1rem;
    color: var(--soft-green);
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Стили для кнопки */
button[type="submit"] {
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #000; /* Текст по умолчанию черный */
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* Стили для переключателя темы */
.theme-toggle {
    z-index: 1000;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.7s ease;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Стили для иконки темы */
#themeIcon {
    transition: all 0.7s ease;
}

/* Темная тема */
.dark-theme {
    --beige: #1a1a1a;
    --soft-green: #2e7d32;
    --dark-green: #4caf50;
    --light-green: #81c784;
}

.dark-theme body {
    background-color: var(--beige);
    color: white;
}

.dark-theme header, 
.dark-theme footer {
    background-color: var(--soft-green);
    color: white;
}

.dark-theme h1, 
.dark-theme h2, 
.dark-theme h3, 
.dark-theme h4, 
.dark-theme h5, 
.dark-theme h6 {
    color: white;
}

.dark-theme .theme-toggle {
    background-color: #333;
    color: white;
}

.dark-theme #themeIcon {
    color: white;
}

.dark-theme #contactForm input,
.dark-theme #contactForm textarea {
    color: white;
    background-color: #333;
    border-color: #555;
}

.dark-theme #contactForm input:focus,
.dark-theme #contactForm textarea:focus {
    border-color: var(--soft-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.5);
}

.dark-theme .card {
    background-color: #333;
    color: white;
}

.dark-theme blockquote {
    background-color: #333;
    color: white;
    border-left-color: var(--soft-green);
}

.dark-theme blockquote footer {
    color: white;
}

.dark-theme .services-section {
    background: linear-gradient(135deg, var(--soft-green) 0%, #2e7d32 100%);
}

/* Улучшенные переходы для плавности */
body,
header,
footer,
.card,
blockquote,
#contactForm input,
#contactForm textarea,
button[type="submit"] {
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Стили для текста в темной теме */
.dark-theme #about p {
    color: white;
}

/* Улучшенная видимость кнопки */
button[type="submit"] {
    border: 2px solid var(--soft-green);
    transition: all 0.3s ease;
}

.dark-theme button[type="submit"] {
    border: 2px solid var(--soft-green);
    color: white; /* В темной теме текст белый */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .theme-toggle {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .services-section {
        padding: 20px 0;
    }
    
    #contactForm input,
    #contactForm textarea {
        padding: 10px;
        font-size: 1rem;
    }
    
    button[type="submit"] {
        padding: 15px;
        font-size: 1rem;
    }
    
    .grid-cols-1 {
        grid-template-columns: 1fr;
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .flex {
        flex-direction: column;
    }
    
    .space-x-6 {
        margin: 0;
        padding: 0;
    }
    
    .space-x-6 > * {
        margin-bottom: 10px;
    }
}
