/* ==========================================================================
   Ижевский учебный центр «Энергетик»
   custom.css — унифицированная версия

   Принципы:
   • существующие селекторы сохранены;
   • фирменные цвета, радиусы и основные тени вынесены в CSS-переменные;
   • спорные серые/красные hover-состояния приведены к синей интерактивной палитре;
   • media queries одинаковых диапазонов объединены в конце файла;
   • специфичные переопределения Helix/Joomla и необходимые !important сохранены.
   ========================================================================== */

/* ==========================================================
   ОБЩИЕ ПЕРЕМЕННЫЕ
   ========================================================== */

:root {
    /* Фирменная палитра */
    --uk-blue: #07619c;
    --uk-blue-dark: #005a9b;
    --uk-blue-hover: #004b82;
    --uk-red: #d4312a;
    --uk-white: #ffffff;

    /* Текст */
    --uk-text: #3f3f3f;
    --uk-text-dark: #333333;
    --uk-muted: #666666;
    --uk-muted-light: #777777;

    /* Границы и фоны */
    --uk-border: #dedede;
    --uk-border-light: #eeeeee;
    --uk-border-card: #e0e4e8;
    --uk-bg-light: #f5f5f5;
    --uk-bg-page: #f5f6f7;
    --uk-bg-hover: #eef5f9;
    --uk-bg-soft: #f7f9fb;

    /* Геометрия */
    --uk-radius-sm: 4px;
    --uk-radius: 6px;
    --uk-radius-lg: 8px;

    /* Тени */
    --uk-shadow-sm: 0 1px 3px rgba(0, 0, 0, .05);
    --uk-shadow-card: 0 4px 12px rgba(0, 90, 155, .08);
    --uk-shadow-page: 0 4px 16px rgba(0, 90, 155, .08);

    /* Анимация */
    --uk-transition: .2s ease;
}


/* ==========================================================
   ОБЩИЕ СБРОСЫ
   ========================================================== */

img {
    max-width: 100%;
}

a {
    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease;
}


/* ==========================================================
   ШАПКА
   ========================================================== */

#sp-header {
    position: relative;
    z-index: 1000;
}


/* ВАЖНО:
   никакого blur/backdrop-filter у меню
*/
#sp-menu {
    background: transparent;
}


/* ==========================================================
   ПОИСК В ШАПКЕ
   Раскрывается поверх меню влево и не меняет ширину шапки
   ========================================================== */

/* Контейнер модуля поиска */
#sp-header .mod-finder__form,
#sp-header .finder-search,
#sp-header form.form-search {
    position: relative !important;

    display: flex !important;
    align-items: center;
    justify-content: flex-end;

    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;

    flex: 0 0 40px !important;

    overflow: visible !important;

    z-index: 100;
}


/* ----------------------------------------------------------
   ПОЛЕ ПОИСКА В ЗАКРЫТОМ СОСТОЯНИИ
   ---------------------------------------------------------- */

#sp-header .mod-finder__form input[type="text"],
#sp-header .mod-finder__form input[type="search"],
#sp-header .finder-search input[type="text"],
#sp-header .finder-search input[type="search"],
#sp-header form.form-search input[type="text"],
#sp-header form.form-search input[type="search"] {

    position: absolute !important;

    top: 50% !important;
    right: 0 !important;
    left: auto !important;

    transform: translateY(-50%);

    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid transparent !important;
    border-radius: var(--uk-radius-sm, 4px) !important;

    background: transparent !important;

    color: transparent !important;

    cursor: pointer !important;

    outline: none !important;
    box-shadow: none !important;

    z-index: 101;

    transition:
        width .3s ease,
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        padding .2s ease !important;
}


/* ----------------------------------------------------------
   ИКОНКА ПОИСКА
   ---------------------------------------------------------- */

#sp-header .mod-finder__form::before,
#sp-header .finder-search::before,
#sp-header form.form-search::before {

    content: "\f002";

    position: absolute !important;

    top: 50% !important;
    right: 11px !important;
    left: auto !important;

    transform: translateY(-50%);

    width: 18px;
    height: 18px;

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

    font-family:
        "Font Awesome 6 Free",
        "Font Awesome 5 Free",
        "FontAwesome";

    font-weight: 900;
    font-size: 18px;
    line-height: 1;

    color: var(--uk-white, #fff);

    pointer-events: none;

    z-index: 103;

    transition: color .2s ease;
}


/* ----------------------------------------------------------
   РАСКРЫТОЕ ПОЛЕ
   ---------------------------------------------------------- */

#sp-header .mod-finder__form input:focus,
#sp-header .finder-search input:focus,
#sp-header form.form-search input:focus {

    /*
       ВАЖНО:
       поле расширяется ВЛЕВО, потому что закреплено right: 0.
       Ширина родителя при этом остаётся 40px.
    */

    width: 260px !important;
    min-width: 260px !important;

    padding: 0 42px 0 16px !important;

    border: 1px solid #d6dee5 !important;

    background: #fff !important;

    color: #333 !important;

    cursor: text !important;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, .14) !important;

    z-index: 102;
}


/* Иконка становится синей на белом поле */
#sp-header .mod-finder__form:focus-within::before,
#sp-header .finder-search:focus-within::before,
#sp-header form.form-search:focus-within::before {

    color: #005a9b !important;
}


/* ----------------------------------------------------------
   PLACEHOLDER
   ---------------------------------------------------------- */

#sp-header input[type="text"]::placeholder,
#sp-header input[type="search"]::placeholder {

    color: transparent !important;

    opacity: 1;
}


#sp-header input[type="text"]:focus::placeholder,
#sp-header input[type="search"]:focus::placeholder {

    color: #777 !important;
}


/* ----------------------------------------------------------
   LABEL
   ---------------------------------------------------------- */

#sp-header .mod-finder__form label,
#sp-header .finder-search label {

    display: none !important;
}


/* ==========================================================
   ЗАЩИТА ШАПКИ ОТ ПЕРЕНОСА
   ========================================================== */

#sp-header .row {
    flex-wrap: nowrap !important;
}


#sp-header #sp-logo {
    flex-shrink: 0;
}


#sp-header #sp-menu {
    min-width: 0;
}


#sp-header #sp-menu > .sp-column {
    min-width: 0;

    flex-wrap: nowrap !important;
}


#sp-header .sp-megamenu-wrapper {
    min-width: 0;

    flex-shrink: 1;
}


#sp-header .header-modules {
    position: relative;

    display: flex;
    align-items: center;

    flex: 0 0 auto;

    overflow: visible !important;

    z-index: 100;
}


/*
   Родительские контейнеры не должны обрезать
   раскрывающееся влево поле поиска.
*/

#sp-header,
#sp-header .container,
#sp-header .container-inner,
#sp-header .row,
#sp-header #sp-menu,
#sp-header #sp-menu > .sp-column,
#sp-header .header-modules {

    overflow: visible !important;
}


/* ==========================================================
   DESKTOP 992–1350
   Немного уменьшаем ширину раскрытого поиска
   ========================================================== */

@media (min-width: 992px) and (max-width: 1350px) {

    #sp-header .mod-finder__form,
    #sp-header .finder-search,
    #sp-header form.form-search {

        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;

        flex-basis: 36px !important;
    }


    #sp-header .mod-finder__form input[type="text"],
    #sp-header .mod-finder__form input[type="search"],
    #sp-header .finder-search input[type="text"],
    #sp-header .finder-search input[type="search"],
    #sp-header form.form-search input[type="text"],
    #sp-header form.form-search input[type="search"] {

        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
    }


    #sp-header .mod-finder__form input:focus,
    #sp-header .finder-search input:focus,
    #sp-header form.form-search input:focus {

        width: 230px !important;
        min-width: 230px !important;
    }


    #sp-header .mod-finder__form::before,
    #sp-header .finder-search::before,
    #sp-header form.form-search::before {

        right: 9px !important;

        font-size: 17px;
    }

}


/* ==========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   На телефоне не используем абсолютное раскрытие на 260px
   ========================================================== */

@media (max-width: 991px) {

    #sp-header .mod-finder__form,
    #sp-header .finder-search,
    #sp-header form.form-search {

        width: 40px !important;
        min-width: 40px !important;

        flex: 0 0 40px !important;
    }


    #sp-header .mod-finder__form input:focus,
    #sp-header .finder-search input:focus,
    #sp-header form.form-search input:focus {

        width: min(240px, calc(100vw - 80px)) !important;
        min-width: 0 !important;
    }

}

/* ==========================================================
   ГЛАВНОЕ МЕНЮ
   ========================================================== */

#sp-header .sp-megamenu-parent {
    margin: 0 !important;
}


/*
   Пункты верхнего уровня
*/
#sp-header .sp-megamenu-parent > li {
    position: relative;
}


#sp-header .sp-megamenu-parent > li > a,
#sp-header .sp-megamenu-parent > li > span {
    position: relative;

    text-decoration: none !important;
}


/* ==========================================================
   ПОДЧЕРКИВАНИЕ МЕНЮ ПРИ НАВЕДЕНИИ
   ========================================================== */

#sp-header .sp-megamenu-parent > li > a::after,
#sp-header .sp-megamenu-parent > li > span::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 5px;

    width: 0;
    height: 2px;

    background: var(--uk-blue);

    transform: translateX(-50%);

    transition: width .25s ease;
}


#sp-header .sp-megamenu-parent > li:hover > a::after,
#sp-header .sp-megamenu-parent > li:hover > span::after,
#sp-header .sp-megamenu-parent > li.active > a::after,
#sp-header .sp-megamenu-parent > li.current-item > a::after {
    width: calc(100% - 18px);
}


/*
   Если фон header синий и текст меню белый,
   можно сделать линию белой.

   Если потребуется — заменить:
   background: var(--uk-blue);

   на:
   background: var(--uk-white);
*/


/* ==========================================================
   DROPDOWN / ВЫПАДАЮЩЕЕ МЕНЮ
   ========================================================== */

/*
   Не даём dropdown быть слишком узким
*/
#sp-header .sp-dropdown {
    min-width: 260px !important;

    width: max-content !important;
    max-width: min(560px, calc(100vw - 30px)) !important;

    box-sizing: border-box !important;
}


