/* =====================================================================
   НОВЫЙ ДИЗАЙН (перенесено из нового шаблона, файл styles.css)
   Шаг 1: переменные + шапка (topbar, header, subnav, мобильное меню)
   ===================================================================== */
:root {
    --red:    #F93F33;
    --yellow: #E9BB59;
    --black:  #000000;
    --gray:   #D8D8D8;
    --white:  #FFFFFF;
    --bg:     #F2F2F2;
    --border: #DFDFDF;
    --text:   #111111;
    --muted:  #888888;
}
*, *::before, *::after { box-sizing: border-box; }

/* ── TOPBAR ── */
.topbar { background: var(--black); padding: 7px 0; font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; }
.topbar a { color: #b3b3b3; text-decoration: none; transition: color .15s; }
.topbar a:hover { color: var(--white); }
.t-pill { border: 1px solid #2a2a2a; padding: 1px 9px; font-size: 10px; transition: all .15s; }
.t-pill.on { background: var(--red); border-color: var(--red); color: var(--white) !important; }
.t-pill:hover:not(.on) { border-color: var(--red); color: var(--red) !important; }

/* ── HEADER ── */
.site-header { background: var(--white); border-bottom: 2px solid var(--black); position: sticky; top: 0; z-index: 1050; }
.hw { display: flex; align-items: stretch; min-height: 64px; }
.logo-stripe { width: 5px; background: var(--red); flex-shrink: 0; }
.logo-area { display: flex; align-items: center; gap: clamp(8px, 1vw, 14px); padding: 0 clamp(14px, 1.6vw, 28px) 0 16px; border-right: 1px solid var(--border); text-decoration: none; flex-shrink: 0; }
.header-logo { height: 10vh; width: auto; max-width: 320px; object-fit: contain; }
.ln { font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--black); white-space: nowrap; }
.ls { font-size: 9px; color: #aaa; letter-spacing: 1.5px; text-transform: uppercase; font-family: 'Jost', sans-serif; white-space: nowrap; }
.nav-area { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-end; padding-left: 4px; }
.nav-area .navbar-nav { flex-wrap: nowrap; }
.h-cta { display: none; }

/* Desktop nav: full menu inline above 1750px */
@media (min-width: 1750px) {
    .navbar-toggler { display: none !important; }
    .collapse.navbar-collapse { display: flex !important; justify-content: flex-end; }
    .nav-area .navbar-nav { flex-direction: row; }
    .h-cta { display: flex; }
    /* Bootstrap only makes .navbar-nav .dropdown-menu absolute via the
       .navbar-expand-* class, which we don't use. Restore it manually.
       !important guards against a legacy global .dropdown-menu{position:static}
       rule elsewhere on the page overriding this. */
    .navbar-nav .dropdown-menu { position: absolute !important; }
}

/* ── SUBNAV (тематическое меню: Университет / Образование / Наука / Контакты) ── */
.subnav { display: none; background: var(--bg); border-bottom: 1px solid var(--border); }
.mnav-secondary--mobile { display: none; }
@media (min-width: 1750px) {
    .subnav { display: block; }
    .subnav .navbar-nav { flex-direction: row; width: 100%; }
    .subnav .navbar-nav > li { flex: 1 1 0; text-align: center; }
    .subnav .navbar-nav > li > .nav-link { display: block; }
    .subnav .mnav .nav-link { padding-top: 16px !important; padding-bottom: 16px !important; }
    .subnav .dropdown-menu { text-align: left; left: 50%; transform: translateX(-50%); }
}
@media (max-width: 1749.98px) {
    .nav-area nav.navbar { flex-direction: column; align-items: stretch; }
    .mnav-secondary--mobile { display: flex; flex-direction: column; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }
}
.mnav .nav-link { font-family: 'Jost', sans-serif; font-size: clamp(12px, 0.98vw, 14.4px); font-weight: 600; letter-spacing: clamp(.46px, .14vw, 1.5px); text-transform: uppercase; color: var(--black) !important; padding: 23px clamp(7px, 0.75vw, 16px) !important; transition: color .15s; position: relative; white-space: nowrap; }
.mnav .nav-link::after { content: ''; position: absolute; bottom: 0; left: 14px; right: 14px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.mnav .nav-link:hover { color: var(--red) !important; }
.mnav .nav-link:hover::after { transform: scaleX(1); }
.mnav .dropdown-menu { background: var(--white) !important; border: 0 !important; border-top: 2px solid var(--red) !important; border-radius: 0 !important; min-width: 230px; padding: 8px 0 !important; box-shadow: 0 12px 40px rgba(0,0,0,.12) !important; z-index: 2000 !important; }
.mnav .dropdown-item { font-size: 12px; color: #555 !important; background: transparent !important; padding: 8px 20px !important; border: 0 !important; }
.mnav .dropdown-item:hover { background: var(--bg) !important; color: var(--red) !important; }
.h-cta { display: flex; align-items: center; flex-shrink: 0; background: var(--red); color: var(--white) !important; font-family: 'Jost', sans-serif; font-size: clamp(10.5px, 0.85vw, 12.5px); font-weight: 700; letter-spacing: clamp(.6px, .15vw, 2px); text-transform: uppercase; white-space: nowrap; padding: 0 clamp(14px, 2vw, 28px); text-decoration: none; transition: background .15s; }
.h-cta:hover { background: #d93329; }

@media (max-width: 420px) {
    .header-logo { max-width: 200px; }
    .logo-area { padding: 0 10px 0 12px; }
}

/* ── MOBILE NAV (below xl breakpoint) ── */
@media (max-width: 1749.98px) {
    .navbar-toggler {
        border: 1px solid var(--black) !important;
        border-radius: 4px;
        padding: 9px 11px;
        background: var(--white);
        position: relative;
        z-index: 1070;
    }
    .navbar-toggler:focus { box-shadow: none; }
    .navbar-toggler-icon {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--black);
        box-shadow: 0 -6px 0 var(--black), 0 6px 0 var(--black);
    }

    .nav-area { position: static; }
    #mn3.collapsing { transition: none !important; }
    .collapse.navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        background: var(--white);
        border-top: 2px solid var(--red);
        box-shadow: 0 16px 40px rgba(0,0,0,.15);
        padding: 8px 20px 20px;
        z-index: 1060;
    }
    .mnav .nav-link { font-size: 14px; font-weight: 600; letter-spacing: .3px; padding: 13px 4px !important; white-space: normal; }
    .mnav .nav-link::after { display: none; }
    .mnav .dropdown-menu { position: static !important; box-shadow: none; border-top: 0; border-left: 2px solid var(--border); margin: 2px 0 6px 6px; padding: 2px 0; min-width: 0; }
    .mnav .dropdown-item { padding: 9px 12px; white-space: normal; }
}

.topbar-user { color: #b3b3b3; }
.topbar .t-pill i { margin-right: 3px; }

@media (min-width: 1750px) {
    .container { max-width: 1560px; }
}
@media (min-width: 2000px) {
    .container { max-width: 1760px; }
}

/* =====================================================================
   СТАРЫЕ СТИЛИ САЙТА (внутренние страницы). Стили старой шапки удалены.
   ===================================================================== */
/* ================================
Основные настройки
================================= */

html {
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    height: 100%;
    font-weight: 400;
    background-color: white;
    font-size: 16px;
    display: flex;
    flex-direction: column;
}

.jumbotron {
    background-color: rgb(240, 248, 255);
}

p, li {
    font-size: 16px;
}

.w-20 {
    width: 20% !important;
}

.w-10 {
    width: 10% !important;
}

.sticky-top {
    z-index: 40;
}

/* ================================
Выпадающее меню
================================= */

.dropdown-menu {
    background-color: rgb(35, 59, 88);
    padding: 0;
    z-index: 60;
}

.dropdown-menu .dropdown-item {
    color: rgb(207, 216, 220);
    font-size: 16px;
    background: rgba(35, 59, 88, 1);
    border: 0;
    padding: 8px 16px;
    padding-right: 24px;
    transition: 0.4s;
    border-radius: 0;
    border-left: 8px solid rgba(35, 59, 88, 0.9);
    z-index: 60;
}

.dropdown-menu .dropdown-item:hover {
    padding-left: 24px;
    padding-right: 16px;
    transition: 0.4s;
    border-left: 8px solid rgb(244, 67, 54);
    color: rgb(233, 233, 233);
    background: rgb(35, 59, 88);
}

@media screen and (max-width: 767px) {
    .dropdown-menu {
        border: 0;
    }

    .dropdown-menu .dropdown-item {
        background: rgb(29, 51, 74);
        border-left: 8px solid rgba(29, 51, 74, 0.9);
        white-space: normal;
    }
}

/* ================================
Вверх
================================= */
.back-to-top {
    cursor: pointer;
    position: fixed;
    bottom: 52px;
    right: 2px;
    z-index: 60;
    opacity: 0.7;
    width: 48px;
    height: 48px;
    color: rgb(240, 248, 255);
    font-size: 28px;
    background-color: rgba(29, 51, 74, 0.58);
}

.back-to-top:hover {
    bottom: 54px;
    color: rgb(240, 248, 255);
    background-color: rgb(29, 51, 74);
}

@media screen and (max-width: 767px) {
    .back-to-top {
        display: none;
    }
}

/* ================================
Таблицы
================================= */

.table tbody tr td,
.table thead tr th {
    vertical-align: middle;
    text-align: left;
}

.table thead tr th {
    color: #222222;
    border-bottom: 2px solid rgba(29, 51, 74, 0.65);
}

.table tbody tr td {
    border-top: 1px solid rgba(29, 51, 74, 0.65);
    border-bottom: 1px solid rgba(29, 51, 74, 0.65);
}

.table {
    color: #222222;
}

.table th {
    font-weight: 500;
    text-align: center;
}

.table-responsive {
    padding: 16px;
}

.table-hover tbody tr {
    background: rgb(255, 255, 255);
    border-left: 4px solid rgb(255, 255, 255);
    transition: 0.4s;
}

.table-hover tbody tr:hover {
    background: rgb(220, 228, 235);
    border-left: 4px solid rgb(244, 67, 54);
    transition: 0.4s;
}

.table-fixed thead tr th {
    font-weight: normal;
    vertical-align: middle;
    background: rgba(29, 51, 74, 1);
    color: rgb(255, 255, 255);
    border: 1px solid #ccc;
    text-align: center;
}

@media screen and (max-width: 767px) {
    .table-responsive {
        padding: 0;
    }
}

.bg-red {
    color: rgb(252, 83, 83);
}

/* ================================
Крошки
================================= */
.breadcrumb {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-family: 'Jost', sans-serif;
    border-radius: 0;
    padding: 8px 16px;
    margin: 0;
    font-size: 14px;
}

.breadcrumb .breadcrumb-item a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb .breadcrumb-item a:hover {
    color: var(--red);
    font-size: 14px;
}

.breadcrumb .breadcrumb-item.active {
    color: rgb(179, 179, 179);
    font-size: 14px;
}

.breadcrumb-item+.breadcrumb-item::before {
    font-size: 14px;
}

/* ================================
Информационные блоки
================================= */

.info-block {
    border-bottom: 4px solid rgb(244, 67, 54);
    color: rgba(29, 51, 74, 1);
    text-align: justify;
    display: inline-block;
    padding-bottom: 8px;
    padding-top: 8px;
    margin-bottom: 16px;
    margin-top: 24px;
}

/* ================================
Слайдер
================================= */

.carousel .carousel-inner .carousel-item {
    /*max-height: 350px;*/
}

.carousel .carousel-inner .carousel-item .carousel-caption {
    background: rgba(29, 51, 74, 0.9);
    padding: 16px
}

.div-slaider {
    background: rgba(29, 51, 74, 0.9);
    border-radius: 0;
    color: rgb(203, 211, 218);
}

/* ================================
Формы
================================= */

label {
    font-weight: bold;
}

label span {
    color: rgb(244, 67, 54);
}

.form-group {
    padding: 4px 16px;
}

.form-control {
    background-color: #f5f5f5;
}


fieldset {
    border: 1px solid #ddd !important;
    margin-top: 8px;
    padding: 10px;
    position: relative;
    border-radius: 8px;
}

legend {
    width: 50%;
    padding: 5px 5px 5px 10px;
}

/* ================================
Кнопки
================================= */

.btn-baza,
.btn-main {
    color: rgb(255, 255, 255);
    font-size: 24px;
    border: 0;
    padding: 8px 12px;
    transition: 0.4s;
    border-radius: 8px;
    background: rgba(29, 51, 74, 1);
    margin: 8px;
    white-space: normal;
}

.btn-baza-download {
    color: rgb(255, 255, 255);
    border: 0;
    transition: 0.4s;
    background: rgba(29, 51, 74, 1);
    white-space: normal;
    cursor: pointer;
}

.btn-baza-download:hover,
.btn-baza:hover,
.btn-main:hover {
    transition: 0.4s;
    color: rgb(255, 255, 255);
    background: rgba(29, 51, 74, 0.8);
}

.clearfix:after {
    clear: both;
}

.btn-close {
    color: rgb(233, 233, 233);
    font-size: 24px;
    border: 2px solid rgb(233, 233, 233);
    padding: 8px 12px;
    transition: 0.4s;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(29, 51, 74, 1);
}

.btn-close:hover {
    transition: 0.4s;
    color: rgb(233, 233, 233);
    background: rgba(29, 51, 74, 0.85);
}

/* =============================
Кнопки-иконки
================================= */
.icon-div {
    height: 40px;
    width: 40px;
    cursor: pointer;
    text-align: center;
    font-size: 22px;
    border-radius: 50%;
    color: rgb(255, 255, 255);
    border: 1px solid rgba(29, 51, 74, 0.8);
    background: rgba(29, 51, 74, 1);
    transition: 0.4s;
    margin: 2px;
}

.icon-div i {
    margin-top: 8px;
}

.icon-div:hover {
    transition: 0.4s;
    background: rgba(244, 67, 54, 1);
}

/* ================================
Модальные окна
================================= */

.modal-content .modal-footer {
    border: 0;
}

.modal-header {
    color: rgb(233, 233, 233);
    background: rgba(29, 51, 74, 1);
}

.modal-body {
    margin: 8px 0;
}

/* ================================
Титул страницы (перекрашен под новый дизайн)
================================= */
.title {
    background: var(--black);
    border-bottom: 2px solid var(--red);
}

.title p {
    font-family: 'Jost', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(18px, 2vw, 30px);
    color: var(--white);
    padding: 22px 16px;
    margin: 0;
}

/* ================================
Индексные страницы
================================= */

.index-card-gr {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 2%;
    justify-content: space-between;
}

.index-card {
    width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 1%;
    border: rgb(244, 67, 54) solid 3px;
    border-radius: 15px;
    transition: 0.5s ease-out;
}

.index-card:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.index-card .card-top {
    font-size: 64px;
    margin-top: 10px;
    color: rgb(244, 67, 54);
}

.index-card .card-footer {
    background-color: white;
    border-width: 0;
}

@media (min-width: 576px) {
    .index-card {
        width: 335px;
    }
}

@media (min-width: 768px) {
    .index-card {
        width: 335px;
    }
}

@media (min-width: 992px) {
    .index-card {
        width: 445px;
    }
}

@media (min-width: 1200px) {
    .index-card {
        width: 350px;
    }
}

/* ================================
Новости
================================= */

.news-main .card-title {
    font-size: 16px;
    text-align: center;
}

.news-main img {
    margin: 8px auto;
    max-height: 200px;
    border: 0;
}
.news-detail-img {
    margin-top: 32px;
}

/* ================================
История
================================= */

.panel-timeline {
    width: 80%;
    margin: 20px auto;
    position: relative;
}

.panel-timeline:before {
    content: "";
    display: block;
    width: 2px;
    height: 100%;
    background: rgb(244, 67, 54);
    margin: 0 0 0 -1px;
    position: absolute;
    top: 0;
    left: 50%;
}

.panel-timeline .timeline {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.panel-timeline .timeline:after {
    content: "";
    display: block;
    clear: both;
}

.panel-timeline .timeline-content {
    width: 40%;
    float: left;
    margin: 5px 0 0 0;
    border-radius: 6px;
}

.panel-timeline .date {
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgb(244, 67, 54);
    padding: 5px 0;
    margin: 0 0 0 -36px;
    position: absolute;
    top: 0;
    left: 50%;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    padding-top: 20px;
    color: #FFF;
    box-shadow: 0 0 0 7px rgba(244, 67, 54, 0.8);
}

.panel-timeline .title {
    padding: 15px;
    margin: 0;
    font-size: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
    border-radius: 6px 6px 0 0;
    position: relative;
    background: rgba(29, 51, 74, 1);
}

.panel-timeline .title:after {
    content: "";
    width: 10px;
    height: 10px;
    position: absolute;
    top: 20px;
    right: -5px;
    transform: rotate(-45deg);
    background: rgba(29, 51, 74, 1);
}

.panel-timeline .description {
    padding: 15px;
    margin: 0;
    font-size: 14px;
    color: rgba(29, 51, 74, 0.9);
    background: #fff;
    border-radius: 0 0 6px 6px;
}

.panel-timeline .timeline:nth-child(2n+2) .timeline-content {
    float: right;
    text-align: right;
}

.panel-timeline .timeline:nth-child(2n+2) .title:after {
    left: -5px;
}

@media only screen and (max-width: 990px) {
    .panel-timeline {
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .panel-timeline:before,
    .panel-timeline .date {
        left: 6%;
    }

    .panel-timeline .timeline:nth-child(2n+2) .timeline-content {
        text-align: left;
    }

    .panel-timeline .timeline-content {
        width: 85%;
        float: right;
    }

    .panel-timeline .title:after {
        left: -5px;
    }
}

@media only screen and (max-width: 480px) {
    .panel-timeline:before,
    .panel-timeline .date {
        left: 12%;
    }

    .panel-timeline .timeline:nth-child(2n+2) .timeline-content {
        text-align: left;
    }

    .panel-timeline .timeline-content {
        width: 75%;
    }

    .panel-timeline .title {
        font-size: 14px;
    }

    .panel-timeline .date {
        width: 60px;
        height: 60px;
        margin-left: -30px;
        font-size: 14px;
    }
}

/* ================================
Преподаватели
================================= */

.teaching {
    border: rgb(249, 249, 249) solid 4px;
    transition: 0.4s;
}

.teaching:hover {
    background: rgba(29, 51, 74, 0.1);
    transition: 0.4s;
}

.teaching .card-img-top {
    height: 250px;
    width: auto;
}

.teaching div p i {
    font-size: 24px;
    color: rgb(179, 179, 179);
    transition: 0.4s;
    cursor: pointer;
}

.teaching:hover div p > i {
    color: rgba(29, 51, 74, 1);
    transition: 0.4s;
}

.teaching div p i:hover {
    color: rgba(244, 67, 54, 1);
    transition: 0.4s;
}

/* ================================
Автозаполнение
================================= */
.autocomplete-suggestions {
    border: 1px solid #999;
    background: #FFF;
    overflow: auto;
}

.autocomplete-suggestion {
    padding: 2px 5px;
    overflow: hidden;
}

.autocomplete-selected {
    background: #F0F0F0;
}

.autocomplete-suggestions strong {
    font-weight: normal;
    color: #3399FF;
}

.autocomplete-group {
    padding: 2px 5px;
}

.autocomplete-group strong {
    display: block;
    border-bottom: 1px solid #000;
}

/* ================================
Навигационные списки
================================= */
.nav-tabs-baza {
    width: auto;
    border: 0;
}

.nav-tabs-baza .nav-item .nav-link {
    margin: 2px;
    border-radius: 4px;
    background-color: rgba(29, 51, 74, 0.1);
    color: rgb(0, 0, 0);
    text-align: center;
    border: 0;
    cursor: pointer;
    height: 100% !important;
}
.nav-tabs-baza .nav-item {
    margin-bottom: 4px;
}

.nav-tabs-baza .nav-item .nav-link:hover {
    color: rgb(244, 67, 54);
}

.nav-tabs-baza .nav-item .active,
.nav-tabs-baza .nav-item .active:hover {
    background: rgb(29, 51, 74);
    color: rgb(240, 248, 255);
}

.nav-tabs-baza .nav-item .nav-link i {
    color: rgb(29, 51, 74);
    font-size: 32px;
    padding: 8px 0;
    transition: 0.4s;
}

.nav-tabs-baza .nav-item .nav-link:hover > i {
    color: rgb(244, 67, 54);
    transition: 0.4s;
}

.nav-tabs-baza .nav-item .active > i,
.nav-tabs-baza .nav-item .active:hover > i {
    background: rgb(29, 51, 74);
    color: rgb(240, 248, 255);
}

/* ================================
Боковое меню
================================= */

.nav-left-menu {
    padding: 2rem;
    border-radius: .3rem;
}

.left-menu {
    color: rgb(0, 0, 0);
    font-size: 16px;
    background-color: rgba(29, 51, 74, 0.1);
    border: 0;
    transition: 0.4s;
    margin-bottom: 2px;
    z-index: 3;
}

.left-menu:hover {
    transition: 0.4s;
    color: rgb(244, 67, 54);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background: rgba(29, 51, 74, 1);
    color: rgb(207, 216, 220);
    font-size: 16px;
    border: 0;
    transition: 0.4s;
}

/* ================================
Таймер
================================= */
#countdown {
}

#countdown h2 {
    color: #ff5722;
    font-weight: 600;
    padding: 0 0 20px 0
}

ul.countdown span {
    font-size: 18px;
    color: #FFFFFF;
    text-align: center;
    display: inline-block;
}

ul.countdown li {
    background: rgb(29, 51, 74);
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease-in;
    margin: 20px 20px 0 20px;
}

ul.countdown li:hover {
    background: rgba(29, 51, 74, 0.8);
    border: none;
    color: #FFFFFF;
    transform: scale(1.2);
}

ul.countdown li h3 {
    font-weight: 600;
    font-size: 16px;
}
/* ================================
Новости
================================= */
.img-wrap {
    position: relative;
}

.img-wrap p {
    background: rgb(29, 51, 74);
    color: #FFFFFF;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 2px 8px;
}

/* ================================
Cookies (перекрашено под новый дизайн)
================================= */
.cookie_warning_container {
    background: rgba(0, 0, 0, .92);
    border-top: 2px solid var(--red);
    color: #ccc;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    font-size: 12px;
    line-height: 1.6;
}
.cookie_warning_container p { font-size: 12px; }
.cookie_accept {
    flex-shrink: 0;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--red);
    background: var(--red);
    color: var(--white);
    padding: 12px 28px;
    transition: all .2s;
}
.cookie_accept:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* Шапка нового дизайна: перекрываем глобальные правила старого выпадающего меню (они выше по файлу) */
.mnav .dropdown-item { font-size: 12px; transition: color .15s, background .15s; }
.mnav .dropdown-item:hover { padding-left: 20px !important; }

/* =====================================================================
   НОВЫЙ ДИЗАЙН — шаг 2: подвал (из styles.css нового шаблона)
   ===================================================================== */
/* ── FOOTER ── */
.site-footer { background: var(--black); }
.ft { padding: 56px 0 40px; }
.fl-name { font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--white); }
.fl-sub { font-size: 9px; color: #999; letter-spacing: 1.5px; text-transform: uppercase; font-family: 'Jost', sans-serif; }
.fh { font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #bbb; margin-bottom: 16px; }
.fl-links { list-style: none; padding: 0; }
.fl-links li { margin-bottom: 8px; }
.fl-links a { font-size: 12px; color: #aaa; text-decoration: none; }
.fl-links a:hover { color: var(--red); }
.fb { border-top: 1px solid #2a2a2a; padding: 16px 0; font-size: 11px; color: #999; font-family: 'Jost', sans-serif; letter-spacing: .5px; }
.soc { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid #444; font-family: 'Jost', sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 1px; color: #bbb; text-decoration: none; transition: all .15s; }
.soc:hover { border-color: var(--red); color: var(--red); }
.site-footer { margin-top: auto; }
.fl-contacts { color: #aaa; font-size: 12px; line-height: 1.7; margin-top: 14px; margin-bottom: 16px; }
.fl-contacts a { color: #aaa; text-decoration: none; }
.fl-contacts a:hover { color: var(--red); }
.ft-extra { margin-top: 32px; padding-top: 24px; border-top: 1px solid #2a2a2a; }
.ft-extra p { font-size: 12px; color: #888; line-height: 1.7; margin: 0; }
.ft-extra a { color: #bbb; }
.ft-extra a:hover { color: var(--red); }
.ft-qr { display: flex; gap: 14px; align-items: center; }
.ft-qr img { width: 84px; height: 84px; background: #fff; padding: 4px; flex-shrink: 0; overflow: hidden; font-size: 9px; color: #000; }
@media (min-width: 1750px) { .fl-name { font-size: 15px; } .fh { font-size: 10px; } .fl-links a { font-size: 13px; } }

/* Старая кнопка «Нет»/закрыть (.btn.btn-close) не должна превращаться в крестик Bootstrap 5 */
.btn.btn-close { width: auto; height: auto; box-sizing: border-box; opacity: 1; background-image: none; }

/* Меню из bitrix:menu (шаблон tstu_new): текущий раздел */
.mnav .nav-link.active { color: var(--red) !important; }
.mnav .dropdown-item.active { color: var(--red) !important; font-weight: 600; }

/* Логотип: без красной полосы, крупнее (картинка обрезана по краям, поэтому размер задаём явно) */
.logo-stripe { display: none; }
.logo-area { padding: 6px 24px 6px 20px; }
.header-logo { height: 64px; max-width: none; }
@media (min-width: 1750px) { .header-logo { height: 72px; } }
@media (max-width: 420px) { .header-logo { height: 52px; } .logo-area { padding: 6px 12px; } }

/* ── Логотип: больше воздуха сверху и снизу ── */
.site-header .logo-area { padding-top: 14px !important; padding-bottom: 14px !important; }
@media (max-width: 420px) { .site-header .logo-area { padding-top: 10px !important; padding-bottom: 10px !important; } }

/* ── Меню не должно выходить за край экрана, когда пунктов много
      (например, у администратора или в разделе /sveden/ со своим меню) ── */
.subnav, .site-header { max-width: 100vw; }
@media (min-width: 1750px) {
    /* основная строка: при нехватке места переносится на вторую строку */
    .site-header .nav-area .navbar-nav { flex-wrap: wrap !important; justify-content: flex-end; }
    .site-header .nav-area .mnav .nav-link { padding-top: 14px !important; padding-bottom: 14px !important; }

    /* тематическая строка: ширина пункта по длине текста, длинный текст переносится */
    .subnav .navbar { flex-wrap: wrap !important; }
    .subnav .navbar-nav { flex-wrap: wrap !important; justify-content: center; width: 100%; min-width: 0; }
    .subnav .navbar-nav > li { flex: 1 1 auto !important; min-width: 0; max-width: 100%; }
    .subnav .mnav .nav-link {
        white-space: normal !important;
        overflow-wrap: break-word;
        line-height: 1.25;
        height: 100%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    /* выпадающие списки у краёв не уходят за экран */
    .subnav .navbar-nav > li:first-child .dropdown-menu { left: 0; transform: none; }
    .subnav .navbar-nav > li:last-child .dropdown-menu { left: auto; right: 0; transform: none; }
    .mnav .dropdown-menu { max-width: min(420px, 90vw); }
    .mnav .dropdown-item { white-space: normal !important; }
}


/* =====================================================================
   НОВЫЙ ДИЗАЙН — шаг 3: главная страница (слайдер + лента новостей)
   ===================================================================== */
/* ── HERO ── */
/* ── ГЛАВНЫЙ СЛАЙДЕР (2 баннера под шапкой) ── */
.hero-slider { background: var(--black); }
.hero-slide { height: 460px; display: flex; align-items: center; background: linear-gradient(120deg, var(--black) 0%, #2a2a2a 100%); overflow: hidden; }
.hero-slide--2 { background: linear-gradient(120deg, #1a1a1a 0%, var(--red) 160%); }
.hero-slide-content { max-width: 620px; padding: 60px 0; }
.slabel--light { color: rgba(255,255,255,.65); }
.hero-slide-title { font-family: 'Jost', sans-serif; font-size: 52px; font-weight: 900; text-transform: uppercase; line-height: .98; color: var(--white); letter-spacing: -1.5px; margin: 14px 0 18px; }
.hero-slide-title .r { color: var(--red); }
.hero-slide-text { color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.6; margin-bottom: 28px; max-width: 480px; }
.btn-out--light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-out--light:hover { background: var(--white); color: var(--black); }
.btn-solid.btn-solid--accent { background: var(--red); border-color: var(--red); }
.btn-solid.btn-solid--accent:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.hero-slider .carousel-indicators { margin-bottom: 20px; }
.hero-slider .carousel-indicators button { width: 32px; height: 3px; border-radius: 0; background: rgba(255,255,255,.4); opacity: 1; }
.hero-slider .carousel-indicators button.active { background: var(--red); }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 56px; opacity: .8; }
@media (max-width: 768px) {
    .hero-slide { height: 380px; }
    .hero-slide-title { font-size: 30px; }
    .hero-slide-content { padding: 30px 0; }
}
.hero-body { padding: 0; }
.hero-left { padding: 64px 56px 56px 0; }
.h-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--black); font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; margin-bottom: 24px; }
.hero h1 { font-family: 'Jost', sans-serif; font-size: 66px; font-weight: 900; text-transform: uppercase; line-height: .95; color: var(--black); margin-bottom: 24px; letter-spacing: -2px; }
.hero h1 .r { color: var(--red); }
.hero-desc { font-size: 14px; line-height: 1.85; color: var(--muted); max-width: 420px; margin-bottom: 32px; }
.btn-solid { display: inline-flex; align-items: center; gap: 8px; background: var(--black); color: var(--white); font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 13px 28px; text-decoration: none; border: 1px solid var(--black); transition: all .2s; }
.btn-solid:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-out { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--black); font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 12px 28px; text-decoration: none; border: 1px solid #ccc; transition: all .2s; }
.btn-out:hover { border-color: var(--black); }
.hero-right { display: flex; flex-direction: column; height: 100%; }
.hblock-red { background: var(--red); padding: 28px 32px; display: flex; justify-content: space-between; align-items: flex-end; }
.hbr-label { font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hbr-val { font-family: 'Jost', sans-serif; font-size: 52px; font-weight: 900; color: var(--white); line-height: 1; letter-spacing: -2px; }
.stat-bar { background: var(--gray); border-top: 1px solid #ccc; }
.sstat { text-align: center; padding: 20px 16px; border-right: 1px solid #ccc; }
.sstat:last-child { border-right: 0; }
.sv { font-family: 'Jost', sans-serif; font-size: 38px; font-weight: 900; color: var(--black); line-height: 1; letter-spacing: -1px; }
.sv .r { color: var(--red); }
.sl { font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #888; margin-top: 4px; }

/* ── SECTION UTILS ── */
.slabel { font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.slabel::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.stitle { font-family: 'Jost', sans-serif; font-size: 34px; font-weight: 900; text-transform: uppercase; line-height: 1.05; color: var(--black); letter-spacing: -1px; }
.stitle .r { color: var(--red); }
.alink { font-family: 'Jost', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); text-decoration: none; }
.alink:hover { color: var(--black); }

/* ── НОВОСТИ: компактная полоса под слайдером (bitrix:news.list / bootstrap_v4 — CSS-рескин, PHP-шаблон не менялся) ── */
.news-strip { padding: 32px 0 44px; background: var(--white); border-bottom: 1px solid var(--border); }
.news-strip-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.news-strip-title { font-family: 'Jost', sans-serif; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--black); line-height: 1; }
.news-strip-more { font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); text-decoration: none; line-height: 1; }
.news-strip-more:hover { text-decoration: underline; }

.news-strip .recent-post { background: transparent; }
.news-strip .info-block { display: none; } /* заголовок "Новости" из шаблона скрыт — уже есть свой .news-strip-title */
.news-strip .row.row-cols-md-3 { --bs-gutter-x: 14px; --bs-gutter-y: 14px; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.news-strip .row.row-cols-md-3::-webkit-scrollbar { display: none; }
/* 6 карточек видно сразу, остальные — прокруткой (не проценты, а фиксированная ширина) */
.news-strip .row.row-cols-md-3 > * { flex: 0 0 16.6666% !important; width: 16.6666% !important; scroll-snap-align: start; }

.news-strip-viewport { position: relative; }
.news-strip-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 34px; height: 34px; border: 1px solid var(--border); background: var(--white);
    font-size: 18px; line-height: 1; color: var(--black); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.news-strip-arrow:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-50%); }
.news-strip-arrow--prev { left: -17px; }
.news-strip-arrow--next { right: -17px; }
@media (max-width: 992px) { .news-strip .row.row-cols-md-3 > * { flex-basis: 33.333% !important; width: 33.333% !important; } }
@media (max-width: 576px) {
    .news-strip .row.row-cols-md-3 > * { flex-basis: 62% !important; width: 62% !important; }
    .news-strip-arrow { display: none; }
}

.news-strip .card.news-main { border: 1px solid var(--border) !important; border-radius: 0 !important; position: relative; overflow: hidden; transition: all .2s; }
.news-strip .card.news-main::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; z-index: 2; }
.news-strip .card.news-main:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.news-strip .card.news-main:hover::before { transform: scaleX(1); }

.news-strip .img-wrap { position: relative; overflow: hidden; }
.news-strip .img-wrap img.card-img-top { border-radius: 0 !important; aspect-ratio: 4 / 3; height: auto; object-fit: cover; width: 100%; display: block; }
.news-strip .img-wrap p {
    position: absolute; top: 6px; left: 6px; margin: 0;
    background: var(--red); color: #fff;
    font-family: 'Jost', sans-serif; font-size: 8px; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase;
    padding: 3px 6px;
}
.news-strip .card-body { padding: 0.85rem 0.85rem 1rem; }
.news-strip .card-title { font-family: 'Jost', sans-serif; font-size: 0.85rem; font-weight: 700; line-height: 1.35; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-strip .card-title a { color: var(--black) !important; text-decoration: none !important; }
.news-strip .card-title a:hover { color: var(--red) !important; }
.news-strip small.text-muted { font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--red) !important; }
.news-strip small.text-muted .fas { display: none; }
.news-strip .news-pager { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); font-family: 'Jost', sans-serif; font-size: 11px; color: var(--muted); text-align: center; }
.news-strip .news-pager a { color: var(--black); text-decoration: none; font-weight: 600; padding: 3px 6px; }
.news-strip .news-pager a:hover { color: var(--red); }

/* Слайды-новости: фото на фоне + затемнение, чтобы текст читался */
.hero-slide--news { position: relative; background-size: cover; background-position: center; background-color: var(--black); }
.hero-slide--news::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.15) 100%); }
.hero-slide--news > .container { position: relative; z-index: 1; }
.hero-slide-title--news { font-size: 38px; line-height: 1.08; letter-spacing: -.5px; text-transform: none; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-slide-content { max-width: 720px; }
.hero-slider .carousel-item { transition-duration: .7s; }
@media (max-width: 768px) {
    .hero-slide-title--news { font-size: 24px; }
    .hero-slide-text { font-size: 13px; margin-bottom: 18px; }
}

/* Старые стили новостей (.news-main img, .img-wrap p) не должны ломать ленту */
.news-strip .news-main img { margin: 0; max-height: none; border: 0; }
.news-strip .news-main .card-title { text-align: left; }
.news-strip .container-fluid.recent-post, .news-strip .recent-post > .container { padding-left: 0; padding-right: 0; max-width: none; }

/* Правки после проверки главной */
.hero-slider .btn-out.btn-out--light { border-color: rgba(255,255,255,.5); color: var(--white); }
.hero-slider .btn-out.btn-out--light:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.hero-slider .carousel-indicators button { height: 3px !important; border: 0 !important; padding: 0; margin: 0 4px; }
.hero-slide { height: auto; min-height: 460px; padding-bottom: 40px; }
.news-strip .img-wrap p { bottom: auto !important; right: auto; }
@media (max-width: 768px) {
    .hero-slide { min-height: 380px; padding-bottom: 48px; }
    .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { display: none; }
    .hero-slide-content { padding: 32px 0 16px; }
}

/* Главная: вкладки-разделы новостей + скрываем лишнее, что выводит bitrix:news (форма фильтра, пагинация) */
.news-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; }
.news-tab {
    display: inline-block; cursor: pointer; text-decoration: none;
    font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--black); border: 1px solid var(--border); padding: 6px 12px; transition: all .15s;
}
.news-tab:hover { border-color: var(--red); color: var(--red); }
.news-tab.active { background: var(--red); border-color: var(--red); color: var(--white); }
.news-strip-track form { display: none !important; } /* форма фильтра bitrix:news (USE_FILTER нужен только для вкладок) */

/* ── Главный слайдер: фиксированная высота, анимация, картинки новостей ── */
.hero-slider .hero-slide { height: 520px; min-height: 0; padding-bottom: 0; overflow: hidden; }
.hero-slider .hero-slide > .container { height: 100%; display: flex; align-items: center; padding-bottom: 36px; }
.hero-slider .hero-slide-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-slider .hero-slide-title { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-slider .carousel-item { transition: transform .7s ease-in-out !important; }
@media (prefers-reduced-motion: reduce) {
    /* Bootstrap выключает анимацию при «уменьшении движения» в Windows — для слайдера возвращаем */
    .hero-slider .carousel-item { transition: transform .7s ease-in-out !important; }
}

/* Новость: фото справа в рамке, на фоне — то же фото размытое (подходит для любых пропорций и размеров) */
.hero-slide--news { position: relative; background: var(--black) !important; }
.hero-slide--news::before { display: none; }
.hero-news-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(28px) brightness(.35); transform: scale(1.1); }
.hero-news-grid { position: relative; z-index: 1; gap: 48px; justify-content: space-between; }
.hero-news-grid .hero-slide-content { flex: 1 1 55%; max-width: 640px; }
.hero-news-img { flex: 0 1 40%; display: block; height: 360px; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: hidden; background: #111; }
.hero-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.hero-news-img:hover img { transform: scale(1.03); }

@media (max-width: 992px) {
    .hero-news-img { display: none; }
    .hero-news-grid .hero-slide-content { max-width: none; }
}
@media (max-width: 768px) {
    .hero-slider .hero-slide { height: 440px; }
    .hero-slider .hero-slide-title { -webkit-line-clamp: 5; }
}

/* ── Промо-слайд: готовый баннер 1200x400 целиком, фон — та же картинка размытая (как у новостей) ── */
.hero-slide--promo { position: relative; background: var(--black) !important; text-decoration: none; color: var(--white); }
.hero-slider .hero-slide--promo > .container { position: relative; z-index: 1; flex-direction: column; justify-content: center; gap: 18px; }
.hero-promo-pic { display: block; width: 100%; max-width: 1200px; }
.hero-promo-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: transform .4s; }
.hero-slide--promo:hover .hero-promo-img { transform: scale(1.015); }
.hero-promo-cap { display: none; }
@media (max-width: 768px) {
    .hero-promo-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; }
    .hero-promo-cap-text { font-family: 'Jost', sans-serif; font-size: 20px; font-weight: 800; line-height: 1.15; color: var(--white); }
}
