/* Single News Page Styles */

/* Отступ от футера для страницы отдельной новости */
.news-page {
    margin-bottom: 150px; /* Десктоп */
}

/* Стили для обёртки страницы новости, как у catalog-page */
.news-page {
    background-color: #f5f5f5;
    position: relative;
    margin: 30px 20px 0;
    min-height: 100vh;
}

.news-page .catalog-main-section {
    background-color: #fff;
    border-radius: 20px;
    padding: 0 clamp(20px, calc(20px + (100 - 20) * ((100vw - 991px) / (1920 - 991))), 100px);
    padding-top: clamp(60px, calc(60px + (160 - 60) * ((100vw - 991px) / (1920 - 991))), 160px);
    padding-bottom: clamp(20px, calc(20px + (40 - 20) * ((100vw - 991px) / (1920 - 991))), 40px);
}

/* Хлебные крошки на странице новости */
.news-breadcrumbs {
    margin-top: 0;
    margin-bottom: 5px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -3%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 4px;
}

.crumb {
    text-decoration: none;
    font-family: inherit;
    font-weight: 500;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.crumb-grey {
    color: #3533314D;
}

.crumb-current {
    color: #353331;
}

.crumb-sep {
    color: #3533314D;
    margin: 0 2px;
}

.news-back-link {
    display: inline-block;
    margin-bottom: 0;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #353331;
    text-decoration: none;
    transition: color 0.2s;
}

.news-back-link:hover {
    color: #232A39;
    text-decoration: underline;
}

.news-main-title {
    margin-top: 50px;
    margin-bottom: 0;
    font-family: 'Vetrino', serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(32px, calc(32px + (60 - 32) * ((100vw - 575px) / (1920 - 575))), 60px);
    line-height: 90%;
    letter-spacing: -3%;
    text-transform: uppercase;
    color: #353331;
    leading-trim: CAP_HEIGHT;
}



/* Контент новости */
.news-content {
    margin-top: 50px;
}

/* Флекс-контейнер для изображения и текста */
.news-flex-container {
    display: flex;
    gap: 20px;
    align-items: stretch;  /* Растягиваем элементы по высоте */
}

/* Контейнер изображения */
.news-image-container {
    flex: 0 0 calc(33.333% - 10px);
    max-width: 560px;
    min-width: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-main-image {
    width: 100%;
    height: 100%;
    min-height: 400px;  /* Минимальная высота для десктопа */
    max-height: 560px;  /* Максимальная высота = максимальной ширине */
    border-radius: 10px;
    display: block;
    object-fit: cover;  /* Обрезаем изображение с сохранением пропорций */
    object-position: center;  /* Центрируем изображение */
}

/* Бейдж даты на изображении */
.news-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #FFFFFF;
    padding: 6px 7px;
    border-radius: 5px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: -3%;
    color: #353331;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;  /* Обеспечиваем что бейдж всегда поверх изображения */
}

/* Контейнер текста */
.news-text-container {
    flex: 1;
    min-width: 0;
}

/* Подзаголовок новости */
.news-main-subtitle {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(22px, calc(22px + (32 - 22) * ((100vw - 991px) / (1920 - 991))), 32px);
    line-height: 120%;
    letter-spacing: -3%;
    color: #353331;
    margin-bottom: 30px;
}



.news-main-content {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(16px, calc(16px + (22 - 16) * ((100vw - 991px) / (1920 - 991))), 22px);
    line-height: 130%;
    letter-spacing: -3%;
    color: #353331;
}

.news-main-content p {
    margin-bottom: 20px;
}

.news-main-content h2,
.news-main-content h3,
.news-main-content h4 {
    font-family: 'Commissioner', sans-serif;
    font-weight: 600;
    color: #353331;
    margin-top: 30px;
    margin-bottom: 15px;
}

.news-main-content h2 {
    font-size: 24px;
}

.news-main-content h3 {
    font-size: 20px;
}

.news-main-content h4 {
    font-size: 18px;
}

.news-main-content ul,
.news-main-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.news-main-content li {
    margin-bottom: 8px;
}

.news-main-content a {
    color: #353331;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.news-main-content a:hover {
    color: #232A39;
}

/* Адаптив */
@media (max-width: 991px) {
    .news-main-title {
        font-size: 44px;
        margin-top: 40px;
    }
    
    .news-content {
        margin-top: 40px;
    }
    
    /* На планшете и мобайле - в столбик */
    .news-flex-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .news-image-container {
        flex: none;
        max-width: 100%;
        min-width: auto;
        display: block;  /* Возвращаем обычный display */
    }
    
    .news-main-image {
        height: auto;  /* Возвращаем автоматическую высоту */
        min-height: auto;  /* Убираем минимальную высоту */
        max-height: none;  /* Убираем максимальную высоту */
        object-fit: initial;  /* Возвращаем обычное поведение */
    }
    
    .news-text-container {
        flex: none;
    }
    
    /* Размеры шрифтов на планшете */
    .news-main-subtitle {
        font-size: 30px;
        margin-bottom: 25px;
    }
    
    .news-main-content {
        font-size: 20px;
        line-height: 120%;
    }
    
    /* Адаптив для бейджа даты */
    .news-date-badge {
        top: 15px;
        left: 15px;
        font-size: 11px;
    }
    
    /* Отступ от футера на планшете */
    .news-page {
        margin-bottom: 60px;
    }
}

@media (max-width: 575px) {
    .news-main-title {
        font-size: 24px;
        margin-top: 25px;
    }
    
    .news-page .catalog-main-section {
        border-radius: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .news-page {
        margin: 15px 0 0 0;
    }
    
    .news-content {
        margin-top: 30px;
    }
    
    .news-flex-container {
        gap: 25px;
    }
    
    .news-image-container {
        display: block;  /* Возвращаем обычный display */
    }
    
    .news-main-image {
        height: auto;  /* Возвращаем автоматическую высоту */
        min-height: auto;  /* Убираем минимальную высоту */
        max-height: none;  /* Убираем максимальную высоту */
        object-fit: initial;  /* Возвращаем обычное поведение */
    }
    
    /* Размеры шрифтов на мобайле */
    .news-main-subtitle {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .news-main-content {
        font-size: 16px;
        line-height: 120%;
    }
    
    .news-main-content h2 {
        font-size: 20px;
    }
    
    .news-main-content h3 {
        font-size: 18px;
    }
    
    .news-main-content h4 {
        font-size: 16px;
    }
    
    /* Адаптив для бейджа даты */
    .news-date-badge {
        top: 10px;
        left: 10px;
        font-size: 10px;
        padding: 5px 6px;
    }
    
    /* Отступ от футера на мобайле */
    .news-page {
        margin-bottom: 70px;
    }
} 