/* Базовые настройки и цвета */
:root {
    --primary-bg: #FAF8F5; /* Теплый, дорогой бежевый */
    --text-main: #3E3A35; /* Мягкий графитовый/коричневый вместо черного */
    --accent: #B89768; /* Приглушенное золото */
    --accent-hover: #9E7D50;
    --card-bg: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--primary-bg);
    /* Легкий, минималистичный паттерн волн/линий на заднем фоне */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c13.866 0 25.362 11.2 28.5 25.267C42.638 29.2 54.134 18 68 18h32v-2H68c-12.758 0-23.518 9.387-26.442 21.654C38.632 25.387 27.872 16 15 16H0v2h11zM15 36c13.866 0 25.362 11.2 28.5 25.267C46.638 47.2 58.134 36 72 36h28v-2H72c-12.758 0-23.518 9.387-26.442 21.654C42.632 43.387 31.872 34 19 34H0v2h15zm0 20c13.866 0 25.362 11.2 28.5 25.267C46.638 67.2 58.134 56 72 56h28v-2H72c-12.758 0-23.518 9.387-26.442 21.654C42.632 63.387 31.872 54 19 54H0v2h15z' fill='%23B89768' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.navbar {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
    font-style: italic;
}

.nav-phone {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-phone:hover { color: var(--accent); }

/* Главный экран (Десктоп) */
.hero {
    display: flex;
    flex-direction: row; /* Выстраиваем в ряд */
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    padding-top: 100px;
    gap: 40px; /* Отступ между текстом и галереей */
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Прижимаем текст и кнопку влево */
    text-align: left;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
    color: #5A554F;
}

/* Кнопка */
.btn {
    display: inline-block;
    padding: 16px 36px;
    background-color: var(--accent);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover { 
    background-color: var(--accent-hover); 
    transform: translateY(-2px); /* Легкое поднятие при наведении */
}

/* ==========================================
   ГАЛЕРЕЯ / СЛАЙДЕР
   ========================================== */

.hero-slider-wrapper {
    flex: 1;
    width: 100%;
    max-width: 500px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 550px; /* Высота блока */
    border-radius: 12px;
    overflow: hidden;
    background: #EAE6DF; /* Фон-заглушка, чтобы видеть блок, пока грузится фото */
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    cursor: pointer;
    z-index: 1;
}

/* Только активный слайд становится видимым */
.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Картинки внутри слайдера */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Кнопки перелистывания */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, transform 0.2s;
}

.slider-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev-btn {
    left: 15px;
}

.slider-btn.next-btn {
    right: 15px;
}

/* Модальное окно (полноэкранный просмотр) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img, .modal-content .image-placeholder {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.modal-close:hover { color: var(--accent); }

.modal-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 45px;
    cursor: pointer;
    z-index: 1001;
    padding: 20px;
    transition: color 0.3s;
}

.modal-btn:hover { color: var(--accent); }
.modal-prev { left: 20px; }
.modal-next { right: 20px; }

/* Преимущества */
.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 80px 20px;
}

.adv-card {
    background: var(--card-bg);
    padding: 40px;
    border-top: 3px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.adv-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.adv-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Прайс-лист и Табы */
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
}

.price-section { padding: 80px 20px; }

.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid #D1CCC1;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Таблицы прайса */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: var(--card-bg);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Чтобы таблица не сжималась в кашу на мобилках */
}

.price-table th {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid var(--accent);
    color: var(--text-main);
}

.price-table td {
    padding: 15px;
    border-bottom: 1px solid #F0EEE9;
    font-size: 0.95rem;
    color: #5A554F;
}

.price-table tr:last-child td { border-bottom: none; }
.highlight-row td { background-color: var(--primary-bg); }

/* Выравнивание в двухуровневой шапке */
.price-table th.text-center, 
.price-table td:not(:first-child) {
    text-align: center; /* Центрируем часы и цены */
}

.price-table th.align-bottom {
    vertical-align: bottom; /* Слово "Услуга" прижимаем к низу */
    padding-bottom: 15px;
}

.price-table .main-header th {
    border-bottom: none; /* Убираем линию между уровнями шапки */
    padding-bottom: 5px;
}

.price-table .sub-header th {
    font-size: 1rem;
    color: #888;
    padding-top: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}


/* Отзывы */
.reviews {
    padding: 80px 20px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.review-card {
    background: var(--card-bg);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.review-text {
    font-style: italic;
    color: #5A554F;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.review-text.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

.author {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Подвал */
.footer {
    background-color: var(--text-main);
    color: #fff;
    padding: 80px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.footer-info { 
    flex: 1; 
}

.footer-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-info p {
    margin-bottom: 15px;
    color: #CCC7C0;
}

.footer-phone {
    display: inline-block;
    margin-top: 20px;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 5px;
}

/* Область под картинку */
.footer-image {
    flex: 1;
    height: 380px; /* Фиксированная высота блока под фото */
    border-radius: 12px; /* Скругление углов */
    overflow: hidden; /* Жестко обрезает всё, что вылезает за пределы */
}

/* Правила для самой картинки */
.footer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Аккуратно заполняет весь блок без искажений */
    object-position: center; /* Центрирует изображение двери */
    display: block;
}
/* Адаптивность для мобильных */
@media (max-width: 900px) {
    .hero { 
        flex-direction: column; /* Перестраиваем в колонку */
        padding-top: 120px; 
        padding-bottom: 40px; 
    }
    
    .hero-content { 
        align-items: center; /* Центрируем контент на телефоне */
        text-align: center; 
        margin-bottom: 40px; 
    }
    
    .hero p { 
        margin: 0 auto 40px; 
    }
    
    .hero-slider-wrapper { 
        max-width: 100%; 
    }
    
    .slider-container { 
        height: 350px; /* Делаем галерею компактнее на телефонах */
    }
    
    .advantages { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    
    .footer-content { flex-direction: column; text-align: center; }
    .footer-image { width: 100%; }
}
