/*Общие стили*/

/* Корень прокрутки — <html>. Обрезаем горизонтальный «перехлёст» полноширинных
   секций (width:100vw включает полосу прокрутки → ~6px overflow). clip не ломает
   position:sticky (в отличие от hidden) и не трогает вертикальный скролл. */
html {
    overflow-x: clip;
}
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    /* Сглаживание как в новой версии — иначе весь текст рендерится жирнее */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    width: 100%;
    /* clip (не hidden): обрезает лишние ~6px от полноширинных секций width:100vw
       со скроллбаром, но НЕ делает body скролл-контейнером (ось Y остаётся
       visible) — иначе ломается position:sticky (сайдбар в разделе документов). */
    overflow-x: clip;
    color: #444444;
    /* Единый стек-контекст для всего контента — как #root (z-index:2) в
       process1. Амбиентный фон .rk-lightfield (position:fixed) с z-index:-1
       становится отрицательным слоем ВНУТРИ этого контекста и гарантированно
       лежит ПОЗАДИ контента во всех браузерах (иначе фикс-слой с GPU-промоушеном
       всплывал поверх прозрачных карточек). Шапка/меню остаются fixed и в
       прежнем порядке, т.к. у body нет transform. */
    position: relative;
    z-index: 0;
}
body.no-scroll {
    overflow: hidden;
}
button, input, textarea {
    font-family: 'Montserrat', sans-serif;
}
main {
    margin: auto;
    max-width: 1200px;
    width: 100%;
    /* background-color: rgba(255, 0, 0, 0.144); */
}
footer {
    background-color: #fafafa;
}
div {
    line-height: 23px;
}
.all-link {
    text-decoration: none; 
    color: #2b2b2b;
}
.center {
    text-align: center;
}
.header1 {
    color: #000f9f;
    line-height: 40px;
    font-size: 30px;
    padding: 90px 0 30px 0;
    margin: 0;
}
@media (max-width: 768px) {
    .header1 {
        font-size: 24px;
    }
}
.header2 {
    color: #000f9f;
    margin: 2px;
    font-size: 18px;
}
.header3 {
    color: #252525;
    text-align: left;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
    margin: 90px 0px 30px 0px;
}
@media (max-width: 768px) {
    .header3 {
        font-size: 20px;
    }
}
.header4 {
    color: #252525;
    text-align: left;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
    margin: 10px 0px 30px 0px;
}
.header5 {
    color: #252525;
    text-align: left;
    font-size: 22px;
    font-weight: 500;
    line-height: 30px;
    margin: 10px 0px 30px 0px;
}
.header6 {
    color: #252525;
    text-align: left;
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
    margin: 10px 0px 30px 0px;
}
.block-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.block-center-relative {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/*Меню навигации в хэдэре*/

header nav{
    width: 100%;
    min-height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0; 
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 1px 8px rgba(95, 95, 95, 0.288);
}
nav {
    color: white;
    display: flex;
    justify-content: center;
    vertical-align: center;
}
nav ul {
    list-style-type: none;
    padding: 0;
}
nav ul > li {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}
nav a {
    color: rgb(65, 65, 65);
    text-decoration: none;
    padding: 12px;
    border-radius: 5px;
    transition: 0.3s;
}
nav a:hover {
    font-weight: bold;
    color: #000f9f;
    transition: 0.3s;
}
nav ul ul {
    display: none;
    position: absolute;
    box-shadow: 0 0 50px rgba(102, 102, 102, 0.164);
    padding: 10px;
    z-index: 1000;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
}
nav ul li:hover > ul {
    display: block;
}
nav ul ul li {
    display: block;
    width: 300px;
    margin: 20px;
}
nav ul ul a {
    padding: 10px 15px;
    white-space: nowrap;
    color: rgb(66, 66, 66);
}
nav a.active {
    border-radius: 0px;
    border-bottom: 3px solid #000f9f;
}
.logo {
    width: 350px;
    margin-right: 40px;
    margin-top: 15px;
}
div.company {
    margin: 25px 0 25px 0;
}

/*Меню в бутерброде*/

.aside-section {
    top: 0;
    bottom: 0;
    position: absolute;
}
.aside-left {
    display: none;
    width: 40%;
    left: 0;
    box-sizing: border-box;
    padding: 52px;
    /* Промо-баннер с наградой (дизайн из новой версии): тёмно-синий градиент */
    background: linear-gradient(165deg, #070a2b, #0d1893);
    color: #fff;
    flex-direction: column;
    justify-content: center;   /* содержимое по центру по вертикали, а не прижато вниз */
    overflow-y: auto;
    -webkit-transform: translateY(-100%);
    -moz-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -o-transform: translateY(-100%);
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 500;
    position: fixed;
}
/* Круг с иллюстрацией-матрёшкой */
.al-illus {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;    /* круг прижат к левому краю (в одну линию с текстом) */
    margin: 0 0 90px;          /* отступ логотип → текст */
    flex: none;
}
.al-illus img { width: 132px; display: block; }
.al-promo h4 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 14px;
}
.al-promo p {
    color: #b3bce6;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 76px;          /* отступ текст → кнопка */
}
.al-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 999px;
    background: #fff;
    color: #000f9f;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.al-btn:hover {
    background: #eaeeff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.aside-right {
    width: 100%;
    height: 100vh;
    right: 0;
    background-color: #ffffff;   /* белый фон, как в новой версии (.mega) — был серый #f8f8f8 */
    -webkit-transform: translateX(100%);
    -moz-transform: translateX(100%);
    -ms-transform: translateX(100%);
    -o-transform: translateX(100%);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 500;
    position: fixed;
    font-size: 14px;
    overflow-y: auto;
}
.aside-list {
    display: flex;
    flex-direction: column;
    height: 90%;
    list-style: none;
    text-align: left;
    margin: 50px 0 0 50px;
    font-weight: 500;
}
.header-list {
    display: block;
    margin: 0 0 10px 5px;
}
.main-list {
    max-width: 83%;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}
