/* ==========================================================================
   ФИНАЛЬНЫЙ CSS - ВЕРСИЯ 7.0 (ИСПРАВЛЕННЫЕ СТРЕЛКИ И ТОЧКИ)
   ========================================================================== */

/* ========================================================================== */
/* БЛОК 1: ОБЩИЙ МАКЕТ СТРАНИЦЫ */
/* ========================================================================== */
.alignfull { 
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

* { 
    box-sizing: border-box; 
}

.content-section { 
    padding-top: 60px;
    padding-bottom: 60px;
}

.content-section + .content-section {
    margin-top: 0 !important;
}

.content-wrapper { 
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 768px) { 
    .content-wrapper { 
        padding-left: 20px;
        padding-right: 20px;
    } 
}

/* ========================================================================== */
/* БЛОК 2: СТИЛИ ТЕКСТА */
/* ========================================================================== */
.content-wrapper h1, 
.content-wrapper h2, 
.content-wrapper .section-intro {
    font-family: -apple-system, BlinkMacFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.content-wrapper h1 { 
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.content-wrapper h2 { 
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
}

.content-wrapper .section-intro { 
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 680px;
}

@media (max-width: 768px) { 
    .content-wrapper h1 { font-size: 40px; } 
    .content-wrapper h2 { font-size: 32px; } 
}

/* ========================================================================== */
/* БЛОК 3: ЦВЕТОВЫЕ СХЕМЫ */
/* ========================================================================== */
.content-section-light { 
    background-color: #ffffff;
}

.content-section-light h1,
.content-section-light h2,
.content-section-light h3 { 
    color: #000000;
}

.content-section-light p { 
    color: #1d1d1f;
}

.content-section-dark { 
    background-color: #000000;
}

.content-section-dark h1,
.content-section-dark h2,
.content-section-dark h3 { 
    color: #ffffff;
}

.content-section-dark p { 
    color: #a1a1a6;
}

.content-section-dark a {
    color: #2997ff;
}

.content-section-green { 
    background-color: #e8f5e9;
}

.content-section-green h1,
.content-section-green h2,
.content-section-green h3 { 
    color: #1b5e20;
}

.content-section-green p { 
    color: #2e7d32;
}

.content-section-green a {
    color: #1976d2;
}

/* ========================================================================== */
/* БЛОК 4: КОЛОНКИ */
/* ========================================================================== */
.columns-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
}

.column {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.column h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    height: 90px;
    margin: 0 0 10px 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    overflow: visible;
}

.column .image-container-resizable {
    margin: 0 0 20px 0;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.column .image-container-resizable img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.column p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.column ul {
    list-style-position: outside;
    padding-left: 20px;
    margin-bottom: 15px;
}

.column li {
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .columns-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .column {
        max-width: 100%;
    }
    
    .column h3 {
        height: auto;
    }
    
    .column .image-container-resizable {
        height: auto;
    }
    
    .column .image-container-resizable img {
        height: auto;
        object-fit: contain;
    }
}

/* ==========================================================================
   БЛОК 5: ЛАЙТБОКС
   ========================================================================== */
.image-container-resizable {
    max-width: 600px;
    margin: 40px auto -20px auto;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-container-resizable:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.image-container-resizable img {
    width: 100%;
    height: auto;
    display: block;
}

.image-container-column {
    max-width: 100%;
    margin: 20px 0;
}

.lightbox-overlay {
    position: fixed;
    top: var(--header-height, 55px);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-height, 55px));
    background: rgba(0, 0, 0, 0.92);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
}

.lightbox-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px 40px 40px;
    box-sizing: border-box;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-overlay.is-visible .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: fixed;
    top: calc(var(--header-height, 55px) + 20px);
    right: 30px;
    z-index: 1999;
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, background 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.lightbox-close:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

body.lightbox-is-open {
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}

.lightbox-overlay,
.lightbox-wrapper {
    overflow: hidden;
}

.le-header {
    z-index: 2000 !important;
}

@media (max-width: 782px) {
    .image-container-resizable {
        max-width: 100%;
    }
    
    .lightbox-wrapper {
        padding: 40px 20px 30px 20px;
    }
    
    .lightbox-close {
        width: 44px;
        height: 44px;
        font-size: 28px;
        top: calc(var(--header-height, 55px) + 15px);
        right: 20px;
    }
    
    .lightbox-content-wrapper {
        max-width: 95%;
        max-height: 95%;
    }
}

@media (min-width: 783px) and (max-width: 1024px) {
    .image-container-resizable {
        max-width: 500px;
    }
    
    .lightbox-wrapper {
        padding: 50px 30px 40px 30px;
    }
    
    .lightbox-close {
        top: calc(var(--header-height, 55px) + 20px);
        right: 25px;
    }
}

@media (min-width: 1025px) {
    .lightbox-wrapper {
        padding: 60px 60px 60px 60px;
    }
    
    .lightbox-content-wrapper {
        max-width: 85%;
        max-height: 85%;
    }
    
    .lightbox-content {
        max-height: calc(100vh - var(--header-height, 55px) - 120px);
    }
}

/* ==========================================================================
   БЛОК 6: КАРУСЕЛЬ - ВЕРСИЯ С ПОЛНЫМ ТЕКСТОМ И "PEEKING" ЭФФЕКТОМ
   ========================================================================== */

/* Контейнер на всю ширину */
.carousel-container {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 60px;
    margin-bottom: 60px;
}

.carousel-wrapper {
    overflow: hidden;
    background: #ffffff;
    /* Центрируем контент на больших экранах */
    max-width: 1200px; 
    margin: 0 auto;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Более плавная анимация */
    will-change: transform;
}

/* СТИЛИ СЛАЙДА (ДЕСКТОП) */
.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center; /* Центрирование по вертикали */
    justify-content: center;
    gap: 60px;
    padding: 40px 60px;
    box-sizing: border-box;
}

/* Текстовая часть */
.slide-content {
    flex: 1;
    max-width: 550px; /* Даем тексту больше места */
}

.slide-content h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000000;
    line-height: 1.3;
}

