

/* Start:/local/templates/dongu/components/bitrix/main.map/.default/style.css?17908851144725*/
/* Карта сайта (bitrix:main.map, шаблон dongu). Цвета — только переменные тем. */

.site-map {
    /* .content-wrapper — flex-строка: без этого карта сжимается по содержимому */
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    margin: 1.5rem 0 2rem;
}

.site-map__title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: var(--heading-color, #0052a5);
}

.site-map__grid {
    /* Колонки вместо grid: карточки разной высоты идут плотно, без дыр */
    column-width: 280px;
    column-count: 3; /* не больше 3: «Наука» занимает колонку целиком, четвёртая пустовала */
    column-gap: 1.25rem;
}

.site-map__section {
    min-width: 0;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 1rem;
    box-shadow: 0 2px 10px var(--shadow-color, rgba(0, 0, 0, .08));
    padding: 1rem 1.25rem 1.1rem;
    margin-bottom: 1.25rem;
    break-inside: avoid;
}

/* Широкие блоки (факультеты, подразделения): список внутри карточки идёт колонками */
.site-map__section--wide .site-map__list--l1 {
    column-width: 280px;
    column-count: 3;
    column-gap: 2rem;
}

.site-map__section--wide .site-map__list--l1 > .site-map__item {
    break-inside: avoid;
    padding-bottom: .5rem;
}

/* Заголовок раздела */
.site-map__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    list-style: none;
    cursor: default;
}

.site-map__head::-webkit-details-marker {
    display: none;
}

.site-map__head::marker {
    content: "";
}

.site-map__section-link {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--link-color, #0052a5);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-map__chevron {
    display: none;
    flex: none;
    width: .6rem;
    height: .6rem;
    margin-right: .25rem;
    border-right: 2px solid var(--text-muted, #666);
    border-bottom: 2px solid var(--text-muted, #666);
    transform: rotate(45deg);
    transition: transform .2s;
}

.site-map__section[open] .site-map__chevron {
    transform: translateY(25%) rotate(-135deg);
}

/* Списки и вложенность */
.site-map__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-map__list--l1 {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border-color, #e0e0e0);
}

.site-map__list .site-map__list {
    margin: .3rem 0 .4rem 1rem;
    padding-left: .75rem;
    border-left: 2px solid var(--border-color, #e0e0e0);
}

.site-map__item {
    margin: 0;
    padding: .2rem 0;
    line-height: 1.35;
}

.site-map__link {
    color: var(--link-color, #0052a5);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-map__list--l1 > .site-map__item > .site-map__link {
    font-weight: 600;
}

.site-map__list--l2 .site-map__link,
.site-map__list--l3 .site-map__link,
.site-map__list--l4 .site-map__link {
    font-weight: 400;
    font-size: .95em;
}

.site-map__link:hover,
.site-map__section-link:hover {
    color: var(--link-hover, #bf1126);
    text-decoration: underline;
}

.site-map__link:focus-visible,
.site-map__section-link:focus-visible,
.site-map__head:focus-visible {
    outline: 2px solid var(--link-color, #0052a5);
    outline-offset: 2px;
    border-radius: 4px;
}

.site-map__desc {
    display: block;
    margin-top: .1rem;
    font-size: .85em;
    color: var(--text-muted, #666);
}

.site-map__desc--section {
    margin-top: .35rem;
}

/* Телефоны: одна колонка, разделы сворачиваются.
   columns: auto, а не 1: при columns: 1 блок остаётся multicol-контейнером, и WebKit (Safari, iOS)
   не пересчитывает его высоту после сворачивания <details> скриптом — под «Новостями» оставалась
   пустая область высотой с раскрытые разделы. */
@media (max-width: 767.98px) {
    .site-map__grid,
    .site-map__section--wide .site-map__list--l1 {
        columns: auto;
    }

    .site-map__section {
        padding: .8rem 1rem;
        margin-bottom: .75rem;
    }

    .site-map__head {
        cursor: pointer;
        min-height: 2.25rem;
    }

    .site-map__chevron {
        display: block;
    }

    .site-map__list .site-map__list {
        margin-left: .5rem;
        padding-left: .6rem;
    }

    .site-map__item {
        padding: .3rem 0;
    }
}

/* End */
/* /local/templates/dongu/components/bitrix/main.map/.default/style.css?17908851144725 */
