/* ==========================================================================
   MAIN CONTENT STYLES (main-content.css)
   Версия: 1.0
   Все стили здесь должны быть изолированы для #page-content,
   чтобы не конфликтовать с темой Blocksy или другими плагинами.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS ПЕРЕМЕННЫЕ (для использования внутри #page-content)
   -------------------------------------------------------------------------- */
#page-content {
    /* 
     * ЦВЕТОВАЯ ПАЛИТРА (замените на ваши утвержденные цвета)
    */
    --content-primary-color: #386641;    /* Ваш основной акцентный (пример: лесной зеленый) */
    --content-secondary-color: #de9c62;  /* Ваш вторичный акцентный (пример: древесно-коричневый) */
    --content-text-dark: #333333;        /* Темно-серый для основного текста */
    --content-text-light: #FFFFFF;       /* Белый для текста на темных фонах */
    --content-text-muted: #6c757d;       /* Приглушенный серый */
    
    --content-bg-light: #FFFFFF;         /* Фон для большинства секций */
    --content-bg-subtle: #f7f9f7;       /* Очень светлый фон (альтернативный) */
    --content-bg-dark: #2C3E50;         /* Темный фон для контрастных секций */
    
    --content-border-color: #D8DCD8;     /* Цвет границ */
    
    --content-highlight-bg: rgba(56, 102, 65, 0.1);       /* Фон для <span class="highlight"> (на основе primary) */
    --content-accent-word-color: var(--content-primary-color); /* Цвет для <span class="accent-word"> */
    --content-highlight-parallel-bg: var(--content-primary-color); /* Фон для <span class="highlight-background"> */
    --content-highlight-parallel-text: var(--content-text-light); /* Текст для <span class="highlight-background"> */

    /* ШРИФТЫ (используйте шрифты темы Blocksy или определите свои) */
    --content-font-main: var(--theme-font-family, 'Roboto', sans-serif); 
    --content-font-headings: var(--theme-headings-font-family, 'Oswald', sans-serif); 
    
    /* РАЗМЕРЫ И ОТСТУПЫ */
    --content-container-max-width: 1200px; /* Макс. ширина для .container-content */
    --content-container-padding-x: 20px; 
    
    --content-section-padding-y-base: clamp(40px, 7vw, 30px); 
    --content-section-padding-y-lg: clamp(50px, 10vw, 50px);

    --content-border-radius-main: 8px;
    --content-border-radius-small: 4px;

    --content-box-shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.06);
    --content-box-shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.09);

    --content-transition-main: all 0.3s ease-in-out;
}

/* --------------------------------------------------------------------------
   2. БАЗОВЫЕ СТИЛИ И СБРОСЫ (внутри #page-content)
   -------------------------------------------------------------------------- */
#page-content *,
#page-content *::before,
#page-content *::after {
    box-sizing: border-box;
}

#page-content h1, #page-content h2, #page-content h3, #page-content h4, #page-content h5, #page-content h6,
#page-content p, #page-content ul, #page-content ol, #page-content dl, #page-content blockquote, #page-content figure {
    margin-top: 0;
    margin-bottom: 1rem; 
}
#page-content *:last-child {
    margin-bottom: 0; 
}

#page-content {
    font-family: var(--content-font-main); 
    color: var(--content-text-dark);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#page-content .container-content { 
    width: 100%;
    max-width: var(--content-container-max-width); 
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--content-container-padding-x);
    padding-right: var(--content-container-padding-x);
}
@media (max-width: 575px) {
    #page-content .container-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

#page-content img, #page-content svg, #page-content video, #page-content embed, #page-content iframe, #page-content object {
    max-width: 100%; height: auto; display: block; 
}
#page-content a {
    color: var(--content-primary-color); text-decoration: none; transition: var(--content-transition-main);
}
#page-content a:hover, #page-content a:focus {
    color: var(--content-secondary-color); text-decoration: none; /* Убрал underline, чтобы было консистентно */
}

/* Стили для плейсхолдеров изображений */
#page-content .image-placeholder { /* Этот класс добавляется к <img> с реальным src */
    /* Если изображение не загрузится, браузер может показать alt текст. 
       Если нужен фон-заглушка для пустых <img>, это сложнее без JS или обертки.
       Пока что этот класс можно использовать для общих стилей изображений, 
       если они не стилизуются через .content-image */
}
/* Если вы хотите стилизовать DIV как плейсхолдер, то: */
#page-content .div-image-placeholder-bg { /* Используйте этот класс для DIV-заглушки */
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 200px; /* Задайте aspect-ratio или высоту */
    background-color: #e9ecef; border: 1px dashed #ced4da;
    border-radius: var(--content-border-radius-main); color: #6c757d;
    text-align: center; font-size: 0.9rem;
}
#page-content .div-image-placeholder-bg::before { content: "Изображение загружается..."; }


/* --------------------------------------------------------------------------
   3. ТИПОГРАФИЯ (внутри #page-content)
   -------------------------------------------------------------------------- */