/* Карточки-колонки меню-бутерброда — чистый вид как в новой версии,
   но с аккуратной подложкой (белая карточка с тонкой рамкой и лёгкой тенью). */
.list {
    border-radius: 12px;
    padding: 22px 24px;
    background: #ffffff;        /* белая карточка + тонкая рамка (линии), без тени */
    border: 1px solid #e6e9f0;
    box-shadow: none;
    transition: border-color .2s ease, transform .2s ease;
}
.padding {
    padding-top: 0;
    margin-bottom: 14px;
}
.list:hover {
    border-color: #c9cfe0;
    transform: translateY(-2px);
}
.aside-anchor1 {
    color: #000f9f;              /* синий заголовок — как .mega-col h5 в новой версии */
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin-bottom: 0;
    transition: color .2s;
}
.aside-anchor1:hover {
    color: #0b1030;
}
.aside {
    color: #474b58;
    text-decoration: none;
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;           /* обычное начертание (наследовался 500 от .aside-list — было жирнее) */
    padding: 7px 0;
    margin-bottom: 0;
    transition: color .15s, padding-left .15s;
}
.aside:hover {
    color: #000f9f;
    padding-left: 4px;          /* лёгкий сдвиг вправо при наведении — как в новой версии */
}

/*Бутерброд*/