/*
   Внутренняя область dropdown
*/
#sp-header .sp-dropdown .sp-dropdown-inner {
    width: 100% !important;
    min-width: 260px !important;
    max-width: 560px !important;

    padding: 8px 0 !important;

    box-sizing: border-box !important;

    background: var(--uk-white) !important;
}


/*
   Длинные пункты меню теперь переносятся
*/
#sp-header .sp-dropdown li,
#sp-header .sp-dropdown li > a,
#sp-header .sp-dropdown li > span {
    width: 100% !important;
    max-width: 100% !important;

    box-sizing: border-box !important;
}


#sp-header .sp-dropdown li > a,
#sp-header .sp-dropdown li > span {
    display: block !important;

    padding: 10px 18px !important;

    white-space: normal !important;

    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: normal !important;

    line-height: 1.4 !important;

    text-decoration: none !important;
}


/*
   Не допускаем выхода текста за фон dropdown
*/
#sp-header .sp-dropdown .sp-menu-item {
    white-space: normal !important;
}


/*
   Hover dropdown
*/
#sp-header .sp-dropdown li > a:hover,
#sp-header .sp-dropdown li.active > a {
    background: #f3f7fa !important;

    color: var(--uk-blue-dark) !important;
}


/*
   Линия слева для hover внутри dropdown
*/
#sp-header .sp-dropdown li > a {
    position: relative;
}


#sp-header .sp-dropdown li > a::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 3px;
    height: 0;

    background: var(--uk-blue);

    transform: translateY(-50%);

    transition: height .2s ease;
}


#sp-header .sp-dropdown li > a:hover::before,
#sp-header .sp-dropdown li.active > a::before {
    height: 65%;
}


/* ==========================================================
   DESKTOP 992–1599 px
   меню не переносится на вторую строку
   ========================================================== */


/* ==========================================================
   КОМПАКТНЫЙ DESKTOP 992–1350 px
   ========================================================== */


/* ==========================================================
   МОБИЛЬНОЕ OFFCANVAS-МЕНЮ
   ========================================================== */

.offcanvas-menu .menu,
.offcanvas-menu .menu li,
.offcanvas-menu .menu li a {
    max-width: 100%;
}


.offcanvas-menu .menu li a,
.offcanvas-menu .menu li span {
    white-space: normal !important;

    overflow-wrap: break-word;

    line-height: 1.4;
}


/* ==========================================================
   ГЛАВНАЯ СТРАНИЦА
   3 ПОСЛЕДНИЕ НОВОСТИ
   ========================================================== */

.rosseti-newsflash {
    width: 100%;
    padding: 40px 20px !important;
    box-sizing: border-box;
}


/* ----------------------------------------------------------
   СЕТКА
   ---------------------------------------------------------- */

.rosseti-newsflash .newsflash,
.rosseti-newsflash .mod-articlesnews,
.rosseti-newsflash ul.mod-list {
    display: grid !important;

    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    gap: 24px !important;

    align-items: stretch !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}


/* ----------------------------------------------------------
   КАРТОЧКА
   ---------------------------------------------------------- */

.rosseti-newsflash .newsflash > li,
.rosseti-newsflash .mod-articlesnews > li,
.rosseti-newsflash ul.mod-list > li,
.rosseti-newsflash .mod-articlesnews__item {
    display: flex !important;

    flex-direction: column !important;

    justify-content: flex-start !important;

    align-items: stretch !important;

    min-width: 0 !important;
    width: 100% !important;

    height: auto !important;
    min-height: 400px !important;

    margin: 0 !important;
    padding: 20px !important;

    box-sizing: border-box !important;

    background: var(--uk-white) !important;

    border: 1px solid var(--uk-border-card) !important;
    border-radius: 8px !important;

    box-shadow: 0 4px 12px rgba(0,90,155,0.08) !important;

    overflow: hidden !important;
}


/* ----------------------------------------------------------
   ИЗОБРАЖЕНИЕ
   ---------------------------------------------------------- */

.rosseti-newsflash figure,
.rosseti-newsflash .newsflash-image,
.rosseti-newsflash .mod-articlesnews__image {
    display: block !important;

    flex: 0 0 auto !important;

    width: 100% !important;

    margin: 0 0 16px 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
}


.rosseti-newsflash img,
.rosseti-newsflash figure img,
.rosseti-newsflash .newsflash-image img,
.rosseti-newsflash .mod-articlesnews__image img {
    display: block !important;

    width: 100% !important;

    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;

    border: 0 !important;
    border-radius: 4px !important;
}


/* ----------------------------------------------------------
   ЗАГОЛОВОК НОВОСТИ
   ---------------------------------------------------------- */

/*
   Здесь специально перечислены h2, h3 и h4,
   поскольку разные версии модуля Joomla
   могут выводить заголовок разными тегами.
*/

.rosseti-newsflash .newsflash-title,
.rosseti-newsflash .mod-articles__title,
.rosseti-newsflash .mod-articlesnews__item-title,
.rosseti-newsflash h2:not(.sp-module-title),
.rosseti-newsflash h3:not(.sp-module-title),
.rosseti-newsflash h4 {
    display: block !important;

    flex: 0 0 auto !important;

    width: 100% !important;

    min-height: 0 !important;
    height: auto !important;

    margin: 0 0 12px 0 !important;
    padding: 0 !important;

    color: var(--uk-blue-dark) !important;

    font-size: 18px !important;
    line-height: 1.35 !important;

    font-weight: 700 !important;

    text-align: left !important;

    overflow-wrap: break-word !important;
    word-break: normal !important;
}


/* Ссылка заголовка */
.rosseti-newsflash .newsflash-title a,
.rosseti-newsflash .mod-articles__title a,
.rosseti-newsflash .mod-articlesnews__item-title a,
.rosseti-newsflash h2:not(.sp-module-title) a,
.rosseti-newsflash h3:not(.sp-module-title) a,
.rosseti-newsflash h4 a {
    display: block !important;

    color: var(--uk-blue-dark) !important;

    font-size: 18px !important;
    line-height: 1.35 !important;

    font-weight: 700 !important;

    text-align: left !important;

    text-decoration: none !important;

    overflow-wrap: break-word !important;
    word-break: normal !important;
}


.rosseti-newsflash .newsflash-title a:hover,
.rosseti-newsflash .mod-articles__title a:hover,
.rosseti-newsflash .mod-articlesnews__item-title a:hover,
.rosseti-newsflash h2:not(.sp-module-title) a:hover,
.rosseti-newsflash h3:not(.sp-module-title) a:hover,
.rosseti-newsflash h4 a:hover {
    color: var(--uk-blue-hover) !important;
}


/* ----------------------------------------------------------
   ДАТА
   ---------------------------------------------------------- */

.rosseti-newsflash .article-info,
.rosseti-newsflash .newsflash-date,
.rosseti-newsflash time {
    margin: 0 0 10px 0 !important;

    color: #777 !important;

    font-size: 12px !important;
    line-height: 1.4 !important;
}


/* ----------------------------------------------------------
   АНОНС
   ---------------------------------------------------------- */

.rosseti-newsflash .newsflash-introtext,
.rosseti-newsflash .mod-articles__introtext,
.rosseti-newsflash .mod-articlesnews__introtext {
    display: -webkit-box !important;

    flex: 0 0 auto !important;

    margin: 0 0 16px 0 !important;
    padding: 0 !important;

    color: #555 !important;

    font-size: 14px !important;
    line-height: 1.5 !important;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden !important;
}


/* Абзацы внутри анонса */
.rosseti-newsflash .newsflash-introtext p,
.rosseti-newsflash .mod-articles__introtext p,
.rosseti-newsflash .mod-articlesnews__introtext p {
    margin: 0 !important;
    padding: 0 !important;

    color: #555 !important;

    font-size: 14px !important;
    line-height: 1.5 !important;
}


/* ----------------------------------------------------------
   КНОПКА ПОДРОБНЕЕ
   ---------------------------------------------------------- */

.rosseti-newsflash .readmore,
.rosseti-newsflash .mod-articles__readmore {
    margin-top: auto !important;
    margin-bottom: 0 !important;

    padding: 0 !important;
}


.rosseti-newsflash .readmore a,
.rosseti-newsflash .mod-articles__readmore a,
.rosseti-newsflash .btn {
    display: inline-block !important;

    width: auto !important;

    padding: 8px 16px !important;

    background: var(--uk-blue-dark) !important;

    color: var(--uk-white) !important;

    border: none !important;
    border-radius: 4px !important;

    font-size: 14px !important;
    line-height: 1.4 !important;

    font-weight: 500 !important;

    text-decoration: none !important;
}


.rosseti-newsflash .readmore a:hover,
.rosseti-newsflash .mod-articles__readmore a:hover,
.rosseti-newsflash .btn:hover {
    background: var(--uk-blue-hover) !important;

    color: var(--uk-white) !important;
}


/* ----------------------------------------------------------
   ЗАГОЛОВОК "НОВОСТИ"
   ---------------------------------------------------------- */

.rosseti-newsflash .sp-module-title,
.rosseti-newsflash .modtitle,
.rosseti-newsflash h3.sp-module-title {
    display: block !important;

    width: 100% !important;

    min-height: 0 !important;

    margin: 0 0 30px 0 !important;

    color: var(--uk-blue-dark) !important;

    font-size: 32px !important;
    line-height: 1.25 !important;

    font-weight: 700 !important;

    text-align: center !important;
}


/* ==========================================================
   ПЛАНШЕТ
   ========================================================== */


/* ==========================================================
   ТЕЛЕФОН
   ========================================================== */


/* ==========================================================
   СТРАНИЦА НОВОСТЕЙ
   ========================================================== */

body.itemid-116.view-category .blog .article-list {
    display: grid !important;

    grid-template-columns: repeat(3, minmax(0,1fr)) !important;

    grid-auto-rows: auto !important;

    gap: 24px !important;

    align-items: stretch !important;

    padding: 20px 0 40px !important;
}


body.itemid-116.view-category
.blog .article-list > .article {
    display: flex !important;

    flex-direction: column !important;

    justify-content: flex-start !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;

    padding: 15px !important;

    background: var(--uk-white) !important;

    border: 1px solid var(--uk-border-card) !important;

    border-radius: 8px !important;

    box-shadow: var(--uk-shadow-card) !important;

    overflow: hidden;
}


