/* Новая теплая цветовая гамма: Лес, дерево, отдых */
:root {
    --color-forest: #1E352F;
    /* Глубокий хвойный */
    --color-wood: #C28C5F;
    /* Теплое дерево / баня */
    --color-wood-dark: #A47146;
    /* Насыщенное дерево */
    --color-bg: #FDFBF7;
    /* Мягкий кремовый фон */
    --color-text: #2B2520;
    /* Глубокий древесно-угольный */
    --color-white: #FFFFFF;
    --font-headers: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Шапка сайта */
header {
    background-color: var(--color-forest);
    color: var(--color-white);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(30, 53, 47, 0.1);
}

/* Логотип со встроенным домиком */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background-color: var(--color-wood);
    color: var(--color-forest);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-size: 1.3rem;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

.logo-text {
    font-family: var(--font-headers);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

header nav a {
    color: var(--color-white);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover,
header nav a.active-link {
    color: var(--color-wood);
}

/* Главный баннер */
.hero {
    text-align: center;
    padding: 140px 20px;
    background: linear-gradient(rgba(30, 53, 47, 0.65), rgba(30, 53, 47, 0.65)),
        url('Gallery/spa_1.jpg') center/cover;
    color: var(--color-white);
}

.hero h1 {
    font-family: var(--font-headers);
    font-size: 3.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 15px auto;
    font-weight: 400;
}

/* Кнопки */
.btn {
    display: inline-block;
    background-color: var(--color-wood);
    color: var(--color-white);
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--color-wood-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(194, 140, 95, 0.4);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

/* Основные секции */
.about-section,
.photo-preview-section,
.booking-cta-section,
.contacts-section,
.map-section,
.gallery-section {
    padding: 50px 5%;
    /* Уменьшенные аккуратные отступы */
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Элегантные градиентные разделители */
.about-section::after,
.photo-preview-section::after,
.booking-cta-section::after,
.map-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-wood), transparent);
    opacity: 0.3;
}

/* Заголовки */
.section-title {
    font-family: var(--font-headers);
    text-align: center;
    font-size: 2.6rem;
    color: var(--color-forest);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-wood);
    border-radius: 2px;
}

.about-intro,
.booking-intro,
.gallery-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Преимущества */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.amenity-item {
    background: var(--color-white);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(30, 53, 47, 0.03);
    border: 1px solid rgba(30, 53, 47, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(30, 53, 47, 0.07);
}

.amenity-item i {
    font-size: 2.5rem;
    color: var(--color-wood);
    margin-bottom: 20px;
}

.amenity-item h3 {
    font-family: var(--font-headers);
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--color-forest);
}

.amenity-item p {
    font-size: 0.95rem;
    color: #666;
}

/* Охрана и Безопасность */
.security-info {
    background-color: #EBF0EE;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--color-wood);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 700px;
    margin: 30px auto 0 auto;
}

.security-info p {
    font-weight: 500;
    color: var(--color-forest);
}

.security-info i {
    color: var(--color-wood);
    margin-right: 8px;
}

/* Фото-предпросмотр на главной */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.photo-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 53, 47, 0.05);
    position: relative;
}

.photo-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.08);
}

.gallery-cta {
    text-align: center;
    margin-top: 35px;
}

/* CTA-блок бронирования через мессенджеры */
.contact-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.cta-card {
    background: var(--color-white);
    border-radius: 14px;
    padding: 35px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 4px 20px rgba(30, 53, 47, 0.04);
    border: 1px solid rgba(30, 53, 47, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(30, 53, 47, 0.1);
}

.cta-card i {
    font-size: 2.4rem;
    margin-bottom: 15px;
    display: block;
}

.cta-card h3 {
    font-family: var(--font-headers);
    font-size: 1.3rem;
    color: var(--color-forest);
    margin-bottom: 6px;
}

.cta-card p {
    font-size: 0.9rem;
    color: #666;
}

.cta-telegram i {
    color: #229ED9;
}

.cta-whatsapp i {
    color: #25D366;
}

.cta-phone i {
    color: var(--color-wood-dark);
}

/* Контейнер Карты */
.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 53, 47, 0.06);
}

/* Контакты и Единые Кнопки Связи */
.contacts-wrapper {
    text-align: center;
    font-size: 1.1rem;
    background-color: white;
    padding: 40px;
    border-radius: 14px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.address-text,
.phone-text {
    margin-bottom: 15px;
}

.phone-text a {
    color: var(--color-wood-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 8px;
    color: var(--color-white);
    background-color: var(--color-forest);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--color-forest);
}

.social-btn:hover {
    background-color: var(--color-wood);
    border-color: var(--color-wood);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(194, 140, 95, 0.3);
}

/* Вкладки и слайдер Галереи */
.gallery-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Разрешаем перенос на новую строку */
    gap: 15px;
    /* Расстояние между кнопками */
    margin-bottom: 35px;
    max-width: 800px;
    /* Ограничиваем ширину, чтобы кнопки держались вместе */
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    background-color: transparent;
    border: 2px solid var(--color-wood);
    color: var(--color-forest);
    padding: 10px 20px;
    font-size: 0.95rem;
    /* Чуть уменьшим шрифт, чтобы все поместилось */
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Запрещаем перенос текста внутри кнопки */
}

.tab-btn:hover {
    background-color: #F6EFE5;
}

.tab-btn.active {
    background-color: var(--color-wood);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(194, 140, 95, 0.3);
}

.slideshow-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.slideshow-container {
    display: none;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.slideshow-container.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 8px;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 4px 4px 0;
    user-select: none;
    background-color: rgba(30, 53, 47, 0.5);
}

.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.prev {
    left: 0;
}

.prev:hover,
.next:hover {
    background-color: var(--color-wood);
}

.fade {
    animation-name: fade;
    animation-duration: 0.7s;
}

@keyframes fade {
    from {
        opacity: .5
    }

    to {
        opacity: 1
    }
}

/* Анимация прокрутки (Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.animated-hero h1 {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Футер */
footer {
    background-color: var(--color-forest);
    color: var(--color-white);
    text-align: center;
    padding: 25px;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    header nav a {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .photo-item img {
        height: 180px;
    }

    .contact-cta-grid {
        grid-template-columns: 1fr;
    }

    .slide img {
        height: 300px;
    }

    .social-links {
        flex-direction: column;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
    }
}