input[type="checkbox"].checkbox-none {
    display: none;
}
input[type="checkbox"].checkbox-none:checked ~ aside .aside-left {
    transform: translateY(0%);
}
input[type="checkbox"].checkbox-none:checked ~ aside .aside-right {
    transform: translateX(0%);
}
/* Открыто: label превращается в круглую кнопку-крестик (как .mega-close) */
input[type="checkbox"].checkbox-none:checked ~ label.right {
    background-color: #ffffff;
    border-color: #e6e9f0;
}
input[type="checkbox"].checkbox-none:checked ~ label .bar {
    background-color: #000f9f;
    width: 18px;
}
input[type="checkbox"].checkbox-none:checked ~ label .top {
    transform: translateY(8px) rotate(45deg);
}
input[type="checkbox"].checkbox-none:checked ~ label .bottom {
    transform: translateY(-8px) rotate(-45deg);
}
input[type="checkbox"].checkbox-none:checked ~ label .middle {
    opacity: 0;
    transform: scaleX(.4);
}
.middle {
    margin: 0 auto;
}
label.right {
    top: 18px;
    right: 22px;
    margin: 0;
    width: 46px;
    height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    position: fixed;
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.bar {
    display: block;
    background-color: #000f9f;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

/*Адаптация для хэдэра и бутерброда*/

@media (min-width: 1200px) {
    .aside-left {
        display: flex;
    }
    .aside-right {
        width: 60%;
    }
}
@media (max-width: 470px) {
    header nav ul{
        display: none;
    }
    .logo {
        width: 250px;
        margin-top: 3px;
    }
    label.right {
        top: 10px;
    }
    .aside-list {
        margin-left: 30px;
    }
    main {
        width: 90%;
    }
}
@media (min-width: 470px) and (max-width: 991px) {
    header nav ul{
        display: none;
    }
    main {
        width: 90%;
    }
    .logo {
        margin-right: 7px;
        width: 280px;
        margin-top: 0px;
    }
    label.right {
        top: 10px;
    }
}
@media (min-width: 992px) and (max-width: 1200px) {
    nav a {
        font-size: 13px;
        padding: 5px;
    }
    nav ul > li {
        margin-right: 0;
    }
    .logo {
        margin-right: 7px;
        width: 200px;
        margin-top: 29px;
    }
    main {
        width: 100%;
    }
}
@media (min-width: 1200px) and (max-width: 1400px) {
    nav a {
        font-size: 14px;
        padding: 8px;
    }
    nav ul > li {
        margin-right: 5px;
    }
    .logo {
        width: 250px;
        margin-top: 20px;
    }
    main {
        width: 100%;
    }
}
@media (min-width: 1400px){
    main {
        width: 100%;
    }
    .logo {
        width: 250px;
    }
}

/*Контакртная информация в футере*/

.contact-conteiner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 65%;
    max-width: 1200px;
    font-size: 14px;
}
.inline {
    padding: 7px;
    box-sizing: border-box;
}
@media (max-width: 992px) {
    .contact-conteiner {
        width: 90%;
    }
}
@media (min-width: 992px) and (max-width: 1400px) {
    .contact-conteiner {
        width: 80%;
    }
}
.footer-header {
    color: #000f9f;
}
.center-info {
    text-align: center;
}
.right-info {
    text-align: right;
}
@media (max-width: 830px) {
    .right-info {
        text-align: left;
    }
    .center-info {
        text-align: left;
    }
}

/*Контакртная информация в бутерброде*/

.contact-bottom {
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    margin-top: 30px;
    height: 100%;
}
.contact-info {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box; 
    justify-content: space-between;
    width: 83%;
    margin-left: 7px;
}
.contact {
    display: flex;
    justify-content: space-between; 
    box-sizing: border-box; 
    text-transform: uppercase;
    width: 83%;
    font-size: 14px;
    flex-wrap: wrap;
    margin-left: 7px;
}
.contact div {
    display: flex;
    align-items: center;
    margin: 20px 10px 20px 0;
}
.contact img {
    margin-right: 20px;
}
.center-info-menu {
    text-align: center;
}
.right-info-menu {
    text-align: right;
}
@media (max-width: 792px) {
    .right-info-menu {
        text-align: left;
    }
    .center-info-menu {
        text-align: left;
    }
    .contact-info div{
        margin: 5px 10px 5px 0;
    }
}
@media (min-width: 1200px) and (max-width: 1400px) {
    .right-info-menu {
        text-align: left;
    }
    .center-info-menu {
        text-align: left;
    }
    .contact-info div{
        margin: 5px 10px 5px 0;
    }
}
@media (min-width: 792px) and (max-width: 1200px) {
    .contact-info div{
        margin: 5px 0px 5px 0;
    }
}
@media (min-width: 1400px) {
    .contact-info div{
        margin: 5px 0px 5px 0;
    }
}

/*Иконки с контактами*/

.contacts {
    display: flex;
    justify-content: space-between; 
    padding: 10px;
    box-sizing: border-box; 
    text-transform: uppercase;
    width: 65%;
    max-width: 1190px;
    margin: 7px auto;
    font-size: 14px;
    flex-wrap: wrap;
}
@media (max-width: 992px) {
    .contacts {
        width: 90%;
    }
}
@media (min-width: 992px) and (max-width: 1400px) {
    .contacts {
        width: 80%;
    }
}
.contacts div {
    display: flex;
    align-items: center;
    margin: 5px 10px 5px 0;
}
.contacts img {
    margin-right: 20px;
}
.contact-icon {
    width: 25px;
}

/* Контактный блок в бутерброде (правый-нижний) — оформление как в футере:
   соцсети-пилюли + три колонки «Наш офис / Связаться / Режим работы». */
.contact-bottom .contact {
    width: auto;
    margin: 0 0 26px 7px;
    padding-top: 28px;
    border-top: 1px solid #e6e9f0;   /* линия над соцсетями, как в футере */
    justify-content: flex-start;
    gap: 10px 12px;
}
.contact-bottom .contact div { margin: 0; }
.contact-bottom .contact .contact-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Montserrat', sans-serif; font-weight: 600;
    font-size: 12.5px; letter-spacing: .02em;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid #d7dbe6; background: rgba(20, 34, 61, .04);
    color: #474b58; transition: .18s; white-space: nowrap;
}
.contact-bottom .contact .contact-link:hover {
    color: #000f9f; background: rgba(0, 15, 159, .06);
    border-color: rgba(0, 15, 159, .25); transform: translateY(-2px); opacity: 1;
}
.contact-bottom .contact .contact-icon { width: 16px; height: 16px; margin-right: 0; }