#page-content h1, #page-content .h1-style {
    font-family: var(--content-font-headings); font-size: clamp(2rem, 5.5vw, 3.5rem); 
    font-weight: 800; line-height: 1.2; color: var(--content-text-dark);
}
#page-content h2, #page-content .h2-style {
    font-family: var(--content-font-headings); font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 700; line-height: 1.25; color: var(--content-text-dark); margin-bottom: 1.5rem;
}
#page-content h3, #page-content .h3-style {
    font-family: var(--content-font-headings); font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 700; line-height: 1.3; color: var(--content-text-dark);
}
#page-content h4, #page-content .h4-style {
    font-family: var(--content-font-headings); font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 600; line-height: 1.35; color: var(--content-text-dark);
}
#page-content p {
    font-family: var(--content-font-main); font-size: clamp(0.95rem, 2.2vw, 1.05rem); 
    line-height: 1.7; color: var(--content-text-dark);
}
#page-content .lead-text {
    font-size: clamp(1.1rem, 2.8vw, 1.3rem); font-weight: 400; color: var(--content-text-muted);
}
#page-content ul, #page-content ol { padding-left: 1.5rem; }
#page-content li { margin-bottom: 0.6rem; font-size: clamp(0.9rem, 2.1vw, 1rem); }
#page-content ul.list-unstyled { list-style: none; padding-left: 0; }
#page-content ul.list-inline li { display: inline-block; margin-right: 10px; }
#page-content ul.list-inline li:last-child { margin-right: 0; }

/* Элементы выделения текста */
#page-content .highlight { background-color: var(--content-highlight-bg); padding: 0.1em 0.3em; border-radius: var(--content-border-radius-small); }
#page-content .accent-word { color: var(--content-accent-word-color); font-weight: bold; }
#page-content .highlight-background { background-color: var(--content-highlight-parallel-bg); color: var(--content-highlight-parallel-text); padding: 0.1em 0.4em; margin: 0 0.1em; border-radius: var(--content-border-radius-small); display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.8; }

/* --------------------------------------------------------------------------
   4. ОБЩИЕ КЛАССЫ ДЛЯ СЕКЦИЙ И УТИЛИТЫ (внутри #page-content)
   -------------------------------------------------------------------------- */
#page-content .section-padding-base { padding-top: var(--content-section-padding-y-base); padding-bottom: var(--content-section-padding-y-base); }
#page-content .section-padding-lg { padding-top: var(--content-section-padding-y-lg); padding-bottom: var(--content-section-padding-y-lg); }
#page-content .text-center { text-align: center !important; }
#page-content .text-left   { text-align: left !important; }
#page-content .text-right  { text-align: right !important; }

/* Анимации */
#page-content .animate-on-scroll { opacity: 0; transition-property: opacity, transform; transition-duration: 0.6s; transition-timing-function: ease-out; }
#page-content .animate-on-scroll.fade-in-up { transform: translateY(40px); }
#page-content .animate-on-scroll.fade-in-left { transform: translateX(-40px); }
#page-content .animate-on-scroll.fade-in-right { transform: translateX(40px); }
#page-content .animate-on-scroll.zoom-in { transform: scale(0.9); }
#page-content .animate-on-scroll.is-visible { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
#page-content .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* --------------------------------------------------------------------------
   5. ОБЩИЕ СТИЛИ ДЛЯ КНОПОК (внутри #page-content)
   -------------------------------------------------------------------------- */
#page-content .btn {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    font-family: var(--content-font-headings);
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 2px solid transparent;
    padding: 0.7rem 1.4rem; 
    font-size: 0.95rem;
    line-height: 1.5;
    border-radius: var(--content-border-radius-main);
    transition: var(--content-transition-main);
    text-decoration: none; 
    margin-top: 10px; /* Общий отступ сверху для кнопок */
    margin-bottom: 10px; /* Общий отступ снизу для кнопок */
}
#page-content .btn:hover {
    text-decoration: none; 
}
#page-content .btn + .btn { /* Отступ между кнопками, если они в ряд */
    margin-left: 10px;
}

#page-content .btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 1.05rem;
}

#page-content .btn-primary {
    color: var(--content-text-light);
    background-color: var(--content-primary-color);
    border-color: var(--content-primary-color);
}
#page-content .btn-primary:hover, 
#page-content .btn-primary:focus {
    background-color: color-mix(in srgb, var(--content-primary-color) 80%, black); 
    border-color: color-mix(in srgb, var(--content-primary-color) 75%, black);
    color: var(--content-text-light); 
    transform: translateY(-2px);
    box-shadow: var(--content-box-shadow-soft);
}

/* -------------------------------------------------------------------------- */
/*                     6. HERO SECTION STYLES                                 */
/* -------------------------------------------------------------------------- */
#page-content .hero-section {
    background-color: var(--content-bg-subtle); 
    overflow: hidden; 
}

#page-content .hero-grid {
    display: flex;
    flex-wrap: wrap; 
    align-items: center; 
    gap: 30px; 
}

#page-content .hero-content {
    flex: 1 1 520px; 
    min-width: 280px; 
    padding-right: 25px; 
}

#page-content .hero-title { /* Базовые стили H1 уже есть, здесь только уточнения */
    margin-bottom: 1.2rem; 
}
#page-content .hero-title .highlight-primary { color: var(--content-primary-color); }
#page-content .hero-title .highlight-secondary { color: var(--content-secondary-color); }

