body {
    max-width: 2050px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb-top-box {
    margin-top: -24px;
    height: 28px;
    background: whitesmoke;
    font-size: 14px;
    z-index: 0;
    border-radius: 0 0 10px 10px;
    position: relative;
}
.breadcrumb-top-box a {
    color: var(--color-bg-third);
}

.breadcrumb-top-box a:hover {
    color: var(--href-color-light)
}

.breadcrumb-top-box .breadcrumb {
    --bs-breadcrumb-margin-bottom: 0;
}

.breadcrumb-top-box .breadcrumb-top {
    bottom: 2px;
    display: block;
    margin-top: auto;
    position: absolute;
}

.mw-50vw {
    min-width: 50vw;
}

.mw-75vw {
    min-width: 75vw;
}

/* Базовые стили для контейнера */
#contents {
    z-index: 100;
}

.nav-container {
    overflow-x: auto;
    white-space: nowrap;
    cursor: grab; /* Курсор "рука" для указания возможности перетаскивания */
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
    scrollbar-width: none; /* Скрываем полосу прокрутки в Firefox */
    -ms-overflow-style: none; /* Скрываем полосу прокрутки в IE/Edge */
}

/* Скрываем полосу прокрутки в Chrome/Safari */
.nav-container::-webkit-scrollbar {
    display: none;
}

/* Стиль при активном перетаскивании */
.nav-container.active {
    cursor: grabbing; /* Курсор "захват" при активном перетаскивании */
}

/* Отключаем стандартное перетаскивание ссылок */
.nav-container a {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* Возвращаем события указателя для ссылок */
    pointer-events: auto;
    /* Предотвращаем выделение текста */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Стили для содержимого контейнера */
.nav-container * {
    /* Не отключаем pointer-events для всех элементов */
    /* pointer-events: none; */
}

.nav-items {
    color: white;
    padding: 24px;
    border-radius: var(--border-radius-14px);
    font-weight: bold;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    cursor: pointer;
    white-space: nowrap !important;
}

.nav-items:hover {
    color: var(--href-color-dark);
}

.nav-items.active:hover {
    background-color: var(--color-violet-hover);
    color: white;
}

.nav-items.active {
    background-color: var(--color-violet);
    cursor: default;
}

/* Стили для гамбургер-иконки оглавления */
.toc-hamburger-icon {
    position: fixed;
    top: 50%;
    right: 20px;
    z-index: 100;
    background-color: var(--color-violet);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.toc-hamburger-icon:hover {
    background-color: #333;
}

/* Стили для плавающего оглавления */
.toc-floating-container {
    position: fixed;
    top: 108px;
    left: 368px;
    right: 28px;
    z-index: 100;
    background-color: #000;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 1660px;
    margin: 0 auto;
    transition: transform 0.3s ease;
    transform: translateY(-100%);
}

.toc-floating-container.toc-visible {
    transform: translateY(0);
}

/* Вспомогательные классы для оглавления */
.toc-hidden {
    display: none;
}

.toc-visible-flex {
    display: flex;
}
@media screen and (max-width: 1200px) {
    .toc-floating-container {
        position: fixed;
        top: 104px;
        left: 20px;
        right: 20px;
    }
}
@media screen and (max-width: 576px) {
    .toc-floating-container {
        position: fixed;
        top: 60px;
        left: 8px;
        right: 8px;
    }
    .nav-items {
        padding: 16px;
        font-size: 12px;
    }
}


.flex-basis-25 {
    flex-basis: 25%;
}

.flex-basis-33 {
    flex-basis: 33%;
}

.flex-basis-50 {
    flex-basis: 50%;
}

.flex-basis-75 {
    flex-basis: 75%;
}

.cube-title-box {}

.cube-title-box h1, .cube-title-box h2, .cube-title-box h3, .cube-title-box h4 {
    margin-bottom: 0;
    line-height: 1;
}

.bg-violet {
    background-color: var(--color-violet);
}

.bg-red {
    background-color: var(--color-primary);
}

.bg-second {
    background: var(--color-bg-second);
}

.quote-avatar {
    width: 78px;
    height: 78px;
    display: flex;
    overflow: hidden;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--color-bg-grey);
}

.scale {
    transition: .3s ease-in all;
}

.scale:hover {
    transform: scale(1.1);
}

.trans-y {
    transition: .3s ease-in all;
}

.trans-y:hover {
    transform: translateY(-6px);
}

.quote-avatar-name {
    border-radius: 4px;
    background-color: var(--text-color);
    padding: 6px;
    border: 1px solid var(--color-violet);
    line-height: 1;
    max-width: fit-content;
    font-weight: bold;
}

.quote-card {
    background-color: var(--color-bg-second);
    color: white;
    position: relative;
}

.blur-only-filter {
    backdrop-filter: blur(3px);
}

.quote-card .servis-img {
    max-width: 300px;
    right: 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
}

.quote-mark {
    position: absolute;
    bottom: 30px;
    right: 34px;
    z-index: 1;
}

.quote-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-bottom-right-radius: 14px;
    pointer-events: none;
}