.contact-bottom .contact-info {
    width: auto;
    margin: 0 0 0 7px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.contact-bottom .contact-info > div { text-align: left; margin: 0; }
.contact-bottom .contact-info .footer-header {
    color: #14161d;             /* тёмный заголовок (не синий), как в футере */
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    margin: 0 0 7px;
}
.contact-bottom .contact-info > div > div {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;           /* было жирнее из-за наследования 500 от .aside-list */
    line-height: 1.55;
    color: #474b58;
}
@media (max-width: 700px) {
    .contact-bottom .contact-info { grid-template-columns: 1fr; gap: 18px; }
}

/*Раскрытие информации в футере*/

.footer-conteiner {
    width: auto;
    max-width: 1264px;       /* 1200 текста + по 32px отступов = ширина текста ровно 1200 */
    margin: 7px auto;
    padding: 0 32px;
    box-sizing: border-box;
    font-size: 14px;
    color: #474b58;          /* как весь текст в футере */
    height: 300px;
    overflow: auto;
}
.footer-conteiner div{
    margin: 8px 0;
}
.footer-cost {
    font-size: 14px;         /* было 18px — уравниваем с остальным текстом */
}

/*Скролл*/

body::-webkit-scrollbar {
    width: 12px;
}
body::-webkit-scrollbar-track {
    background: #ebebeb;
}
body::-webkit-scrollbar-thumb {
    background: #000f9f;
    border-radius: 5px;
}
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: #ffffff;
}
::-webkit-scrollbar-thumb {
    background: #dbdada;
    border-radius: 5px;
}

/*Политика конфиденциальности*/

.politika {
    display: flex;
    justify-content: flex-start;
    box-sizing: border-box;
    text-decoration: none;
    width: auto;
    max-width: 1264px;       /* контент 1200 + отступы 32px */
    margin: 7px auto;
    padding: 8px 32px;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 28px;
}
.politika div a {
    text-decoration: none;
    color: #474b58;          /* как весь текст в футере */
    transition: 0.3s;
}
.politika div a:hover {
    color: #000f9f;
    transition: 0.3s;
}
.rights {
    text-align: center;
    color: #474b58;
    font-size: 12px;
    width: auto;
    max-width: 1264px;       /* контент 1200 + отступы 32px */
    margin: 20px auto;
    padding: 0 32px;
    box-sizing: border-box;
}
/* На узких экранах — те же поля, что у остального футера */
@media (max-width: 640px) {
    .footer-conteiner, .politika, .rights { padding-left: 20px; padding-right: 20px; }
}

/*Хлебные крошки*/

/* Единый стиль хлебных крошек: слева, со слэшем «/», серый (site2) */
.breadcrumb {
    padding-top: 20px;
    margin: 0 0 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #83879a;
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}
.breadcrumb li {
    display: flex;
    align-items: center;
    color: #83879a;
}
.breadcrumb li + li:before {
    content: "/";
    padding: 0 8px;
    color: #83879a;
    opacity: .5;
    font-weight: 400;
}
.breadcrumb a {
    text-decoration: none;
    color: #83879a;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: #000f9f;
}
.breadcrumb li:last-child {
    font-weight: 400;
    color: #83879a;
}