#page-content .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--content-text-muted);
    line-height: 1.7; 
    margin-bottom: 2.2rem;
    max-width: 580px; 
}

#page-content .hero-benefits { list-style: none; padding-left: 0; margin-bottom: 2.5rem; }
#page-content .hero-benefit-item {
    font-size: 0.95rem; color: var(--content-text-dark); margin-bottom: 0.9rem; 
    display: flex; align-items: flex-start; 
}
#page-content .hero-benefit-item .benefit-icon {
    color: var(--content-primary-color); margin-right: 12px;
    font-size: 1.3em; margin-top: 0.1em; flex-shrink: 0; 
}

#page-content .hero-cta-area { margin-top: 2rem; }
#page-content .hero-cta-area .btn { margin-right: 15px; margin-bottom: 10px; }
#page-content .hero-cta-area .btn .cta-icon { margin-right: 10px; font-size: 1.1em; }

#page-content .hero-image-wrapper {
    flex: 1 1 480px; min-width: 280px; 
    display: flex; justify-content: center; align-items: center;
}
#page-content .hero-image { 
    width: 100%; max-width: 600px; height: auto;
    border-radius: var(--content-border-radius-main); 
    box-shadow: var(--content-box-shadow-medium); 
    object-fit: cover;
}

/* Адаптивность для Hero Section */
@media (max-width: 991px) { 
    #page-content .hero-grid { flex-direction: column; }
    #page-content .hero-content { order: 2; padding-right: 0; text-align: center; margin-bottom: 30px; }
    #page-content .hero-image-wrapper { order: 1; width: 100%; }
    #page-content .hero-subtitle { margin-left: auto; margin-right: auto; }
    #page-content .hero-benefits { display: inline-block; text-align: left; max-width: 450px; }
    #page-content .hero-cta-area { display: flex; flex-direction: column; align-items: center; }
    #page-content .hero-cta-area .btn { width: 100%; max-width: 320px; margin-right: 0; }
}
@media (max-width: 575px) { 
    #page-content .hero-section.section-padding-lg { padding-top: clamp(30px, 6vw, 50px); padding-bottom: clamp(30px, 6vw, 50px); }
}
@media (max-width: 359px) { /* Для очень узких экранов, как на вашем скриншоте */
    #page-content .container-content { padding-left: 10px; padding-right: 10px; }
    #page-content .hero-content, #page-content .hero-image-wrapper { min-width: 0; }
    #page-content .hero-title { font-size: clamp(1.5rem, 6vw, 2rem); }
    #page-content .hero-subtitle { font-size: 0.85rem; }
    #page-content .hero-benefit-item { font-size: 0.8rem; }
    #page-content .hero-benefit-item .benefit-icon { font-size: 1.1em; margin-right: 8px; }
    #page-content .hero-cta-area .btn { font-size: 0.9rem; padding: 0.6rem 1rem; }
    #page-content .hero-cta-area .btn .cta-icon { font-size: 0.9em; margin-right: 6px; }
    #page-content h1, #page-content .h1-style { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    #page-content h2, #page-content .h2-style { font-size: clamp(1.4rem, 5vw, 2rem); margin-bottom: 1rem; }
    #page-content h3, #page-content .h3-style { font-size: clamp(1.2rem, 4vw, 1.7rem); }
    #page-content p, #page-content li { font-size: 0.875rem; }
}

/* -------------------------------------------------------------------------- */
/*                 7. WHY CHOOSE US SECTION STYLES                            */
/* -------------------------------------------------------------------------- */
#page-content .why-choose-us-section {
    background-color: var(--content-bg-light); /* Чередуем фон, если Hero был на --content-bg-subtle */
    /* padding-top/bottom уже заданы через .section-padding-base */
}

#page-content .why-choose-us-section .section-title {
    margin-bottom: 0.75rem; /* Уменьшаем отступ под заголовком */
}
#page-content .why-choose-us-section .section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1rem); /* Чуть меньше, чем в Hero */
    color: var(--content-text-muted);
    margin-bottom: 3rem; /* Отступ до карточек */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Стили для выделения в заголовке и подзаголовке этой секции (уже должны быть глобально) */
/* #page-content .why-choose-us-section .accent-word { ... } */
/* #page-content .why-choose-us-section .highlight-background { ... } */


#page-content .benefits-grid {
    display: grid;
    /* Для 2х колонок на средних, 4х на больших, 1 на мобильных: */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Минимальная ширина карточки 250px */
    gap: 30px; /* Промежуток между карточками */
    margin-bottom: 2.5rem; /* Отступ после сетки карточек */
}

#page-content .benefit-card {
    background-color: var(--content-bg-subtle); /* Или var(--content-text-light) если фон секции --content-bg-subtle */
    padding: 30px 25px;
    border-radius: var(--content-border-radius-main);
    text-align: center;
    box-shadow: var(--content-box-shadow-soft);
    transition: var(--content-transition-main);
    border: 1px solid transparent; 
    display: flex;
    flex-direction: column;
    height: 100%; /* Для одинаковой высоты карточек в ряду, если нужно */
}
#page-content .benefit-card:hover {
    transform: translateY(-6px) scale(1.02); /* Более заметный эффект */
    box-shadow: var(--content-box-shadow-medium);
    border-color: var(--content-primary-color);
}

