/* ============================================
   СБРОС СТИЛЕЙ И ИМПОРТ ШРИФТОВ
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Lora:wght@400;500;600&display=swap');

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

html {
    scroll-behavior: smooth;
}

/* ============================================
   ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
   ============================================ */

:root {
    /* Цветовая палитра - теплый деревенский шик */
    --primary-brown: #8b7355;
    --light-beige: #f5ede4;
    --cream: #faf6f1;
    --dark-green: #2d5a3d;
    --accent-terracotta: #c97a5c;
    --text-dark: #3a3a3a;
    --text-light: #666666;
    --border-color: #e0d5c7;
    
    /* Шрифты */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */

@keyframes snowfall {
    0% {
        transform: translateY(-100px) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(50px);
        opacity: 0.3;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ============================================
   СНЕЖИНКИ
   ============================================ */

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* ============================================
   ШАПКА САЙТА
   ============================================ */

header {
    background: linear-gradient(135deg, #2d5a3d 0%, #4a7c5a 25%, #8b7355 50%, #a0826d 75%, #c9b697 100%);
    color: white;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--primary-brown);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: var(--font-display);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo::after {
    content: ' 🌲';
    margin-left: 10px;
}

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

nav a {
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.3rem;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(139, 115, 85, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

nav a:hover {
    background: rgba(201, 182, 151, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ГЛАВНЫЙ БАННЕР (HERO)
   ============================================ */

.hero {
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.85) 0%, rgba(139, 115, 85, 0.75) 50%, rgba(201, 182, 151, 0.7) 100%),
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200&h=600&fit=crop') center/cover;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--primary-brown);
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(225, 240, 255, 0.15) 0%, transparent 50%, rgba(139, 115, 85, 0.2) 100%);
    pointer-events: none;
}

.hero::after {
    content: '🌲 🏡 🌲';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 4rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
    max-width: 800px;
}

.hero-content:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    font-family: var(--font-display);
    color: #ffffff;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    color: #f0f0f0;
}

.rating {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
   КНОПКИ
   ============================================ */

.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: linear-gradient(135deg, #8b7355 0%, #a0826d 50%, #c9b697 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.4);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.6);
    background: linear-gradient(135deg, #9d8367 0%, #b09379 50%, #d4c4a8 100%);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--dark-green) 0%, #3d6f4f 50%, #4a8a5f 100%);
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #3d6f4f 0%, #4a8a5f 50%, #567d6b 100%);
    box-shadow: 0 8px 25px rgba(45, 90, 61, 0.6);
}

/* ============================================
   СЕКЦИИ И КОНТЕНТ
   ============================================ */

section {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.8rem;
    font-family: var(--font-display);
    color: var(--primary-brown);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-terracotta), transparent);
}

/* ============================================
   СЕКЦИЯ ОСОБЕННОСТЕЙ
   ============================================ */

.features {
    background-color: var(--light-beige);
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-terracotta);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   СЕКЦИЯ НОМЕРОВ
   ============================================ */

.rooms {
    background-color: var(--cream);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.room-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    animation: fadeInUp 0.6s ease backwards;
}

.room-card:nth-child(1) { animation-delay: 0.1s; }
.room-card:nth-child(2) { animation-delay: 0.2s; }
.room-card:nth-child(3) { animation-delay: 0.3s; }

.room-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.room-card .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-terracotta), #d9845f);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(201, 122, 92, 0.3);
}

.room-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.room-card:hover .room-image {
    transform: scale(1.05);
}

.room-info {
    padding: 2rem;
}

.room-info h3 {
    font-size: 1.6rem;
    color: var(--primary-brown);
    margin-bottom: 0.8rem;
    font-family: var(--font-display);
}

.room-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.room-amenities {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.room-amenities span {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.room-amenities span:hover {
    transform: scale(1.2);
}

.rating {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.room-price {
    font-size: 1.4rem;
    color: var(--accent-terracotta);
    font-weight: 600;
    font-family: var(--font-display);
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2001;
}

.modal-close:hover {
    transform: scale(1.2);
    color: var(--accent-terracotta);
}

.modal-caption {
    color: white;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

/* ============================================
   СЕКЦИЯ КОНТАКТОВ
   ============================================ */

.contact {
    background: linear-gradient(135deg, var(--dark-green) 0%, #3d6f4f 50%, #4a8a5f 100%);
    color: white;
    text-align: center;
}

.contact-info h2 {
    color: white;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #f0f0f0;
}

/* ============================================
   ПОДВАЛ
   ============================================ */

footer {
    background-color: #2a2a2a;
    color: white;
    text-align: center;
    padding: 2rem 5%;
    border-top: 3px solid var(--primary-brown);
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* ============================================
   СТРАНИЦА НОМЕРОВ
   ============================================ */

.room-detail {
    background-color: var(--light-beige);
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.room-detail h2 {
    font-size: 2.5rem;
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.room-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.room-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.room-detail-info h3 {
    font-size: 1.8rem;
    color: var(--accent-terracotta);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.room-detail-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.amenities-list {
    list-style: none;
    margin: 2rem 0;
}

.amenities-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.amenities-list li::before {
    content: '✓ ';
    color: var(--accent-terracotta);
    font-weight: bold;
    margin-right: 0.8rem;
}

/* ============================================
   СТРАНИЦА КОНТАКТОВ
   ============================================ */

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem 5%;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-size: 2rem;
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-terracotta);
    box-shadow: 0 0 10px rgba(201, 122, 92, 0.2);
}

.contact-info-section {
    background: var(--light-beige);
    padding: 2.5rem;
    border-radius: 15px;
}

.contact-info-section h2 {
    font-size: 2rem;
    color: var(--primary-brown);
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

.contact-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item h3 {
    font-size: 1.3rem;
    color: var(--accent-terracotta);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   СТРАНИЦА АКТИВНОСТЕЙ
   ============================================ */

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.activity-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease backwards;
}

.activity-card:nth-child(1) { animation-delay: 0.1s; }
.activity-card:nth-child(2) { animation-delay: 0.2s; }
.activity-card:nth-child(3) { animation-delay: 0.3s; }
.activity-card:nth-child(4) { animation-delay: 0.4s; }

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.activity-icon {
    font-size: 4rem;
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--light-beige), #f0e8dd);
}

.activity-card h3 {
    font-size: 1.5rem;
    color: var(--primary-brown);
    padding: 0 1.5rem;
    margin-top: 1rem;
    font-family: var(--font-display);
}

.activity-card p {
    color: var(--text-light);
    padding: 0 1.5rem 1.5rem;
    line-height: 1.7;
}

/* ============================================
   СТРАНИЦА О НАС
   ============================================ */

.about-section {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.value-card {
    background: var(--light-beige);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--accent-terracotta);
    transform: translateY(-5px);
}

.value-card h3 {
    font-size: 1.4rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   АДАПТИВНЫЙ ДИЗАЙН
   ============================================ */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        justify-content: center;
    }

    nav a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .hero {
        height: 400px;
    }

    .hero-content {
        padding: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .room-detail-content {
        grid-template-columns: 1fr;
    }

    .contacts-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .activity-card,
    .feature-card,
    .room-card {
        animation: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav a {
        width: 100%;
        text-align: center;
    }

    .hero {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    section {
        padding: 2rem 3%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .features-grid,
    .rooms-grid,
    .activities-grid {
        grid-template-columns: 1fr;
    }
}