/* Все хлебные крошки на всех роутах — строго по левому краю.
   Перебиваем глобальное nav { justify-content: center }, из-за которого
   flex-крошки без своего justify-content уезжали в центр. */
.crumbs, .doc-crumbs, .act-crumbs, .ab-crumbs, .art-crumbs, .feed-crumbs,
.breadcrumb, .breadcrumb ol {
    justify-content: flex-start !important;
    text-align: left;
}
/* Сброс глобального nav a (padding 12px + тёмный цвет + жирный hover),
   из-за которого крошки уезжали вправо и темнели. Все пункты — светло-серые. */
.crumbs a, .doc-crumbs a, .act-crumbs a, .ab-crumbs a, .art-crumbs a, .feed-crumbs a,
.breadcrumb a,
.crumbs span, .doc-crumbs span, .act-crumbs span, .ab-crumbs span, .art-crumbs span, .feed-crumbs span,
.breadcrumb li {
    padding: 0;
    color: #83879a;
    font-weight: 400;
}
.crumbs a:hover, .doc-crumbs a:hover, .act-crumbs a:hover, .ab-crumbs a:hover, .art-crumbs a:hover, .feed-crumbs a:hover,
.breadcrumb a:hover {
    color: #000f9f;
    font-weight: 400;
}
.crumbs .sep, .doc-crumbs .sep, .act-crumbs .sep, .ab-crumbs .sep, .art-crumbs .sep, .feed-crumbs .sep {
    opacity: .5;
}
/* Единый вид крошек: текущая страница (последняя, некликабельная) и разделители —
   светлее кликабельных ссылок. Ссылки (<a>) не трогаем — они остаются насыщенными. */
.crumbs span, .doc-crumbs span, .act-crumbs span, .ab-crumbs span, .art-crumbs span, .feed-crumbs span,
.breadcrumb li:last-child {
    opacity: .5;
}

/*Форма консультации*/

.form-container {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    min-width: 300px;
    max-width: 600px;
    border-radius: 10px;
    margin: 90px 7px 20px 7px;
}
.max-conteiner {
    display: flex;
    align-items: center;
    max-width: 1200px;
    background-color: #00109f00;
    flex-wrap: nowrap;
}
.form-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #000f9f;
}
.form-div {
    text-align: center;
    font-size: 18px;
    color: #000f9f;
    font-weight: 600;
}
.consult-form {
    display: flex;
    flex-direction: column;
}
.consult-label {
    margin-bottom: 5px;
}
.consult-input {
    padding: 10px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    background-color: #ffffff;
    box-shadow: 0 0 50px rgba(102, 102, 102, 0.12);
}
textarea {
    resize: none;
}
.checkbox-container {
    margin-bottom: 15px;
}
.checkbox-container input {
    margin-right: 10px;
}
.submit-button {
    margin: auto;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.4s;
    box-shadow: 0 0 50px rgba(102, 102, 102, 0.164);
    max-width: 200px;
}
.submit-button:hover {
    background-color: #000f9f;
    color: #ffffff;
    transition: 0.4s;
}
.RK {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 600px;
}
.RK img {
    width: 100%;
    max-width: 500px;
    height: auto;
}
@media (max-width: 800px) {
    .max-conteiner {
        flex-direction: column;
        align-items: center;
    }
    .form-container {
        max-width: 100%;
    }
    .RK {
        order: 1;
        justify-content: center;
        width: 100%; 
        max-width: 400px;
    }
}
@media (min-width: 800px) and (max-width: 1200px){
    .form-container {
        min-width: 300px;
        max-width: 500px;
    }
    .RK {
        order: 1;
        width: 100%;
    }
}

