/* ============================================================
   ZERX — кастомные правки темы (custom.css)
   Подключается в main.tpl ПОСЛЕ fontawesome.css.
   ============================================================ */

/* ============================================================
   ДИЗАЙН-ТОКЕНЫ ZERX  ← ФИРМЕННЫЙ СТИЛЬ (палитра бургер-меню)
   Единый источник цветов. Внедрять ВЕЗДЕ по сайту через var(--zx-*),
   чтобы менять стиль в одном месте. Значения = реальные цвета бургера.
   ============================================================ */
:root {
    /* поверхности: от самой тёмной к светлой */
    --zx-bg-deep:    #0a1626;   /* дно панелей */
    --zx-bg:         #0e1c30;   /* база фона */
    --zx-surface:    #11233c;   /* панель */
    --zx-surface-2:  #14273f;   /* карточка / плитка */
    --zx-surface-3:  #1b355a;   /* ховер / активный инпут */
    --zx-input:      #0c1a2e;   /* фон полей ввода (как в бургере/попапе) */
    /* фирменные градиенты бургера */
    --zx-head-grad:  linear-gradient(135deg, #1b3a63 0%, #112a49 100%); /* брендовая «шапка» панели */
    --zx-panel-grad: linear-gradient(180deg, #11233c 0%, #0a1626 100%); /* тело панели */
    /* линии */
    --zx-border:     #25395a;   /* бордеры инпутов/карточек */
    --zx-divider:    #1d2f49;   /* тонкие разделители */
    /* текст */
    --zx-text:       #e8eef6;   /* основной */
    --zx-text-muted: #6c819e;   /* приглушённый / плейсхолдер */
    --zx-text-soft:  #7daccd;   /* мягкие ссылки */
    /* акценты */
    --accent:        #DA2130;   /* красный (совместимость с var(--accent,...)) */
    --zx-accent:     #DA2130;   /* красный акцент */
    --zx-accent-2:   #ff6a3d;   /* оранжевый акцент */
    --zx-focus:      #3d82e6;   /* фокус-бордер */
    --zx-primary-grad: linear-gradient(135deg, #389bff, #1f5fb0, #389bff); /* кнопки-свечение */
}

/* ============================================================
   ШАПКА — верхняя зона (логотип + Вход/Регистрация) в фирменном
   бургер-стиле: тот же градиент, что у «головы» бургер-панели.
   ============================================================ */
.header__site-links {
    background: var(--zx-head-grad) !important;
    border-bottom: 1px solid var(--zx-divider) !important; /* было жёсткое #000 */
    height: 65px !important; /* было 80px — слишком высоко */
}
/* нижняя полоса (меню + поиск) — тёмное «тело» панели, как у бургера (было #194479) */
.header__site-nav {
    background: var(--zx-surface) !important;
}

/* ---- Вход / Регистрация — ТЕКСТ в бургер-стиле (НЕ кнопки) ---- */
.header__entry-point-links {
    display: flex; align-items: center; justify-content: flex-end; gap: 20px;
    padding: 0 !important; height: 65px;
}
.header__entry-point-trigger {
    margin: 0 !important; padding: 0; border: 0; background: none !important; white-space: nowrap;
    font-family: OpenSans-Semibold, sans-serif; font-size: 14px; line-height: 1;
    color: var(--zx-text-soft) !important;   /* мягкий голубой, как ссылки бургера */
    transition: color .15s;
}
.header__entry-point-trigger:hover { color: #fff !important; }
/* Вход / Кабинет (триггер попапа) — чуть ярче (основное действие), ховер — оранжевый акцент */
.header__entry-point-trigger.js-show-login { color: #fff !important; }
.header__entry-point-trigger.js-show-login:hover { color: var(--zx-accent-2) !important; }

/* ============================================================
   МОБИЛЬНОЕ БУРГЕР-МЕНЮ  (рендерится только внутри #mobile-menu)
   ============================================================ */

/* исходник скрыт жёстко через .m-burger-host[style=display:none] в шаблоне.
   Клон в #mobile-menu виден: */
#mobile-menu .m-burger { display: block; }

/* контейнер панели */
#mobile-menu {
    background: linear-gradient(180deg, #11233c 0%, #0a1626 100%);
    width: min(88vw, 372px);
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
/* закрытое состояние — панель полностью за левым краем (по её адаптивной ширине),
   иначе при широкой панели правый край торчит слева. Открытое = left:0. */
#mobile-menu { left: calc(-1 * min(88vw, 372px)) !important; }
.mobile-menu-is-opened #mobile-menu { left: 0 !important; }
#mobile-menu .m-burger { padding: 0 16px 22px; color: #e8eef6; }

/* кнопка закрытия показывается ТОЛЬКО когда бургер открыт — иначе fixed-кнопка
   с высоким z-index перекрывала шапку и триггер попапа профиля («Кабинет»/аватар).
   Позиция — правый-верх панели, привязка к её левому краю (надёжнее вьюпорта). */
.mobile-menu-close { display: none !important; }
.mobile-menu-is-opened .mobile-menu-close {
    display: flex !important;
    position: fixed !important;
    top: 9px !important;
    left: calc(min(88vw, 372px) - 50px) !important;
    right: auto !important; bottom: auto !important; margin: 0 !important;
    width: 38px !important; height: 38px !important;
    align-items: center; justify-content: center;
    background: #1b3a63 !important;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 3px; color: #fff; z-index: 100000;
}

/* ---- шапка ---- */
.m-burger__head {
    display: flex; align-items: center;
    margin: 0 -16px 14px; padding: 16px;
    background: linear-gradient(135deg, #1b3a63, #112a49);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.m-burger__brand {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: OpenSans-Bold, sans-serif; font-size: 22px; letter-spacing: .5px;
    text-transform: uppercase; color: #fff;
}
.m-burger__heart { font-size: 17px; line-height: 1; }

/* ---- поиск (поле и кнопка одной высоты) ---- */
.m-burger__search { display: flex; gap: 8px; margin-bottom: 14px; }
.m-burger__search-input {
    flex: 1; min-width: 0; height: 46px; padding: 0 14px;
    background: #0c1a2e; border: 1px solid #25395a; border-radius: 3px;
    color: #e8eef6; font-size: 14px;
}
.m-burger__search-input::placeholder { color: #6c819e; }
.m-burger__search-input:focus { outline: none; border-color: #3d82e6; box-shadow: 0 0 0 2px rgba(61,130,230,.22); }
.m-burger__search-btn {
    width: 50px; height: 46px; flex: none; cursor: pointer;
    border: 0; border-radius: 3px; color: #fff; font-size: 16px;
    background: linear-gradient(135deg, #389bff, #1f5fb0, #389bff);
    background-size: 220% 220%;
    animation: btnGlow 3.2s ease infinite;
}
.m-burger__search-btn:hover { filter: brightness(1.12); }
.m-burger__search-btn:active { transform: translateY(1px); }
@keyframes btnGlow {
    0%, 100% { background-position: 0% 50%;  box-shadow: 0 2px 10px rgba(56,155,255,.35); }
    50%      { background-position: 100% 50%; box-shadow: 0 2px 18px rgba(56,155,255,.65); }
}

/* ---- плитки навигации (компактнее) ---- */
.m-burger__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.m-tile {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 66px; padding: 10px; text-align: center;
    background: #14273f; border: 1px solid #25395a; border-radius: 3px;
    color: #d7e3f2; transition: background .15s, border-color .15s;
}
.m-tile:active { background: #1a3050; }
.m-tile__ico { font-size: 21px; color: #5b9fe0; }
.m-tile__label {
    font-family: OpenSans-Bold, sans-serif; font-size: 12.5px;
    text-transform: uppercase; letter-spacing: .3px; color: #e8eef6;
}
.m-tile--wide { grid-column: 1 / -1; flex-direction: row; gap: 10px; min-height: 50px; }

/* сочная (насыщенная) плитка-акцент — для новинок */
.m-tile--hot {
    background: linear-gradient(135deg, #4a2a92 0%, #281552 100%);
    border-color: #5e3aa8;
    box-shadow: 0 3px 15px rgba(80, 45, 150, .30);
}
.m-tile--hot .m-tile__ico { color: #d4c4f5; }
.m-tile--hot .m-tile__label { color: #fff; }

/* анимированный бейдж NEW */
.m-tile__new {
    position: absolute; top: 6px; right: 6px; z-index: 2;
    font: 700 9px/1 OpenSans-Bold, sans-serif; letter-spacing: .6px; color: #fff;
    padding: 3px 5px; border-radius: 3px;
    background: linear-gradient(135deg, #ff6a3d, #e11d48);
    animation: newPulse 1.6s ease-in-out infinite;
}
@keyframes newPulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(225,29,72,.55); }
    50%      { transform: scale(1.09); box-shadow: 0 0 9px 2px rgba(225,29,72,.45); }
}

/* ---- кнопки действий ---- */
.m-burger__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.m-btn {
    flex: 1 1 auto; min-width: 0;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 12px; cursor: pointer;
    background: #14273f; border: 1px solid #25395a; border-radius: 3px;
    color: #d7e3f2; font-family: OpenSans-Semibold, sans-serif; font-size: 13px; white-space: nowrap;
}
.m-btn:active { filter: brightness(1.1); }
.m-btn [class*="fa-"] { color: #5b9fe0; }
.m-btn--primary { background: linear-gradient(135deg, #2f7fe0, #1f5fb0); border-color: #3d82e6; color: #fff; }
.m-btn--primary [class*="fa-"] { color: #fff; }

/* ---- лейбл каталога ---- */
.m-burger__cat-label {
    font-family: OpenSans-Bold, sans-serif; font-size: 11px; letter-spacing: 1.6px;
    text-transform: uppercase; color: #6c819e; margin: 4px 2px 6px;
}

/* ---- аккордеон (нативные details/summary, без JS) ---- */
.m-burger__catalog { border-top: 1px solid #1d2f49; }
.m-acc { border-bottom: 1px solid #1d2f49; }
.m-acc__head {
    display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
    padding: 14px 4px;
    font-family: OpenSans-Bold, sans-serif; font-size: 14px; letter-spacing: .3px;
    text-transform: uppercase; color: #e8eef6;
}
.m-acc__head::-webkit-details-marker { display: none; }
.m-acc__ico { color: #5b9fe0; font-size: 16px; width: 20px; text-align: center; }
.m-acc__chev { margin-left: auto; color: #6c819e; font-size: 13px; transition: transform .2s; }
.m-acc[open] > .m-acc__head .m-acc__chev { transform: rotate(180deg); }
.m-acc[open] > .m-acc__head { color: #6fb0f0; }
.m-acc[open] > .m-acc__head .m-acc__ico { color: #6fb0f0; }

.m-acc__list { list-style: none; margin: 0; padding: 2px 4px 12px 36px; }
.m-acc__list li { margin: 0; }
.m-acc__list a {
    display: block; padding: 8px 0; font-size: 13.5px; color: #aebfd6;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.m-acc__list li:last-child a { border-bottom: 0; }
.m-acc__list a:active, .m-acc__list a:hover { color: #fff; }
.m-acc__list .criteria-list__text { color: inherit; }
/* нормализуем пункты жанров (catmenu) под общий вид списка */
.m-acc__list .criteria-list__item { background: none; margin: 0; padding: 0; }
.m-acc__list .criteria-list__item::before,
.m-acc__list .criteria-list__item::after { content: none; display: none; }
.m-acc__list .criteria-list__item > a { display: block; padding: 8px 0; }

/* ---- подвал ---- */
.m-burger__foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid #1d2f49; text-align: center; }
.m-burger__foot > a { color: #7daccd; font-size: 13px; }
.m-burger__copy { margin-top: 8px; color: #5e7596; font-size: 12px; }


/* ============================================================
   ВЫПАДАШКА ПОИСКА (KP-стиль)  →  #searchsuggestions
   Рендер: engine/lazydev/dle_search/ajax_news.tpl + ajax_block.tpl
   Все правила префиксованы #searchsuggestions — чтобы перебить
   engine.css «#searchsuggestions span{display:block}» по специфичности.
   ============================================================ */

/* карточка-контейнер (перебивает engine.css width:300px) */
#searchsuggestions {
    width: min(480px, calc(100vw - 20px)) !important;
    max-height: min(72vh, 580px);
    overflow-y: auto; overflow-x: hidden;
    background: #0e1c30;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 3px;
    box-shadow: 0 14px 40px rgba(0,0,0,.55);
    padding: 0;
    color: #e8eef6;
}
/* engine.css насильно делает все span block — возвращаем инлайн внутри строк */
#searchsuggestions .zsr span,
#searchsuggestions .zss__head span { display: inline; font-size: inherit; }

/* тонкий скроллбар */
#searchsuggestions::-webkit-scrollbar { width: 8px; }
#searchsuggestions::-webkit-scrollbar-thumb { background: #25395a; border-radius: 4px; }

/* --- шапка «Все результаты поиска (N)» --- */
#searchsuggestions .zss__head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 16px;
    background: linear-gradient(135deg, #15294a, #0d1b2f);
    border-bottom: 1px solid rgba(255,255,255,.07);
    position: sticky; top: 0; z-index: 2;
    font-family: OpenSans-Bold, sans-serif; font-size: 14px;
    color: #e6eef8;
}
#searchsuggestions .zss__head:hover { color: #fff; background: linear-gradient(135deg, #1b355a, #102140); }
#searchsuggestions .zss__head b { color: var(--accent, #DA2130); }
#searchsuggestions .zss__head-arr { font-size: 13px; flex: none; opacity: .85; }

/* --- строка результата --- */
#searchsuggestions .zsr {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .12s;
}
#searchsuggestions .zsr:hover { background: rgba(61,149,238,.09); }
#searchsuggestions .zss__list .zsr:last-child { border-bottom: 0; }

/* постер */
#searchsuggestions .zsr__poster {
    position: relative; flex: none;
    width: 60px; height: 90px; border-radius: 3px; overflow: hidden; background: #1b355a;
}
#searchsuggestions .zsr__poster-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* центральная часть (4 строки: название / ориг / качество / категория) */
#searchsuggestions .zsr__main {
    flex: 1 1 auto; min-width: 0;
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
#searchsuggestions .zsr__head { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
#searchsuggestions .zsr__title {
    font-family: OpenSans-Bold, sans-serif; font-size: 15.5px; line-height: 1.2; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
#searchsuggestions .zsr:hover .zsr__title { color: #6fb0f0; }
#searchsuggestions .zsr__year { flex: none; font-size: 14px; font-weight: 700; color: #fff; }
#searchsuggestions .zsr__year::before { content: "("; }
#searchsuggestions .zsr__year::after { content: ")"; }
#searchsuggestions .zsr__year a { color: inherit; }
#searchsuggestions .zsr__orig {
    font-size: 12.5px; color: #8aa3c0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* качество — золотым текстом (как в референсе) */
#searchsuggestions .zsr__q {
    font-family: OpenSans-Bold, sans-serif; font-size: 12.5px; font-weight: 700;
    color: #e3b341; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* категория, страна — жирная белая */
#searchsuggestions .zsr__tags {
    min-width: 0; font-family: OpenSans-Semibold, sans-serif; font-size: 12.5px; font-weight: 600;
    color: #e6eef8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#searchsuggestions .zsr__sep { color: #8aa3c0; }
#searchsuggestions .zsr__country a, #searchsuggestions .zsr__cat a { color: inherit; }
#searchsuggestions .zsr__country a:hover, #searchsuggestions .zsr__cat a:hover { color: #6fb0f0; }

/* рейтинги КП / IMDb — формат «КП: 5.7», равная ширина, с воздухом */
#searchsuggestions .zsr__rates {
    flex: none; display: flex; flex-direction: column; gap: 7px;
    align-items: stretch; justify-content: center;
}
#searchsuggestions .zsr__rate {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 5px 12px; border-radius: 4px; min-width: 84px;
    font-size: 13px; line-height: 1.25; white-space: nowrap;
}
#searchsuggestions .zsr__rate i { font-style: normal; font-weight: 700; opacity: .95; }
#searchsuggestions .zsr__rate b { font-family: OpenSans-Bold, sans-serif; font-weight: 700; }
#searchsuggestions .zsr__rate--kp { background: linear-gradient(135deg, #ff7a18, #f4631a); color: #fff; }
#searchsuggestions .zsr__rate--imdb { background: #f5c518; color: #1a1300; }

/* «Показать все результаты» */
#searchsuggestions .zss__more {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 12px; font-family: OpenSans-Semibold, sans-serif; font-size: 13px;
    color: #cfe0f2; background: #102140; border-top: 1px solid rgba(255,255,255,.06);
}
#searchsuggestions .zss__more:hover { color: #fff; background: #15294a; }
#searchsuggestions .zss__more-arr { font-size: 13px; }

/* ничего не найдено */
#searchsuggestions .zss__empty { padding: 22px 16px; text-align: center; color: var(--ui-tt-fade, #7daccd); font-size: 13.5px; }


/* ============================================================
   ФОРМЫ ПОИСКА (единый тёмный бургер-стиль) + СТРАНИЦА ?do=search
   ============================================================ */

/* ---- шапочная форма: тёмное поле + ОТДЕЛЬНАЯ кнопка-«свечение» (как «Начать поиск») ---- */
.c-search-box { display: flex; align-items: center; gap: 8px; padding: 6px 0; height: 48px; width: calc(100% - 20px); margin-left: auto; } /* -20px по ширине, прижата вправо (кнопка на месте) */
.c-search-box .c-search-box__label { display: block; flex: 1 1 auto; min-width: 0; position: relative; margin: 0; }
.c-search-box .c-search-box__input {
    width: 100%; height: 35px; padding: 6px 14px;
    background: var(--zx-input); color: var(--zx-text); border: 1px solid var(--zx-border); border-radius: 3px;
}
.c-search-box .c-search-box__input::placeholder { color: #b3c6df; opacity: 1; }
.c-search-box .c-search-box__input:focus { border-color: #3d82e6; box-shadow: 0 0 0 2px rgba(61,130,230,.22); outline: none; }
/* кнопка поиска — текст «Поиск», тот же эффект-свечение (btnGlow), высота = инпут, без сдвига */
.c-search-box .c-search-box__btn {
    flex: none; height: 33px; padding: 0 20px; cursor: pointer; transform: none; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 3px; color: #fff; white-space: nowrap;
    font-family: OpenSans-Semibold, sans-serif; font-size: 14px;
    background: linear-gradient(135deg, #389bff, #1f5fb0, #389bff); background-size: 220% 220%;
    animation: btnGlow 3.2s ease infinite;
}
.c-search-box .c-search-box__btn:hover { filter: brightness(1.1); }
.c-search-box .c-search-box__btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .c-search-box .c-search-box__btn { animation: none; } }

/* ---- лого в шапке: текст вместо картинки, шрифт как в бургере ---- */
.is-text-logo {
    background: none !important; width: auto !important; height: auto;
    font-family: OpenSans-Bold, sans-serif; line-height: 1;
    letter-spacing: .5px; text-transform: uppercase; color: #fff; white-space: nowrap;
    vertical-align: middle; text-decoration: none;
}
.header__logo.is-text-logo { font-size: 30px; }
.footer__logo.is-text-logo { font-size: 24px; display: inline-block; }
.is-text-logo__tld { font-size: 1em; color: #b9c9df; letter-spacing: .5px; }
.is-text-logo__heart { font-size: .68em; margin-left: 6px; vertical-align: 1px; }

/* ============================================================
   ПОДВАЛ (footer) — фирменный бургер-стиль + текстовое лого
   ============================================================ */
footer[role="contentinfo"] { background: var(--zx-panel-grad); height: auto; } /* тело бургер-панели; height:auto под колонки (было 110px) */
.footer__container-inner { padding: 24px 0 26px !important; border-top: 1px solid var(--zx-divider) !important; height: auto !important; } /* было #333 + height:100% */
.footer__cols { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.footer__col--brand { min-width: 200px; }
.footer__copyrights { color: var(--zx-text-muted); margin-top: 12px; padding-left: 0; }
.footer__col-title {
    color: var(--zx-text); font-family: OpenSans-Bold, sans-serif; text-transform: uppercase;
    font-size: 13px; letter-spacing: .5px; margin-bottom: 12px; position: relative; padding-left: 11px;
}
.footer__col-title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 13px; border-radius: 2px; background: var(--zx-accent); }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin: 0 0 8px; }
.footer__links a { color: var(--zx-text-soft); font-size: 13px; transition: color .15s; }
.footer__links a:hover { color: #fff; }

/* ---- МОБИЛЬНЫЙ футер + SEO-текст ---- */
@media (max-width: 768px) {
    /* футер: сперва «Фильмы 2026» + «Сериалы 2026» в 2 колонки, бренд — НИЖЕ по центру (лого+текст рядом) */
    .footer__cols { gap: 22px 16px; }
    .footer__col { flex: 1 1 40%; min-width: 0; }                 /* 2 колонки ссылок в ряд */
    .footer__col--brand {
        order: 2; flex: 1 1 100%; min-width: 0;
        display: flex; align-items: center; justify-content: center; gap: 14px;
    }
    .footer__col--brand .footer__copyrights { margin-top: 0; text-align: left; }
    /* SEO-текст на главной: крупные заголовки 25px → компактнее */
    .page-description h1, .page-description h2, .page-description h3 { font-size: 18px; line-height: 1.3; }
}

/* ---- меню «Фильмы / новинки», «Сериалы / новинки» (новинки — ярким акцентом) ---- */
/* меню на тёмной полосе: БЕЗ фона (тема ставит .menu{background:#194479} — убираем),
   равномерные отступы, ховер — только цветом (без подложки) */
.category-menu { align-items: center; min-height: 48px; background: transparent !important; } /* min-height = высота полосы → пункты центрируются по вертикали (был прижим к верху) */
.category-menu > li > a { padding: 6px 14px; background: none; border-radius: 0; line-height: 1.5; transition: color .15s; }
.category-menu > li > a:hover { background: none; color: #6fb0f0; }
.category-menu > li.menu-split { display: inline-flex; align-items: center; }
/* внутри «Фильмы / новинки» — узкие отступы, чтобы группа читалась цельно (внешние 14px — как у одиночных) */
.category-menu > li.menu-split > a:first-child { padding-right: 4px; }
.category-menu > li.menu-split > a.menu-new { padding-left: 4px; }
.category-menu > li .menu-sep {
    padding: 0 2px; color: rgba(255,255,255,.38);
    font-family: OpenSans-Bold, sans-serif; font-size: 14px; line-height: 1.5;
}
.category-menu > li a.menu-new {
    color: #ff3b3b; transition: color .15s;
    text-shadow: 0 0 6px rgba(255,59,59,.4);
    animation: menuNewPulse 2.4s ease-in-out infinite;
}
.category-menu > li a.menu-new:hover { color: #ff6a6a; }
@keyframes menuNewPulse { 0%, 100% { text-shadow: 0 0 4px rgba(255,59,59,.25); } 50% { text-shadow: 0 0 11px rgba(255,59,59,.65); } }
@media (prefers-reduced-motion: reduce) { .category-menu > li a.menu-new { animation: none; } }

/* ---- заголовок «Поиск по сайту» с акцент-полоской ---- */
.search-page .serv__subtitle { position: relative; padding-left: 14px; font-size: 22px; margin-bottom: 16px; }
.search-page .serv__subtitle::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 22px; border-radius: 2px; background: var(--accent, #DA2130);
}

/* ---- форма на странице результатов: нейтрализуем табличную обёртку, инпут+кнопка в ряд ---- */
.search-page #fullsearch table,
.search-page #fullsearch tbody,
.search-page #fullsearch tr,
.search-page #fullsearch td.search { display: block; width: 100%; margin: 0; padding: 0; border: 0; }
.search-page #fullsearch td.search > div { margin: 0 !important; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-page #fullsearch #searchinput + br { display: none; }
.search-page #fullsearch #searchinput {
    width: auto !important; flex: 1 1 240px; min-width: 0; height: 46px; padding: 0 14px;
    background: #0c1a2e; border: 1px solid #25395a; border-radius: 3px; color: #e8eef6; font-size: 14px;
}
.search-page #fullsearch #searchinput::placeholder { color: #6c819e; }
.search-page #fullsearch #searchinput:focus { border-color: #3d82e6; box-shadow: 0 0 0 2px rgba(61,130,230,.22); outline: none; }
.search-page #fullsearch #dosearch {
    flex: none; height: 46px; min-width: 120px; padding: 0 22px; cursor: pointer;
    border: 0; border-radius: 3px; color: #fff; font-family: OpenSans-Semibold, sans-serif; font-size: 14px;
    background: linear-gradient(135deg, #389bff, #1f5fb0, #389bff); background-size: 220% 220%;
    animation: btnGlow 3.2s ease infinite;
    transform: none; vertical-align: middle; align-self: center;
}
.search-page #fullsearch #dosearch:hover { filter: brightness(1.1); }
.search-page #fullsearch #dosearch:active { transform: translateY(1px); }

/* кнопка «Расширенный поиск» — вторичная */
.search-page .search-page__btn-ext {
    height: 46px; padding: 0 18px; cursor: pointer;
    background: #14273f; border: 1px solid #25395a; border-radius: 3px; color: #d7e3f2;
    font-family: OpenSans-Semibold, sans-serif; font-size: 13px;
}
.search-page .search-page__btn-ext:hover { background: #1b355a; color: #fff; }

/* ---- блок «По вашему запросу найдено N» → тёмная карточка с акцентом ---- */
.search-page .message-info {
    background: #11233c; border: 1px solid #25395a; border-left: 3px solid var(--accent, #DA2130);
    border-radius: 3px; color: #cfe0f2; box-shadow: none;
}
.search-page .message-info::before {
    background: #0c1a2e; color: var(--accent, #DA2130); border-right: 1px solid #25395a;
}

/* компактность: форму и плашку «найдено N» не растягиваем на всю ширину */
.search-page__simple-form { max-width: 620px; margin-bottom: 16px; }
.search-page .message-info { width: fit-content; max-width: 100%; margin-bottom: 6px; padding-top: 13px; padding-bottom: 13px; }
/* на узких экранах кнопка во всю ширину под инпутом */
@media (max-width: 620px) {
    .search-page #fullsearch td.search > div { gap: 10px; }
    .search-page #fullsearch #dosearch { flex: 1 1 100%; min-width: 0; }
}
/* мобайл: убираем лишнюю пустоту между шапкой и «Поиск по сайту»
   (двойной верхний паддинг вложенных .c-main-section) */
/* search-only, все ширины: внутренняя .search-page — тоже .c-main-section:first-child (pt20),
   бьём по специфичности (0,3,0 > 0,2,0) и убираем лишний верхний паддинг */
.main-content .search-page.c-main-section { padding-top: 0; }
.search-page .serv__subtitle { margin-top: 0; margin-bottom: 14px; }
@media (max-width: 768px) {
    .main-content > .c-main-section:first-child { padding-top: 8px; }
}

/* ============================================================
   ПАГИНАЦИЯ .navigation (была без стилей — голые «1 2»)
   ============================================================ */
.navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 26px 0; }
.navigation .pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.navigation .pages a, .navigation .pages span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 11px; border-radius: 3px;
    font-family: OpenSans-Semibold, sans-serif; font-size: 14px; line-height: 1;
}
.navigation .pages a { background: #14273f; border: 1px solid #25395a; color: #d7e3f2; transition: background .12s, border-color .12s; }
.navigation .pages a:hover { background: #1b355a; border-color: #3d82e6; color: #fff; }
.navigation .pages span { background: var(--accent, #DA2130); border: 1px solid var(--accent, #DA2130); color: #fff; }
.navigation .pages span.nav_ext { background: none; border: 0; color: #6c819e; min-width: auto; height: auto; padding: 0 4px; }
.navigation .page_next-prev { display: flex; gap: 6px; }
/* ВАЖНО: только прямой ребёнок-обёртка (a/span от [prev-link]), НЕ вложенный спан-шеврон —
   иначе коробка 38×38 навешивается и на шеврон (коробка-в-коробке). */
.navigation .page_prev > a, .navigation .page_next > a,
.navigation .page_prev > span, .navigation .page_next > span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 3px;
}
.navigation .page_prev > a, .navigation .page_next > a { background: #14273f; border: 1px solid #25395a; color: #5b9fe0; }
.navigation .page_prev > a:hover, .navigation .page_next > a:hover { background: #1b355a; border-color: #3d82e6; color: #fff; }
.navigation .page_prev > span, .navigation .page_next > span { background: #0e1c30; border: 1px solid #1d2f49; color: #3a4d6a; }
.navigation .page_prev [class*="fa-"], .navigation .page_next [class*="fa-"] { font-size: 15px; line-height: 1; }


/* ============================================================
   ГЛОБАЛЬНО: максимум скругления 3px (предпочтение юзера)
   ============================================================ */
:root { --ui-elem-bdrs: 3px; }
.ui-dialog, .ui-dialog .ui-dialog-titlebar { border-radius: 3px !important; }

/* ============================================================
   ПОПАП ВХОДА (.login) — современный вид в стиле бургера
   ============================================================ */
.login {
    background: linear-gradient(180deg, #122747 0%, #0a1626 100%) !important;
    border: 1px solid rgba(120,170,240,.13) !important; border-radius: 3px !important;
    /* мягкая тёмная тень вместо белого ободка 0 0 0 10px rgba(255,255,255,.2) */
    box-shadow: 0 24px 64px rgba(0,0,0,.62), 0 2px 8px rgba(0,0,0,.4) !important;
    max-width: calc(100vw - 24px); overflow: hidden;
}
.login__header {
    position: relative;
    background: linear-gradient(135deg, #1d4274 0%, #0f2444 100%) !important;
    border-bottom: 1px solid rgba(120,170,240,.12);
}
/* тонкая акцентная линия под шапкой — современный штрих */
.login__header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent, #DA2130) 35%, #ff6a3d 65%, transparent);
    opacity: .55;
}
.login__title { color: #fff; }
.login__title a { color: #8fc0ff; margin-left: 8px; font-weight: 400; }
.login__title a:hover { color: #fff; }
.login__close {
    width: 34px; height: 34px; border-radius: 3px; cursor: pointer; color: #9fb4cf;
    display: inline-flex; align-items: center; justify-content: center; transition: all .18s;
}
.login__close:hover { background: rgba(255,255,255,.08); color: #fff; transform: rotate(90deg); }
.login__content { color: #cfe0f2; }
.login__caption { color: #9fb4cf; }
.login__caption a { color: #8fc0ff; text-decoration: none; }   /* было красное подчёркнутое — мягче */
.login__caption a:hover { color: #fff; text-decoration: underline; }
.login__input input {
    background: #0c1a2e !important; border: 1px solid #25395a !important;
    border-radius: 3px !important; color: #e8eef6 !important; transition: border-color .15s, box-shadow .15s;
}
.login__input input::placeholder { color: #6c819e; }
.login__input input:focus { border-color: #3d82e6 !important; box-shadow: 0 0 0 2px rgba(61,130,230,.22) !important; }
.login__row .fal { color: #5b9fe0; opacity: 1; }
/* кнопка входа — с эффектом-свечением как у поиска */
.login__row button {
    width: 100%; height: 46px; cursor: pointer; border: 0; border-radius: 3px; color: #fff;
    font-family: OpenSans-Semibold, sans-serif; font-size: 15px;
    background: linear-gradient(135deg, #389bff, #1f5fb0, #389bff); background-size: 220% 220%;
    animation: btnGlow 3.2s ease infinite;
}
.login__row button:hover { filter: brightness(1.12); }
/* меню профиля (залогинен) — карточки с приятным ховером */
.login__menu li a { border-radius: 3px; transition: background .15s, border-color .15s, transform .15s, color .15s; }
.login__menu li a:hover { background: #1b355a; transform: translateY(-2px); color: #fff; }
.login__menu a { color: #d7e3f2; }
.login__menu .fal { color: #5b9fe0; transition: color .15s; }
.login__menu li a:hover .fal { color: #6fb0f0; }
.login__social { background: #0c1a2e !important; }
@media (prefers-reduced-motion: reduce) {
    .login__row button { animation: none; }
    .login__close:hover { transform: none; }
}

/* размытие фона за модалкой входа / бургером.
   ПОДХОД: блюрим САМ контент страницы (header + .page-content-wrap-outer + footer)
   через filter:blur — это НАСТОЯЩИЙ чистый блюр, работает во ВСЕХ браузерах.
   (backdrop-filter на части устройств слабый/отключён и давал «грязный экран» с
   читаемыми постерами — отсюда «блюр не очень».)
   .login / .overlay / #mobile-menu — siblings контента, под блюр НЕ попадают.
   .overlay поверх — только тёмная вуаль: сквозь неё видны еле различимые размытые пятна.
   ВАЖНО: у .overlay базовая opacity:0.6 (engine.css) — её трогать нельзя (на ней jQuery
   fadeIn). Поэтому итоговая плотность вуали = bgAlpha × 0.6. Тут .55×0.6 ≈ 0.33
   (мягкая вуаль — сквозь блюр видны очертания постеров, не чёрная стена). */
.overlay {
    background: rgba(8, 11, 19, .55) !important;
}
.header, .page-content-wrap-outer, body > footer { transition: filter .22s ease; }
body.modal-is-opened > .header,
body.modal-is-opened > .page-content-wrap-outer,
body.modal-is-opened > footer,
body.mobile-menu-is-opened > .header,
body.mobile-menu-is-opened > .page-content-wrap-outer,
body.mobile-menu-is-opened > footer {
    filter: blur(10px);
}
/* попап входа — повыше (на планшете центр слишком низко; и не пересечётся с футер-баннером).
   JS центрирует через inline top/transform — перебиваем !important. */
.login {
    top: 12vh !important; left: 50% !important;
    transform: translateX(-50%) !important;
}