#page-content .benefit-card__icon {
    font-size: 2.8rem; 
    color: var(--content-primary-color);
    margin-bottom: 1.2rem; /* Больше отступ под иконкой */
    line-height: 1;
    height: 45px; 
}
#page-content .benefit-card__icon i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Эффект пружины */
}
#page-content .benefit-card:hover .benefit-card__icon i {
    transform: rotateY(360deg) scale(1.1); /* Пример другой анимации иконки */
}

#page-content .benefit-card__title {
    font-family: var(--content-font-headings);
    font-size: 1.25rem; /* Размер заголовка карточки */
    color: var(--content-text-dark);
    font-weight: 700; /* Жирнее */
    margin-bottom: 0.75rem;
}

#page-content .benefit-card__text {
    font-family: var(--content-font-main);
    font-size: 0.9rem;
    color: var(--content-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1; 
}
/* Стили для выделений в тексте карточек (уже должны быть глобально) */
/* #page-content .benefit-card__text .highlight { ... } */
/* #page-content .benefit-card__text .highlight-background { ... } */
/* #page-content .benefit-card__text .accent-word { ... } */

#page-content .why-choose-us-cta-area {
    margin-top: 1.5rem; /* Отступ для кнопки */
}

/* Кнопка .btn-secondary (если еще не определена глобально для #page-content) */
#page-content .btn-secondary {
    color: var(--content-text-light);
    background-color: var(--content-secondary-color);
    border-color: var(--content-secondary-color);
}
#page-content .btn-secondary:hover,
#page-content .btn-secondary:focus {
    background-color: color-mix(in srgb, var(--content-secondary-color) 80%, black);
    border-color: color-mix(in srgb, var(--content-secondary-color) 75%, black);
    color: var(--content-text-light);
    transform: translateY(-2px);
    box-shadow: var(--content-box-shadow-soft);
}

/* Адаптивность для Why Choose Us Section */
@media (max-width: 767px) { /* Мобильные */
    #page-content .benefits-grid {
        /* Уже будет 1 или 2 колонки благодаря auto-fit, minmax(250px, 1fr) */
        /* Если нужно строго 1 колонку: grid-template-columns: 1fr; */
    }
    #page-content .why-choose-us-section .section-subtitle {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) { /* Очень маленькие экраны */
     #page-content .benefits-grid {
        grid-template-columns: 1fr; /* Строго одна колонка */
    }
    #page-content .benefit-card {
        padding: 20px;
    }
    #page-content .benefit-card__title {
        font-size: 1.1rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                 8. BANYA SHOWCASE SECTION STYLES                           */
/* -------------------------------------------------------------------------- */
#page-content .banya-showcase-section {
    /* background-color: var(--content-bg-light); /* Чередуйте фон, если нужно */
    /* padding-top/bottom уже заданы через .section-padding-lg */
}

#page-content .banya-showcase-section .section-title {
    margin-bottom: 0.75rem;
}
#page-content .banya-showcase-section .section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--content-text-muted);
    margin-bottom: 3.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

#page-content .showcase-list .showcase-entry {
    margin-bottom: 50px; 
    padding-bottom: 50px;
    border-bottom: 1px solid var(--content-border-color, #e0e0e0);
}
#page-content .showcase-list .showcase-entry:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

#page-content .showcase-entry__layout {
    display: flex;
    flex-direction: row; /* По умолчанию колонки в ряд */
    gap: 30px; 
    align-items: flex-start; 
}

#page-content .showcase-entry__gallery-column {
    flex: 0 0 45%; /* Фиксированная ширина для галереи на десктопе */
    max-width: 45%;
    display: flex;
    flex-direction: column;
}

#page-content .showcase-entry__info-column {
    flex: 1 1 auto; /* Занимает оставшееся место */
    padding-left: 20px; /* Небольшой отступ от галереи */
}

#page-content .showcase-entry__main-image {
    margin-bottom: 15px;
    border-radius: var(--content-border-radius-main);
    overflow: hidden;
    box-shadow: var(--content-box-shadow-soft);
    width: 100%; 
    aspect-ratio: 4 / 3; /* Поддерживаем соотношение сторон */
}
#page-content .showcase-entry__main-image img.content-image { /* Убедимся, что изображение заполняет контейнер */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
#page-content .showcase-entry__main-image a:hover img.content-image {
    transform: scale(1.03);
}

#page-content .showcase-entry__thumbnails {
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
}
#page-content .showcase-entry__thumbnails a {
    display: block;
    border-radius: var(--content-border-radius-small);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    /* Адаптивная ширина для миниатюр, чтобы помещалось примерно 4-5 в ряд */
    flex-basis: calc(25% - 6px); /* (100% / 4) - (gap * 3 / 4) */
    max-width: calc(25% - 6px); 
    aspect-ratio: 1 / 1; /* Квадратные миниатюры */
}
#page-content .showcase-entry__thumbnails img {
    width: 100%; height: 100%; object-fit: cover;
}
#page-content .showcase-entry__thumbnails a:hover {
    border-color: var(--content-primary-color); opacity: 0.8;
}

