@media (max-width: 767.98px) {
   .factory__body .title-2 {
        font-size: 20px;
    }
}
.support-measures__list ul li i {
    font-style: normal;
    text-decoration: none;
}
.detail__body.plane-text ul li,
.detail__body.plane-text ol li {
    display: list-item;
}
.detail__body.plane-text ol li::before {
    display: inline-block;
}
.block-46__text ul li,
.block-46__text ol li {
    display: list-item;
}
.block-46__text ul li {
    padding-left: 21px;
    text-indent: -21px;
}
.block-46__text ul li::before {
    display: inline-block;
    margin-right: 14px;
    text-indent: 0;
}
.block-46__text ol li {
    padding-left: 20px;
    text-indent: -20px;
}
.block-46__text ol li::before {
    display: inline-block;
    text-indent: 0;
}
@media (max-width: 479.98px) {
    .block-46__text ul li {
        padding-left: 12px;
        text-indent: -12px;
    }
    .block-46__text ul li::before {
        margin-right: 7px;
    }
}

.detail__body ul li, .block-text ol li {
    list-style: initial;
    margin-left: 20px;
}
.section-hero__sidebar__item_last {
    border: 1px solid rgba(255, 255, 255, 0.9);
}
.plane-text a {
    text-underline-offset: 4px;
}
.page-header__sub {
    line-height: normal;
}
.support-measures__link img {
    object-position: left;
}
.plane-text ul li::marker, .plane-text ol li::marker {
    color: #ffff;
}
.detail__body.plane-text ul li::marker, .detail__body.plane-text ol li::marker {
    color: unset;
}
.factory__body .caption {
  color: #ffff;
  background-color: transparent;
  border: 1px solid rgba(42, 57, 88, 0.1);
  border-radius: 50px;
  border-color: #ccc;
  margin: 5px 0px 5px 0px;
}
.section-news__tooltip{
    color: aliceblue;
    padding: 10px;
}.section-news__tooltip a{
    text-decoration: underline;
}
.section-hero__slide img {
    height: auto;
}
.button-icon{
    text-decoration: none !important;
}
.ye-block-5 {
  position: relative;
  padding-block: 30px;
  overflow: hidden;
  row-gap: 50px;
}

.pt35{
    font-size: 35px;
}
@media (max-width: 1279.98px) {
  .pt35 {
    font-size: 30px;
  }
}
@media (max-width: 1023.98px) {
  .pt35 {
    font-size: 25px;
  }
}
@media (max-width: 479.98px) {
  .pt35 {
    font-size: 20px;
  }
}

  .ptcenter{
      justify-content: center;
  }

/* Деталка «Технологии Моспрома»: ссылки в тексте статьи.
   Только внутри абзацев и пунктов списка — карточки заводов не трогаем. */
.directory-detail__content .directory-detail__section p a,
.directory-detail__content .directory-detail__section li a {
    color: #17658c;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color .22s ease, background-color .22s ease;
}

.directory-detail__content .directory-detail__section p a:hover,
.directory-detail__content .directory-detail__section p a:focus-visible,
.directory-detail__content .directory-detail__section li a:hover,
.directory-detail__content .directory-detail__section li a:focus-visible {
    color: #2a3958;
    background-color: rgba(23, 101, 140, .1);
}

/* Деталка «Технологии Моспрома»: убираем дублирование маркеров списка
   (нативный из .detail__body ul li + кастомный .directory-detail__section li::before) */
.detail__body.directory-detail__content .directory-detail__section ul,
.detail__body.directory-detail__content .directory-detail__section ul li {
    list-style: none;
    margin-left: 0;
}

.detail__body.directory-detail__content .directory-detail__section ul li::marker {
    content: none;
}

/* Алфавитный указатель: латиница отдельным рядом ниже кириллицы */
.directory__alphabet-letters--latin {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

/* «Лица Моспрома»: всплывающий слой просмотра видео блока «Пять минут» */
body.faces-video-popup-open {
    overflow: hidden;
}

.faces-video-popup {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.faces-video-popup[hidden] {
    display: none;
}

.faces-video-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 25, 38, .86);
    backdrop-filter: blur(3px);
}

.faces-video-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
}

.faces-video-popup__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}

.faces-video-popup__media video,
.faces-video-popup__media iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}

.faces-video-popup__close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(1, 35, 52, .72);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.faces-video-popup__close svg {
    width: 22px;
    height: 22px;
}

.faces-video-popup__close:hover,
.faces-video-popup__close:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, .18);
    outline: 0;
}

@media (max-width: 767.98px) {
    .faces-video-popup {
        padding: 14px;
    }

    .faces-video-popup__close {
        top: 6px;
        right: 6px;
        width: 40px;
        height: 40px;
    }
}

