/* === Сброс и базовые стили === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2d5a27;
    --primary-dark: #1e3d1a;
    --secondary: #4a7c42;
    --accent: #d4a574;
    --accent-light: #e8c9a8;
    --text: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --light: #f8f6f3;
    --sand: #f5efe6;
    --water: #4a90a4;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
}

/* === Навигация === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
}

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

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

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

.logo span {
    color: var(--accent);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* === Герой секция === */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.9), rgba(74, 124, 66, 0.8)),
                url('../img/hero-desktop.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 120px 20px 60px;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    color: var(--accent-light);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-btn {
    display: inline-block;
    padding: 18px 50px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 165, 116, 0.4);
}

.hero-btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.5);
}

/* === Общие секции === */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* === Геокупол === */
.geo-dome {
    background: var(--white);
}

.geo-dome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.geo-dome-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px var(--shadow);
}

.geo-dome-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.geo-dome-info h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.geo-dome-info p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.geo-dome-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 0.95rem;
}

.feature-item::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

.geo-dome-price {
    background: var(--sand);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.price-tag {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.price-note {
    color: var(--text-light);
    font-size: 0.9rem;
}

.geo-dome-rules {
    background: var(--light);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.geo-dome-rules h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.geo-dome-rules ul {
    list-style: none;
}

.geo-dome-rules li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid #eee;
}

.geo-dome-rules li:last-child {
    border-bottom: none;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

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

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

.territory {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.territory-item {
    background: var(--sand);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text);
}

/* === Галерея === */
.gallery {
    background: var(--sand);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* === Дом с баней === */
.house {
    background: var(--white);
}

.house-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.house-content.reverse {
    direction: rtl;
}

.house-content.reverse > * {
    direction: ltr;
}

.house-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px var(--shadow);
}

.house-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* === Пирс и пляж === */
.beach {
    background: linear-gradient(135deg, var(--water) 0%, #5ba8c2 100%);
    color: var(--white);
}

.beach h2, .beach .section-subtitle {
    color: var(--white);
}

.beach-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.beach-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.beach-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.beach-card ul {
    list-style: none;
}

.beach-card li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.beach-card li::before {
    content: '🌟';
}

/* === Баня на дровах === */
.banya {
    background: linear-gradient(180deg, var(--sand) 0%, var(--white) 100%);
}

.banya-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.banya-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px var(--shadow);
}

.banya-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.banya-highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    color: var(--white);
}

.banya-highlight h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.banya-highlight p {
    margin: 0;
    font-size: 1.1rem;
}

.banya-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.banya-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.banya-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.banya-feature:hover {
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.feature-text p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.banya-price {
    text-align: center;
    padding: 30px;
    background: var(--primary);
    border-radius: 15px;
    margin-bottom: 30px;
    color: var(--white);
}

.price-big {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.price-desc {
    font-size: 1rem;
    opacity: 0.9;
}

.banya-details {
    background: var(--light);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.banya-details h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.banya-details ul {
    list-style: none;
    margin: 0;
}

.banya-details li {
    padding: 8px 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.banya-details li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

.banya-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.banya-cta .btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

/* === Дополнительные услуги === */
.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-card li {
    padding: 8px 0;
    color: var(--text-light);
}

.service-card li::before {
    content: '•';
    color: var(--accent);
    margin-right: 10px;
}

.service-price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

/* === Отзывы === */
.reviews {
    background: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--sand);
    padding: 35px;
    border-radius: 20px;
    position: relative;
}

.review-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

.review-name {
    font-weight: 600;
    color: var(--text);
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.reviews-more {
    text-align: center;
    margin-top: 40px;
}

/* === Контакты === */
.contacts {
    background: var(--light);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-text {
    color: var(--text);
}

.contact-text a {
    color: var(--primary);
    text-decoration: none;
}

.contact-text a:hover {
    text-decoration: underline;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === Форма бронирования === */
.booking-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.booking-section h2 {
    color: var(--white);
}

.booking-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-btn:hover {
    background: var(--primary-dark);
}

/* === Футер === */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* === Модальное окно галереи === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s ease;
}

.modal-nav:hover {
    color: var(--accent);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

/* === Адаптивность === */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .geo-dome-content,
    .house-content,
    .beach-content,
    .banya-content,
    .contacts-content {
        grid-template-columns: 1fr;
    }
    
    .house-content.reverse {
        direction: ltr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        gap: 25px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Мобильное херо-изображение */
    .hero {
        background: linear-gradient(135deg, rgba(45, 90, 39, 0.85), rgba(74, 124, 66, 0.75)),
                    url('../img/hero-mobile.jpg') center/cover;
        padding: 100px 15px 40px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .geo-dome-features,
    .banya-features {
        grid-template-columns: 1fr;
    }
    
    .banya-content {
        gap: 40px;
    }
    
    .banya-image img {
        height: 300px;
    }
    
    .banya-cta {
        flex-direction: column;
    }

    .banya-cta .btn {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 50px 0;
    }
}

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

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