.slide-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.slide-content p:last-child {
    margin-bottom: 0;
}

/* Картинка */
.slide-image {
    flex: 0 0 400px;
    height: 450px; /* Высокая картинка для десктопа */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Кнопки навигации (Десктоп) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff; /* Белый фон */
    border: 1px solid rgba(0,0,0,0.1);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

/* === ИСПРАВЛЕНИЕ: СДВИГАЕМ СТРЕЛКИ ОТ КРАЯ === */
.carousel-btn-prev { left: 50px; } /* Было 20px */
.carousel-btn-next { right: 50px; } /* Было 20px */

/* Индикаторы */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding-bottom: 20px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #000;
    transform: scale(1.3);
}

/* ==========================================================================
   ПЛАНШЕТЫ (до 1100px) - РЕШАЕМ ПРОБЛЕМУ СПЛЮЩИВАНИЯ
   ========================================================================== */
@media (max-width: 1100px) {
    .carousel-slide {
        /* Перестраиваем в колонку: Текст сверху, Картинка снизу */
        flex-direction: column; 
        text-align: left;
        padding: 40px 40px;
        gap: 30px;
    }

    .slide-content {
        max-width: 100%; /* Текст на всю ширину */
    }

    .slide-image {
        width: 100%;
        max-width: 600px; /* Ограничиваем ширину картинки */
        height: 350px; /* Делаем картинку ниже */
        margin: 0 auto;
        flex: none; /* Отменяем flex-shrink */
    }
    
    /* Сдвигаем кнопки к краям */
    .carousel-btn-prev { left: 10px; }
    .carousel-btn-next { right: 10px; }
}

/* ==========================================================================
   МОБИЛЬНЫЕ (до 768px) - ЭФФЕКТ PEEKING CARDS
   ========================================================================== */