body.itemid-116.view-category
.article-intro-image {
    width: 100% !important;

    height: 190px !important;

    margin: 0 0 15px !important;

    overflow: hidden !important;

    float: none !important;
}


body.itemid-116.view-category
.article-intro-image img {
    display: block !important;

    width: 100% !important;
    height: 190px !important;

    object-fit: cover !important;

    margin: 0 !important;
}


body.itemid-116.view-category
.article-header h2 {
    min-height: 48px !important;

    margin: 0 0 10px !important;

    color: var(--uk-blue-dark) !important;

    font-size: 17px !important;
    line-height: 1.3 !important;

    text-align: center !important;
}


body.itemid-116.view-category
.article-header h2 a {
    color: var(--uk-blue-dark) !important;

    text-decoration: none !important;
}


body.itemid-116.view-category
.article-header h2 a:hover {
    color: var(--uk-text) !important;
}


body.itemid-116.view-category
.article-info {
    margin-bottom: 10px !important;

    color: #777 !important;

    font-size: 11px !important;
}


body.itemid-116.view-category
.article-introtext {
    display: -webkit-box !important;

    margin-bottom: 12px !important;

    color: #555 !important;

    font-size: 13px !important;
    line-height: 1.45 !important;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden !important;
}


body.itemid-116.view-category
.article-list .readmore {
    margin-top: 0 !important;
}


/* ==========================================================
   ОТКРЫТАЯ НОВОСТЬ
   ========================================================== */

/*
   Используем более универсальный селектор,
   чтобы не зависеть только от Itemid.
*/
body.com-content.view-article #sp-main-body {
    background: var(--uk-bg-page);
}


body.com-content.view-article
#sp-component .article-details {
    width: calc(100% - 40px) !important;

    max-width: 1000px !important;

    margin: 35px auto 60px !important;

    padding: 45px 80px !important;

    box-sizing: border-box !important;

    background: var(--uk-white) !important;

    border: 1px solid var(--uk-border-card) !important;

    border-radius: 8px !important;

    box-shadow: var(--uk-shadow-page) !important;
}


body.com-content.view-article
.article-details .article-header,

body.com-content.view-article
.article-details .article-info,

body.com-content.view-article
.article-details .article-full-image,

body.com-content.view-article
.article-details .com-content-article__body {
    width: 100% !important;

    max-width: 760px !important;

    margin-left: auto !important;
    margin-right: auto !important;
}


body.com-content.view-article
.article-details .article-header h1,

body.com-content.view-article
.article-details .article-header h2 {
    margin: 0 0 25px !important;

    color: var(--uk-blue-dark) !important;

    font-size: 28px !important;
    line-height: 1.35 !important;

    text-align: center !important;
}


body.com-content.view-article
.article-details .com-content-article__body {
    color: #333;

    font-size: 16px !important;
    line-height: 1.7 !important;

    text-align: left !important;
}


body.com-content.view-article
.article-details .com-content-article__body img,
body.com-content.view-article
.article-details .article-full-image img {
    display: block !important;

    width: auto !important;
    max-width: 100% !important;

    height: auto !important;

    margin: 30px auto !important;
}


/* ==========================================================
   ОБЩИЙ СТИЛЬ КАРТОЧНЫХ СТРАНИЦ
   ========================================================== */

.energy-project-page,
.hostel-page,
.thanks-page,
.faq-page,
.uk-contacts-wrapper {
    width: 100%;
    max-width: 1160px;

    margin: 30px auto 60px;

    box-sizing: border-box;
}


/* ==========================================================
   FAQ
   ========================================================== */

.faq-hero {
    margin-bottom: 30px;

    padding: 30px 40px;

    background: var(--uk-blue);

    color: var(--uk-white);

    text-align: center;

    border-radius: var(--uk-radius-lg);
}


.faq-hero h1 {
    margin: 0 0 8px !important;

    color: var(--uk-white) !important;

    font-size: 28px !important;
}


.faq-card {
    margin-bottom: 20px;

    background: var(--uk-white);

    border: 1px solid var(--uk-border);

    border-radius: var(--uk-radius-sm);

    overflow: hidden;
}


.faq-card-title {
    display: flex;

    align-items: center;

    min-height: 52px;

    padding: 10px 15px;

    background: var(--uk-bg-light);

    border-bottom: 1px solid var(--uk-border);

    color: var(--uk-blue);

    font-size: 18px;
}


.faq-card-body {
    padding: 20px;
}


.faq-list details {
    width: 100%;

    margin-bottom: 12px;

    border: 1px solid #e2e2e2;

    border-radius: 5px;

    overflow: hidden;
}


.faq-list summary {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 58px;

    padding: 14px 55px 14px 20px;

    background: #fafafa;

    color: var(--uk-blue);

    font-size: 17px;
    line-height: 1.45;

    font-weight: 600;

    cursor: pointer;

    list-style: none;
}


.faq-list summary::-webkit-details-marker {
    display: none;
}


.faq-list summary::after {
    content: "+";

    position: absolute;

    right: 18px;
    top: 50%;

    display: flex;

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

    width: 28px;
    height: 28px;

    transform: translateY(-50%);

    background: var(--uk-blue);

    color: var(--uk-white);

    border-radius: 50%;

    font-size: 20px;
}


.faq-list details[open] summary::after {
    content: "−";

    background: var(--uk-text);
}


.faq-answer {
    padding: 18px 22px 20px;

    background: var(--uk-white);

    color: #444;
}


/* ==========================================================
   ОБЩЕЖИТИЕ
   ========================================================== */

.hostel-hero,
.thanks-hero,
.energy-project-hero,
.contacts-header {
    margin-bottom: 30px;

    padding: 30px 40px;

    background: var(--uk-blue);

    color: var(--uk-white);

    text-align: center;

    border-radius: var(--uk-radius-lg);
}


.hostel-hero h1,
.thanks-hero h1,
.energy-project-hero h1,
.contacts-header h1 {
    margin: 0 0 10px !important;

    color: var(--uk-white) !important;

    font-size: 28px !important;

    font-weight: 500 !important;
}


.hostel-card,
.thanks-card,
.energy-card,
.contact-card {
    background: var(--uk-white);

    border: 1px solid var(--uk-border);

    border-radius: var(--uk-radius-sm);

    overflow: hidden;

    box-shadow: var(--uk-shadow-sm);
}


.hostel-card,
.thanks-card,
.energy-card {
    margin-bottom: 20px;
}


.hostel-card-title,
.thanks-card-title,
.energy-card-title,
.card-title {
    display: flex;

    align-items: center;

    min-height: 52px;

    padding: 10px 15px;

    box-sizing: border-box;

    background: var(--uk-bg-light);

    border-bottom: 1px solid var(--uk-border);

    color: var(--uk-blue);

    font-size: 18px;
}


.hostel-card-body,
.thanks-card-body,
.energy-card-body,
.card-content {
    padding: 20px;
}


/* ==========================================================
   ОБЩЕЖИТИЕ — ПРЕИМУЩЕСТВА
   ========================================================== */

.hostel-features {
    display: grid;

    grid-template-columns: repeat(2,minmax(0,1fr));

    gap: 0 24px;

    margin-top: 20px;
}


.hostel-feature {
    display: flex;

    align-items: flex-start;

    padding: 13px 0;

    border-bottom: 1px solid #eee;
}


.hostel-feature span {
    display: inline-flex;

    flex: 0 0 24px;

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

    width: 24px;
    height: 24px;

    margin-right: 10px;

    background: var(--uk-blue);

    color: var(--uk-white);

    border-radius: 50%;
}


/* ==========================================================
   БЛАГОДАРСТВЕННЫЕ ПИСЬМА
   Полное изображение без обрезки
   ========================================================== */

.thanks-page {
    padding: 0 15px;
}


.thanks-gallery {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto !important;

    overflow: hidden !important;

    box-sizing: border-box !important;
}


.thanks-gallery > div,
.thanks-gallery .swiper,
.thanks-gallery .swiper-wrapper,
.thanks-gallery .swiper-slide,
.thanks-gallery .splide,
.thanks-gallery .splide__track,
.thanks-gallery .splide__list,
.thanks-gallery .splide__slide,
.thanks-gallery .carousel,
.thanks-gallery .carousel-inner,
.thanks-gallery .carousel-item {
    width: 100% !important;
    max-width: 100% !important;

    box-sizing: border-box !important;
}


.thanks-gallery a {
    display: flex !important;

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

    width: 100% !important;
    max-width: 100% !important;

    overflow: hidden !important;
}


.thanks-gallery img {
    display: block !important;

    width: auto !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: calc(100vh - 220px) !important;

    object-fit: contain !important;

    margin: 0 auto !important;

    transform: none !important;
}


/* ==========================================================
   КОНТАКТЫ
   ========================================================== */

.uk-contacts-wrapper {
    padding: 20px;
}


.contacts-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0,1fr));

    gap: 20px;

    align-items: stretch;
}


.contact-card {
    display: flex;

    flex-direction: column;

    min-width: 0;
}


.card-title h3 {
    margin: 0 !important;

    color: var(--uk-blue-dark) !important;

    font-size: 18px !important;
}


.card-content {
    flex-grow: 1;
}


/* ==========================================================
   ДИРЕКТОР
   ========================================================== */

.director-block {
    display: flex;

    align-items: center;

    gap: 20px;
}


.director-photo {
    width: 120px;
    height: 120px;

    object-fit: cover;

    border: 1px solid #ddd;

    border-radius: var(--uk-radius-sm);
}


.director-info strong {
    display: block;

    margin-bottom: 5px;

    font-size: 18px;
}


.director-info span {
    color: #666;

    font-size: 14px;
}


/* ==========================================================
   СПИСКИ КОНТАКТОВ
   ========================================================== */

.contacts-list,
.requisites-list {
    margin: 0;

    padding: 0;

    list-style: none;
}


.contacts-list li,
.requisites-list li {
    margin-bottom: 10px;

    padding-bottom: 10px;

    border-bottom: 1px solid #eee;
}


.contacts-list strong,
.requisites-list strong {
    display: block;

    margin-bottom: 4px;

    color: var(--uk-blue-dark);

    font-size: 14px;

    text-transform: uppercase;
}


.contacts-list p,
.requisites-list p {
    margin: 0;

    font-size: 16px;
}


/* ==========================================================
   СОЦСЕТИ
   ========================================================== */