#page-content .showcase-entry__title { 
    font-family: var(--content-font-headings);
    font-size: clamp(1.4rem, 3vw, 1.9rem); 
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--content-text-dark);
}
#page-content .showcase-entry__meta {
    font-size: 0.8rem;
    color: var(--content-text-muted);
    margin-bottom: 1.2rem;
    padding: 10px 15px;
    border-radius: var(--content-border-radius-small);
    background-color: var(--content-bg-subtle);
}
#page-content .showcase-entry__meta span {
    display: block; margin-bottom: 5px;
}
#page-content .showcase-entry__meta span:last-child { margin-bottom: 0; }
#page-content .showcase-entry__meta i {
    margin-right: 8px; color: var(--content-primary-color); 
    width: 1.2em; text-align: center;
}

#page-content .showcase-entry__description p {
    font-size: 0.9rem; line-height: 1.65; margin-bottom: 0.8rem;
}
#page-content .showcase-entry__description p:last-child {
    margin-bottom: 1.2rem; /* Отступ перед спойлером или CTA */
}

/* Стили для спойлера .showcase-entry__details (используем общие стили для .spoiler-block) */
#page-content .showcase-entry__details.spoiler-block {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    background-color: transparent; /* Убираем фон, если он есть у общего спойлера */
    border: none; /* Убираем рамку, если она есть у общего спойлера */
    box-shadow: none;
}
#page-content .showcase-entry__details .spoiler-title {
    padding: 0.5rem 0; /* Меньше отступы для ссылки "подробнее" */
    font-weight: 600;
    color: var(--content-primary-color);
    border-bottom: 1px dashed var(--content-primary-color);
    display: inline-block; /* Чтобы подчеркивание было только под текстом */
}
#page-content .showcase-entry__details .spoiler-title::after { /* Кастомизация стрелки */
    font-size: 0.8em;
    margin-left: 5px;
}
#page-content .showcase-entry__details .spoiler-content {
    padding: 1rem 0 0 0; /* Отступ только сверху */
    border-top: none;
    background-color: transparent;
}
#page-content .showcase-entry__details .spoiler-content h4 {
    font-size: 1.05rem; font-weight: 600; color: var(--content-text-dark);
    margin-top: 1rem; margin-bottom: 0.5rem;
}
#page-content .showcase-entry__details .spoiler-content ul {
    list-style: disc; padding-left: 1.2rem; margin-bottom: 1rem; font-size: 0.9rem;
}
#page-content .showcase-entry__details .spoiler-content ul li { margin-bottom: 0.3rem; }


#page-content .showcase-entry__cta.btn { /* Кнопка CTA для объекта */
    margin-top: 1rem;
    /* Стили .btn и .btn-primary должны быть определены глобально */
}

/* Адаптивность для Showcase Section */
@media (max-width: 991px) { 
    #page-content .showcase-entry__layout {
        flex-direction: column; 
    }
    #page-content .showcase-entry__gallery-column,
    #page-content .showcase-entry__info-column {
        max-width: 100%;
        width: 100%;
        padding-left: 0; /* Убираем отступ для инфо-колонки */
    }
    #page-content .showcase-entry__gallery-column {
        margin-bottom: 25px;
    }
    #page-content .showcase-entry__title,
    #page-content .showcase-entry__meta {
        text-align: left; /* Возвращаем выравнивание по левому краю на мобильных для этого блока */
    }
     #page-content .showcase-entry__meta {
        background-color: var(--content-bg-subtle); /* Возвращаем фон, если убирали для десктопа */
        border-left: 3px solid var(--content-primary-color); /* Возвращаем рамку */
        padding: 10px 15px;
     }
}

@media (max-width: 575px) {
    #page-content .showcase-entry__thumbnails a {
        /* 3 миниатюры в ряд */
        flex-basis: calc(33.333% - 6px); 
        max-width: calc(33.333% - 6px);
    }
}

/* -------------------------------------------------------------------------- */
/*                 9. KUPELI I CHANY SECTION STYLES                           */
/* -------------------------------------------------------------------------- */
#page-content .kupeli-chany-section {
    background-color: var(--content-bg-subtle); /* Чередуем фон */
    /* padding уже задан через .section-padding-base */
}

#page-content .kupeli-chany-section .section-title .accent-word {
    /* Используем основной или вторичный цвет для акцента */
    color: var(--content-primary-color); 
}
#page-content .kupeli-chany-section .section-title .highlight-background {
    background-color: var(--content-secondary-color); /* Или другой цвет выделения */
    color: var(--content-text-light);
}
#page-content .kupeli-chany-section .section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--content-text-muted);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}
/* Выделения в подзаголовке, если нужны, используйте глобальные .highlight-primary/secondary */
#page-content .kupeli-chany-section .section-subtitle .highlight-primary {
    color: var(--content-primary-color);
    font-weight: 600;
}
#page-content .kupeli-chany-section .section-subtitle .highlight-secondary {
    color: var(--content-secondary-color);
    font-weight: 600;
}


#page-content .features-grid-kupeli {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Адаптивная сетка */
    gap: 30px;
    margin-bottom: 2.5rem;
}

