/* ------------------------------------------------------------------- */
/* 1. Подключение шрифтов */
/* ------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Rubik:wght@400;500;700&display=swap');

/* ------------------------------------------------------------------- */
/* 2. CSS Reset и глобальные стили */
/* ------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "Rubik", sans-serif; /* Rubik для всего текста */
    color: #111;
    background-color: #ffffff;
    line-height: 1.5;
    margin: 0;
    font-size: 70%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Color Palette */
:root {
--color-dark: #1a1a1a;
--color-light: #ffffff;
--color-accent-bg: #efe7db; /* Светлый фон */
--color-accent-fill: #D08A3B; /* Золотой акцент */
--color-text-dark: #111;
--color-text-p-dark: #333;
--color-text-small-dark: #555;
--color-shadow: rgba(0, 0, 0, 0.2);
}

/* Typography */
.title { font-size: 3.75rem; font-weight: 700; }
.h1 { font-size: 5.5rem; font-weight: 800; }
.h2 { font-size: 2.25rem; font-weight: 700; }
.p { font-size: 1.5rem; font-weight: 500; }
.small { font-size: 1.125rem; font-weight: 500; }

/* Utility Classes */
.text-dark { color: var(--color-text-dark); }
.text-light { color: var(--color-light); }
.accent-fill { color: var(--color-accent-fill); }
.bg-dark { background-color: var(--color-dark); }
.rounded-12 { border-radius: 12px; }
.shadow { box-shadow: 0 12px 15px var(--color-shadow); }

.btn {
    padding: 15px 30px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    /* Улучшенный плавный переход для всех свойств (фон, трансформация, тень) */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block; /* Для корректной работы transform и shadow */
}

/* Основная Кнопка (Золотая) */
.btn-primary {
    background-color: var(--color-accent-fill);
    color: var(--color-light);
    font-weight: 700;
}

/* Вторичная Кнопка (Прозрачная с рамкой) */
.btn-secondary {
    background-color: rgba(66, 138, 76, 1);
    color: var(--color-light);
    font-weight: 700;
}

/* --- Анимация Кнопок (Hover и Active) --- */

/* Hover: Кнопка немного "выплывает" и тень усиливается */
.btn-primary:hover{
    transform: translateY(-4px); /* Поднимаем кнопку на 4px */
    box-shadow: 0 10px 30px rgba(208, 138, 59, 0.5); /* Глубокая, цветная тень */
}

.btn-secondary:hover {
    transform: translateY(-4px); /* Поднимаем кнопку на 4px */
    box-shadow: 0 10px 30px rgba(68, 235, 115, 0.5);; /* Глубокая, цветная тень */
}

.btn-primary:hover {
    background-color: #e09848; /* Слегка светлее, чтобы показать интерактивность */
}

.btn-secondary:hover {
    background-color: rgba(80, 166, 91, 1);
}

/* Active: Эффект нажатия - кнопка "проваливается" */
.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0); /* Возвращаем на исходную позицию */
    box-shadow: 0 4px 10px var(--color-shadow); /* Уменьшаем тень */
    transition-duration: 0.1s; /* Ускоряем переход, чтобы имитировать быстрый клик */
}

/* Layout Structure */
.container {
    max-width: 1720px;
    padding: 0 100px;
}

section {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* === Header (Simple) === */
#hero-section {
    background-color: var(--color-dark);
    /* Предполагается, что здесь будет фоновое изображение сауны */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
}

#burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Шапка (Header) --- */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px; /* Увеличим отступ сверху */
    padding-bottom: 30px; /* Увеличим отступ снизу */
    color: var(--color-light);
    /* Сделаем шапку полупрозрачной или фиксированной, если нужно. */
    /* position: sticky; top: 0; z-index: 1000; */
}

/* Логотип */
#logo {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: opacity 0.3s;
}

#logo:hover {
    opacity: 0.9;
}

#logo-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent-fill);
}

#logo span.h2 {
    /* Стили для двухстрочного лого */
    line-height: 1.1;
    text-align: left;
    transition: color 0.3s;
}

#logo span.h2:hover {
    color: var(--color-accent-fill);
}

/* Меню */
#menu {
    display: flex; /* Используем flex для лучшего контроля интервалов */
    gap: 30px; /* Интервал между пунктами меню */
}