/*Вопрос-ответ*/

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.faq-question {
    padding: 18px 25px;  
    background: #f8f9fa;
    color: #535353;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}
.faq-question:hover {
    background: #f2f3f5;
}
.faq-icon {
    width: 20px;
    height: 20px;
    fill: #000f9f;
    transition: transform 0.3s ease;
}
.faq-answer {
    padding: 0;
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 14px;
}
.faq-answer p, .faq-answer ul {
    margin: 15px 25px;
    line-height: 1.6;
    color: #535353;
}
.faq-answer ul {
    padding-left: 20px;
}
.faq-answer li {
    margin-bottom: 8px;
}
.faq-link {
    color: #000f9f;
    text-decoration: none;
    font-weight: 600;
}
.faq-link:hover {
    font-weight: bold;
}
.faq-item.active .faq-question {
    background: #edeff1;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}
.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
}

/*ФОНДЫ*/

.scroll-button {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    z-index: 2; 
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 600px) {
    .scroll-button {
        display: none; 
    }
}
.scroll-button.left {
    left: -15px; 
}
.scroll-button.right {
    right: -20px; 
}
.block-conteiner {
    display: flex;
    overflow-x: auto;
    user-select: none;
    cursor: grab;
    max-width: 1200px;
    scrollbar-width: none;
}
.block {
    flex: 0 0 auto;
    width: 245px;
    margin: 7px;
    box-shadow: 0 0 13px rgba(102, 102, 102, 0.16);
    height: 440px;
    padding: 20px;
    border-radius: 13px;
    transition: 0.7s;
    background-size: cover;
    background-color: rgb(255, 255, 255);
    scroll-snap-align: start; 
    font-size: 14px;
}
.block:hover {
    background-color: #152188;
    background-image: none;
    padding: 20px;
    transition: 0.7s;
    color: rgb(255, 255, 255);
    h3 {
        color: rgb(255, 255, 255);
    }
    .riskline {
        background-color: rgb(255, 255, 255);
    }
    .ring {
        background-color: rgb(255, 255, 255);
    }
    .inner.one {
        border-bottom: 5px solid #ffffff;
    }
    .inner.two {
        border-right: 5px solid #ffffff;
    }
    .inner.three {
        border-top: 5px solid #ffffff;
    }
    .up {
        color: rgb(255, 255, 255);
        font-weight: bold;
    }
    .down {
        color: rgb(255, 255, 255);
        font-weight: bold;
    }
    .recommend-title {
        color: rgb(255, 255, 255); 
    }
    .tooltip-icon {
        color: rgb(255, 255, 255);
    }
    .fond-button {
        background-color: #ffffff;
        color: #152188;
        font-weight: 700;
    }
    .fund-description {
        color: #ffffff;
    }
}
.container-funds {
    width: 170px;
    height: 170px;
    margin: auto;
    position: relative;
}
.animation {
    margin: auto;
    width: 170px;
    height: 170px; 
    border-radius: 50%;
}
.structure {
    text-align: left;
}
.fond-text {
    font-size: 12px;
    line-height: 20px;
}
.text-height {
    height: 60px;
}
.inner {
    margin: auto;
    text-align: center;
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 50%; 
}
.inner.one {
    left: 0%;
    top: 0%;
    animation: rotate-one 2.5s linear infinite;
    border-bottom: 5px solid #000f9f;
}
.inner.two {
    right: 0%;
    top: 0%;
    animation: rotate-two 2.5s linear infinite;
    border-right: 5px solid #000f9f;
}
.inner.three {
    right: 0%;
    bottom: 0%;
    animation: rotate-three 2.5s linear infinite;
    border-top: 5px solid #000f9f;
}
@keyframes rotate-one {
    0% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}
@keyframes rotate-two {
    0% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}
@keyframes rotate-three {
    0% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}
@keyframes rotate-one {
    0% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}
@keyframes rotate-two {
    0% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}
@keyframes rotate-three {
    0% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}
.up {
    color: rgb(51, 117, 34);
    font-weight: bold;
    font-size: 16px;
}
.down {
    color: rgb(175, 48, 48);
    font-weight: bold;
    font-size: 16px;
}
.recommend {
    display: inline-block;          
    position: relative;
}
.recommend-title {
    font-size: 14px;
    font-weight: bold;
    color: #17238f;
    padding: 0 0 5px 5px;
}
.tooltip-icon {
    font-size: 10px;
    color: #000f9f;
    text-align: center;
    cursor: pointer;
    display: inline-block;
}
.tooltip {
    display: none;
    position: absolute;
    right: -14px;
    bottom: 25px;
    background-color: rgb(255, 255, 255);
    font-size: 12px;
    color: rgb(65, 65, 65);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.075);
    line-height: 17px;
}
.tooltip-icon:hover + .tooltip {
    display: block;
}
.fond-button {
    display: flex;
    margin: auto;
    margin-top: 5px;
    background-color: #152188;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 7px;
    padding: 7px 30px 7px 30px;
    box-shadow: 0 0 20px rgba(2, 19, 177, 0.1);
}
.fund-logo {
    padding-top: 10px;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: block;
}