#page-content .feature-card-accent {
    background-color: var(--content-bg-light);
    padding: 30px 25px;
    border-radius: var(--content-border-radius-main);
    text-align: center;
    box-shadow: var(--content-box-shadow-soft);
    transition: var(--content-transition-main);
    border: 1px solid var(--content-border-color); 
    display: flex;
    flex-direction: column;
}
#page-content .feature-card-accent:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--content-box-shadow-medium);
    border-color: var(--content-primary-color);
}

#page-content .feature-card-accent__icon {
    font-size: 2.6rem; 
    color: var(--content-primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}
#page-content .feature-card-accent__icon i {
    transition: transform 0.3s ease;
}
#page-content .feature-card-accent:hover .feature-card-accent__icon i {
    transform: scale(1.2);
}

#page-content .feature-card-accent__title {
    font-family: var(--content-font-headings);
    font-size: 1.3rem;
    color: var(--content-text-dark);
    font-weight: 700;
    margin-bottom: 0.7rem;
}

#page-content .feature-card-accent__text {
    font-family: var(--content-font-main);
    font-size: 0.9rem;
    color: var(--content-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem; /* Отступ перед тегом */
    flex-grow: 1;
}
#page-content .feature-card-accent__text .accent-word {
    color: var(--content-secondary-color); /* Другой акцент в тексте карточки */
    font-weight: 600;
}
#page-content .feature-card-accent__text .highlight-secondary {
    /* Можно определить специфичный стиль для highlight-secondary, если нужно */
    color: var(--content-secondary-color);
    font-weight: normal;
}

#page-content .feature-card-accent__tag {
    display: inline-block;
    background-color: var(--content-primary-color);
    color: var(--content-text-light);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px; /* Овальная метка */
    margin-top: auto; /* Прижимает к низу карточки */
    align-self: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#page-content .kupeli-chany-cta-area {
    margin-top: 2rem; /* Отступ для кнопки */
}
#page-content .kupeli-chany-cta-area .btn .cta-icon {
    margin-right: 8px;
}

/* Адаптивность для Kupeli i Chany Section */
@media (max-width: 767px) {
    #page-content .features-grid-kupeli {
        /* Уже будет 1 или 2 колонки благодаря auto-fit, minmax(280px, 1fr) */
    }
}
@media (max-width: 480px) {
     #page-content .features-grid-kupeli {
        grid-template-columns: 1fr; /* Строго одна колонка */
    }
    #page-content .feature-card-accent {
        padding: 20px;
    }
    #page-content .feature-card-accent__title {
        font-size: 1.15rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                 10. CONSTRUCTION STAGES SECTION STYLES (TIMELINE)          */
/* -------------------------------------------------------------------------- */
#page-content .construction-stages-section {
    background-color: var(--content-bg-light); /* или --content-bg-subtle для чередования */
    /* padding уже задан через .section-padding-lg */
}

#page-content .construction-stages-header .section-title {
    margin-bottom: 0.75rem;
}
#page-content .construction-stages-header .section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--content-text-muted);
    margin-bottom: 3.5rem; 
    max-width: 850px; /* Можно чуть шире для этого описания */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}
/* Стили для выделения в подзаголовке этой секции (уже должны быть глобально) */
/* #page-content .construction-stages-header .highlight-background { ... } */
/* #page-content .construction-stages-header .highlight { ... } */


#page-content .construction-stages-timeline {
    position: relative;
    max-width: 800px; /* Ограничиваем ширину самого таймлайна */
    margin: 0 auto; /* Центрируем таймлайн */
}

#page-content .construction-stages-timeline::before {
    content: '';
    position: absolute;
    left: 29px; /* Положение линии относительно иконок с номерами */
    top: 10px;  /* Начинаем линию чуть ниже первой иконки */
    bottom: 10px; /* Заканчиваем чуть выше последней */
    width: 3px; /* Толщина линии */
    background-color: var(--content-primary-color);
    border-radius: 2px;
    opacity: 0.25; /* Делаем линию менее навязчивой */
}

#page-content .timeline-item {
    position: relative;
    margin-bottom: 35px; 
    padding-left: 85px; /* Отступ для контента от линии/иконки (чуть больше) */
}
#page-content .timeline-item:last-child {
    margin-bottom: 0;
}

#page-content .timeline-item-icon {
    position: absolute;
    left: 0;
    top: 0; /* Выравнивание иконки по верху текстового блока */
    width: 60px;
    height: 60px;
    background-color: var(--content-primary-color);
    color: var(--content-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Чтобы иконка была над линией */
    box-shadow: 0 0 0 5px var(--content-bg-light), var(--content-box-shadow-soft); /* Добавим эффект "утопленности" в фон секции */
}
#page-content .timeline-item-icon .timeline-step-number {
    font-family: var(--content-font-headings);
    font-size: 1.6rem; 
    font-weight: 700;
    line-height: 1;
}