#menu a {
    position: relative;
    padding: 5px 0;
    font-weight: 500;
    transition: color 0.3s, transform 0.2s;
}

/* Эффект подчеркивания при наведении */
#menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-fill);
    transition: width 0.3s ease-in-out;
}

#menu a:hover {
    color: var(--color-accent-fill);
}

#menu a:hover::after {
    width: 100%;
}

/* Контакты и CTA в Шапке */
#header-cta {
    display: flex;
    align-items: center;
    gap: 110px;
}

#header-cta .p {
    font-weight: 700;
    transition: color 0.3s;
}


/* --- Контент Геройской Секции --- */
#hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding-bottom: 200px; /* Offset for height */
}

#hero-content .h1:first-child {
    margin-bottom: -30px;
}

#hero-ctas {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

/* ================================================= */
/* === Адаптированная Секция HERO-ROOMS (Вариант 1: Текстура Дерева) === */
/* ================================================= */
#hero-rooms {
    /* 1. Устанавливаем текстуру дерева */
    background-image:
        linear-gradient(rgba(239, 231, 219, 0.9), rgba(239, 231, 219, 0.9)), /* Светлый полупрозрачный слой */
        url('wood_texture_light.jpg'); /* Ссылка на файл с текстурой (замените на свой) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-accent-bg); /* Запасной цвет */

    /* 2. Общие стили */
    padding-top: 100px; /* Увеличим отступы, чтобы фон был заметен */
    padding-bottom: 100px;
    text-align: center;

    /* 3. Эффект тени (более выразительный) */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#hero-rooms .title.text-dark {
    color: var(--color-text-dark); /* Сделаем его темнее для контраста */
    margin-bottom: 15px !important;
}

#hero-rooms .h2.accent-fill {
    color: var(--color-accent-fill);
    /* Золотой акцент с выразительной белой тенью для контраста */
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8), 2px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px !important;
}
/* ================================================= */


/* === Rooms Grid === */
#rooms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 150px;
}

/* Room Card Base */
.room-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.room-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 50px;

}

.room-card:nth-child(even) {
    direction: rtl; /* Смена порядка колонок */
}
.room-card:nth-child(even) > * {
    direction: ltr; /* Возвращаем текст и элементы */
}

/* === Slider/Gallery Styles === */
.room-gallery {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3a3a3a;
    color: var(--color-light);
    font-size: 2rem;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Placeholder styles - REMOVE when using real images */
    background-color: #555;
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--color-light);
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.slider-nav button:hover {
    opacity: 1;
}
.prev { left: 10px; border-radius: 50% 0 0 50%; }
.next { right: 10px; border-radius: 0 50% 50% 0; }

/* === Room Info Styles === */
.room-info h2 {
    margin-bottom: 20px;
}
.room-info h3 {
    color: var(--color-accent-fill);
    margin-top: 10px;
    margin-bottom: 10px;
}
.room-info .p {
    margin-bottom: 15px;
}
.features-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.features-list li {
    font-size: 1.25rem;
    color: var(--color-text-p-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.features-list li::before {
    content: '✓';
    color: var(--color-accent-fill);
    font-weight: 700;
    font-size: 1.5rem;
}

.price-tag {
    background-color: var(--color-accent-fill);
    color: var(--color-light);
    padding: 10px 20px;
    border-radius: 15px;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.price-tag:hover {
    transform: translateY(-4px); /* Поднимаем кнопку на 4px */
    box-shadow: 0 10px 30px rgba(208, 138, 59, 0.5); /* Глубокая, цветная тень */
    background-color: #e09848; /* Слегка светлее, чтобы показать интерактивность */
}

.price-info {
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

    /* ------------------------------------------------------------------- */
    /* 10. Подвал (Footer) */
    /* ------------------------------------------------------------------- */

    #footer {
        background-color: #111;
        color: var(--color-light);
        padding: 50px 0;
    }

    #footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #footer-info {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #footer-contact {
        text-align: right;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }



/* Media Queries (Minimal) */
@media (max-width: 1400px) {
    .container { padding: 0 50px; }
    .room-card { grid-template-columns: 1fr; gap: 40px; }
    .room-card:nth-child(even) { direction: ltr; } /* Disable column reverse on mobile */
    .room-info h2 { font-size: 1.75rem; }
    .room-info .p { font-size: 1.125rem; }
    .features-list li { font-size: 1.125rem; }
    .room-gallery { height: 400px; }

}

@media (max-width: 1024px) {
      #header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    /* Burger */
    #burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        z-index: 1001;
    }

    #burger span {
        height: 2px;
        width: 100%;
        background-color: #fff;
        transition: all 0.3s ease;
    }

    /* Menu hidden */
    #menu {
        position: fixed;
        inset: 0;
        background-color: #000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 1000;
    }

    #menu a {
        font-size: 20px;
        color: #fff;
    }

    /* CTA hidden inside menu */
    #header-cta {
        display: none;
    }

    /* Active menu */
    #menu.active {
        transform: translateX(0);
    }

    /* Burger animation */
    #burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #burger.active span:nth-child(2) {
        opacity: 0;
    }

    #burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .logo {
        font-size: 22px;
    }

    .nav {
        width: 100%;
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .nav a {
        font-size: 14px;
    }
    }


