.index-container {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px); 
}

#root {
    position: relative;
    z-index: 1;
}

div[style*="position: fixed"] {
    display: none !important; 
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

footer {
    position: relative;
    z-index: 2;
}

/* Основная структура для десктопа */
.article-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    min-height: 100vh;
}

.content-body__container {
    flex: 1;
    max-width: 900px;
    background: white;
    border-radius: 12px;
    padding: 2em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article__sidebar.desktop-only {
    width: 350px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Убираем ограничения для sticky */
.modal-overlay {
    position: relative !important;
    inset: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    min-height: 100vh;
    overflow: visible;
}

.modal-container {
    width: 100%;
    max-width: none;
    min-height: 480px;
    overflow: hidden;
    position: relative;
    animation: 350ms ease-out 0s 1 normal forwards running modalSlideIn;
    z-index: 1;
    overflow: visible;
}

/* Навигация должна быть на ширине основного контента */
.article-navigation-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-navigation {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0;
}

.divider-line {
    margin: 1.5em 0;
    border: 1px solid #F4F4F5;
}

.article-link {
    -webkit-text-decoration: none;
    text-decoration: none;
    color: #4D555B;
}

.article-link,
.article-link:visited,
.article-link:active {
    color: #3C5DFF;
}

.article-link:hover {
    color: #191A9B;
    -webkit-text-decoration: none;
    text-decoration: none;
    cursor: pointer;
}

.toc-title {
    margin: 0;
    color: #232624;
    font-size: 18px;
    line-height: 1.5em;
    font-weight: 600;
    color: #4D555B;
}

@media screen and (max-width:45em) {
    .toc-title {
        font-size: 18px;
        line-height: 140%;
    }
}

.article-text {
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
    white-space: pre-wrap;
    color: #4D555B;
}

.article-date {
    font-size: 13px;
    line-height: 100%;
    padding: 0 0.25em 0 0;
    color: #4D555B;
}

.section-title {
    color: #232624;
    font-size: 2em;
    line-height: 45px;
    font-weight: 400;
}

@media screen and (max-width:45em) {
    .section-title {
        font-size: 27px;
        line-height: 29px;
    }
}

.subsection-title {
    color: #232624;
    font-size: 1.5em;
    line-height: 36px;
    font-weight: 400;
}

@media screen and (max-width:45em) {
    .subsection-title {
        font-size: 23px;
        line-height: 23px;
    }
}

.author-block {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: #FFFFFF;
    padding: 0.1em 0.5em;
    margin: -0.1em -0.5em;
}

.author-block>div {
    margin: 1.25em 0;
}

.author-block .author-image,
.author-block img {
    height: 48px;
    width: 48px;
    min-height: 48px;
    min-width: 48px;
    border-radius: 36px;
}

.author-block>p {
    margin: 1em 0.75em;
    font-size: 14px;
}

.author-block small {
    color: #4D555B;
}

.author-block__images {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    padding-right: 4px;
}

.author-block__images>* {
    margin: 0 -4px;
}

.section-footer {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.section-footer small {
    margin-top: 0.5em;
    font-size: 12px;
}

.section-footer small,
.section-footer small>a {
    color: #4D555B;
    -webkit-text-decoration: underline;
    text-decoration: underline;
}

.section-footer small:hover {
    cursor: pointer;
}

/* Стили для инструмента в боковой панели */
.sidebar-hero__cta {
    width: 100%;
}

.cta-card {
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.1);
    padding: 1.5em;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #F0F1F2;
    position: relative;
    max-height: 80vh;
    overflow: hidden;
}

.cta-card div.headline {
    color: #000000;
    font-size: 28px;
    font-weight: 500;
    line-height: 130%;
    text-align: center;
    margin: 15px 0 10px;
}

.cta-card .headline {
    color: #232624;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
}

@media (max-height:660px) {
    .cta-card div.headline {
        font-size: 22px;
    }
}

.cta-card div.action {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
}

.cta-card div.action a,
.cta-card div.action a:hover {
    background: linear-gradient(270deg, rgb(245, 115, 115) -65.78%, rgb(245, 115, 115) 45.1%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    border: none;
    border-bottom: 4px solid rgb(186, 74, 74);
    border-radius: 6px;
    margin: 0.5em 0 0;
    width: 100%;
    font-weight: 500;
}

.cta-card .action a {
    display: inline-block;
    background: #3C5DFF;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    width: 100%;
    margin-bottom: 12px;
    transition: background-color 0.2s ease;
    font-size: 1.1em;
}

.cta-card .action a:hover {
    background: #2C2EE0;
    transform: translateY(-1px);
}

.cta-card div.action p {
    -webkit-text-decoration: none;
    text-decoration: none;
    -webkit-text-decoration: underline;
    text-decoration: underline;
}

.cta-card div.action p,
.cta-card div.action p:visited,
.cta-card div.action p:active {
    color: #3C5DFF;
}

.cta-card div.action p:hover {
    color: #191A9B;
    -webkit-text-decoration: none;
    text-decoration: none;
    cursor: pointer;
}

.cta-card div.action p:hover {
    cursor: pointer;
}

@-webkit-keyframes oscillate-online-circle {
    0% {
        fill: #17DC83;
    }

    100% {
        fill: #0EA35F;
    }
}

@keyframes oscillate-online-circle {
    0% {
        fill: #17DC83;
    }

    100% {
        fill: #0EA35F;
    }
}

.cta-card div.num-starts {
    text-align: center;
    margin: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 36px;
}

.cta-card .num-starts {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.cta-card div.num-starts small {
    color: #656A6F;
}

.cta-card .num-starts small {
    font-size: 12px;
    color: #4D555B;
}

.cta-card div.num-starts svg {
    height: 14px;
    width: 14px;
    margin: 6px 2px 0 0;
}

.cta-card div.num-starts svg circle {
    height: 100%;
    width: 100%;
    -webkit-animation: oscillate-online-circle 0.75s alternate infinite;
    animation: oscillate-online-circle 0.75s alternate infinite;
}

.cta-card div.img-value-props {
    padding: 1em 0 0;
    max-width: 320px;
    margin: 0 auto;
}

.cta-card .img-value-props img {
    width: 100%;
    border-radius: 8px;
    max-height: 200px;
    object-fit: cover;
}

@media (max-height:660px) {
    .cta-card div.img-value-props {
        padding: 0;
    }
}

.cta-card div.img-value-props video {
    height: 100%;
    width: 100%;
    max-width: 400px;
    max-height: 400px;
    margin: 0 auto;
    border-bottom: 1px solid #F0F1F2;
}

@media (max-width:45em) {
    .cta-card {
        padding: 2em;
        margin-left: -0.5em;
        margin-right: -0.5em;
        box-shadow: 0 0 15px -5px rgba(0, 0, 0, 0.15);
    }

    .cta-card div.headline {
        font-size: 24px;
    }
}

.cta-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 16px;
}

.content-body__lead .summary {
    margin: 0;
    padding: 2em;
    background: var(--brand-800, #ebefff);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table-of-contents {
    margin: 2em 0;
    padding: 1em;
    background: #FBFBFC;
    border-radius: 8px;
    border: 1px solid #E4E4E6;
}

.table-of-contents .toc-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #E4E4E6;
    padding: 0.25em 0;
    cursor: pointer;
    user-select: none;
}

.table-of-contents .toc-header h5,
.table-of-contents .toc-header p {
    margin: 0;
    padding: 0;
}

.table-of-contents .toc-header>div.toc-caret {
    color: #3C5DFF;
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 0.25em;
    margin-right: 0.5em;
    border: 2px solid #BFCAFF;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.table-of-contents .toc-header>div.toc-caret svg {
    margin-top: 1px;
    height: 12px;
    width: 12px;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.table-of-contents .toc-header>div.toc-caret svg path {
    fill: #3C5DFF;
}

.table-of-contents .toc-header.active>div.toc-caret svg {
    transform: rotate(180deg);
}

.table-of-contents ul.toc-list {
    margin-top: 0px;
    padding: unset;
    list-style-type: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    opacity: 0;
}

.table-of-contents ul.toc-list.active {
    max-height: 500px;
    opacity: 1;
    padding: 1em 0;
}

.table-of-contents ul.toc-list a {
    pointer-events: all;
    text-decoration: none;
    color: #3C5DFF;
    transition: color 0.2s ease;
    font-size: 14px;
    line-height: 1.4;
}

.table-of-contents ul.toc-list a:hover {
    color: #191A9B;
    text-decoration: underline;
}

.table-of-contents ul.toc-list li.item {
    margin: 8px 0;
    list-style-type: none;
    padding-left: 0;
}

.table-of-contents ul.toc-list li.item::before {
    content: "•";
    margin-left: -17px;
    margin-right: 10px;
    color: #D0D0D4;
}

.table-of-contents ul.toc-list li.item:hover {
    cursor: pointer;
}

.table-of-contents ul.toc-list>li.item {
    margin-left: 24px;
}

section {
    margin: 3em 0;
    padding: 2em;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

section h2 {
    color: #3C5DFF;
    margin-bottom: 1em;
    border-bottom: 2px solid #EBEFFF;
    padding-bottom: 0.5em;
}

@media (max-width:720px) {
    .article-navigation {
        padding-left: 20px;
    }
}

.TableOfContents__TableOfContentsNav-musnku-0.table-of-contents {
    position: relative;
    margin: 20px 0;
  }
  
  .toc-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .toc-caret {
    margin-right: 10px;
    transition: transform 0.3s ease;
  }
  
  .toc-caret.open {
    transform: rotate(180deg);
  }
  
  .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .toc-list.open {
    max-height: 500px;
  }
  
  .toc-list .item {
    margin: 8px 0;
    padding-left: 20px;
  }
  
  .toc-list .item a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
  }
  
  .toc-list .item a:hover {
    color: #007bff;
  }

/* Стили для мобильных устройств */
@media (max-width: 1020px) {
    .article-layout {
        flex-direction: column;
        padding: 0 15px;
        max-width: 100%;
    }
    
    .article-navigation-wrapper {
        padding: 0 15px;
    }
    
    .article-navigation {
        max-width: 100%;
        margin: 20px auto 0;
    }
    
    .article__sidebar.desktop-only {
        width: 100%;
        max-width: 500px;
        margin: 40px auto 0;
        position: static;
        order: 2;
        height: auto;
        max-height: none;
    }
    
    .content-body__container {
        order: 1;
        max-width: 100%;
    }
    
    .modal-container {
        max-width: 100%;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .article-layout {
        padding: 0 10px;
    }
    
    .article-navigation-wrapper {
        padding: 0 10px;
    }
    
    .cta-card {
        padding: 1em;
    }
    
    .cta-card .headline {
        font-size: 1.1em;
    }
    
    .cta-card .action a {
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .content-body__container {
        padding: 1em;
    }
}

.fixed-width-image {
    width: 75% !important;
    max-height: 200px;
    object-fit: cover;
}

@media (max-width: 1020px) {
    .fixed-width-image {
        width: 52% !important;
    }
}