#page-content .timeline-item-content-wrapper { /* Новая обертка */
    background-color: var(--content-bg-subtle); /* Фон для карточки этапа */
    padding: 20px 25px;
    border-radius: var(--content-border-radius-main);
    box-shadow: var(--content-box-shadow-soft);
    position: relative; /* Для возможных декоративных элементов или теней */
    transition: var(--content-transition-main);
}
#page-content .timeline-item:hover .timeline-item-content-wrapper {
    transform: translateX(5px);
    box-shadow: var(--content-box-shadow-medium);
}


#page-content .timeline-item-image {
    border-radius: var(--content-border-radius-small);
    overflow: hidden;
    margin-bottom: 15px; /* Отступ под картинкой перед текстом на мобильных */
}
#page-content .timeline-item-image img.content-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10; /* Для единообразия картинок этапов */
    object-fit: cover;
}

#page-content .timeline-item-text {
    /* Стили для текстового блока */
}
#page-content .timeline-item-title {
    font-family: var(--content-font-headings);
    font-size: 1.25rem; /* Немного уменьшим */
    color: var(--content-primary-color); /* Акцентный цвет для заголовка этапа */
    margin-bottom: 0.6rem;
    font-weight: 700;
}
#page-content .timeline-item-text p {
    font-family: var(--content-font-main);
    font-size: 0.9rem;
    color: var(--content-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

#page-content .construction-stages-cta-area {
    margin-top: 3rem;
}

/* Адаптивность для таймлайна */
@media (min-width: 768px) { 
    #page-content .timeline-item-content-wrapper {
        display: grid;
        grid-template-columns: 200px 1fr; /* Фиксированная ширина для картинки, остальное - текст */
        gap: 25px;
        align-items: center; 
    }
    #page-content .timeline-item-image {
        margin-bottom: 0; /* Убираем отступ, т.к. теперь в гриде */
    }
    /* Чередование: нечетные элементы - картинка слева, четные - картинка справа */
    #page-content .timeline-item:nth-child(even) .timeline-item-content-wrapper {
        grid-template-columns: 1fr 200px; /* Текст слева, картинка справа */
    }
    #page-content .timeline-item:nth-child(even) .timeline-item-image {
        grid-column: 2 / 3; /* Картинка во второй колонке */
        grid-row: 1 / 2;    /* Картинка в первой строке (если текст длиннее) */
    }
    #page-content .timeline-item:nth-child(even) .timeline-item-text {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
}

@media (max-width: 575px) { /* Маленькие мобильные */
    #page-content .construction-stages-timeline::before {
        left: 24px; 
    }
    #page-content .timeline-item {
        padding-left: 65px; /* Уменьшаем отступ */
    }
    #page-content .timeline-item-icon {
        width: 50px; height: 50px;
        font-size: 1.3rem; /* Размер цифры */
        box-shadow: 0 0 0 4px var(--content-bg-light), var(--content-box-shadow-soft);
    }
     #page-content .timeline-item-content-wrapper {
        padding: 15px;
    }
    #page-content .timeline-item-title {
        font-size: 1.1rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                 11. PRODUCTION GALLERY SECTION STYLES                      */
/* -------------------------------------------------------------------------- */
#page-content .production-gallery-section {
    background-color: var(--content-bg-light); /* Чередуем фон */
    /* padding уже задан через .section-padding-base */
}

#page-content .production-gallery-section .section-title .highlight-background {
    /* Стили для .highlight-background уже должны быть определены глобально */
}
#page-content .production-gallery-section .section-title .accent-word {
    /* Стили для .accent-word уже должны быть определены глобально */
}
#page-content .production-gallery-section .section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--content-text-muted);
    margin-bottom: 3rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}
#page-content .production-gallery-section .section-subtitle .highlight-primary {
    color: var(--content-primary-color);
    font-weight: 600;
}

#page-content .production-grid {
    display: grid;
    /* Адаптивная сетка: 2 колонки на маленьких, 3 на средних, 4 на больших */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* Промежуток между изображениями */
}

#page-content .production-grid-item a {
    display: block;
    border-radius: var(--content-border-radius-main);
    overflow: hidden;
    box-shadow: var(--content-box-shadow-soft);
    aspect-ratio: 4 / 3; /* Соотношение сторон для изображений */
    transition: var(--content-transition-main);
    position: relative; 
}
#page-content .production-grid-item a::before { /* Оверлей при наведении */
    content: '\f00e'; /* FontAwesome search-plus icon */
    font-family: 'Font Awesome 5 Free'; /* Убедитесь, что FA подключен и эта версия */
    /* Для FA6 Solid: font-family: 'Font Awesome 6 Free'; font-weight: 900; */
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--content-text-light);
    font-size: 2rem;
    opacity: 0;
    transition: var(--content-transition-main);
    z-index: 1;
    border-radius: var(--content-border-radius-main); /* Чтобы оверлей тоже был скруглен */
}
#page-content .production-grid-item a:hover::before {
    opacity: 1;
}
#page-content .production-grid-item a:hover img.content-image {
    transform: scale(1.05);
}

#page-content .production-grid-item img.content-image {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: transform 0.35s ease-out; /* Плавный зум */
}

#page-content .production-gallery-cta-area {
    margin-top: 3rem;
}
#page-content .production-gallery-cta-area p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--content-text-dark);
}
#page-content .production-gallery-cta-area .btn .cta-icon {
    margin-right: 8px;
}
/* Стили для .btn-secondary и .btn-lg уже должны быть определены */