@media (max-width: 768px) {
     .container { padding: 0 20px; }
     .title { font-size: 2.5rem; }
     .h2 { font-size: 1.5rem; }
     .p { font-size: 1rem; }
     .btn { padding: 12px 25px; }
           #header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    /* Burger */
    #burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        z-index: 1001;
    }

    #burger span {
        height: 2px;
        width: 100%;
        background-color: #fff;
        transition: all 0.3s ease;
    }

    /* Menu hidden */
    #menu {
        position: fixed;
        inset: 0;
        background-color: #000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 1000;
    }

    #menu a {
        font-size: 20px;
        color: #fff;
    }

    /* CTA hidden inside menu */
    #header-cta {
        display: none;
    }

    /* Active menu */
    #menu.active {
        transform: translateX(0);
    }

    /* Burger animation */
    #burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #burger.active span:nth-child(2) {
        opacity: 0;
    }

    #burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .logo {
        font-size: 22px;
    }

    .nav {
        width: 100%;
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .nav a {
        font-size: 14px;
    }

    .footer {
        padding: 30px 0;
    }

    .footer p {
        font-size: 13px;
    }
}




@media (min-width: 1025px) {
    #header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap; /* всегда в один ряд */
        padding: 30px 50px;
        gap: 20px;
    }

    /* Логотип */
    #logo {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-shrink: 0; /* логотип не ужимается */
        min-width: 0;
    }

    #logo-icon {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    #logo span.h2 {
        font-size: 2.25rem; /* твоё стандартное h2 */
        line-height: 1.2;
        white-space: nowrap;
        text-align: left;
    }

    /* Меню */
    #menu {
        display: flex;
        gap: 30px;
        flex-shrink: 1; /* меню может ужиматься */
        overflow: hidden; /* скрывает лишнее */
    }

    #menu a {
        font-size: 1rem;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        transition: font-size 0.3s, gap 0.3s;
    }

    /* CTA кнопка */
    #header-cta {
        flex-shrink: 0; /* кнопка всегда видна */
    }

    #header-cta .btn {
        padding: 15px 30px;
        font-size: 1rem;
        white-space: nowrap;
        min-height: auto;
    }

    /* Плавное уменьшение при сужении экрана */
    @media (max-width: 1400px) {
        #header {
            padding: 25px 40px;
            gap: 15px;
        }

        #logo span.h2 { font-size: 2rem; }
        #menu { gap: 20px; }
        #menu a { font-size: 0.95rem; }
        #header-cta .btn { padding: 14px 28px; font-size: 0.95rem; }
    }

    @media (max-width: 1300px) {
        #header { padding: 20px 30px; gap: 12px; }
        #logo-icon { width: 50px; height: 50px; }
        #logo span.h2 { font-size: 1.8rem; }
        #menu { gap: 15px; }
        #menu a { font-size: 0.9rem; }
        #header-cta .btn { padding: 12px 26px; font-size: 0.9rem; }
    }

    @media (max-width: 1150px) {
        #menu a { font-size: 0.85rem; }
        #header-cta .btn { padding: 10px 24px; }
    }

    @media (max-width: 1025px) {
        #menu a { font-size: 0.8rem; }
        #header-cta .btn { padding: 10px 22px; font-size: 0.85rem; }
    }
}

</style>