.social-links {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


.btn-social {
    display: inline-flex;

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

    padding: 8px 16px;

    background: var(--uk-blue-dark);

    color: var(--uk-white) !important;

    border-radius: 20px;

    text-decoration: none !important;
}


.btn-social:hover {
    background: var(--uk-blue-hover);
}


/* ==========================================================
   РЕЖИМ РАБОТЫ
   ========================================================== */

.work-schedule {
    width: 100%;

    border-collapse: collapse;
}


.work-schedule th,
.work-schedule td {
    padding: 10px;

    text-align: left;

    border-bottom: 1px solid #eee;
}


.work-schedule th {
    background: var(--uk-bg-light);

    color: var(--uk-blue-dark);
}


/* ==========================================================
   БАНКОВСКИЕ РЕКВИЗИТЫ
   ========================================================== */

.bank-grid {
    display: grid;

    grid-template-columns: repeat(2,minmax(0,1fr));

    gap: 0 24px;
}


.bank-item {
    min-width: 0;

    padding: 12px 0;

    border-bottom: 1px solid #eee;
}


.bank-item-wide {
    grid-column: 1 / -1;
}


.bank-item strong {
    display: block;

    margin-bottom: 5px;

    color: var(--uk-blue-dark);

    font-size: 13px;

    text-transform: uppercase;
}


.bank-item p {
    margin: 0;

    color: #444;

    font-size: 15px;

    overflow-wrap: anywhere;
}


/* ==========================================================
   КАК ДОБРАТЬСЯ
   ========================================================== */

.contact-route-card,
.contact-map-card {
    grid-column: 1 / -1;
}


.route-address {
    margin-bottom: 20px;

    padding: 14px 16px;

    background: #f7f9fb;

    border-left: 4px solid var(--uk-blue-dark);

    border-radius: 3px;
}


.route-address strong {
    display: block;

    margin-bottom: 4px;

    color: var(--uk-blue-dark);

    font-size: 14px;

    text-transform: uppercase;
}


.route-address p {
    margin: 0;
}


.route-heading {
    margin-bottom: 15px;

    font-size: 16px;

    font-weight: 600;
}


.transport-list {
    display: grid;

    grid-template-columns: 1fr;

    gap: 12px;
}


.transport-item {
    display: grid;

    grid-template-columns: 64px 1fr;

    gap: 16px;

    align-items: flex-start;

    padding: 16px;

    border: 1px solid #e5e5e5;

    border-radius: 5px;
}


.transport-icon {
    display: flex;

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

    width: 56px;
    height: 56px;

    background: #f4f8fb;

    border-radius: 50%;
}


.transport-icon img {
    width: 34px;
    height: 34px;

    object-fit: contain;
}


.transport-info > strong {
    display: block;

    margin-bottom: 6px;

    color: var(--uk-blue-dark);

    font-size: 16px;
}


.transport-info p {
    margin: 0 0 7px;

    color: #555;

    font-size: 15px;
    line-height: 1.55;
}


.route-number {
    display: inline-block;

    min-width: 28px;

    margin-right: 2px;

    padding: 2px 7px;

    background: var(--uk-blue-dark);

    color: var(--uk-white);

    border-radius: 12px;

    text-align: center;

    font-size: 13px;

    font-weight: 600;
}


/* ==========================================================
   ЯНДЕКС-КАРТА
   ========================================================== */

.map-card-content {
    padding: 20px;
}


.yandex-map-wrapper {
    width: 100%;

    overflow: hidden;

    border: 1px solid #e0e0e0;

    border-radius: var(--uk-radius-sm);
}


.yandex-map-wrapper iframe {
    display: block;

    width: 100% !important;
    max-width: 100% !important;

    height: 450px;

    border: 0;
}


/* ==========================================================
   TABLET
   ========================================================== */


/* ==========================================================
   MOBILE
   ========================================================== */


/* ==========================================================
   MOBILE до 767
   ========================================================== */


/* ==========================================================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ========================================================== */


/* ==========================================================
   СТРАНИЦА "ПЛАН ОБУЧЕНИЯ"
   ========================================================== */

.training-plan-page {
    width: 100%;
    max-width: 1200px;

    margin: 30px auto 60px;

    color: #3f3f3f;

    font-size: 15px;
    line-height: 1.55;

    box-sizing: border-box;
}


/* ==========================================================
   ВЕРХНЯЯ СИНЯЯ ШАПКА
   ========================================================== */

.training-plan-hero {
    margin-bottom: 30px;

    padding: 30px 40px;

    background: var(--uk-blue);

    color: var(--uk-white);

    text-align: center;

    border-radius: var(--uk-radius-lg);
}


.training-plan-hero h1 {
    margin: 0 0 8px !important;

    color: var(--uk-white) !important;

    font-size: 28px !important;
    line-height: 1.3 !important;

    font-weight: 500 !important;
}


.training-plan-hero p {
    margin: 0 !important;

    color: var(--uk-white) !important;

    font-size: 14px !important;
    line-height: 1.5 !important;
}


/* ==========================================================
   КАРТОЧКА
   ========================================================== */

.training-plan-card,
.training-download-card {
    width: 100%;

    margin: 0 0 20px;

    background: var(--uk-white);

    border: 1px solid var(--uk-border);

    border-radius: 5px;

    box-shadow: var(--uk-shadow-sm);

    overflow: hidden;

    box-sizing: border-box;
}


.training-plan-card-title {
    display: flex;

    align-items: center;

    min-height: 52px;

    padding: 10px 15px;

    background: var(--uk-bg-light);

    border-bottom: 1px solid var(--uk-border);

    color: var(--uk-blue);

    font-size: 18px;
    line-height: 1.4;

    box-sizing: border-box;
}


.training-plan-icon {
    display: inline-flex;

    flex: 0 0 24px;

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

    width: 24px;
    height: 24px;

    margin-right: 9px;

    color: #333;

    font-size: 17px;
    font-weight: 700;
}


.training-plan-card-body {
    padding: 20px;

    box-sizing: border-box;
}


/* ==========================================================
   ТАБЛИЦА ПЛАНА ОБУЧЕНИЯ
   ========================================================== */

.training-plan-table-wrap {
    width: 100%;
    max-width: 100%;

    overflow-x: visible;

    border: 1px solid #dfe4e8;
    border-radius: var(--uk-radius-sm);

    box-sizing: border-box;
}


/* На больших экранах таблица полностью помещается */
.training-plan-table {
    width: 100% !important;

    min-width: 0 !important;
    max-width: 100% !important;

    margin: 0 !important;

    border-collapse: collapse !important;

    table-layout: fixed;

    background: var(--uk-white);
}


/* Заголовки */
.training-plan-table thead th {
    padding: 12px 8px !important;

    vertical-align: middle !important;

    background: var(--uk-blue) !important;

    color: var(--uk-white) !important;

    border: 1px solid rgba(255,255,255,.25) !important;

    font-size: 14px !important;
    line-height: 1.35 !important;

    font-weight: 600 !important;

    text-align: center !important;

    white-space: normal !important;

    overflow-wrap: break-word;
}


/* Ячейки */
.training-plan-table tbody td {
    padding: 10px 8px !important;

    vertical-align: middle !important;

    color: #444;

    border: 1px solid #e0e0e0 !important;

    font-size: 14px;
    line-height: 1.45;

    box-sizing: border-box;
}


/* Первая колонка */
.training-plan-table tbody td:nth-child(1) {
    text-align: center;
}


/* Название обучения */
.training-plan-table tbody td:nth-child(2) {
    text-align: left;

    white-space: normal !important;

    overflow-wrap: break-word;
    word-break: normal;
}


/* Часы и даты */
.training-plan-table tbody td:nth-child(3),
.training-plan-table tbody td:nth-child(4),
.training-plan-table tbody td:nth-child(5) {
    text-align: center;

    white-space: nowrap;
}


/* ==========================================================
   БЛОК СКАЧИВАНИЯ
   ========================================================== */

.training-download-body {
    display: grid;

    grid-template-columns: 1fr;

    gap: 0;

    padding: 0 20px;

    box-sizing: border-box;
}


.training-download-item {
    display: grid;

    grid-template-columns: 48px 1fr 30px;

    gap: 14px;

    align-items: center;

    min-width: 0;

    padding: 16px 0;

    color: #444 !important;

    border-bottom: 1px solid #eee;

    text-decoration: none !important;

    transition:
        background .2s ease,
        color .2s ease;
}


.training-download-item:last-child {
    border-bottom: none;
}


.training-download-item:hover {
    color: var(--uk-blue) !important;
}


/* PDF / XLS */
.training-file-icon {
    display: flex;

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

    width: 46px;
    height: 46px;

    background: var(--uk-blue);

    color: var(--uk-white);

    border-radius: 5px;

    font-size: 11px;

    font-weight: 700;
}


.training-file-xls {
    background: #367c4a;
}


/* Название */
.training-file-info {
    display: block;

    min-width: 0;
}


.training-file-info strong {
    display: block;

    margin-bottom: 3px;

    color: var(--uk-blue);

    font-size: 15px;
    line-height: 1.4;

    font-weight: 600;
}


.training-file-info small {
    display: block;

    color: #777;

    font-size: 12px;
}


/* Стрелка */
.training-download-arrow {
    color: var(--uk-blue);

    font-size: 22px;

    text-align: center;

    transition: transform .2s ease;
}


.training-download-item:hover .training-download-arrow {
    transform: translateX(3px);
}


    .training-plan-table thead th,
    .training-plan-table tbody td {
        padding: 8px !important;

        font-size: 12px !important;
    }

}


/* ==========================================================
   УБИРАЕМ ЛИШНИЙ ОТСТУП МЕЖДУ ШАПКОЙ И МАТЕРИАЛОМ
   Joomla + Helix Ultimate
   ========================================================== */

/* Основной контент */
#sp-main-body {
    padding-top: 0px !important;
}


/* Компонент Joomla */
#sp-component {
    padding-top: 0 !important;
}


/* Обычный материал */
.com-content-article,
.article-details {
    margin-top: 0 !important;
}


/* Убираем верхний отступ у первой обертки материала */
.com-content-article > *:first-child,
.article-details > *:first-child,
#sp-component > *:first-child {
    margin-top: 0 !important;
}


