/* Header layout follows the existing Sors theme. 2026-11-02 */
.header__logo { width: auto; display: flex; align-items: center; }

.header__logo > a { display: block; max-width: 130px; padding-right: 12px; border-right: 1px solid var(--accentColor); }

.header__block { max-width: 350px; padding-left: 16px; font-size: 15px; margin: auto; }

.header__title + .header__subtitle { margin-top: 10px; opacity: 0.8; font-size: 0.65em; }

.header__title__main { text-transform: uppercase; font-size: 16px; line-height: 1.3; }

@media screen and (min-width: 0px) and (max-width: 960px) {
.header__title { font-size: 14px; }
}

@media screen and (min-width: 0px) and (max-width: 512px) {
.header__title { font-size: 12px; }
}

@media screen and (max-width: 780px) {
.header__block { font-size: 13px; }
}

@media screen and (max-width: 780px) {
.header__logo > a { max-width: 100px; }
}

@media screen and (min-width: 0px) and (max-width: 780px) {
.topMenu__contact { width: 100%; text-align: right; }
}

/* Prizma top slider: uncropped images in a responsive 2:1 panel. 2026-11-03 */
.topSlider._prizmaWideImages .topSlider__item {
    height: auto; padding-top: 0; min-height: 0;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch; background: #fff;
}
.topSlider._prizmaWideImages .topSlider__image {
    position: static; order: 2; width: 100%; height: auto; padding-top: 0;
    aspect-ratio: 2 / 1; align-self: stretch;
    background-size: contain; background-repeat: no-repeat; background-position: center;
}
.topSlider._prizmaWideImages .topSlider__content {
    position: static; order: 1; width: 100%; height: auto; min-width: 0;
    display: flex; align-items: center;
}
.topSlider._prizmaWideImages .topSlider__content > .row__content {
    position: static; top: auto; left: auto; transform: none;
    width: 100%; height: auto; padding: 28px 36px 28px 80px;
    flex-direction: column; align-items: flex-start; justify-content: center;
}
.topSlider._prizmaWideImages .topSlider__title {
    font-size: clamp(22px, 2.1vw, 30px); line-height: 1.2; margin: 0 0 16px;
}
.topSlider._prizmaWideImages .topSlider__description {
    font-size: 16px; line-height: 1.35; margin: 0 0 20px;
}
@media screen and (max-width: 780px) {
    .topSlider._prizmaWideImages .topSlider__item { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .topSlider._prizmaWideImages .topSlider__image { order: 0; }
    .topSlider._prizmaWideImages .topSlider__content > .row__content { padding: 24px 20px; }
    .topSlider._prizmaWideImages .topSlider__title { font-size: 22px; }
}

/* Compact footer back-to-top control. 2026-11-03 */
.footer__iconText.top-btn { height: 44px; min-width: 96px; padding: 0 14px; border-radius: 22px; }
.footer__iconText.top-btn .iconText { flex-direction: row; justify-content: center; gap: 7px; padding: 0; }
.footer__iconText.top-btn .iconText::before { width: 18px; height: 18px; background-size: contain; flex-shrink: 0; }
.footer__iconText.top-btn .iconText__text { margin-top: 0; font-size: 14px; line-height: 1; }

/* Prizma social panel, using the existing publisher block. 2026-11-03 */
.socials-block { background: #f5f7fa; border-left: 4px solid var(--accentBackground); border-radius: 0 16px 16px 0; padding: 28px 32px; gap: 24px; }
.socials-block__socials { flex: 1 1 100%; min-height: 0; padding: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.socials-block .social-title { margin: 0; font-size: 26px; line-height: 1.25; text-transform: none; }
.socials-block .socials { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.socials-block .socials__item { margin: 0; list-style: none; }
.socials-block .socials__link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 10px 20px; border-radius: 12px; background-color: #fff; border: 1px solid #dce4ed; font-size: 17px; font-weight: 600; color: #1769aa; text-decoration: none; }
.socials-block .socials__link[href*="vk.com"]::before { content: ""; width: 32px; height: 32px; flex-shrink: 0; background: url('/css/theme-Prizma/img/socials-block/vk_icon.svg') center / contain no-repeat; }
.socials-block .socials__item .socials__link:hover { animation: none; opacity: 1; background-color: #eaf3fc; border-color: #1769aa; }
.socials-block .socials__link:focus-visible { outline: 2px solid #1769aa; outline-offset: 3px; }
@media screen and (max-width: 780px) {
 .socials-block { padding: 22px 20px; }
 .socials-block__socials { min-height: 0; gap: 18px; }
 .socials-block .social-title { font-size: 22px; }
}

/* Compact decorative footer band with the existing SORS pictogram. 2026-11-03 */
.footer::before { height: 64px; min-height: 64px; flex-shrink: 0; background-image: url('https://sa-ms.ru/media/bgabqaib/icon_podval-4.svg'); background-size: auto 44px; background-position: 40px center; }
@media screen and (max-width: 780px) { .footer::before { height: 52px; min-height: 52px; background-size: auto 34px; background-position: 28px center; } }

/* Project dropdown: keep nested links inside the existing header menu. 2026-11-03 */
.header__menu .topMenu { display:flex; flex-wrap:wrap; justify-content:center; gap:0; }
.header__menu .topMenu > .topMenu__item { position:relative; flex:0 0 auto; }
.header__menu .subMenu__wrap { display:none; position:absolute; top:100%; right:0; width:420px; max-width:calc(100vw - 32px); background:#fff; border:1px solid #e5e5e5; box-shadow:0 8px 20px #0002; z-index:1000; padding:12px; }
.header__menu .topMenu__item:hover > .subMenu__wrap, .header__menu .topMenu__item:focus-within > .subMenu__wrap { display:block; }
.header__menu .subMenu__wrap .row__content { display:block; width:100%; padding:0; margin:0; }
.header__menu .subMenu__wrap .row__1-3 { width:100%; float:none; margin:0; padding:0; }
.header__menu .subMenu { margin:0; padding:0; list-style:none; }
.header__menu .subMenu__item { margin:0; padding:0; list-style:none; }
.header__menu .subMenu__link { display:block; padding:10px 12px; white-space:normal; line-height:1.4; text-decoration:none; }
.header__menu .subMenu__link:hover { background:#f5f7fa; }
@media(max-width:780px) { .header__menu .subMenu__wrap { position:static; width:100%; max-width:100%; box-shadow:none; border:0; } }

/* News illustration spacing, 2026-11-03 */
.article-list-wrapper .side-block__base > .row__full:has(> .row__figure) + .text { margin-top: 24px; }
.article-list-wrapper .row__figure img { display: block; max-width: 100%; height: auto; }

/* Link appearance across Prizma, 2026-11-03 */
a, a:visited, a:hover, a:focus, a:active { text-decoration: none !important; }

/* Project headers: preserve native desktop/mobile image proportions. 2026-11-03 */
.simpleBigImage { height: 0 !important; min-height: 0 !important; padding-top: var(--proportionDesk, 23.4375%) !important; background-size: 100% 100% !important; background-repeat: no-repeat; }
@media (max-width: 767px) { .simpleBigImage { padding-top: var(--proportionMobile, 50%) !important; background-image: var(--imageMobileUrl) !important; } }

.simpleBigImage { width: 100% !important; box-sizing: border-box; padding-left: 0 !important; padding-right: 0 !important; }

/* Existing social icons from our site themes. 2026-11-03 */
.socials-block .socials__link[href*="ok.ru"]::before,
.socials-block .socials__link[href*="vkvideo.ru"]::before { content: ""; width: 32px; height: 32px; flex: 0 0 32px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.socials-block .socials__link[href*="ok.ru"]::before { background-image: url("/css/theme-Prizma/img/socials-block/ok_icon.svg"); }
.socials-block .socials__link[href*="vkvideo.ru"]::before { background-image: url("https://oooibrs.ru/css/theme-SpLight/img/vkVideo.svg"); }

/* Match the existing pale monochrome social icon palette. */
.socials-block .socials__link[href*="vkvideo.ru"]::before { filter: grayscale(1); opacity: .3; }

/* Mobile header: keep contacts and navigation in document flow. 2026-11-04 */
@media screen and (max-width: 780px) {
 .header, .header._menu_open { position: relative; width: 100%; height: auto; overflow: visible; transition: none; }
 .header__wrap { display: grid; grid-template-columns: 60px minmax(0, 1fr) 40px; align-items: center; gap: 12px; }
 .header__logo { width: 60px; }
 .header__logo > a { width: 60px; max-width: 60px; padding-right: 10px; box-sizing: border-box; }
 .header__block { min-width: 0; max-width: none; margin: 0; padding: 0; }
 .header__title__main { font-size: 12px; line-height: 1.35; }
 .header .burger { position: relative; top: auto; right: auto; grid-column: 3; grid-row: 1; }
 .header .header-options { position: static; grid-column: 1 / -1; grid-row: 2; width: auto; height: auto; min-width: 0; padding: 8px 0 0; gap: 12px; visibility: visible; opacity: 1; transition: none; border-bottom: 0; }
 .header-options .header-search { padding: 0; flex: 0 0 22px; }
 .header-options .topMenu__contact { width: auto; margin: 0 0 0 auto; font-size: 14px; line-height: 1.4; }
 .header-options .topMenu__contact p { margin: 0; }
 .header__menu { display: none; position: static; width: 100%; height: auto; padding: 0; overflow: visible; visibility: visible; transform: none; transition: none; }
 .header__menu._menu_open { display: block; }
}

@media screen and (max-width: 780px) {
 .header > .header__container, .header__menu > .header__container { max-height: none !important; height: auto !important; }
 .header .header-search::before { display: none; }
}

/* Full-width footer navigation, Prizma, 2026-11-05 */
.footer__content { flex-wrap: wrap; }
.footer__navigation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; width: 100%; max-width: none; flex: 0 0 100%; }
.footer__navigation .footer__colMenu { width: auto; max-width: none; margin: 0; padding: 0; }
.footer__content > .footer__iconText.top-btn { margin-left: auto; margin-top: 18px; }
@media (max-width: 780px) { .footer__navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
@media (max-width: 400px) { .footer__navigation { grid-template-columns: 1fr; } }

/* Compact native direction tiles with icons, 2026-11-05 */
.tile__collection._withIconsAndRepeatLink { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 24px; }
.tile__collection._withIconsAndRepeatLink .tile__item { width:auto;min-height:82px;height:auto;max-width:none;margin:0;padding:12px 14px 12px 76px;position:relative;box-shadow:none;background:transparent;border:1px solid #e3e9ed;border-radius:8px; }
.tile__collection._withIconsAndRepeatLink .tile__photo { position:absolute;left:14px;top:18px;width:46px;height:46px;padding:0;margin:0; }
.tile__collection._withIconsAndRepeatLink .tile__photo img { width:46px;height:46px;object-fit:contain; }
.tile__collection._withIconsAndRepeatLink .tile__overlay { display:none; }
.tile__collection._withIconsAndRepeatLink .tile__text { position:static;padding:0;margin:0; }
.tile__collection._withIconsAndRepeatLink .tile__link { display:block;position:static;background:none;color:inherit;border-radius:0;box-shadow:none;padding:0;min-height:0; }
.tile__collection._withIconsAndRepeatLink .tile__title { font-size:16px;line-height:1.3; }
.tile__collection._withIconsAndRepeatLink .tile__repeating-link { position:static;display:block;margin-top:6px;font-size:13px; }
@media(max-width:780px){.tile__collection._withIconsAndRepeatLink{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:512px){.tile__collection._withIconsAndRepeatLink{grid-template-columns:1fr;}}

.tile__collection._withIconsAndRepeatLink .tile__item { display:block; }
.tile__collection._withIconsAndRepeatLink .tile__text { width:100%;text-align:left;transform:none; }
.tile__collection._withIconsAndRepeatLink .tile__title { display:block;text-align:left;margin:0; }
.tile__collection._withIconsAndRepeatLink .tile__repeating-link { display:none; }

/* Direction hover matches heading blue. 2026-11-05 */
.tile__collection._withIconsAndRepeatLink .tile__link:hover { background-color: #1889F1; color: #fff; }

/* Preserve publisher letter case in the Prizma header. 2026-11-05 */
.header__title__main { text-transform: none; }

.header__title__main::after { content:"официальный сайт";display:block;text-transform:none;font-size:14px;font-weight:400;line-height:1.4;margin-top:5px;white-space:nowrap; }

/* Compact news header and back navigation, 2026-11-05 */
.row:has(> .row__content > .row__full > .prew-btn) { padding-top:14px;padding-bottom:20px; }
.article-list-wrapper > .row.side-wrapper._noMarginBottom:has(h1) { padding-top:10px; }
.article-list-wrapper > .row.side-wrapper._noMarginBottom:has(h1) h1 { margin-top:8px;margin-bottom:14px; }
.article-list-wrapper > .row.side-wrapper._noMarginBottom:has(h1) + .row.side-wrapper { padding-top:12px; }

/* Mobile layout review: compact header and readable article. 2026-11-05 */
@media(max-width:780px){
.header__title__main { font-size:11px;line-height:1.3; }
.header__title__main::after { font-size:12px;margin-top:3px; }
.header-options { padding-top:4px; }
.header-options .topMenu__contact:empty { display:none; }
.header-options .topMenu__contact p { margin:0;font-size:12px;line-height:1.4; }
.header__container { padding-top:8px;padding-bottom:8px; }
.article-list-wrapper .row.side-wrapper { margin-left:0;margin-right:0;max-width:100%; }
.article-list-wrapper h1 { font-size:25px;line-height:1.25;overflow-wrap:anywhere; }
.article-list-wrapper .text { overflow-wrap:anywhere; }
.footer__navigation { gap:20px; }
}