.fund-description {
    height: 70px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

/*Эксперты в управлении активами*/

.expert-container {
    display: flex;
    flex-wrap: wrap;
    padding-top: 25px;
    user-select: none;
    max-width: 1200px;
    margin: 0 auto;
}
.block-expert {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(102, 102, 102, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 7px;
    line-height: 1.5;
    text-align: center;
    flex: 1 1 calc(30%);
    min-width: 300px;
    height: auto;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}
.block-expert:hover {
    transform:  scale(1.02); 
    transition: 0.3s;
}
.expert-image {
    position: absolute;
    width: 250px;
    left: 83%;
    bottom: -45px;
    z-index: 0;
    transform: translateX(-50%);
}
.expert-title {
    width: 65%;
    font-size: 18px;
    color: #000f9f;
    font-weight: 600;
    z-index: 10;
}
.expert-text {
    width: 60%;
    z-index: 10;
    font-size: 14px;
}
@media (max-width: 433px) {
    .expert-title {
        width: 100%;
    }
    .expert-text {
        width: 100%;
    }
    .block-expert {
        height: 450px;
        flex-direction: column; 
        align-items: center;
        min-width: 200px;
        width: calc(100%); 
    }
    .expert-image {
        width: 200px;
        left: 50%; 
        top: 300px;
        transform: translateX(-50%);
    }
}
@media (min-width: 433px) and (max-width: 500px) {
    .expert-title {
        width: 100%;
    }
    .expert-text {
        width: 100%;
    }
    .block-expert {
        height: 350px;
        flex-direction: column; 
        align-items: center;
        min-width: 200px;
        width: calc(100%); 
    }
    .expert-image {
        width: 200px;
        left: 50%; 
        top: 200px;
        transform: translateX(-50%);
    }
}
@media (min-width: 501px) and (max-width: 1249px) {
    .expert-title {
        width: 70%;
    }
    .expert-text {
        width: 70%;
    }
    .block-expert {
        width: calc(50%);
        height: auto;
    }
    .expert-image {
        width: 200px;
        left: 90%;
        top: 0px;
    }
}

/*Примечание*/

.annotation {
    margin: 70px 7px 0 7px;
    font-size: 14px;
}
.annotation div {
    margin-bottom: 10px;
}

/*Стратегия фонда*/

.description {
    font-size: 14px;
}

/*Cookie*/

/* Cookie-баннер. Элементы как у прежней карточки (иконка с крупным заголовком,
   текст, пунктирные ссылки, кнопка-таблетка, приписка под линией), но на
   компьютере — горизонтальная полоса внизу по центру:
       [иконка] [заголовок / текст / ссылки] [Принять]
       [          приписка под линией          ]
   На телефоне — карточка во всю ширину. Раскладка — сеткой; скрипт показывает
   плашку, убирая встроенное display:none (style.display = ''). */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 20px;
    margin: 0 auto;
    z-index: 9999;
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 1000px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    /* Текст и ссылки — от левого края, под иконкой (не с отступом под заголовком) */
    grid-template-areas:
        "ic   title btn"
        "main main  btn"
        "note note  note";
    column-gap: 18px;
    background: #fff;
    border: 1px solid #dfe3ec;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(9, 13, 48, .22);
    padding: 22px 26px 16px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-ic {
    grid-area: ic;
    align-self: start;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0, 15, 159, .08);
    color: #000f9f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-title {
    grid-area: title;
    align-self: center;
    min-height: 42px;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #000f9f;
}

.cookie-main {
    grid-area: main;
    min-width: 0;
    margin-top: 4px;
}

/* Заголовок внутри текста и приписка среди ссылок — от прежней строчной
   версии; здесь заголовок стоит у иконки, а приписка — отдельной строкой */
.cookie-title-inline,
.cookie-note-dot,
.cookie-links .cookie-note {
    display: none;
}

.cookie-body {
    font-size: 13px;
    color: #474b58;
    line-height: 1.55;
    margin: 0 0 10px;
}

.cookie-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    /* Свой межстрочный: иначе ссылки наследуют крупный line-height сайта,
       и при переносе строки расходятся слишком далеко. */
    line-height: 1.4;
}