/* Для наших оформленных страниц */
.energy-project-page,
.hostel-page,
.thanks-page,
.faq-page,
.uk-contacts-wrapper,
.training-plan-page,
.applications-page {
    margin-top: 0 !important;
}


/* Если первая секция — фирменная синяя шапка */
.energy-project-hero,
.hostel-hero,
.thanks-hero,
.faq-hero,
.contacts-header,
.training-plan-hero,
.applications-hero {
    margin-top: 0 !important;
}


/* ==========================================================
   ПК
   ========================================================== */


/* ==========================================================
   ПЛАНШЕТ
   ========================================================== */


/* ==========================================================
   ТЕЛЕФОН
   ========================================================== */


/* ==========================================================
   МОБИЛЬНОЕ OFFCANVAS-МЕНЮ
   ========================================================== */

.offcanvas-menu .menu,
.offcanvas-menu .menu li,
.offcanvas-menu .menu li a {
    max-width: 100%;
}

.offcanvas-menu .menu li a,
.offcanvas-menu .menu li span {
    white-space: normal !important;
    overflow-wrap: break-word;
    line-height: 1.4;
}

/* ==========================================================
   OFF-CANVAS MENU — HELIX ULTIMATE
   ЕДИНЫЙ ФИНАЛЬНЫЙ БЛОК
   ========================================================== */


/* ==========================================================
   ОСНОВНАЯ ПАНЕЛЬ
   ========================================================== */

.offcanvas-menu {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;

    width: 360px !important;
    max-width: 88vw !important;

    height: 100vh !important;

    margin: 0 !important;

    z-index: 99999 !important;

    box-sizing: border-box !important;

    background: var(--uk-white) !important;

    color: #333 !important;

    border-left: 1px solid #dfe4e8 !important;

    box-shadow: -8px 0 24px rgba(0, 0, 0, .14) !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    /*
       ЗАКРЫТОЕ СОСТОЯНИЕ
    */
    transform: translate3d(100%, 0, 0) !important;

    visibility: hidden !important;
    opacity: 0 !important;

    pointer-events: none !important;

    transition:
        transform .30s ease,
        opacity .20s ease,
        visibility .30s ease !important;
}


/* ==========================================================
   ОТКРЫТОЕ СОСТОЯНИЕ
   ========================================================== */

body.offcanvas-active .offcanvas-menu {
    transform: translate3d(0, 0, 0) !important;

    visibility: visible !important;
    opacity: 1 !important;

    pointer-events: auto !important;
}


/* ==========================================================
   ПОДДЕРЖКА РАЗНЫХ КЛАССОВ HELIX
   ========================================================== */

body.offcanvs-position-right .offcanvas-menu,
body.offcanvas-position-right .offcanvas-menu {
    right: 0 !important;
    left: auto !important;

    transform: translate3d(100%, 0, 0) !important;
}


body.offcanvs-position-right.offcanvas-active .offcanvas-menu,
body.offcanvas-position-right.offcanvas-active .offcanvas-menu {
    transform: translate3d(0, 0, 0) !important;

    visibility: visible !important;
    opacity: 1 !important;

    pointer-events: auto !important;
}


/* ==========================================================
   НЕ ДАЕМ OFF-CANVAS РАЗДВИГАТЬ СТРАНИЦУ
   ========================================================== */

html,
body {
    max-width: 100%;
}


body {
    overflow-x: hidden;
}


body.offcanvas-active {
    overflow: hidden !important;
}


/* ==========================================================
   ВНУТРЕННЯЯ ОБЛАСТЬ
   ========================================================== */

.offcanvas-menu .offcanvas-inner {
    width: 100% !important;

    min-height: 100% !important;

    padding: 22px 20px !important;

    box-sizing: border-box !important;

    background: var(--uk-white) !important;

    color: #333 !important;
}


/* ==========================================================
   ЛОГОТИП
   ========================================================== */

.offcanvas-menu .logo,
.offcanvas-menu .offcanvas-logo {
    display: block;

    width: 100%;

    margin: 0 0 20px !important;
}


.offcanvas-menu .logo img,
.offcanvas-menu .offcanvas-logo img,
.offcanvas-menu img.logo-image {
    display: block !important;

    width: auto !important;
    max-width: 100% !important;

    height: auto !important;

    margin: 0 auto !important;
}


/* ==========================================================
   КНОПКА ЗАКРЫТИЯ
   ========================================================== */

.offcanvas-menu .close-offcanvas {
    position: absolute !important;

    top: 14px !important;
    right: 14px !important;

    display: flex !important;

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

    width: 34px !important;
    height: 34px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #f5f7f9 !important;

    color: var(--uk-blue-dark) !important;

    border: 1px solid #dfe4e8 !important;
    border-radius: 50% !important;

    font-size: 18px !important;
    line-height: 1 !important;

    box-shadow: none !important;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}


.offcanvas-menu .close-offcanvas:hover {
    background: var(--uk-blue-dark) !important;

    color: var(--uk-white) !important;

    border-color: var(--uk-blue-dark) !important;
}


/* ==========================================================
   ПОИСК
   ========================================================== */

.offcanvas-menu .mod-finder,
.offcanvas-menu .finder,
.offcanvas-menu .mod-finder__form,
.offcanvas-menu .finder-search,
.offcanvas-menu form {
    position: relative;

    width: 100% !important;

    margin: 0 0 20px !important;
}