.quote-bg-pos {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
}

.quote-bg-1-color {
    width: 250px;
    height: 250px;
    background-color: var(--color-violet);
    bottom: -115px;
    right: 30px;
}

.quote-bg-2-color {
    width: 300px;
    height: 300px;
    background-color: var(--href-color-light);
    bottom: -120px;
    right: -150px;
    opacity: 0.7;
}

.person-card {
    text-align: center;
    margin-bottom: 30px;
}

.person-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.person-title {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.person-quote {
    border-left: 4px solid var(--color-violet);
    padding-left: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.list-custom {
    list-style: none;
    padding-left: 0;
}

.list-custom li {
    padding: 4px 0;
    position: relative;
    padding-left: 25px;
}

.list-custom li::before {
    content: "•";
    color: var(--color-violet);
    font-size: 2.5rem;
    position: absolute;
    left: 0;
    top: -8px;
    line-height: 1;
}

.badge-red {
    background: var(--href-color-hover);
    color: white;
    padding: 4px 12px;
    border-radius: var(--border-radius-6px);
    font-weight: bold;
    max-width: fit-content;
}

.fake-accordion-violet {
    font-weight: bold;
    background-color: var(--color-violet);
    color: white;
    border-radius: var(--border-radius-14px);
}

.fake-accordion {
    font-weight: bold;
    background-color: var(--color-bg-default);
    border-radius: var(--border-radius-14px);
}

.w-32px {
    width: 32px;
}

.journal-cards-container {
    margin-top: -140px;
}

.journal-cards {
    min-height: 200px;
    max-width: 360px;
}

.journal-cards-border {
    min-height: 200px;
    max-width: 320px;
    border: 10px solid white;
}

.rotate-10deg {
    transform: rotate(10deg);
}
.rotate--10deg {
    transform: rotate(-10deg);
}

.collega-box {
    display: flex;
    border-radius: var(--border-radius-14px);
    justify-content: space-between;
    min-height: 400px;
    width: 100%;
    flex-direction: column-reverse;
    background-position: center top;
    background-size: cover;
}

.collega-box .post {
    margin: 10px;
    border-radius: 8px;
    background-color: var(--color-bg-third);
    padding: 4px 10px;
    font-size: 16px;
    text-align: center;
    line-height: 1.3;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.collega-name {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.result-tags {
    background-color: var(--color-violet);
    color: white;
    padding: 24px;
    border-radius: var(--border-radius-14px);
    font-weight: bold;
    white-space: nowrap;
}


.conclusions-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-bottom-right-radius: 14px;
    pointer-events: none;
}

.conclusions-bg-pos {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.conclusions-bg-1-color {
    width: 350px;
    height: 350px;
    background-color: var(--color-violet);
    top: -115px;
    left: -40px;
}

.conclusions-bg-2-color {
    width: 300px;
    height: 300px;
    background-color: var(--href-color-light);
    bottom: -120px;
    right: -150px;
    opacity: 0.7;
}

.arrow-bottom img {
    max-width: 274px;
    bottom: 0;
    right: 36px;
    position: absolute;
}

/*
куки
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #212529;
    color: #fff;
    z-index: 1050;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin-left: auto;
    margin-right: 30px;
    border-radius: 14px 14px 0px 0px;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-consent-banner .settings {
    font-size: 0.7rem;
    opacity: 0.8;
    cursor: pointer;
    text-align: center;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-banner h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cookie-consent-banner p {
    margin-bottom: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.cookie-consent-banner a {
    color: white;
    text-decoration: underline;
}

.cookie-consent-banner a:hover {
    text-decoration: underline;
}

.cookie-timer {
    display: inline;
}

.left-column {
    position: relative;
}

/*
статья
 */

.article-one-column .right-column {
    display: none;
}

.article-one-column .left-column .body-article {
    max-width: 1200px;
}

.article-one-column .left-column {
    margin-right: 0;
}

.article-two-column .left-column {
    margin-right: 1.5rem;
}

.body-article {
    max-width: 100%;
}

.article .img-heading {
    border-radius: var(--border-radius-14px);
    position: relative;
}

.article .img-heading picture {
    border-radius: var(--border-radius-14px);
    position: relative;
}

.article .img-heading img {
    border-radius: inherit;
}
.article .img-heading .badge-black {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: var(--min-font-size);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius-6px);
    font-weight: bold;
    width: fit-content;
    height: fit-content;
}
.tags {
    position: absolute;
    bottom: 20px;
    left: 20px;
}
.tags div{
    font-size: var(--min-font-size);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius-6px);
    font-weight: bold;
    width: fit-content;
    height: fit-content;
}

.table-container {
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--color-bg-second);
    color: white;
    font-weight: 500;
    position: sticky;
    top: 0;
}

th:first-child, td:first-child {
    font-weight: 600;
}

tr:hover {
    background-color: rgba(224, 224, 224, 0.3);
}

.highlight-good {
    background-color: rgba(151, 71, 255, 0.13);
    color: var(--color-violet);
    font-weight: 600;
}

.highlight-bad {
    background-color: rgba(230, 57, 70, 0.05);
    color: var(--color-bg-second);
    position: relative;
}

.highlight-bad::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--href-color-light);
}