@media (max-width: 768px) {
    .carousel-container {
        margin: 40px 0;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .carousel-wrapper {
        overflow: visible; /* Разрешаем соседним слайдам быть видимыми */
    }

    .carousel-track {
        display: flex;
        width: 100%;
        overflow-x: auto; /* Включаем скролл пальцем */
        scroll-snap-type: x mandatory; /* Жесткая привязка */
        -webkit-overflow-scrolling: touch;
        gap: 15px; /* Расстояние между карточками */
        padding: 0 20px; /* Отступы слева и справа */
        scrollbar-width: none;
        transform: none !important; /* ВАЖНО: Отключаем JS трансформацию на мобильном */
    }
    
    .carousel-track::-webkit-scrollbar { display: none; }

    .carousel-slide {
        /* ВАЖНО: 85% ширины показывает край следующего слайда */
        min-width: 85%; 
        max-width: 85%;
        scroll-snap-align: center; /* Центрируем слайд при скролле */
        
        flex-direction: column;
        padding: 0; /* Убираем внутренние отступы контейнера */
        background: #fff;
        border: 1px solid #eee;
        border-radius: 16px;
        overflow: hidden; /* Чтобы картинка не вылезала */
    }

    .slide-content {
        padding: 20px 20px 30px 20px; /* Отступы внутри карточки */
    }

    .slide-content h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .slide-content p {
        font-size: 15px;
    }

    .slide-image {
        order: -1; /* Ставим картинку НАВЕРХ карточки */
        width: 100%;
        max-width: 100%;
        height: 220px;
        border-radius: 0; /* Без скругления снизу */
        box-shadow: none;
    }

    /* Скрываем кнопки навигации */
    .carousel-btn { display: none !important; }
    
    .carousel-indicators {
        margin-top: 15px;
    }
}
/* ==========================================================================
   БЛОК 4: APPLE-STYLE АККОРДЕОН (Светло-синий)
   ========================================================================== */

/* Фон секции */
.apple-accordion-section {
    background-color: #f0f7ff; 
}

/* Контейнер флекс: Слева текст, Справа картинки */
.apple-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-top: 40px;
}

/* --- ЛЕВАЯ КОЛОНКА (ТЕКСТ) --- */
.apple-text-column {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
}

.apple-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.apple-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Заголовок (Кнопка) */
.apple-header {
    padding: 24px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.apple-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #86868b;
    transition: color 0.3s ease;
    text-align: left;
}

.apple-item.active .apple-header h3,
.apple-header:hover h3 {
    color: #000000;
}

/* Стрелочка */
.apple-arrow {
    width: 14px;
    height: 14px;
    border-right: 2px solid #86868b;
    border-bottom: 2px solid #86868b;
    transform: rotate(45deg);
    transition: transform 0.3s ease, border-color 0.3s ease;
    margin-left: 20px;
    flex-shrink: 0;
}

.apple-item.active .apple-arrow {
    transform: rotate(225deg);
    border-color: #000;
}

/* Выпадающий текст */
.apple-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
    opacity: 0;
}

.apple-item.active .apple-content {
    max-height: 1000px; /* Увеличили высоту с запасом для картинки */
    opacity: 1;
}

.apple-content-inner {
    padding-bottom: 30px;
}

.apple-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #1d1d1f;
    margin-bottom: 15px;
    text-align: left;
}

/* --- МОБИЛЬНАЯ КАРТИНКА (ТЕПЕРЬ СВЕРХУ) --- */
.apple-mobile-image {
    display: none; /* Скрыта на десктопе по умолчанию */
    width: 100%;
    margin-top: 0;
    margin-bottom: 25px; /* Отступ СНИЗУ до текста */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.apple-mobile-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- ПРАВАЯ КОЛОНКА (КАРТИНКИ ДЕСКТОП) --- */
.apple-image-column {
    flex: 1;
    max-width: 45%;
    position: relative;
    aspect-ratio: 1 / 1; 
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    position: sticky; 
    top: 100px;
}

.apple-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(1.05);
    z-index: 1;
}