.offcanvas-menu input[type="text"],
.offcanvas-menu input[type="search"] {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 42px !important;

    margin: 0 !important;

    padding: 0 14px !important;

    box-sizing: border-box !important;

    background: #f7f9fa !important;

    color: #333 !important;

    border: 1px solid #d7dfe5 !important;
    border-radius: 5px !important;

    outline: none !important;

    box-shadow: none !important;

    font-size: 14px !important;
    line-height: 42px !important;

    cursor: text !important;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.offcanvas-menu input[type="text"]:focus,
.offcanvas-menu input[type="search"]:focus {
    background: var(--uk-white) !important;

    border-color: var(--uk-blue-dark) !important;

    box-shadow: 0 0 0 3px rgba(0, 90, 155, .08) !important;
}


.offcanvas-menu input::placeholder {
    color: #8a8a8a !important;
    opacity: 1 !important;
}


/* ==========================================================
   ОСНОВНОЙ СПИСОК МЕНЮ
   ========================================================== */

.offcanvas-menu .menu,
.offcanvas-menu ul.menu,
.offcanvas-menu .offcanvas-menu-wrapper > ul {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;

    box-sizing: border-box !important;
}


/* ==========================================================
   ПУНКТЫ ВЕРХНЕГО УРОВНЯ
   ========================================================== */

.offcanvas-menu .menu > li,
.offcanvas-menu .offcanvas-menu-wrapper > ul > li {
    position: relative;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    list-style: none !important;

    border-bottom: 1px solid #edf0f2;
}


/* ==========================================================
   ССЫЛКИ ВЕРХНЕГО УРОВНЯ
   ========================================================== */

.offcanvas-menu .menu > li > a,
.offcanvas-menu .menu > li > span,
.offcanvas-menu .offcanvas-menu-wrapper > ul > li > a,
.offcanvas-menu .offcanvas-menu-wrapper > ul > li > span {
    position: relative;

    display: flex !important;

    align-items: center !important;

    width: 100% !important;
    max-width: 100% !important;

    min-height: 48px !important;

    margin: 0 !important;

    padding: 12px 40px 12px 12px !important;

    box-sizing: border-box !important;

    background: transparent !important;

    color: var(--uk-blue-dark) !important;

    font-size: 16px !important;
    line-height: 1.35 !important;

    font-weight: 600 !important;

    text-decoration: none !important;

    white-space: normal !important;

    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: normal !important;

    transition:
        color .2s ease,
        background .2s ease;
}


/* ==========================================================
   HOVER
   ========================================================== */

.offcanvas-menu .menu > li:hover > a,
.offcanvas-menu .menu > li:hover > span,
.offcanvas-menu .offcanvas-menu-wrapper > ul > li:hover > a,
.offcanvas-menu .offcanvas-menu-wrapper > ul > li:hover > span {
    background: #f1f7fb !important;

    color: var(--uk-blue-hover) !important;
}


/* ==========================================================
   АКТИВНЫЙ ПУНКТ
   ========================================================== */

.offcanvas-menu .menu > li.active > a,
.offcanvas-menu .menu > li.current > a,
.offcanvas-menu .menu > li.current-item > a,
.offcanvas-menu .offcanvas-menu-wrapper > ul > li.active > a {
    background: var(--uk-bg-hover) !important;

    color: var(--uk-blue-dark) !important;

    font-weight: 700 !important;
}


/* Синяя линия слева */
.offcanvas-menu .menu > li.active > a::before,
.offcanvas-menu .menu > li.current > a::before,
.offcanvas-menu .menu > li.current-item > a::before,
.offcanvas-menu .offcanvas-menu-wrapper > ul > li.active > a::before {
    content: "";

    position: absolute;

    left: 0;
    top: 9px;
    bottom: 9px;

    width: 3px;

    background: var(--uk-blue-dark);

    border-radius: 0 2px 2px 0;
}


/* ==========================================================
   СТРЕЛКА РАСКРЫТИЯ ПОДМЕНЮ
   ========================================================== */

.offcanvas-menu .menu-toggler {
    position: absolute !important;

    top: 50% !important;
    right: 5px !important;

    display: flex !important;

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

    width: 32px !important;
    height: 32px !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: translateY(-50%) !important;

    background: transparent !important;

    color: var(--uk-blue-dark) !important;

    border: none !important;
    border-radius: 50% !important;

    font-size: 16px !important;
    line-height: 1 !important;

    cursor: pointer;
}


.offcanvas-menu .menu-toggler:hover {
    background: var(--uk-bg-hover) !important;

    color: var(--uk-blue-hover) !important;
}


/* ==========================================================
   ВЛОЖЕННОЕ МЕНЮ
   ========================================================== */

.offcanvas-menu .menu-child,
.offcanvas-menu .menu > li > ul,
.offcanvas-menu .offcanvas-menu-wrapper ul ul {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;

    padding: 5px 0 8px 12px !important;

    box-sizing: border-box !important;

    background: #fafbfc !important;

    border-top: 1px solid #edf0f2;

    list-style: none !important;
}


/* ==========================================================
   ВЛОЖЕННЫЕ ПУНКТЫ
   ========================================================== */

.offcanvas-menu .menu-child li,
.offcanvas-menu .menu > li > ul > li,
.offcanvas-menu .offcanvas-menu-wrapper ul ul li {
    position: relative;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    list-style: none !important;

    border-bottom: 1px solid #f0f1f2;
}


.offcanvas-menu .menu-child li:last-child,
.offcanvas-menu .menu > li > ul > li:last-child,
.offcanvas-menu .offcanvas-menu-wrapper ul ul li:last-child {
    border-bottom: none;
}


/* ==========================================================
   ВЛОЖЕННЫЕ ССЫЛКИ
   ========================================================== */

.offcanvas-menu .menu-child li > a,
.offcanvas-menu .menu-child li > span,
.offcanvas-menu .menu > li > ul > li > a,
.offcanvas-menu .menu > li > ul > li > span,
.offcanvas-menu .offcanvas-menu-wrapper ul ul li > a,
.offcanvas-menu .offcanvas-menu-wrapper ul ul li > span {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;

    padding: 9px 12px !important;

    box-sizing: border-box !important;

    background: transparent !important;

    color: #4d5962 !important;

    font-size: 14px !important;
    line-height: 1.4 !important;

    font-weight: 400 !important;

    text-decoration: none !important;

    white-space: normal !important;

    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: normal !important;
}


/* ==========================================================
   HOVER ВЛОЖЕННОГО ПУНКТА
   ========================================================== */

.offcanvas-menu .menu-child li > a:hover,
.offcanvas-menu .menu > li > ul > li > a:hover,
.offcanvas-menu .offcanvas-menu-wrapper ul ul li > a:hover {
    background: var(--uk-bg-hover) !important;

    color: var(--uk-blue-dark) !important;
}


/* ==========================================================
   АКТИВНЫЙ ВЛОЖЕННЫЙ ПУНКТ
   ========================================================== */

.offcanvas-menu .menu-child li.active > a,
.offcanvas-menu .menu > li > ul > li.active > a,
.offcanvas-menu .offcanvas-menu-wrapper ul ul li.active > a {
    background: var(--uk-bg-hover) !important;

    color: var(--uk-blue-dark) !important;

    font-weight: 600 !important;
}


/* ==========================================================
   УБИРАЕМ МАРКЕРЫ СПИСКОВ
   ========================================================== */

.offcanvas-menu li {
    list-style: none !important;
}


.offcanvas-menu li::marker {
    content: none !important;
}


/* ==========================================================
   СТАРЫЙ БЛОК ПЕРЕНОСА ТЕКСТА
   УЖЕ ВКЛЮЧЕН СЮДА
   ========================================================== */

.offcanvas-menu .menu,
.offcanvas-menu .menu li,
.offcanvas-menu .menu li a {
    max-width: 100% !important;
}


.offcanvas-menu .menu li a,
.offcanvas-menu .menu li span {
    white-space: normal !important;

    overflow-wrap: break-word !important;

    line-height: 1.4 !important;
}


/* ==========================================================
   ЗАТЕМНЕНИЕ ФОНА HELIX
   ========================================================== */

.offcanvas-overlay {
    background: rgba(0, 0, 0, .38) !important;
}


/* ==========================================================
   ПЛАНШЕТ И ТЕЛЕФОН
   ========================================================== */


/* ==========================================================
   ТЕЛЕФОН
   ========================================================== */


/* ==========================================================
   ОЧЕНЬ УЗКИЙ ТЕЛЕФОН
   ========================================================== */


/* ==========================================================
   WT CONTENT IMAGE GALLERY В НОВОСТЯХ

   ПК:       до 3 фотографий в ряд
   Планшет:  2 фотографии в ряд
   Телефон:  1 фотография в ряд

   Все превью имеют одинаковый размер.
   ========================================================== */


/* ----------------------------------------------------------
   ОСНОВНОЙ КОНТЕЙНЕР
   ---------------------------------------------------------- */

.news-material-gallery {
    width: 80%;
    max-width: 1200px;

    margin: 30px auto;

    box-sizing: border-box;
}


/* ----------------------------------------------------------
   КОНТЕЙНЕР, СОЗДАВАЕМЫЙ WT GALLERY
   ---------------------------------------------------------- */

/*
   Используем :has(), чтобы найти именно тот внутренний
   контейнер, внутри которого WT Gallery разместила ссылки
   на фотографии.
*/

.news-material-gallery > div,
.news-material-gallery > ul,
.news-material-gallery .wt-gallery,
.news-material-gallery .wt-content-image-gallery,
.news-material-gallery .gallery {
    display: flex !important;

    flex-direction: row !important;
    flex-wrap: wrap !important;

    align-items: stretch !important;
    justify-content: center !important;

    gap: 16px !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}


/* ----------------------------------------------------------
   ОТДЕЛЬНАЯ ФОТОГРАФИЯ
   ---------------------------------------------------------- */

.news-material-gallery a {
    display: block !important;

    /*
       Три изображения в ряд.
       Из ширины вычитаются два промежутка по 16px.
    */
    flex: 0 0 calc((100% - 32px) / 3) !important;

    width: calc((100% - 32px) / 3) !important;
    max-width: calc((100% - 32px) / 3) !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border-radius: var(--uk-radius);

    box-sizing: border-box !important;

    text-decoration: none !important;
}


/* ----------------------------------------------------------
   ИЗОБРАЖЕНИЯ
   ---------------------------------------------------------- */

.news-material-gallery img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 230px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;

    border-radius: var(--uk-radius);

    box-sizing: border-box !important;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


/* Эффект при наведении */

.news-material-gallery a:hover img {
    opacity: 0.92;

    transform: scale(1.015);
}


/* ==========================================================
   ПЛАНШЕТ
   ========================================================== */


/* ==========================================================
   ТЕЛЕФОН
   ========================================================== */


/* ==========================================================
   АДАПТИВНЫЕ СТИЛИ — ОБЪЕДИНЕННЫЕ MEDIA QUERIES
   ========================================================== */

@media (min-width: 992px) and (max-width: 1599px) {
#sp-header > .container {
        width: 100% !important;
        max-width: 100% !important;

        padding-left: 30px !important;
        padding-right: 30px !important;
    }


    #sp-header .container-inner {
        width: 100% !important;
        max-width: 100% !important;
    }


    #sp-header .row {
        display: flex !important;

        flex-wrap: nowrap !important;

        align-items: center !important;

        width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;
    }


    #sp-header #sp-logo {
        flex: 0 0 auto !important;

        width: auto !important;

        max-width: none !important;

        padding-left: 0 !important;
        padding-right: 20px !important;
    }


    #sp-header #sp-logo .logo-image {
        height: 55px !important;

        width: auto !important;

        max-width: none !important;
    }


    #sp-header #sp-menu {
        display: flex !important;

        flex: 1 1 auto !important;

        width: auto !important;

        min-width: 0 !important;

        max-width: none !important;

        padding-left: 0 !important;
        padding-right: 0 !important;
    }


    #sp-header #sp-menu > .sp-column {
        display: flex !important;

        flex: 1 1 auto !important;

        flex-wrap: nowrap !important;

        align-items: center !important;
        justify-content: flex-end !important;

        width: 100% !important;

        min-width: 0 !important;
    }


    #sp-header .sp-megamenu-wrapper {
        display: flex !important;

        flex: 1 1 auto !important;

        min-width: 0 !important;

        justify-content: flex-end !important;
    }


    #sp-header .sp-megamenu-parent {
        display: flex !important;

        flex-wrap: nowrap !important;

        align-items: center !important;
        justify-content: flex-end !important;

        white-space: nowrap !important;

        padding: 0 !important;
    }


    #sp-header .sp-megamenu-parent > li {
        flex: 0 0 auto !important;
    }


    #sp-header .sp-megamenu-parent > li > a,
    #sp-header .sp-megamenu-parent > li > span {
        padding-left: 9px !important;
        padding-right: 9px !important;

        font-size: 14px !important;

        white-space: nowrap !important;
    }


    #sp-header .header-modules {
        display: flex !important;

        flex: 0 0 auto !important;

        flex-wrap: nowrap !important;

        align-items: center !important;

        margin-left: 5px !important;
    }


    #sp-header .mod-finder__form,
    #sp-header .finder-search,
    #sp-header form.form-search {
        flex: 0 0 40px !important;

        width: 40px !important;

        min-width: 40px !important;
    }


    /*
       Раскрытый поиск не раздвигает меню
    */
    #sp-header .mod-finder__form input:focus,
    #sp-header .finder-search input:focus,
    #sp-header form.form-search input:focus {
        position: absolute !important;

        right: 0 !important;

        width: 220px !important;

        z-index: 1000 !important;
    }


    #sp-header #offcanvas-toggler {
        display: flex !important;

        flex: 0 0 auto !important;

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

        width: 44px !important;
        min-width: 44px !important;

        margin-left: 5px !important;

        padding: 0 !important;
    }
}

@media (min-width: 992px) and (max-width: 1350px) {
#sp-header > .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }


    #sp-header #sp-logo {
        padding-right: 12px !important;
    }


    #sp-header #sp-logo .logo-image {
        height: 48px !important;
    }


    #sp-header .sp-megamenu-parent > li > a,
    #sp-header .sp-megamenu-parent > li > span {
        padding-left: 6px !important;
        padding-right: 6px !important;

        font-size: 13px !important;

        letter-spacing: -.15px;
    }


    #sp-header .mod-finder__form,
    #sp-header .finder-search,
    #sp-header form.form-search {
        width: 36px !important;
        min-width: 36px !important;

        flex-basis: 36px !important;
    }


    #sp-header #offcanvas-toggler {
        width: 38px !important;
        min-width: 38px !important;

        margin-left: 2px !important;
    }


    /*
       Dropdown немного компактнее,
       но длинный текст всё равно переносится.
    */
    #sp-header .sp-dropdown {
        min-width: 240px !important;

        max-width: min(380px, calc(100vw - 30px)) !important;
    }


    #sp-header .sp-dropdown .sp-dropdown-inner {
        min-width: 240px !important;
        max-width: 380px !important;
    }
}