/* Адаптивность для Production Gallery */
@media (min-width: 768px) and (max-width: 991px) {
    #page-content .production-grid {
        /* На планшетах можно оставить 3 колонки или сделать 2, если minmax(250px) не даст 3 */
        /* grid-template-columns: repeat(3, 1fr); */
    }
}
@media (max-width: 575px) {
    #page-content .production-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Уменьшим minmax для мобильных */
        gap: 15px;
    }
}

/* -------------------------------------------------------------------------- */
/*                 12. CUSTOMER REVIEWS SECTION STYLES (ALT)                */
/* -------------------------------------------------------------------------- */
#page-content .customer-reviews-section {
    background-color: var(--content-bg-subtle); 
    /* padding уже задан через .section-padding-lg */
}

#page-content .customer-reviews-section .section-title .accent-word {
    color: var(--content-secondary-color); 
}
#page-content .customer-reviews-section .section-title .highlight-background {
    background-color: var(--content-secondary-color);
    color: var(--content-text-light);
}
#page-content .customer-reviews-section .section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--content-text-muted);
    margin-bottom: 3.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}
#page-content .customer-reviews-section .section-subtitle .highlight-primary,
#page-content .customer-reviews-section .section-subtitle .highlight-secondary {
    font-weight: 600;
}
#page-content .customer-reviews-section .section-subtitle .highlight-primary { color: var(--content-primary-color); }
#page-content .customer-reviews-section .section-subtitle .highlight-secondary { color: var(--content-secondary-color); }


#page-content .reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Адаптивная сетка для отзывов */
    gap: 30px;
    margin-bottom: 3rem;
}

#page-content .review-card {
    background-color: var(--content-bg-light);
    border-radius: var(--content-border-radius-main);
    padding: 30px 25px 25px;
    box-shadow: var(--content-box-shadow-medium); /* Чуть более выраженная тень */
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--content-transition-main);
}
#page-content .review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

#page-content .review-card__quote-icon {
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 2.8rem; /* Размер иконки кавычек */
    color: var(--content-primary-color);
    opacity: 0.1; /* Полупрозрачная */
    z-index: 0;
}

#page-content .review-card__text {
    font-family: var(--content-font-main);
    font-size: 0.95rem; 
    color: var(--content-text-dark); 
    line-height: 1.75; /* Чуть больше для читаемости отзыва */
    margin-bottom: 20px;
    padding-top: 10px; /* Небольшой отступ, чтобы текст не налезал на иконку */
    font-style: normal; 
    flex-grow: 1;
    position: relative; 
    z-index: 1;
}
#page-content .review-card__text strong { 
    color: var(--content-primary-color);
    font-weight: 600;
}
#page-content .review-card__text .highlight-primary,
#page-content .review-card__text .highlight-secondary,
#page-content .review-card__text .accent-word {
    /* Стили для выделений внутри текста отзыва */
    font-weight: 600;
}
#page-content .review-card__text .highlight-primary { color: var(--content-primary-color); }
#page-content .review-card__text .highlight-secondary { color: var(--content-secondary-color); }
#page-content .review-card__text .accent-word { color: var(--content-accent-word-color); }


#page-content .review-card__author-info {
    display: flex;
    align-items: center;
    margin-top: auto; 
    padding-top: 20px; /* Отступ перед блоком автора */
    border-top: 1px solid var(--content-border-color);
}

#page-content .review-card__author-photo {
    width: 50px; 
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    background-color: var(--content-bg-subtle); /* Фон для плейсхолдера */
}
#page-content .review-card__author-photo img.content-image { /* Если будет реальное фото */
    width: 100%; height: 100%; object-fit: cover;
}
#page-content .avatar-placeholder { /* Стили для div-плейсхолдера аватара */
    width: 100%; height: 100%; display: flex;
    align-items: center; justify-content: center;
    background-color: var(--content-primary-color);
    color: var(--content-text-light);
}
#page-content .avatar-placeholder i { font-size: 1.8rem; }

#page-content .review-card__author-details {
    flex-grow: 1;
}
#page-content .review-card__author-name {
    font-family: var(--content-font-headings);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--content-text-dark);
    margin-bottom: 2px; /* Меньше отступ */
}
#page-content .review-card__author-location {
    font-size: 0.8rem;
    color: var(--content-text-muted);
    margin-bottom: 0;
}

#page-content .review-card__stars {
    color: var(--content-primary-color); /* Цвет звезд из переменной */
    font-size: 0.9rem;
    margin-left: 15px; 
    white-space: nowrap;
    align-self: center; /* Выравниваем звезды по центру, если информация об авторе короткая */
}
#page-content .review-card__stars .far.fa-star,
#page-content .review-card__stars .fa-regular.fa-star {
    color: var(--content-border-color); /* Пустые звезды цветом границы */
}


#page-content .reviews-cta-area {
    margin-top: 3rem;
}
#page-content .reviews-cta-area p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem; /* Больше отступ */
    color: var(--content-text-dark);
}
/* Стили для кнопки .btn-primary и .btn-lg уже должны быть */