.apple-image-wrapper.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.apple-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ (до 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .apple-container {
        flex-direction: column;
        gap: 0;
    }

    .apple-text-column {
        max-width: 100%;
    }
    
    /* Скрываем десктопную правую колонку */
    .apple-image-column {
        display: none; 
    }
    
    /* ПОКАЗЫВАЕМ мобильные картинки */
    .apple-mobile-image {
        display: block;
    }
    
    .apple-header h3 {
        font-size: 20px;
    }
}
/* ==========================================================================
   БЛОК 5: ПОШАГОВЫЙ АККОРДЕОН (Фиолетовый)
   ========================================================================== */

/* Светло-фиолетовый фон секции */
.content-section-purple {
    background-color: #F8F5FA; /* Очень нежный лавандовый оттенок */
}

.content-section-purple h2 {
    color: #000;
    margin-bottom: 50px;
}

/* Контейнер для шагов (ограничим ширину для красоты) */
.steps-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Расстояние между плашками */
}

/* Плашка одного шага */
.step-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Очень легкая тень */
    transition: box-shadow 0.3s ease;
}

.step-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

/* Заголовок шага (Кликабельный) */
.step-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.step-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #000;
    line-height: 1.4;
    text-align: left; /* Важно для мобильных */
}

/* Иконка плюсика */
.step-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 20px;
}

/* Линии плюсика */
.step-icon::before,
.step-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #000;
    transform: translate(-50%, -50%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-icon::before {
    width: 16px;
    height: 2px; /* Горизонтальная линия */
}

.step-icon::after {
    width: 2px;
    height: 16px; /* Вертикальная линия */
}

/* Состояние открытого шага (Превращаем плюс в минус) */
.step-item.active .step-icon::after {
    transform: translate(-50%, -50%) rotate(90deg); /* Поворачиваем вертикальную линию */
}
/* Можно также повернуть весь плюс на 45deg, чтобы стал крестиком: 
   .step-item.active .step-icon { transform: rotate(45deg); } 
   Но вариант выше (превращение в минус) классический. */

/* Выпадающий контент */
.step-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.step-item.active .step-content {
    max-height: 600px; /* Достаточно для текста */
}

.step-content-inner {
    padding: 0 30px 30px 30px;
    border-top: 1px solid rgba(0,0,0,0.05); /* Тонкий разделитель внутри */
    margin-top: -10px; /* Чуть подтягиваем к разделителю */
    padding-top: 20px;
}

.step-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.step-content p:last-child {
    margin-bottom: 0;
}

.step-content a {
    color: #8e24aa; /* Фиолетовый цвет ссылки под стиль блока */
    text-decoration: none;
    border-bottom: 1px solid rgba(142, 36, 170, 0.3);
}

.step-content a:hover {
    border-bottom-color: #8e24aa;
}

/* Адаптация под мобильные */
@media (max-width: 768px) {
    .step-header {
        padding: 20px;
    }
    
    .step-header h3 {
        font-size: 18px;
    }
    
    .step-content-inner {
        padding: 0 20px 25px 20px;
    }
}

/* ==========================================================================
   БЛОК 6: ЖУРНАЛЬНЫЕ КАРТОЧКИ (ТЕМНАЯ ТЕМА) - КОМПАКТНАЯ ВЕРСИЯ
   ========================================================================== */

/* Сетка для двух карточек */
.modern-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Чуть уменьшили отступ между карточками */
    margin-top: 40px;
}

/* Сама карточка */
.modern-card {
    display: flex;
    background-color: #1d1d1f;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    /* min-height убрали, чтобы высота зависела только от контента */
    transition: transform 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-5px);
}

/* Блок с картинкой (Слева) */
.card-image-side {
    /* УМЕНЬШИЛИ ширину картинки до 28% (было 35%). 
       Тексту достанется больше места, и карточка станет ниже. */
    flex: 0 0 28%; 
    position: relative;
    overflow: hidden;
}

