.method {
    display: flex;
    position: relative;
    width: 100%;
    margin-bottom: 50px;
    /* gap: 40px; */
}

.main-container {
    flex: 1;
    min-width: 0;
}

p {
    margin: 0;
    line-height: 26px;
    font-size: 18px;
}

p.qtext {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.twenty {
    margin-top: 20px;
    margin-bottom: 20px;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    color: #6BAEFF;
}

.text_left {
    width: 80%;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;

    /* синий нов */
    color: #1B2E6A;
}

.qtext.qbolder {
    font-weight: 500;
    font-size: 18px;
}

.title_main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.title_main h2 {
    font-size: 40px;
    font-weight: 600;
    margin: 0;
}

.title_main .under {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: end;
}

.title_main .under p {
    font-size: 20px;
    font-weight: 200;
    margin: 0;
    font-style: italic;
}

.slider_class {
    margin-top: 30px;
}

.formula_flex {
    display: flex;
    padding-left: 10px;
}

.formula_flex p {
    min-width: 400px;
}

.left_formula mjx-container {
    text-align: start !important;
}

.left_formula_flex {
    display: flex;
    align-items: baseline;
    padding-left: 10px;
}

.slick-track {
    display: flex !important;
    align-items: center;
}



.mark-title {
    color: #00a151;
    font-weight: bold !important;
    font-size: 26px !important;
    line-height: 26px;
}

.mark {
    margin-top: 100px;
    margin-bottom: 20px;
}

.mark.mt-50 {
    margin-top: 50px;
}

.floating_img {
    width: 100%;
    margin-top: 30px;
    /* margin-bottom: 20px; */
}

.floating_img.mb-20 {
    margin-bottom: 20px;
}

.floating_img.mt-40 {
    margin-top: 40px;
}

.floating_img.mt-20 {
    margin-top: 20px;
}

.floating_img_2 {
    width: 60%;
    margin: 0 auto;
}

.floating_img_3 {
    width: 100%;
    margin: 0 auto;
    margin-top: 40px;
    margin-bottom: 20px;
}

.floating_img_3.mt-20 {
    margin-top: 20px;
}

.floating_img_4 {
    width: 100%;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.floating_img_4.mt-20 {
    /* margin-top: 20px; */
}

.blue_span {
    color: #6BAEFF;
    font-weight: 500;
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
}

.right_align {
    /* float: right; */
    text-align: end;
    opacity: 0.6;
    font-style: italic;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.title2 {
    font-size: 24px;
    font-weight: 600;
    color: rgba(15, 15, 15, 1);
    margin: 0;
    margin: 60px 0 20px 0;
}

.title2.mt-30 {
    margin-top: 30px;
}

.title3 {
    font-size: 24px;
    font-weight: 500;
    line-height: 26px;
    color: #6BAEFF;
    margin-top: 40px;
    margin-bottom: 20px;
}

.title3.mt-20 {
    margin-top: 20px;
}


.formula_type {
    font-size: 22px;
    font-weight: 500;
}

.subtitle {
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}

.circles_div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.circles_subdiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
    row-gap: 30px;
}

.video_div {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.slider_class {
    /* display: flex; */
    overflow: hidden;
    /* Прокрутка */
    gap: 10px;
    /* Отступ */
}

.slider_item {
    /* height: 300px; */
    flex-shrink: 0;
    /* Не сжимать */
    width: 350px;
    padding: 50px;
    transform: scale(1);
    opacity: 0.7;
    transition: 0.3s;
}

.slider_item.slick-current {
    transform: scale(1.42);
    opacity: 1;
    transition: 0.3s;
}

.slider_item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* Заполнение */
}

.formula_block {
    margin: 0 auto;
    width: 100%;
    max-width: 1040px;
    border: 3px dashed #87AEF8;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
}

.percent_80 {
    margin: 0 auto;
    width: 80%;
}

.percent_60 {
    margin: 0 auto;
    width: 60%;
}

.formula_block.one_line {
    padding: 0;
}

.formula_block.f_b_padding {
    margin-bottom: 0;
}

.formula_block.smaller {
    max-width: 636px;
    padding: 15px;
    font-size: 14px;
}

.formula_block.small {
    max-width: 527px;
    padding: 15px;
    font-size: 14px;
}

.formula_block .main_formula {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 50px;
}

.main_formula_small {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
}

.main_formula_small.centered {
    align-items: center;
}

.formula_block .formula_description {
    text-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 10px;
    margin-right: 10px;
    /* margin-bottom: 10px; */
}

.font-600 {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
}

.font-500 {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 26px;
}

.font-500-p {
    margin-top: 20px;
    margin-bottom: 20px;
}

mjx-container[jax="CHTML"] {
    font-family: "Montserrat", sans-serif !important;
}

.MathJax_Display {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
}

.MathJax,
.mjx-math {
    white-space: pre-wrap !important;
}

.my-prev-arrow,
.my-next-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    /* Убрать дефолтное оформление, если нужно */
    background: none;
    border: none;
    font-size: 0;
    /* Если внутри картинка/иконка */
}

.my-next-arrow.slick-disabled,
.my-prev-arrow.slick-disabled {
    opacity: 0.2;
}

/* Позиция для левой и правой стрелки */
.my-prev-arrow {
    transform: translate(calc(-50% - 200px), -50%);
}

.my-next-arrow {
    transform: translate(calc(-50% + 200px), -50%);
}

.close_block_elem,
.clicker {
    cursor: pointer;
}

.special_div_1 {
    width: 35%;
}

.special_div_2 {
    width: 55%;
}

.special_div_3 {
    width: 12%;
}

.special_div_4 {
    width: 28%;
}

.special_div_4 mjx-container {
    text-align: start !important;
}

.special_div_1 mjx-container {
    text-align: start !important;
}

.special_div_5 {
    width: 20%;
}

.special_div_5 mjx-container {
    text-align: start !important;
}

.green_a {
    color: #00a151;
    text-decoration: underline;
}

.blue_a {
    color: #6BAEFF;
    text-decoration: underline;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
}

.green_a:hover {
    text-decoration: none;
}

.green_span {
    color: #00a151;
    font-weight: 500;
}

/* .green_span.coursiv {
    font-style: italic;
} */
.coursiv {
    font-style: italic;
}

.grey_a {
    color: #000000;
    text-decoration: underline;
    font-weight: 300;
}

.grey_a:hover {
    text-decoration: none;
}

.formula_font {
    font-family: MJX-NCM-ZERO, MJX-NCM-N;
    font-weight: bolder;
    line-height: 0;
    font-size: 18px;
}

.left_move {
    margin-left: -100px;
    height: 320px;
}

.for_desktop {
    font-size: 18px !important;
}

.small_3 {
    max-width: 600px;
}

.numerator {
    margin-top: 30px;
    margin-bottom: 20px;
}

ul.mb-0 {
    margin-bottom: 0;
}

.clicker.active {
    color: #6BAEFF !important;
}

.blue-table {
    width: 100%;
    border-collapse: separate;
    /* Позволяет скруглять углы */
    border-spacing: 0;
    /* Убирает пустые промежутки между ячейками */
    border: 2px solid #87AEF8;
    /* Внешняя рамка */
    border-radius: 20px;
    /* Радиус скругления углов таблицы */
    overflow: hidden;
    /* Скрывает острые углы внутренних строк и шапки */
    font-family: sans-serif;
}

/* Синяя шапка таблицы */
.blue-table thead tr {
    background-color: #87AEF8;
    color: #ffffff;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 26px;
}

.blue-table thead td {
    border: none;
}

.blue-table tbody tr {
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 26px;
    /* identical to box height, or 186% */

    /* синий нов */
    color: #1B2E6A;
}

/* Внутренние рамки и отступы для ячеек */
.blue-table th,
.blue-table td {
    /* Нижняя и правая рамки для каждой ячейки */
    border-bottom: 1px solid #b8daff;
    border-right: 1px solid #b8daff;
    padding: 10px 15px;
    text-align: left;
    padding-left: 40px;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Убираем правую рамку у самых крайних правых ячеек */
.blue-table th:last-child,
.blue-table td:last-child {
    border-right: none;
}

/* Убираем нижнюю рамку у самых нижних ячеек */
.blue-table tbody tr:last-child td {
    border-bottom: none;
}

/* Синий цвет для ЧЕТНЫХ строк */
.blue-table tbody tr:nth-child(even) {
    background-color: rgba(200, 219, 255, 0.4);
}

.table_wrapper {
    overflow-x: auto;
}

@media (max-width: 768px) {

    .blue-table th,
    .blue-table td {
        padding: 5px;
    }

    .percent_80 {
        width: 100%;
    }

    .percent_60 {
        width: 100%;
    }

    .floating_img_2 {
        width: 96%;
    }

    .text-indent mjx-mrow {
        line-height: 20px !important;
    }

    .slick-dots {
        bottom: -30px;
        position: initial !important;
        /* Отодвигаем точки вниз */
    }

    .slick-dots li button:before {
        font-size: 12px !important;
        /* Размер точек */
        /* color: #000 !important; */
        /* Цвет точек */
    }

    .my-prev-arrow {
        transform: translate(calc(-50% - 140px), -50%);
    }

    .my-next-arrow {
        transform: translate(calc(-50% + 140px), -50%);
    }

    .slick-slide img {
        width: 60%;
        margin: 0 auto;
    }

    mjx-mtr {
        padding: 0.5em 0;
    }

    mjx-math mjx-mtable {
        line-height: 1.5 !important;
    }

    .verysmall {
        font-size: 10px !important;
    }

    .verysmall2 {
        font-size: 12px !important;
    }

    .verysmall3 {
        font-size: 8px !important;
    }

    .verysmall4 {
        font-size: 15px !important;
    }

    .left_move {
        width: 80%;
        height: auto;
    }

    .left_move {
        margin-left: 0;
    }

    .main_formula_small.for_mobile mjx-container mjx-math mjx-TeXAtom {
        line-height: 5px !important;
    }

    .circles_subdiv {
        row-gap: 15px;
        margin-bottom: 30px;
    }

    video {
        width: 100%;
        /* Растягивает во всю ширину экрана */
        /* max-height: 230px; */
        /* Ограничивает высоту, чтобы видео не занимало весь экран целиком */
    }

    .circles_div {
        flex-direction: column;
        align-items: center;
    }

    .formula_flex p {
        min-width: 250px;
    }

    .special_div_4 {
        width: 80%;
    }

    .special_div_5 {
        width: 80% !important;
    }

    .formula_flex {
        padding: 0 10px;
    }

    .formula_block {
        width: 90%;
    }

    .container {
        padding: 0 10px !important;
    }

    .slider_item {
        padding: 15px;
    }


    .formula_block.f_b_padding .main_formula mjx-container mjx-TeXAtom {
        padding: 5px 0;
    }
}

body {
    overflow-x: hidden;
}

header .fon {
    margin-bottom: 0 !important;
}

.content {
    position: sticky;
    width: 0px;
    flex-shrink: 0;
    top: 20px;
    align-self: flex-start;
    background: #fff;
    /* padding: 15px; */
    box-sizing: border-box;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transition: transform 0.2s ease;
    overflow-y: hidden;
}

.content.active {
    width: 400px;
    /* transition: .3s; */
    overflow-y: auto;
}

.close_menu_button img {
    width: 30px;
}

.close_menu_button {
    padding: 10px 20px;
    cursor: pointer;
    /* background-color: #00a25b; */
    color: white;
    border: none;
    /* border-radius: 5px; */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Расстояние между текстом и стрелкой */
    width: 250px;
    height: 48px;
    transition: 0.3s;
    margin-top: 20px;
    border-radius: 0px 10px 10px 0px;
}

.close_menu_button_text {
    font-size: 18px;
}

.menu_button {
    padding: 10px 20px;
    cursor: pointer;
    /* background-color: #00a25b; */
    color: white;
    border: none;
    /* border-radius: 5px; */
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Расстояние между текстом и стрелкой */
    width: 70px;
    height: 40px;
    transition: 0.3s;
    position: fixed;
    /* top: 800px; */
    top: 100px;
    left: 0;
    z-index: 11;
    opacity: 0;
    border-radius: 0px 10px 10px 0px;
}

.menu_button.active {
    opacity: 0;
}

.menu_button.show {
    opacity: 1;
}

.menu_button.active.show {
    opacity: 0;
}

.menu_modal {
    padding-top: 40px;
}

.menu_modal_content {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 100%;
}

.menu_button_img {
    margin: 0;
    width: 30px;
    margin-left: -10px;
}

.menu_button.active .menu_button_img {
    /* transform: rotate(180deg); */
}

.menu_button_text {
    color: white;
}

.link-item {
    background: rgb(236, 241, 255);
    padding: 20px;
    /* margin-bottom: 15px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: rgb(26, 43, 88);
    font-size: 20px;
    font-weight: bold;
}

.link-item::after {
    background: url(../../direction-of-activity/img/str_btm.svg);
    min-width: 16px;
    height: 16px;
    content: "";
}

.item-container {
    margin-bottom: 15px;
    border: 2px solid rgb(236, 241, 255);
    border-radius: 0 0 6px 6px;
}

.link-description {
    /* padding-left: 10px; */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    /* transition: padding 0.4s */
}

.link-description.active {
    /* padding: 15px; */
    transition: 0.5s;
}

.link-description-p {
    padding: 1rem;
    /* transition: .4s; */
}

.method {
    /* margin-left: 0; */
    padding: 20px;
    margin-top: 10px;
    padding-left: 0;
    transition: all 0.3s ease;
    /* Плавность сдвига */
    transition: transform 0.3s ease;
    /* Плавное масштабирование */
    transform-origin: left top;
    /* Масштабируем от левого края */
}

.method.active {
    transform: translateX(250px) scale(0.9);
    /* Сдвиг + уменьшение */
}

@media (max-width: 1124px) {
    .menu_modal.active {
        width: 100%;
        /* min-height: 100%; */
        height: calc(100vh + 40px);
        top: 40px;
    }
}

/* 24042026 */
.accordion {
    /* border: 1px solid #ccc; */
    border-radius: 4px;
    width: 100%;
    max-width: 500px;
}

.accordion-header {
    /* background-color: #f1f1f1; */
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.accordion .accordion-header {
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
}

.accordion .accordion-preheader {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;

    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
}

.accordion-item .accordion-item .accordion-header {
    font-weight: 400;
    font-size: 16px;
    line-height: 29px;
}

/* .accordion-item .accordion-item .accordion-item .accordion-header  { */
.accordion-content .accordion-content p {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #888888;
}

/* Иконка стрелочки */
.accordion-header::after {
    /* content: '\002B'; */
    content: url("/knowledge/section2/EP/img/bottom_arraw.svg");
    /* Знак плюс */
    /* font-size: 1.2rem; */
    transition: 0.3s;
    padding-left: 15px;
}

.accordion-header.active::after {
    /* content: '\2212'; */
    content: url("/knowledge/section2/EP/img/top_arrow.svg");
    transition: 0.3s;
    padding-left: 15px;
    /* Знак минус */
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    /* Плавная анимация */
    background-color: white;
}

.accordion-content {
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-left: 20px;
}

/* Вложенные стили */
.accordion-body .accordion,
.accordion-body p {
    border: none;
    /* border-left: 2px solid #007bff; */
    margin-top: 10px;
    margin-left: 10px;
}

.accordion-body .accordion-header {
    padding-left: 0;
}

.accordion-header-span {
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 29px;
    color: #d8d9d9;
    margin-right: 1rem;
}

.accordion-header.active {
    /* color: #00a151; */
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    transition: fill 0.3s;
    width: 40px;
    height: 40px;
}

#scrollToTopBtn:hover circle {
    cursor: pointer;
    fill: #6BAEFF;
    transition: fill 0.5s;
}

@media (max-width: 768px) {
    header .fon {
        background: url(img/title.png) no-repeat !important;
        height: auto;
        height: 257px;
    }

    .title_main h2 {
        font-size: 26px;
    }

    .content.active {
        width: 100%;
        transition: 0.3s;
        position: fixed;
        margin-top: 0px;
        height: 100vh;
        z-index: 1;
        top: 0;
        max-height: 100vh;
    }

    /* .content.active.mobile_logic {
				width: 0;
			} */
    /* .menu_button.active.mobile_logic {
				opacity: 1;
			} */

    .method {
        padding: 0;
    }

    .formula_flex {
        flex-wrap: wrap;
    }

    .special_div_1,
    .special_div_2,
    .special_div_3 {
        width: 100%;
    }

    .formula_block .main_formula {
        font-size: 20px;
    }

    .menu_button {
        width: 47px;
        justify-content: center;
        height: 30px;
    }

    .menu_button_img {
        width: 25px;
        /* padding-left: 0; */
        margin: 0;
    }

    #scrollToTopBtn {
        padding: 0;
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}