@media (max-width: 991px) {
.rosseti-newsflash .newsflash,
    .rosseti-newsflash .mod-articlesnews,
    .rosseti-newsflash ul.mod-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

.rosseti-newsflash .newsflash,
    .rosseti-newsflash .mod-articlesnews,
    .rosseti-newsflash ul.mod-list {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }


    body.itemid-116.view-category .blog .article-list {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }


    body.com-content.view-article
    #sp-component .article-details {
        width: calc(100% - 30px) !important;

        padding: 35px 40px !important;
    }


    .hostel-features {
        grid-template-columns: 1fr;
    }


    .thanks-gallery img {
        max-height: calc(100vh - 180px) !important;
    }


    .energy-project-page,
    .hostel-page,
    .thanks-page,
    .faq-page {
        width: calc(100% - 30px);
    }

#sp-main-body {
        padding-top: 0px !important;
    }

.offcanvas-menu {
        width: 360px !important;
        max-width: 88vw !important;
    }


    .offcanvas-menu .offcanvas-inner {
        padding: 20px 16px !important;
    }

.news-material-gallery {
        width: 90%;
    }


    .news-material-gallery a {
        /*
           Две фотографии в ряд
        */
        flex-basis: calc((100% - 16px) / 2) !important;

        width: calc((100% - 16px) / 2) !important;
        max-width: calc((100% - 16px) / 2) !important;
    }


    .news-material-gallery img {
        height: 220px !important;
    }
}

@media (max-width: 767px) {
.rosseti-newsflash {
        padding: 30px 10px !important;
    }


    .rosseti-newsflash .newsflash,
    .rosseti-newsflash .mod-articlesnews,
    .rosseti-newsflash ul.mod-list {
        grid-template-columns: 1fr !important;

        gap: 18px !important;
    }


    .rosseti-newsflash .newsflash > li,
    .rosseti-newsflash .mod-articlesnews > li,
    .rosseti-newsflash ul.mod-list > li,
    .rosseti-newsflash .mod-articlesnews__item {
        min-height: 0 !important;

        padding: 15px !important;
    }


    .rosseti-newsflash img,
    .rosseti-newsflash figure img,
    .rosseti-newsflash .newsflash-image img,
    .rosseti-newsflash .mod-articlesnews__image img {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }


    .rosseti-newsflash .newsflash-title,
    .rosseti-newsflash .mod-articles__title,
    .rosseti-newsflash .mod-articlesnews__item-title,
    .rosseti-newsflash h2:not(.sp-module-title),
    .rosseti-newsflash h3:not(.sp-module-title),
    .rosseti-newsflash h4,

    .rosseti-newsflash .newsflash-title a,
    .rosseti-newsflash .mod-articles__title a,
    .rosseti-newsflash .mod-articlesnews__item-title a,
    .rosseti-newsflash h2:not(.sp-module-title) a,
    .rosseti-newsflash h3:not(.sp-module-title) a,
    .rosseti-newsflash h4 a {
        font-size: 17px !important;

        line-height: 1.35 !important;
    }


    .rosseti-newsflash .sp-module-title,
    .rosseti-newsflash .modtitle {
        font-size: 26px !important;
    }

.rosseti-newsflash .newsflash,
    .rosseti-newsflash .mod-articlesnews,
    .rosseti-newsflash ul.mod-list {
        grid-template-columns: 1fr !important;
    }


    body.itemid-116.view-category
    .blog .article-list {
        grid-template-columns: 1fr !important;
    }


    body.itemid-116.view-category
    .article-intro-image {
        height: auto !important;

        aspect-ratio: 16 / 9;
    }


    body.itemid-116.view-category
    .article-intro-image img {
        width: 100% !important;
        height: 100% !important;
    }


    body.com-content.view-article
    #sp-component .article-details {
        width: calc(100% - 20px) !important;

        margin: 15px auto 30px !important;

        padding: 25px 20px !important;
    }


    body.com-content.view-article
    .article-details .article-header h1,

    body.com-content.view-article
    .article-details .article-header h2 {
        font-size: 22px !important;
    }


    .energy-project-page,
    .hostel-page,
    .thanks-page,
    .faq-page {
        width: calc(100% - 20px);

        margin: 15px auto 40px;
    }


    .hostel-hero,
    .thanks-hero,
    .energy-project-hero,
    .faq-hero,
    .contacts-header {
        padding: 22px 15px;
    }


    .hostel-hero h1,
    .thanks-hero h1,
    .energy-project-hero h1,
    .faq-hero h1,
    .contacts-header h1 {
        font-size: 21px !important;
    }


    .thanks-card-body {
        padding: 8px !important;
    }


    .thanks-gallery img {
        width: auto !important;
        max-width: 100% !important;

        height: auto !important;

        max-height: calc(100vh - 150px) !important;
    }


    .faq-card-body {
        padding: 10px;
    }


    .faq-list summary {
        min-height: 54px;

        padding: 12px 48px 12px 14px;

        font-size: 15px;
    }


    .faq-answer {
        padding: 15px 14px 17px;
    }

#sp-main-body {
        padding-top: 0px !important;
    }

.offcanvas-menu {
        width: 88vw !important;
        max-width: 360px !important;
    }


    .offcanvas-menu .offcanvas-inner {
        padding: 18px 15px !important;
    }


    .offcanvas-menu .menu > li > a,
    .offcanvas-menu .menu > li > span,
    .offcanvas-menu .offcanvas-menu-wrapper > ul > li > a,
    .offcanvas-menu .offcanvas-menu-wrapper > ul > li > span {
        min-height: 46px !important;

        padding: 11px 38px 11px 10px !important;

        font-size: 15px !important;
        line-height: 1.35 !important;
    }


    .offcanvas-menu .menu-child li > a,
    .offcanvas-menu .menu-child li > span,
    .offcanvas-menu .menu > li > ul > li > a,
    .offcanvas-menu .menu > li > ul > li > span,
    .offcanvas-menu .offcanvas-menu-wrapper ul ul li > a,
    .offcanvas-menu .offcanvas-menu-wrapper ul ul li > span {
        padding: 8px 10px !important;

        font-size: 13px !important;
        line-height: 1.4 !important;
    }


    .offcanvas-menu input[type="text"],
    .offcanvas-menu input[type="search"] {
        height: 40px !important;

        font-size: 13px !important;
    }

.news-material-gallery {
        width: 100%;

        margin: 20px auto;
    }


    .news-material-gallery > div,
    .news-material-gallery > ul,
    .news-material-gallery .wt-gallery,
    .news-material-gallery .wt-content-image-gallery,
    .news-material-gallery .gallery {
        gap: 12px !important;
    }


    .news-material-gallery a {
        /*
           Одна фотография в ряд
        */
        flex: 0 0 100% !important;

        width: 100% !important;
        max-width: 100% !important;
    }


    .news-material-gallery img {
        width: 100% !important;

        /*
           На телефоне не обрезаем фотографию
        */
        height: auto !important;
        max-height: none !important;

        object-fit: contain !important;
    }
}

@media (max-width: 768px) {
.contacts-grid {
        grid-template-columns: 1fr;
    }


    .contact-route-card,
    .contact-map-card {
        grid-column: auto;
    }


    .bank-grid {
        grid-template-columns: 1fr;
    }


    .bank-item-wide {
        grid-column: auto;
    }


    .director-block {
        flex-direction: column;

        text-align: center;
    }


    .transport-item {
        grid-template-columns: 50px 1fr;

        gap: 12px;

        padding: 14px;
    }


    .transport-icon {
        width: 46px;
        height: 46px;
    }


    .transport-icon img {
        width: 28px;
        height: 28px;
    }


    .yandex-map-wrapper iframe {
        height: 360px;
    }
}

@media (max-width: 480px) {
.uk-contacts-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }


    .card-content {
        padding: 15px;
    }


    .transport-item {
        grid-template-columns: 1fr;
    }


    .transport-icon {
        margin-bottom: 2px;
    }


    .yandex-map-wrapper iframe {
        height: 300px;
    }
}

@media (min-width: 992px) {
#sp-main-body {
        padding-top: 0px !important;
    }
}