.card-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Блок с текстом (Справа) */
.card-content-side {
    flex: 1;
    /* УМЕНЬШИЛИ ОТСТУПЫ (было 40px). Теперь меньше пустоты сверху/снизу. */
    padding: 25px 35px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Типографика внутри карточки */
.card-content-side h3 {
    color: #ffffff;
    font-size: 22px; /* Чуть меньше шрифт заголовка для компактности */
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-content-side p {
    color: #a1a1a6;
    font-size: 16px;
    line-height: 1.5; /* Чуть плотнее строки */
    margin-bottom: 12px;
}

.card-content-side ul {
    padding-left: 20px;
    margin-bottom: 12px;
    color: #a1a1a6;
}

.card-content-side li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* ==========================================================================
   АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ (Без изменений, там всё хорошо)
   ========================================================================== */
@media (max-width: 768px) {
    .modern-card {
        flex-direction: column;
        height: auto;
    }

    .card-image-side {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3; /* Оставляем правильную пропорцию фото */
        flex: none; 
    }

    .card-content-side {
        padding: 25px;
    }

    .card-content-side h3 {
        font-size: 22px;
    }
}
/* ==========================================================================
   БЛОК 6: СВЕТЛО-ОРАНЖЕВАЯ ТЕМА (Переопределение темных карточек)
   ========================================================================== */

/* 1. Фон самой секции */
.content-section-orange {
    background-color: #FFF3E8; /* Очень нежный теплый оттенок (персиковый) */
    color: #333;
}

/* Цвет главного заголовка H2 в этой секции */
.content-section-orange h2 {
    color: #4A3B32; /* Темно-коричневый оттенок для контраста */
}

/* 2. Стиль карточек внутри оранжевой секции (Делаем их белыми) */
.content-section-orange .modern-card {
    background-color: #ffffff; /* Белый фон карточки */
    box-shadow: 0 10px 40px rgba(189, 140, 109, 0.15); /* Теплая тень */
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* 3. Перекрашиваем тексты внутри карточки, так как фон теперь белый */
.content-section-orange .card-content-side h3 {
    color: #2D2D2D; /* Темный заголовок вместо белого */
}

.content-section-orange .card-content-side p,
.content-section-orange .card-content-side li,
.content-section-orange .card-content-side ul {
    color: #555555; /* Темно-серый текст вместо светло-серого */
}

/* 4. При наведении тень становится чуть активнее */
.content-section-orange .modern-card:hover {
    box-shadow: 0 15px 50px rgba(189, 140, 109, 0.25);
    transform: translateY(-5px);
}
/* ==========================================================================
   ИСПРАВЛЕНИЕ ФОТО В КАРТОЧКАХ (PC и MOBILE)
   ========================================================================== */

/* 1. НАСТРОЙКИ ДЛЯ КОМПЬЮТЕРА (PC) */
.modern-card .card-image-side {
    /* ДЕЛАЕМ УЖЕ: 25% вместо 35%. Картинка станет аккуратной полоской слева */
    flex: 0 0 25%; 
    
    position: relative;
    overflow: hidden;
    
    /* УМЕНЬШАЕМ ВЫСОТУ: было 300px. Ставим 200px (или auto).
       Теперь карточка "схлопнется" по высоте текста и не будет занимать лишнее место */
    min-height: 200px; 
}

/* Сама картинка */
.modern-card .card-image-side img {
    width: 100%;
    height: 100%;
    
    /* Cover обрезает лишнее, сохраняя красоту */
    object-fit: cover; 
    object-position: center center; 
    display: block;
}

* ==========================================================================
   ИСПРАВЛЕНИЕ ОТОБРАЖЕНИЯ ФОТО НА МОБИЛЬНЫХ
   ========================================================================== */

@media (max-width: 768px) {
    /* Настраиваем контейнер картинки */
    .modern-card .card-image-side {
        width: 100%;
        flex: none;
        
        /* ВАЖНО: Убираем фиксированную высоту */
        height: auto !important; 
        
        /* Делаем блок квадратным (1 к 1) или чуть прямоугольным (4 к 3).
           Это даст вертикальному фото достаточно места. */
        aspect-ratio: 4 / 3; 
    }

    /* Настраиваем саму картинку */
    .modern-card .card-image-side img {
        width: 100%;
        height: 100%;
        
        /* Cover заполняет всё пространство без искажений */
        object-fit: cover; 
        
        /* Центрируем. Для большинства фото ногтей это работает лучше всего */
        object-position: center center; 
    }
}
/* Точечная правка только для второй карточки (с френчем) на телефоне */
@media (max-width: 768px) {
    /* nth-of-type(2) выбирает вторую карточку */
    .modern-cards-grid .modern-card:nth-of-type(2) .card-image-side img {
        /* Сдвигаем фокус: 50% по горизонтали, 20% сверху (поднимаем взгляд выше) */
        object-position: 50% 70%; 
    }
}
/* ==========================================================================
   СТИЛИ ДЛЯ НОВОГО ГЛАВНОГО БЛОКА (HERO SPLIT) - ФИНАЛ
   ========================================================================== */

/* 1. Контейнер-сетка */
.hero-grid {
    display: flex;
    align-items: center; /* Центрирование по вертикали */
    justify-content: space-between;
    gap: 50px; /* Отступ между фото и текстом */
    padding: 20px 0;
}

/* 2. Левая колонка (ИЗОБРАЖЕНИЕ) */
.hero-image-side {
    flex: 4.5; /* Занимает 45% ширины */
    min-width: 0;
}

/* Спец-класс для картинки: Снимаем ограничение в 600px на ПК */
.image-container-resizable.hero-image-override {
    margin: 0; 
    max-width: 100% !important; 
    width: 100%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.12); /* Тень */
}

/* 3. Правая колонка (ТЕКСТ) */
.hero-text-side {
    flex: 4.5; /* Занимает 45% ширины */
    text-align: left; 
    padding-left: 20px;
}

/* Заголовок на ПК */
.hero-text-side h1 {
    text-align: left !important;
    margin-left: 0 !important;
    font-size: 42px; 
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

/* Текст описания */
.hero-text-side .section-intro {
    text-align: left !important;
    margin-left: 0 !important;
    max-width: 100% !important;
    font-size: 17px;
    line-height: 1.6;
    color: #444;
}

/* ==========================================================================
   АДАПТИВНОСТЬ ГЛАВНОГО БЛОКА (МОБИЛЬНЫЕ)
   ========================================================================== */
@media (max-width: 1024px) {
    /* На планшетах уравниваем колонки */
    .hero-image-side, 
    .hero-text-side {
        flex: 1; 
    }
}

@media (max-width: 900px) {
    .hero-grid {
        flex-direction: column; /* Элементы друг под другом */
        gap: 25px; /* Уменьшаем отступ между фото и текстом */
    }

    /* --- ИСПРАВЛЕНИЕ: УМЕНЬШАЕМ ФОТО НА МОБИЛЬНОМ --- */
    .hero-image-side {
        width: 100%;
        display: flex;
        justify-content: center; /* Центрируем фото */
    }

    .image-container-resizable.hero-image-override {
        /* Ограничиваем ширину картинки на телефоне.
           Автоматически уменьшится и высота. */
        max-width: 320px !important; 
        
        /* Можно сделать 280px, если 320px все еще много */
        width: 80%; 
    }

    /* --- ТЕКСТ НА МОБИЛЬНОМ --- */
    .hero-text-side {
        width: 100%;
        padding-left: 0;
        text-align: center; 
    }
    
    .hero-text-side h1 {
        font-size: 30px; /* Чуть меньше шрифт */
        text-align: center !important;
        margin-bottom: 15px;
    }

    .hero-text-side .section-intro {
        text-align: left !important; 
        font-size: 16px;
    }
}