/* Подключение шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Open+Sans:wght@400;500;600&display=swap');

/* Сброс стилей и переменные */
:root {
    --primary-green: #27ad32;
    --primary-green-dark: #1B5E20;
    --secondary-red: #c62828;
    --dark-gray: #232323;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --text-color: #333;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --border-radius: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Шапка и меню */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,240,240,0.95) 100%);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 10px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(245,245,245,0.98) 100%);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.main-navigation {
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark-gray);
    transition: var(--transition);
}

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

.menu a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

.menu a:hover,
.menu a.active {
    color: var(--primary-green);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition);
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

/* Hero-секция */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/hero-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--white);
    text-align: center;
    padding: 180px 20px 150px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
    opacity: 0.5;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Секции */
.section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-gray);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-green);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

/* Карточки преимуществ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: rgba(255,255,255,0.85);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-green);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}

.card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* Секция "О нас" */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h2 {
    margin-bottom: 25px;
}

.about-features {
    list-style: none;
    margin: 25px 0;
    padding-left: 20px;
}

.about-features li {
    margin-bottom: 10px;
    font-weight: 500;
}

/* Календарь */
.calendar-section {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(5px);
}

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

.season-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-green);
}

.season-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.season-card.spring { border-top-color: #4CAF50; }
.season-card.summer { border-top-color: #FF9800; }
.season-card.autumn { border-top-color: #F57C00; }
.season-card.winter { border-top-color: #2196F3; }

.season-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.season-card h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

/* Отзывы */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: rgba(39, 173, 50, 0.1);
    line-height: 1;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-green);
}

.testimonial-header h4 {
    font-weight: 600;
    color: var(--dark-gray);
}

.rating {
    color: #FFD700;
    font-size: 0.9rem;
    margin-top: 2px;
}

/* Призыв к действию */
.cta-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/tips-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
    flex-wrap: wrap;
}

.cta-form input {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.cta-form button {
    min-width: 180px;
}

.small-text {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.small-text a {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Футер */
.site-footer {
    background: linear-gradient(135deg, #232323 0%, #1a1a1a 100%);
    color: white;
    padding: 80px 0 40px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

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

.footer-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-widget h3 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-widget ul li a:hover {
    color: var(--primary-green);
    transform: translateX(3px);
}

.contacts li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #444;
    margin-top: 30px;
}

.footer-navigation a {
    color: #aaa;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 3px;
}

.footer-navigation a:hover {
    color: white;
    background: var(--primary-green);
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
    color: #aaa;
    font-size: 0.9rem;
}

.site-info a {
    color: var(--primary-green);
    text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}

/* Кнопка "Наверх" */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
}

#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--primary-green-dark);
    transform: translateY(-3px) scale(1.1);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.leaf {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--primary-green);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: spin 2s linear infinite;
}

.leaf:nth-child(1) {
    top: 0;
    left: 25px;
    animation-delay: 0s;
}

.leaf:nth-child(2) {
    top: 25px;
    right: 0;
    animation-delay: 0.2s;
}

.leaf:nth-child(3) {
    bottom: 0;
    left: 25px;
    animation-delay: 0.4s;
}

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

#preloader p {
    color: var(--dark-gray);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Анимации появления */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.pulse {
    animation: pulse 2s infinite;
}

/* Адаптивность */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .menu.active {
        transform: translateY(0);
    }
    
    .menu a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
    
    .hero-section {
        padding: 120px 20px 100px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        height: 300px;
    }
    
    .footer-navigation {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .season-card {
        padding: 20px;
    }
    
    .cta-form {
        flex-direction: column;
    }
    
    .cta-form input,
    .cta-form button {
        width: 100%;
        min-width: auto;
    }
}
