

/* Start:/local/templates/University/components/bitrix/catalog/stgmu_common/bitrix/catalog.section/.default/style.css?177606507611666*/
.section_description {
    font-size: 18px;
    font-size: 1.125rem;
    padding-bottom: 1rem;
}

.section_description p {
    margin: 0.5rem 0;
}

details {

/*border-radius: 10px 10px 10px 10px; 
background: #f7fafd;
border: 1px;
-webkit-box-shadow: 1px 1px 10px 1px rgba(0,0,0,0.5);
    -moz-box-shadow: 1px 1px 10px 1px rgba(0,0,0,0.5);
    box-shadow: 1px 1px 10px 1px rgba(0,0,0,0.5);
padding: 15px;
*/
}

.section_description ul{
	list-style-type: inherit;
}

.section_description img {
		margin: 0.5rem auto;
object-fit: cover; 
object-position: bottom;
}

/* ========== Документы: делаем из .file карточку ========== */

.post_list.documents {
  display: flex;
  flex-direction: column;
  gap: 5px;            /* расстояние между карточками */
}

/* сам элемент */
.documents .file {
  border-bottom: none !important;  /* убираем старую линию */
  padding: 16px 18px !important;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* иконка слева */
.documents .file__ico {
  flex: 0 0 auto;
  margin-right: 14px;
  display: flex;
  align-items: flex-start;
}

/* если иконки разные — немного унифицируем */
.documents .file__ico img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* текстовая часть */
.documents .file__text {
  flex: 1 1 auto;
  min-width: 0; /* чтобы длинные названия не разносили блок */
}

/* ссылка/заголовок */
.documents .link,
.documents .title {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
}

/* дата */
.documents .posted_date {
  font-size: 14px;
  margin-top: 6px;
  font-weight: 700;
  color: #c1445b;
}

/* чтобы переносы выглядели аккуратно */
.documents .file__text p {
  margin: 6px 0 0;
}

/* мобилка: чуть плотнее */
@media (max-width: 576px) {
  .post_list.documents { gap: 5px; }
  .documents .file { padding: 14px 14px !important; }
  .documents .file__ico img { width: 30px; height: 30px; }
}


@media screen and (max-width: 576px) {

.section_description img {
    margin: 0.3rem 0.3rem;
    width: auto;
    height: auto;
    max-width: 87px;
    max-height: 130px;
	}

.hidemobile {
    visibility: hidden;
    display: none;
  }
}

.showmobile { display: none;}
@media only screen
and (min-device-width : 320px)
and (max-device-width : 576px){ .showmobile { display: inline;}}

.video-block {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

/* Отступы между карточками */
.mentor-card-block {
    margin-bottom: 40px;
}

.mentor-card-block:last-child {
    margin-bottom: 0;
}

/* ===== Галерея раздела: summary как "файл", контент без "карточки в карточке" ===== */

.mentor-gallery{
    margin: 20px 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.mentor-gallery__details{
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

/* Убираем дефолтный маркер summary */
.mentor-gallery__summary::-webkit-details-marker{ display:none; }
.mentor-gallery__summary::marker{ content:""; }

.mentor-gallery__summary{
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12); /* заметнее */
    border: 1px solid rgba(0,0,0,0.06);

    position: relative;
    padding: 16px 18px 16px 18px;
}

/* левая “акцентная” полоса как маркер блока */
.mentor-gallery__summary::before{
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 4px;
    background: #c1445b; /* как posted_date / фирменный акцент */
}

/* Иконка как у документов */
.mentor-gallery__ico{
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}
.mentor-gallery__ico img{
    width: 24px;
    height: 24px;
}

.mentor-gallery__title{
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

/* Стрелка справа */
.mentor-gallery__summary-icon{
    margin-left: auto;
    display: inline-block;   /* ← КЛЮЧЕВО */
    width: 10px;
    height: 10px;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.mentor-gallery__details[open] .mentor-gallery__summary-icon{
    transform: rotate(135deg);
}

/* Раскрытая часть: без внутренних рамок, делаем "широко" */
.mentor-gallery__inner{
    margin-top: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 12px;
}

/* Fotorama на всю ширину */
.mentor-gallery__inner .fotorama{
    width: 100% !important;
    max-width: 100% !important;
}

/* ===== Об отделе: список ===== */
.dept-info{
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.dept-info li{
  padding: 8px 0;
  border-bottom: 1px solid #edf1f6;
  line-height: 1.55;
}

.dept-info li:last-child{
  border-bottom: 0;
}

.dept-info__head{
  color: #00aeef;
  font-weight: 600;
}

/* NEWS (bootstrap) */
.mentor-news-img{
  width: 100%;
  height: 340px;
  object-fit: cover;
  background: #f4f6f9;
}

@media (max-width: 768px){
  .mentor-news-img{ height: 260px; }
}

/* Карточка наставника */

.mentor-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: none;
}

.mentor-card__header {
    background: #f7f9fc;
    border-bottom: 0;
    padding: 16px 20px;
}

.mentor-card__photo {
    max-width: 220px;
    width: 100%;
    border-radius: 12px;
    object-fit: contain;
}

.mentor-card__name {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.mentor-card__position {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.mentor-card__body {
    padding: 16px 20px 20px;
}

.mentor-card__text p:last-child {
    margin-bottom: 0;
}

/* Адаптив под смартфоны */

@media (max-width: 767.98px) {
    .mentor-card__header {
        text-align: center;
        padding: 16px 16px 12px;
    }

    .mentor-card__photo {
        margin: 0 auto 8px;
    }

    .mentor-card__name {
        font-size: 18px;
    }

    .mentor-card__body {
        padding: 12px 16px 16px;
    }
}


.video-container {
            position: relative;
            padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
            height: 0;
            overflow: hidden;
        }
        .video-container iframe,
        .video-container object,
        .video-container embed {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        video {
            width: 100%;
            height: auto;
   }

.video-block iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/*новый стиль карточек*/


/* ===== Аккордеон ===== */
.department-info__text .dept-accordion,
.card-body .dept-accordion,
.section_description .dept-accordion{
  margin-top: 18px;
}

.page-inner .department-info__text a.dept-accordion__btn,
.page-inner .card-body a.dept-accordion__btn,
.page-inner .section_description a.dept-accordion__btn{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  padding: 14px 16px;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: #fff;
  color: #1f2a37 !important;
  text-decoration: none !important;
  text-transform: none !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.page-inner .department-info__text a.dept-accordion__btn:hover,
.page-inner .card-body a.dept-accordion__btn:hover,
.page-inner .section_description a.dept-accordion__btn:hover{
  background: #f8fbff;
  border-color: #cfe0f5;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.page-inner .department-info__text a.dept-accordion__btn[aria-expanded="true"],
.page-inner .card-body a.dept-accordion__btn[aria-expanded="true"],
.page-inner .section_description a.dept-accordion__btn[aria-expanded="true"]{
  background: #f3f8ff;
  border-color: #c9dbf3;
}

.department-info__text .dept-accordion__plus,
.card-body .dept-accordion__plus,
.section_description .dept-accordion__plus{
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eaf3ff;
  color: #2a72b5;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.page-inner .department-info__text a.dept-accordion__btn[aria-expanded="true"] .dept-accordion__plus,
.page-inner .card-body a.dept-accordion__btn[aria-expanded="true"] .dept-accordion__plus,
.page-inner .section_description a.dept-accordion__btn[aria-expanded="true"] .dept-accordion__plus{
  background: #2a72b5;
  color: #fff;
}

.department-info__text .dept-accordion__label,
.card-body .dept-accordion__label,
.section_description .dept-accordion__label{
  white-space: normal;
}

.department-info__text .dept-accordion__body,
.card-body .dept-accordion__body,
.section_description .dept-accordion__body{
  display: block;
  width: 100%;
  padding: 14px 0 0;
}

/* ===== Таблица расписания ===== */
.department-info__text .dept-schedule,
.card-body .dept-schedule,
.section_description .dept-schedule{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border: 1px solid #e6e9ee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.department-info__text .dept-schedule th,
.department-info__text .dept-schedule td,
.card-body .dept-schedule th,
.card-body .dept-schedule td,
.section_description .dept-schedule th,
.section_description .dept-schedule td{
  padding: 12px 10px;
  border-right: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  color: #263238;
  word-break: break-word;
}

.department-info__text .dept-schedule th,
.card-body .dept-schedule th,
.section_description .dept-schedule th{
  background: #f7fafc;
  font-weight: 700;
  color: #1f2a37;
}

.department-info__text .dept-schedule tr:last-child td,
.card-body .dept-schedule tr:last-child td,
.section_description .dept-schedule tr:last-child td{
  border-bottom: 0;
}

.department-info__text .dept-schedule th:last-child,
.department-info__text .dept-schedule td:last-child,
.card-body .dept-schedule th:last-child,
.card-body .dept-schedule td:last-child,
.section_description .dept-schedule th:last-child,
.section_description .dept-schedule td:last-child{
  border-right: 0;
}


/* ===== Мобилка ===== */
@media (max-width: 768px){
  .department-info__text .dept-accordion__body,
  .card-body .dept-accordion__body,
  .section_description .dept-accordion__body{
    overflow-x: auto;
  }

  .department-info__text .dept-schedule,
  .card-body .dept-schedule,
  .section_description .dept-schedule{
    min-width: 720px;
  }
}
/* End */


/* Start:/local/templates/University/components/bitrix/catalog/stgmu_common/bitrix/catalog.section.list/.default/style.css?17908626487968*/
.no-gutters>.col,
.no-gutters>[class*="col-"] {
    padding-right: 3px;
    padding-left: 5px;
}

.section_wrapper{
		margin:2rem 0;
}

.section_item {
		background-color: #326695;
    margin: 0 0.2rem 0.2rem 0;
   /* border: 1px solid #c6d4e2;*/
border-radius: 10px;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.section_item a {
		color:#FFFFFF;
    font-size: 16px;
    font-weight: 700;
    min-height: 140px;
    display: block;
    padding: 1.2rem 1rem 1rem 1.5rem;
    text-decoration: none;
}

.section_item:hover {
   /* border: 1px solid #7aa8d1;*/
box-shadow: 0 0 10px;
}

.section_item:hover a {
    text-decoration: none;
		color:#FFFFFF;
}

.section_item:hover{
		background-color: #326695ad;
}
.section_description a {
 color:  #00aeef !important;
}

/* ===== СПОЙЛЕР ДЛЯ ТЕКСТА ===== */

.spoiler-container {
    position: relative;
}

.limited {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    position: relative;
}

.limited.l-200 {
    max-height: 200px;
}

.limited.l-300 {
    max-height: 300px;
}

.limited .bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 1) 80%
    );
}

.limited.is-expanded .bottom {
    opacity: 0;
    pointer-events: none;
}

.mentor-card__body .limited .bottom {
    background: linear-gradient(
        to bottom,
        rgba(247, 249, 252, 0),
        rgba(247, 249, 252, 1) 80%
    );
}

/* ===== КНОПКА СПОЙЛЕРА ===== */

.spoiler-toggle {
    display: none;
    cursor: pointer;
    padding: 10px 20px;
    margin-top: 15px;
    width: fit-content;

    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;

    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    line-height: 1.2;
    color: #000000;
    text-decoration: none;
    box-sizing: border-box;
    outline: none;

    align-items: center;
    justify-content: center;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.spoiler-toggle.is-visible {
    display: inline-flex;
    animation: fadeInUp 0.3s ease forwards;
}

.spoiler-toggle:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.spoiler-toggle:active {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(1px);
}

.mentor-card__body .spoiler-toggle {
    border-color: rgba(0, 0, 0, 0.08);
}

.mentor-card__body .spoiler-toggle:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.15);
}

.mentor-card__body .spoiler-toggle:active {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
}

@media (max-width: 576px) {
    .limited.l-200 {
        max-height: 150px;
    }

    .spoiler-toggle {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .spoiler-toggle.is-visible {
        display: flex;
    }
}

.spoiler-toggle:focus-visible {
    outline: 2px solid #c1445b;
    outline-offset: 2px;
    border-color: transparent;
}

.spoiler-toggle.disabled,
.spoiler-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* УБРАЛ smooth scroll, он мешал спойлеру */
/* html {
    scroll-behavior: smooth;
} */

:target {
    scroll-margin-top: 30px;
}

/* End of spoiler */

	details{
		margin-bottom: 15px;
	}

    summary{
		font-weight: 700;
		font-size: 20px;
    }

    address {
        font-style: normal;
        max-width: 400px;
    }

    .visually-hidden {
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

    .bold-red {
        font-weight: 600;
        color: #f00;
    }

    .schedule-list {
        display: grid;
        margin: 0;
        padding: 0;
        grid-template-columns: repeat(7, 1fr);

        list-style: none;
    }

    .schedule-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
        width: 100%;
        max-width: 200px;
        border: 2px solid #e6e6e6;
    }

    .schedule-item:not(:first-child) {
        border-left-width: 1px;
    }

    .schedule-item:not(:last-child) {
        border-right-width: 1px;
    }

    .schedule-item .time {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        text-align: center;
        border-top: 2px dashed #e6e6e6;
    }


    .contacts {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .ya-map-wrapper {
        position: relative;
        overflow: hidden;
        display: flex;
        justify-content: center;

    }

    .transport-name {
        margin: 0;
    }

    .buses,
    .minibuses {
        list-style: none;
        padding-left: 0;
        margin: 0;
        margin-bottom: 15px;
    }

    .buses .bus,
    .minibuses .minibus {
        position: relative;
        display: flex;
        flex-direction: column;
        padding-left: 21px;
        margin-bottom: 1px;
    }

    .buses .bus::before {
        content: "🚌";
        left: 0;
        top: calc(50% - 8px);
        font-size: 16px;
        line-height: 100%;
        position: absolute;
    }

    .minibuses .minibus::before {
        content: "🚐";
        left: 0;
        top: calc(50% - 8px);
        font-size: 16px;
        line-height: 100%;
        position: absolute;

    }

    .buses .bus:not(:last-child)::after,
    .minibuses .minibus:not(:last-child)::after {
        content: "";
        position: absolute;
        width: 100%;
        left: 0px;
        bottom: -1px;
        border-bottom: 1px solid #e6e6e6;
    }


    @media (max-width: 1200px) {
        .ya-map-wrapper {
            margin: 0 auto;
        }
    }

    @media (max-width: 767px) {
        .schedule-list {
            grid-template-columns: 1fr;
        }

        .schedule-item:not(:first-child) {
            border-left-width: 2px;
            border-top-width: 1px;
        }

        .schedule-item:not(:last-child) {
            border-right-width: 2px;
            border-bottom-width: 1px;
        }
    }

.video-container {
            position: relative;
            padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
            height: 0;
            overflow: hidden;
        }
        .video-container iframe,
        .video-container object,
        .video-container embed {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        video {
            width: 100%;
            height: auto;
   }


/*/////////////////////////////////*/

.search-highlight {
    animation: searchHighlightFade 2.5s ease;
}

@keyframes searchHighlightFade {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 214, 10, 0.85);
        background-color: rgba(255, 243, 205, 0.95);
    }
    30% {
        box-shadow: 0 0 0 6px rgba(255, 214, 10, 0.35);
        background-color: rgba(255, 243, 205, 0.95);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 214, 10, 0);
        background-color: transparent;
    }
}

/* End */
/* /local/templates/University/components/bitrix/catalog/stgmu_common/bitrix/catalog.section/.default/style.css?177606507611666 */
/* /local/templates/University/components/bitrix/catalog/stgmu_common/bitrix/catalog.section.list/.default/style.css?17908626487968 */