.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.good {
    background-color: var(--color-violet);
}

.legend-color.bad {
    background-color: var(--border-color);
    border-left: 4px solid var(--href-color-light);
}

@media (max-width: 768px) {
    th, td {
        padding: 10px;
        font-size: 14px;
    }

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


.right-column .right-box {
    background: linear-gradient(145deg, #1a1620, #222);
    transition: all 0.3s ease;
    position: relative;
    border-radius: 14px;
    padding: 2px;
    margin-bottom: 20px;
}

.right-column .right-box::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgb(43, 43, 43), rgb(151, 71, 255));
    border-radius: 13px;
    z-index: 0;
}

.right-column .right-box .content {
    background: linear-gradient(145deg, #1a1620, #222);
    border-radius: 14px;
    position: relative;
    z-index: 1;
    height: 100%;
    margin: 1px -1px -1px 2px;
}

.right-column .right-box::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgb(151, 71, 255) 0%, rgba(255, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 2;
    filter: blur(15px);
    opacity: 0.8;
    transition: 0.3s ease-in-out all;
}

.right-column .right-box:hover:after {
    bottom: -50px;
}

.right-column .right-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.right-column .authors .content .author {
    margin-bottom: 20px;
}

.right-column .authors .content .author:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 767.98px) {
    .cookie-consent-banner {
        padding: 1rem 0;
    }
    .cookie-text h5 {
        display: none;
    }

    .cookie-consent-banner {
        margin-left: 30px;
        text-align: center;
    }
    .cookie-consent-banner p {
        font-size: 0.65rem;
    }
    h1, h2, h3, h4, h5, h6, .fs-h1, .fs-h2, .fs-h3, .fs-h4 {
        overflow-wrap: break-word;
    }
}


@media screen and (max-width: 1280px) {
    h1, .fs-h1 {
        font-size: 32px;
    }

    h2, .fs-h2 {
        font-size: 28px;
    }

    h3, h4, .fs-h3, .fs-h4 {
        font-size: 26px;
    }

    .title-min {
        font-size: 22px;
        line-height: 1.4rem;
    }
    .journal-cards-border.rotate--10deg, .journal-cards-border.rotate-10deg {
        transform: rotate(0deg);
    }
    .article-one-column .left-column .body-article {
        max-width: 100%;
    }
}
@media screen and (max-width: 1024px) {
    .arrow-bottom img {
        max-width: 76px;
        bottom: 0;
        right: 36px;
        position: absolute;
    }
}

@media (max-width: 992px) {
    .article-two-column .left-column {
        margin-right: 0;
    }
}

@media screen and (max-width: 768px) {
    .journal-cards-container {
        margin-top: 0px;
    }
    .journal-cards {
        min-height: 160px;
        max-width: 400px;
    }
    .journal-cards-border {
        min-height: 160px;
        max-width: 400px;
        border: 10px solid white;
    }
    .result-tags {
        white-space: normal;
    }
}
