

/* Start:/local/templates/u/components/bitrix/news/blog/bitrix/news.detail/.default/style.css?17864698385834*/
:root{
    --h2-fs: 32px;
    --h2-lh: 40px;
    --h2-mb: 1rem;
    --h2-fs-md: 26px;
    --h2-lh-md: 34px;
    --h2-mb-md: .8rem;
    --h2-fs-xs: 20px;
    --h2-lh-xs: 28px;
    --h2-mb-xs: .5rem;
}
.desc h2{font-size: var(--h2-fs);line-height: var(--h2-lh);margin-bottom: var(--h2-mb);}
@media (max-width: 1024px) {
    .desc h2{font-size: var(--h2-fs-md);line-height: var(--h2-lh-md);margin-bottom: var(--h2-mb-md);}
}
@media (max-width: 640px) {
    .desc h2{font-size: var(--h2-fs-xs);line-height: var(--h2-lh-xs);margin-bottom: var(--h2-mb-xs);}
}


/* Основной стиль таблицы */
.desc table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #2c3e50;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

/* Сброс внешних отступов у абзацев внутри ячеек таблицы */
.desc table p {
    margin: 0;
    padding: 0;
}

/* Шапка таблицы (thead) */
.desc table thead {
    background-color: #f1f5f9;
}

.desc table thead tr td,
.desc table thead tr th {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #cbd5e1;
}

/* Тело таблицы (tbody) */
.desc table tbody tr {
    transition: background-color 0.2s ease;
}

/* Эффект зебры (чередование строк) */
.desc table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Подсветка строки при наведении */
.desc table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Ячейки тела таблицы */
.desc table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

/* Убираем нижнюю рамку у последней строки */
.desc table tbody tr:last-child td {
    border-bottom: none;
}

/* Выравнивание первого столбца для лучшей читаемости */
.desc table tbody td:first-child {
    font-weight: 500;
    color: #0f172a;
}

/* ==========================================
   Адаптивность для мобильных экранов (≤ 600px)
   Вариант: Карточный вид (без горизонтального скролла)
   ========================================== */
@media screen and (max-width: 600px) {
    .desc table,
    .desc table thead,
    .desc table tbody,
    .desc table th,
    .desc table td,
    .desc table tr {
        display: block;
    }

    /* Скрываем заголовки шапки */
    .desc table thead {
        display: none;
    }

    .desc table {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    /* Каждая строка превращается в отдельную карточку */
    .desc table tbody tr {
        margin-bottom: 16px;
        background-color: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 12px 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .desc table tbody tr:nth-child(even) {
        background-color: #ffffff;
    }

    .desc table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .desc table tbody td:last-child {
        border-bottom: none;
    }
}
/* ==========================================
   Стили для изображений внутри .desc
   ========================================== */

/* 1. Базовая адаптивность всех изображений */
.desc img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px auto; /* Авто-отступы слева/справа для центрирования */
    border-radius: 8px; /* Сглаживание углов */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* Мягкая современная тень */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 2. Эффект при наведении (опционально, для интерактивности) */
.desc img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* 3. Сброс лишних отступов, если картинка находится внутри тега <p> */
.desc p:has(> img) {
    text-align: center;
    margin: 20px 0;
    padding: 0;
}

/* Fallback для браузеров без поддержки :has */
.desc p img {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* 4. Если картинка обогащена ссылкой (на увеличение / gallery) */
.desc a img {
    border: none;
    cursor: pointer;
}

/* 5. Подписи к изображениям (если используется <figure> и <figcaption>) */
.desc figure {
    margin: 28px 0;
    text-align: center;
}

.desc figure img {
    margin: 0 auto 10px auto;
}

.desc figcaption,
.desc .image-caption {
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
    text-align: center;
    font-style: italic;
    margin-top: 8px;
}

/* 6. Адаптивность под мобильные устройства (≤ 600px) */
@media screen and (max-width: 600px) {
    .desc img {
        margin: 16px auto;
        border-radius: 6px; /* Чуть меньший радиус на узких экранах */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .desc figcaption,
    .desc .image-caption {
        font-size: 12px;
    }
}
/* End */
/* /local/templates/u/components/bitrix/news/blog/bitrix/news.detail/.default/style.css?17864698385834 */