/* Видеогалерея (sprint.editor my_video_gallery): нейтральный фон, наследует
   контекст страницы. Стрелки — тёмная подложка с белой иконкой, видны на любом фоне. */
.sp-video-gallery {
    margin: 56px 0;
}

.sp-video-gallery__viewport {
    position: relative;
    min-width: 0;
}

.sp-video-gallery__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 36px) / 3);
    gap: 18px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.sp-video-gallery__grid::-webkit-scrollbar {
    display: none;
}

.sp-video-gallery__card {
    position: relative;
    aspect-ratio: 16 / 9;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(24, 52, 95, .16);
    border-radius: 20px;
    background: rgba(24, 52, 95, .08);
    scroll-snap-align: start;
}

.sp-video-gallery__card>video,
.sp-video-gallery__card>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: filter .25s ease, transform .35s ease;
}

.sp-video-gallery__card:hover>video,
.sp-video-gallery__card:focus-within>video {
    filter: brightness(1.05);
    transform: scale(1.01);
}

.sp-video-gallery__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sp-video-gallery__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}

.sp-video-gallery__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(10px, 1.1vw, 15px);
    background: linear-gradient(0deg, rgba(1, 35, 52, .96) 0, rgba(1, 35, 52, .62) 30%, transparent 68%);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
}

.sp-video-gallery__card:hover .sp-video-gallery__overlay,
.sp-video-gallery__card:focus-within .sp-video-gallery__overlay {
    opacity: 1;
    transform: none;
}

.sp-video-gallery__overlay h3 {
    margin: 0;
    font-size: clamp(16px, 1.05vw, 19px);
    line-height: 1.14;
    font-weight: 400;
}

.sp-video-gallery__overlay>p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 400;
}

.sp-video-gallery__control {
    position: absolute;
    z-index: 4;
    top: 8px;
    right: 8px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(1, 35, 52, .48);
    color: #fff;
    backdrop-filter: blur(5px);
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease, color .2s ease, background-color .2s ease;
}

.sp-video-gallery__card:hover .sp-video-gallery__control,
.sp-video-gallery__card:focus-within .sp-video-gallery__control,
.sp-video-gallery__control.is-playing {
    opacity: 1;
}

.sp-video-gallery__control:focus-visible,
.sp-video-gallery__control:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .15);
    outline: 0;
}

.sp-video-gallery__control svg {
    width: 45%;
    height: 45%;
}

.sp-video-gallery__controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}

.sp-video-gallery__nav {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: .55;
    transition: background-color .2s ease, opacity .2s ease;
}

.sp-video-gallery__nav svg {
    display: block;
    width: 24px;
    height: 24px;
}

.sp-video-gallery__nav:focus-visible,
.sp-video-gallery__nav:hover {
    background: rgba(255, 255, 255, .16);
    opacity: 1;
    outline: 0;
}

.sp-video-gallery__nav[disabled] {
    opacity: .22;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 1023.98px) {
    .sp-video-gallery__grid {
        grid-auto-columns: calc((100% - 18px) / 2);
    }
}

@media (max-width: 767.98px) {
    .sp-video-gallery {
        margin: 40px 0;
    }

    .sp-video-gallery__controls {
        margin-bottom: 12px;
    }

    .sp-video-gallery__grid {
        grid-auto-columns: 100%;
        gap: 12px;
    }

    .sp-video-gallery__overlay {
        padding: 11px;
        opacity: 1;
        transform: none;
    }

    .sp-video-gallery__control {
        top: 7px;
        right: 7px;
        width: 48px;
        height: 48px;
        opacity: 1;
    }

    .sp-video-gallery__nav {
        width: 42px;
        height: 42px;
    }
}

/* FLIP-блок (sprint.editor my_flip): видео на обороте заполняет весь фон.
   Классы pt35 (размер текста) и ptcenter (центрирование) уже определены выше. */
.flip-card__back video.flip-card__image {
    object-fit: cover;
}

/* Видео-анонс в карточках архива «Лица Моспрома» (VIDEO_ANONS).
   Медиа-обёртка становится <div> с <video> и кнопкой play/pause — поведение
   как в слайдере «Новые лица» (featured). */
.faces-mosprom__card-media > video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    background: var(--faces-bg-dark);
    transition: filter 0.25s ease;
}

.faces-mosprom__card-media:hover > video,
.faces-mosprom__card-media:focus-within > video {
    filter: brightness(1.08);
}

.faces-mosprom__card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    color: #fff;
}

.faces-mosprom__card-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.faces-mosprom__card-video-control {
    position: absolute;
    top: 34px;
    left: 14px;
    z-index: 4;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(1, 35, 52, 0.48);
    color: #fff;
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.faces-mosprom__card-video-control svg {
    width: 45%;
    height: 45%;
}

.faces-mosprom__card-video-control:focus-visible,
.faces-mosprom__card-video-control:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.15);
    outline: 0;
}
