

/* Start:/local/components/custom/iblock.sections.detail/templates/.default/style.css?17829917586715*/
/* custom:iblock.sections.detail */

/* ── Ссылка «Все разделы» ── */
.ibn-back {
    margin-bottom: 22px;
}
a.ibn-back__link {
    color: #999;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.933em;
    transition: color .2s;
}
a.ibn-back__link:hover { color: #333; color: var(--white_text_black); }

/* ── Сетка разделов ── */
.ibn-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
	grid-auto-rows: 1fr;   /* ← добавить */
}

/* ── Карточка раздела ── */
a.ibn-section-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border: 1px solid #f2f2f2;
    border-color: var(--stroke_black);
    border-radius: 4px;
    background: #fff;
    background: var(--black_bg_black);
    color: inherit;
    text-decoration: none;
    transition: box-shadow .3s, border-color .3s, background .3s;
}
a.ibn-section-card:hover {
    border-color: transparent;
    border-color: var(--stroke_black_hover, transparent);
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    background: #fff;
    background: var(--card_bg_hover_black, #fff);
    color: inherit;
    text-decoration: none;
}
.ibn-section-card__icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    background: var(--light2_bg_black, #fafafa);
    border-radius: 8px;
    color: #999;
    transition: color .2s;
}
a.ibn-section-card:hover .ibn-section-card__icon {
    color: var(--theme-base-color, #337ab7);
}
.ibn-section-card__body { flex: 1; min-width: 0; }
.ibn-section-card__name {
    font-weight: 600;
    font-size: 1em;
    line-height: 1.4;
    color: #333;
    color: var(--white_text_black);
}
.ibn-section-card__count { margin-top: 4px; }
.ibn-section-card__arrow {
    flex-shrink: 0;
    color: #ccc;
    transition: color .2s, transform .2s;
}
a.ibn-section-card:hover .ibn-section-card__arrow {
    color: #666;
    color: var(--light_basic_text_black);
    transform: translateX(3px);
}

/* ── Пустое состояние ── */
.ibn-empty { text-align: center; padding: 50px 20px; }

/* ── Список элементов ── */
.ibn-elements { display: flex; flex-direction: column; }

/* ── Строка элемента ── */
.ibn-el {
    border-bottom: 1px solid #f2f2f2;
    border-color: var(--stroke_black);
}
.ibn-el:first-child {
    border-top: 1px solid #f2f2f2;
    border-top-color: var(--stroke_black);
}
.ibn-el__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 6px;
    cursor: pointer;
    transition: background .2s;
    user-select: none;
}
.ibn-el__head:hover {
    background: #fafafa;
    background: var(--light2_bg_black, #fafafa);
}
.ibn-el__head:focus-visible {
    outline: 2px solid var(--theme-base-color, #337ab7);
    outline-offset: -2px;
    border-radius: 2px;
}
.ibn-el__num {
    flex-shrink: 0;
    width: 26px; height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    background: var(--darkerblack_bg_black, #f5f5f5);
    border-radius: 50%;
    font-weight: 600;
    color: #999;
    margin-top: 2px;
}
.ibn-el__info { flex: 1; min-width: 0; }
.ibn-el__name {
    font-weight: 600;
    font-size: 1em;
    line-height: 1.45;
    color: #333;
    color: var(--white_text_black);
}

/* ── Бейджи ── */
.ibn-el__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.ibn-badge {
    display: inline-block;
    font-size: 0.8em;
    line-height: 1.4;
    padding: 2px 10px;
    border-radius: 3px;
    background: #f5f5f5;
    background: var(--darkerblack_bg_black, #f5f5f5);
    color: #555;
    color: var(--basic_text_black);
    white-space: nowrap;
}
.ibn-badge--free { background: #e8f5e9; color: #2e7d32; }

/* ── Шеврон ── */
.ibn-el__chev {
    flex-shrink: 0;
    color: #ccc;
    padding: 5px 2px 0;
    transition: transform .3s, color .2s;
}
.ibn-el__head:hover .ibn-el__chev { color: #666; color: var(--light_basic_text_black); }
.ibn-el--open .ibn-el__chev { transform: rotate(180deg); }

/* ── Раскрывающийся блок ── */
.ibn-el__detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s ease, opacity .3s ease;
}
.ibn-el--open .ibn-el__detail { opacity: 1; }
.ibn-el__detail-inner { padding: 2px 6px 22px; }

/* ── Таблица свойств ── */
.ibn-el__detail-inner .table { width: 100%; border-collapse: collapse; }
.ibn-el__detail-inner .table td {
    padding: 11px 14px;
    vertical-align: top;
    border-bottom: 1px solid #f2f2f2;
    border-color: var(--stroke_black);
    font-size: 0.933em;
    line-height: 1.5;
}
.ibn-el__detail-inner .table tr:last-child td { border-bottom: none; }
td.ibn-td-label {
    width: 35%;
    min-width: 170px;
    font-weight: 600;
    color: #555;
    color: var(--basic_text_black);
    background: linear-gradient(0deg,#f5f5f5,#f5f5f5),#f8f8f8;
    background: var(--darkerblack_bg_black);
}
td.ibn-td-value {
    color: #333;
    color: var(--white_text_black);
    word-break: break-word;
    background: rgba(60, 192, 81, 0.06);
}
td.ibn-td-value ul { margin: 0; padding-left: 0; }
td.ibn-td-value p:last-child { margin-bottom: 0; }
.ibn-img { max-width: 240px; max-height: 180px; border-radius: 3px; margin: 4px 0; }
.ibn-file-link { color: var(--theme-base-color, #337ab7); }
.ibn-file-link:hover { text-decoration: underline; }

/* ── Адаптив ── */
@media (max-width: 991px) {
    .ibn-sections-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}
@media (max-width: 600px) {
    .ibn-sections-grid { grid-template-columns: 1fr; }
    .ibn-section-card__icon { width: 38px; height: 38px; }
    .ibn-el__num { display: none; }
    .ibn-el__detail-inner .table,
    .ibn-el__detail-inner .table tbody,
    .ibn-el__detail-inner .table tr,
    .ibn-el__detail-inner .table td { display: block; width: 100%; }
    .ibn-el__detail-inner .table tr {
        padding: 8px 0;
        border-bottom: 1px solid #f2f2f2;
        border-color: var(--stroke_black);
    }
    .ibn-el__detail-inner .table tr:last-child { border-bottom: none; }
    .ibn-el__detail-inner .table td { border-bottom: none; padding: 3px 0; }
    td.ibn-td-label {
        width: 100%; min-width: 0;
        background: transparent;
        padding-bottom: 2px;
    }
    td.ibn-td-value { padding-top: 0; }
    .ibn-img { max-width: 100%; }
}

/* End */
/* /local/components/custom/iblock.sections.detail/templates/.default/style.css?17829917586715 */