.cookie-links a {
    font-size: 12.5px;
    color: #000f9f;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    cursor: pointer;
}

.cookie-links a:hover {
    text-decoration-style: solid;
}

.cookie-links .dot {
    color: #83879a;
}

.cookie-accept {
    grid-area: btn;
    align-self: center;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 40px;
    border: none;
    border-radius: 999px;
    background: #000f9f;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: .22s ease;
}

.cookie-accept:hover {
    background: #000b73;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 15, 159, .28);
}

/* Блик-пробежка по кнопке при наведении — как в новой версии сайта */
.cookie-accept::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 38%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
    transform: skewX(-18deg);
    opacity: 0;
}

.cookie-accept:hover::after {
    animation: cookieBtnSheen .7s ease;
}

@keyframes cookieBtnSheen {
    0% { left: -60%; opacity: 1; }
    100% { left: 130%; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-accept::after { animation: none !important; }
}

.cookie-note-m {
    grid-area: note;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eaedf4;
    font-size: 12px;
    line-height: 1.4;
    color: #83879a;
    text-align: left;
}

/* Телефон: карточка во всю ширину — иконка с заголовком, текст и ссылки,
   кнопка на всю ширину, приписка под линией */
@media (max-width: 760px) {
    .cookie-consent {
        bottom: 12px;
        width: calc(100% - 24px);
        grid-template-columns: 42px minmax(0, 1fr);
        grid-template-areas:
            "ic   title"
            "main main"
            "btn  btn"
            "note note";
        column-gap: 12px;
        padding: 20px;
    }
    .cookie-main { margin-top: 14px; }
    .cookie-body { margin-bottom: 16px; }
    .cookie-links { gap: 8px; margin-bottom: 18px; }
    .cookie-accept { width: 100%; padding: 13px 24px; }
    .cookie-note-m { text-align: center; }
}

/*Ссылки на социальные сети*/

.contact-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-link:hover {
    opacity: 0.8;
}

/* ============================================================
   Eyebrow-заголовки (маленькая заглавная подпись с линией-префиксом).
   Единое правило на все страницы: шрифт масштабируется по ширине экрана,
   чтобы подписи меньше переносились на 2 строки. Специфичность добираем
   !important, т.к. вариантов много и каждый задан своим селектором
   (.rk-hero2 .eyebrow, *-eyebrow…). ncd-eyebrow (мелкая подпись карточки
   новости, 9px) — исключение. Линию/выравнивание НЕ трогаем.
   ============================================================ */
[class*="eyebrow"]:not(.ncd-eyebrow) {
    font-size: clamp(10px, 7px + 0.4vw, 12px) !important;
    /* При переносе в 2 строки линия-префикс должна стоять по середине ПЕРВОЙ
       строки, а не по центру всего блока (см. margin-top у ::before ниже). */
    align-items: flex-start !important;
}
/* Линия-префикс: ЦЕЛЫЙ 2px — та самая «нормальная жирность», что у большинства
   заголовков (там дробный 1.5px округлялся вверх до 2px). Целый пиксель рендерится
   одинаково в ЛЮБОМ месте страницы, поэтому первый (hero) больше не будет тоньше:
   дробный 1.5px в разных местах попадал на разную долю пикселя и «плавал». */
[class*="eyebrow"]:not(.ncd-eyebrow)::before {
    height: 2px !important;
    /* Сдвигаем линию к середине ПЕРВОЙ строки текста. Для одной строки вид не
       меняется (та же вертикаль), для двух — линия остаётся на первой строке.
       1lh — высота одной строки; фолбэк 10.5px для старых браузеров. */
    margin-top: 10.5px !important;
    margin-top: calc((1lh - 2px) / 2) !important;
}