@media (max-width: 420px) {
.offcanvas-menu {
        width: 92vw !important;
        max-width: 340px !important;
    }


    .offcanvas-menu .offcanvas-inner {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}



/* ==========================================================
   СТРАНИЦА ОБРАЗОВАТЕЛЬНОЙ ПРОГРАММЫ
   ========================================================== */

.edu-program {
    --edu-blue: #0066a6;
    --edu-blue-dark: #00558b;
    --edu-blue-light: #edf6fb;

    --edu-text: #333333;
    --edu-muted: #6f7780;

    --edu-border: #d9e2e8;
    --edu-bg: #ffffff;
    --edu-bg-light: #f6f8fa;

    --edu-radius: 6px;
    --edu-shadow: 0 2px 8px rgba(0, 67, 110, 0.06);

    width: 100%;
    max-width: 1200px;

    margin: 0 auto 50px;

    color: var(--edu-text);

    font-size: 16px;
    line-height: 1.6;

    box-sizing: border-box;
}

.edu-program *,
.edu-program *::before,
.edu-program *::after {
    box-sizing: border-box;
}


/* ==========================================================
   HERO
   ========================================================== */

.edu-program__hero {
    width: 100%;

    padding: 36px 40px 38px;

    background: var(--edu-blue);

    color: #ffffff;

    border-radius: 8px;

    overflow: hidden;
}


.edu-program__type {
    margin-bottom: 10px;

    color: rgba(255,255,255,0.92);

    font-size: 14px;
    line-height: 1.4;

    font-weight: 600;
}


.edu-program__title {
    max-width: 950px;

    margin: 0 !important;

    color: #ffffff !important;

    font-size: 30px !important;
    line-height: 1.25 !important;

    font-weight: 600 !important;

    overflow-wrap: break-word;
    word-break: normal;
}


/* ==========================================================
   ОСНОВНЫЕ СВЕДЕНИЯ
   ========================================================== */

.edu-program__stats {
    display: grid;

    /*
       Все 5 характеристик располагаются
       в одну строку на большом экране.
    */
    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 10px;

    width: 100%;

    margin-top: 28px;
}


.edu-program__stat {
    display: flex;

    align-items: center;

    min-width: 0;
    min-height: 94px;

    padding: 14px 13px;

    background: rgba(255,255,255,0.10);

    border: 1px solid rgba(255,255,255,0.28);

    border-radius: 6px;

    overflow: hidden;

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


.edu-program__stat:hover {
    background: rgba(255,255,255,0.15);

    border-color: rgba(255,255,255,0.42);
}


/* Иконка */

.edu-program__stat-icon {
    display: flex;

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

    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    margin-right: 11px;
}


.edu-program__stat-icon img {
    display: block;

    width: 27px;
    height: 27px;

    object-fit: contain;
}


/* Иконка формы обучения */

.edu-program__stat-icon--study {
    border: 1px solid rgba(255,255,255,0.8);

    border-radius: 50%;

    color: #ffffff;

    font-size: 16px;
    line-height: 1;
}


/* Текст */

.edu-program__stat-content {
    flex: 1 1 auto;

    min-width: 0;
}


.edu-program__stat-content > span {
    display: block;

    margin-bottom: 3px;

    color: rgba(255,255,255,0.78);

    font-size: 12px;
    line-height: 1.3;

    overflow-wrap: break-word;
}


.edu-program__stat-content strong {
    display: block;

    color: #ffffff;

    font-size: 16px;
    line-height: 1.25;

    font-weight: 700;

    overflow-wrap: break-word;
}


.edu-program__stat-content small {
    display: block;

    margin-top: 3px;

    color: rgba(255,255,255,0.78);

    font-size: 11px;
    line-height: 1.3;

    overflow-wrap: break-word;
}


/* ==========================================================
   ОСНОВНОЙ КОНТЕНТ
   ========================================================== */

.edu-program__content {
    width: 100%;

    margin-top: 22px;
}


/* ==========================================================
   БЫСТРЫЕ ССЫЛКИ
   ========================================================== */

.edu-program__quick {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 15px;

    width: 100%;

    margin-bottom: 22px;
}


.edu-program__quick-item {
    display: flex;

    align-items: center;

    min-width: 0;
    min-height: 112px;

    padding: 17px 18px;

    background: var(--edu-bg);

    border: 1px solid var(--edu-border);

    border-radius: var(--edu-radius);

    color: var(--edu-text) !important;

    text-decoration: none !important;

    box-shadow: var(--edu-shadow);

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.edu-program__quick-item:hover {
    border-color: #a9c8dc;

    box-shadow: 0 5px 14px rgba(0, 67, 110, 0.10);

    transform: translateY(-1px);
}


.edu-program__quick-icon {
    display: flex;

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

    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    margin-right: 13px;

    background: var(--edu-blue);

    border-radius: 50%;

    color: #ffffff;

    font-size: 17px;
    line-height: 1;
}


.edu-program__quick-content {
    display: block;

    flex: 1 1 auto;

    min-width: 0;
}


.edu-program__quick-item strong {
    display: block;

    color: var(--edu-blue);

    font-size: 15px;
    line-height: 1.35;

    overflow-wrap: break-word;
}


.edu-program__quick-item small {
    display: block;

    margin-top: 4px;

    color: var(--edu-muted);

    font-size: 12px;
    line-height: 1.4;

    overflow-wrap: break-word;
}


/* ==========================================================
   СЕКЦИИ
   ========================================================== */

.edu-program__section {
    width: 100%;

    margin-bottom: 20px;

    background: var(--edu-bg);

    border: 1px solid var(--edu-border);

    border-radius: var(--edu-radius);

    overflow: hidden;

    box-shadow: var(--edu-shadow);
}


.edu-program__section-title {
    display: flex;

    align-items: center;

    min-height: 54px;

    padding: 11px 18px;

    background: #f4f5f6;

    border-bottom: 1px solid var(--edu-border);
}


.edu-program__section-icon {
    display: inline-flex;

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

    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    margin-right: 10px;

    background: var(--edu-blue);

    border-radius: 50%;

    color: #ffffff;

    font-size: 14px;
    line-height: 1;
}


.edu-program__section-title h2 {
    min-width: 0;

    margin: 0 !important;

    color: var(--edu-blue) !important;

    font-size: 19px !important;
    line-height: 1.35 !important;

    font-weight: 600 !important;
}


.edu-program__section-body {
    width: 100%;

    padding: 22px 24px;

    overflow-wrap: break-word;
}


.edu-program__section-body p {
    max-width: 100%;

    margin: 0 0 15px;

    overflow-wrap: break-word;
}


.edu-program__section-body p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   ТЕКСТОВЫЕ БЛОКИ
   ========================================================== */

.edu-program__text-block {
    width: 100%;
    min-width: 0;
}


.edu-program__text-block + .edu-program__text-block {
    margin-top: 22px;

    padding-top: 20px;

    border-top: 1px solid #e8ecef;
}


.edu-program__text-block h3 {
    margin: 0 0 8px !important;

    color: var(--edu-blue) !important;

    font-size: 16px !important;
    line-height: 1.4 !important;

    font-weight: 600 !important;
}


.edu-program__text-block p {
    margin: 0;

    overflow-wrap: break-word;
}


/* ==========================================================
   РЕЗУЛЬТАТ
   ========================================================== */

.edu-program__result {
    margin-top: 18px;

    padding: 15px 17px;

    background: var(--edu-blue-light);

    border-left: 4px solid var(--edu-blue);

    border-radius: 0 var(--edu-radius) var(--edu-radius) 0;
}


.edu-program__result span {
    display: block;

    margin-bottom: 3px;

    color: var(--edu-muted);

    font-size: 13px;
}


.edu-program__result strong {
    display: block;

    color: var(--edu-blue);

    font-size: 16px;

    overflow-wrap: break-word;
}


/* ==========================================================
   ДОКУМЕНТЫ
   ========================================================== */

.edu-program__documents {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    width: 100%;
}


.edu-program__document {
    display: flex;

    align-items: center;

    min-width: 0;

    padding: 14px;

    background: var(--edu-bg-light);

    border: 1px solid var(--edu-border);

    border-radius: var(--edu-radius);

    color: var(--edu-text) !important;

    text-decoration: none !important;

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


.edu-program__document:hover {
    background: var(--edu-blue-light);

    border-color: #b4cedf;
}


.edu-program__document-type {
    display: inline-flex;

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

    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    margin-right: 13px;

    background: var(--edu-blue);

    border-radius: 4px;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;
}


.edu-program__document-info {
    display: block;

    flex: 1 1 auto;

    min-width: 0;
}


.edu-program__document-info strong {
    display: block;

    color: var(--edu-blue);

    font-size: 15px;
    line-height: 1.35;

    overflow-wrap: break-word;
}


.edu-program__document-info small {
    display: block;

    margin-top: 3px;

    color: var(--edu-muted);

    font-size: 12px;
}


/* ==========================================================
   CTA
   ========================================================== */

.edu-program__cta {
    display: flex;

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

    gap: 25px;

    width: 100%;

    margin-top: 25px;

    padding: 25px 28px;

    background: var(--edu-bg-light);

    border: 1px solid var(--edu-border);

    border-radius: var(--edu-radius);
}


.edu-program__cta-text {
    flex: 1 1 auto;

    min-width: 0;
}


.edu-program__cta h2 {
    margin: 0 0 5px !important;

    color: var(--edu-blue) !important;

    font-size: 21px !important;
    line-height: 1.35 !important;
}


.edu-program__cta p {
    margin: 0;

    color: var(--edu-muted);

    font-size: 14px;
}


.edu-program__cta-actions {
    display: flex;

    flex: 0 0 auto;

    gap: 10px;
}


/* ==========================================================
   КНОПКИ
   ========================================================== */

.edu-program__btn {
    display: inline-flex;

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

    min-height: 44px;

    padding: 10px 22px;

    border: 1px solid transparent;

    border-radius: 4px;

    font-size: 15px;
    line-height: 1.3;

    font-weight: 600;

    text-align: center;

    text-decoration: none !important;

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


.edu-program__btn--primary {
    background: var(--edu-blue);

    border-color: var(--edu-blue);

    color: #ffffff !important;
}


.edu-program__btn--primary:hover {
    background: var(--edu-blue-dark);

    border-color: var(--edu-blue-dark);

    color: #ffffff !important;
}


.edu-program__btn--outline {
    background: transparent;

    border-color: var(--edu-blue);

    color: var(--edu-blue) !important;
}


.edu-program__btn--outline:hover {
    background: var(--edu-blue);

    color: #ffffff !important;
}


/* ==========================================================
   ВОЗВРАТ К ПРОГРАММАМ
   ========================================================== */

.edu-program__back {
    margin-top: 22px;

    text-align: center;
}


.edu-program__back a {
    color: var(--edu-blue) !important;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none !important;
}


.edu-program__back a:hover {
    text-decoration: underline !important;
}


/* ==========================================================
   СРЕДНИЙ DESKTOP / НОУТБУК
   ========================================================== */

@media (max-width: 1199px) {

    .edu-program__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* ==========================================================
   ПЛАНШЕТ
   ========================================================== */

@media (max-width: 991px) {

    .edu-program__hero {
        padding: 30px 25px;
    }

    .edu-program__title {
        font-size: 26px !important;
    }

    .edu-program__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .edu-program__quick {
        grid-template-columns: 1fr;
    }

    .edu-program__quick-item {
        min-height: 88px;
    }

    .edu-program__cta {
        align-items: flex-start;

        flex-direction: column;
    }

}


/* ==========================================================
   ТЕЛЕФОН
   ========================================================== */

@media (max-width: 767px) {

    .edu-program {
        font-size: 15px;
    }

    .edu-program__hero {
        padding: 23px 17px;

        border-radius: 5px;
    }

    .edu-program__type {
        font-size: 12px;
    }

    .edu-program__title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .edu-program__stats {
        grid-template-columns: 1fr;

        gap: 8px;

        margin-top: 21px;
    }

    .edu-program__stat {
        min-height: 72px;

        padding: 11px 13px;
    }

    .edu-program__stat-content > span {
        margin-bottom: 2px;
    }

    .edu-program__section-title {
        padding: 10px 13px;
    }

    .edu-program__section-title h2 {
        font-size: 17px !important;
    }

    .edu-program__section-body {
        padding: 17px 15px;
    }

    .edu-program__documents {
        grid-template-columns: 1fr;
    }

    .edu-program__cta {
        padding: 20px 17px;
    }

    .edu-program__cta h2 {
        font-size: 19px !important;
    }

    .edu-program__cta-actions {
        flex-direction: column;

        width: 100%;
    }

    .edu-program__cta-actions .edu-program__btn {
        width: 100%;
    }

}

