:root {
        --bg: #111520; /* slate-900 */
        --bg-soft: #111827; /* gray-900 */
        --panel: #23355a;
        --muted: #94a3b8; /* slate-400 */
        --text: #f6f6f7; /* gray-200 */
        /* --accent: #f1b200;  */
        --accent: #19a100;
        --border: #1f2937; /* gray-800 */
        --danger: #ef4444;
        --ok: #22c55e;
        --code-color: #c7254e; /* red-600 */
        --warn: #f59e0b;
      }
      * {
        box-sizing: border-box;
      }

      html,
      body {
        margin: 0;
        padding: 0;
        /* font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji"; */
        background: var(--bg);
        color: var(--text);
        height: 100%;
      }

      .footer .grid-child{
        padding: 2.5rem 2.5em!important;
      }
      .container-header > .grid-child {
        padding: 0 2.5em!important;
      }
      .mod-breadcrumbs.breadcrumb {
        padding-left: 0!important;
      }
      @media (max-width: 800px) {
        .mod-breadcrumbs.breadcrumb {
            padding-left: 2.5rem !important;
        }
      }
.container, .site-grid, .container-component,
.container-header, .grid-child { max-width: 100%; }

/* длинные слова/ссылки/код, которые «ломают» ширину */
.article-content, .article-sidebar, .table-of-contents, pre, code {
  overflow-wrap: anywhere;
  word-break: break-word;
}
    .container-header {
    background: var(--panel);
    border: 1px solid var(--border);
    display: flex;
}
.mod-breadcrumbs__wrapper {
     border-bottom: 1px solid var(--border);
     margin-bottom: 40px;
}
.site-grid {
    grid-gap: 0!important;
}
@media (max-width: 576px) {
    body.wrapper-fluid .site-grid {
        grid-gap: 0 1em;
    }
}

.container-header  > .grid-child  {
    width: 40%;
}

.container-header  > .container-nav  {
    width: 100%;
    align-items: center;
    padding:0 .5em;
}


main {
    padding-bottom: 80px;
}

.navbar-brand .brand-logo {
    text-transform: uppercase;
    font-weight: 700;
    text-decoration:none;
}

.page-header h1 {
    margin: 40px 0;
    font-size: 3rem;
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2.7rem;
    }
}
.com-content-article__body h2 {
    font-size: 1.8em;
    margin: 50px 0 30px;
    font-weight: 400;
}

.com-content-article__body h3 {
    font-size: 1.5em;
    margin: 40px 0;
    font-weight: 400;
}

.com-content-article__body h2, .com-content-article__body h3{
    position: relative;
}

.com-content-article__body h2:before, .com-content-article__body h3:before {
    position: absolute;
    content: '';
    background: var(--accent);
    width: 60px;
    height: 4px;
    bottom: -15px;
    left: 0;
}

.com-content-article__body h4 {
    font-weight: 400;
    margin: 20px 0 10px;
}

.com-content-article__body > img {
    margin:30px auto;
    display: block;
}

.com-content-article__body hr {
    margin-bottom:50px;
}

p {
    line-height: 2!important;
}

table {
	max-width: 100%;
	background-color: transparent;
	border-collapse: collapse;
	border-spacing: 0;
    width: 100%;
}
.table {
	width: 100%;
	margin: 25px 0;
}
.table th {
    font-weight: 700;
    border: 1px solid #4d4d4d;
}
.table th,
.table td {
	padding: 8px;
	line-height: 2!important;
	text-align: left;
	vertical-align: top;
}

.table tr {
    display: table-row;
}

.table td {
    padding: 7px 10px;
    width: auto;
    min-width: 150px;
    line-height: 2!important;
    border: 1px solid #4d4d4d;
}

@media (max-width: 576px) {
    .com-content-article__body .table {
        overflow-x: scroll;
        width: 100%;
    }
}

.com-content-article__body ul, .com-content-article__body ol {
    border-left: 4px solid var(--accent);
    padding: 0 0 0 35px;
    margin-left: 25px;
}

.com-content-article__body ul ul,
.com-content-article__body ol ul {
    border-left: 0;
}

/* .com-content-article__body ol + .code-container {
    margin-top:0
} */

@media (max-width: 576px) {
    .com-content-article__body ul, .com-content-article__body ol {
        margin-left: 0;
    }
}

.com-content-article__body ul li, .com-content-article__body ol li {
    margin-bottom:15px;
    line-height: 2;
}

details {
    background: var(--panel);
    padding: 20px 30px;
    box-sizing: border-box;
    margin: 30px 0;
    border-radius: 10px;
    font-style: italic;
}

details summary:first-child {
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
}

details p {
margin-top:20px;
}

details .code-container {
    margin-bottom: 0;
}

.blocks-main {
    display:flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    margin-top:40px;
}

.blocks-main .item {
    width: calc(100% / 3 - 20px);
    border: 1px solid #174062;
    padding: 15px 30px;
    border-radius: 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.blocks-main-two .item {
    width: calc(100% / 2 - 20px);
}

@media (max-width: 800px) {
    .blocks-main .item {
        width: calc(100% / 2 - 20px);
    }
}

@media (max-width: 480px) {
    .blocks-main .item {
        width: 100%;
    }
}

.blocks-main .item h3,
.blocks-main .item p.title {
    margin: 20px 0;
    font-size: 1.6em;
    font-weight: 400;
}

.blocks-main .item h3:before {
    display:none;
}   


/* Меню */

/* Бургер-кнопка */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* Общий контейнер */
.menu-container {
    display: block;
}

/* Горизонтальное меню по умолчанию (десктоп) */
/* .header .mod-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
        height: 100%;
    align-items: center;
}

.header .mod-menu li {
    display: inline-block;
}

.container-header .mod-menu .parent .show-menu {
    display:block;
    position: absolute;
    background: #182236;
    padding: 10px 20px;
    box-sizing: border-box;
    min-width: 185px;
    margin-top: 5px;
    margin-left: -20px;
}


.header .show-menu a {
    display: block;
    padding: 0;
    text-decoration: none;
    color: #fff;
    transition: background 0.3s;
    font-size: 17px;
}

.header .show-menu a:hover {
    color: var(--accent);
    text-decoration: underline;
} */

/* Контейнеры уровня 1 */
#mobileMenu .mod-menu.nav > li {
  position: relative;              /* чтобы позиционировать submenu внутри */
}

/* Базовый вид подменю */
#mobileMenu .nav-child {
  position: absolute;
   background: #182236;
    padding: 10px 20px;
    box-sizing: border-box;
    min-width: 185px;
    margin-top: 0;
    margin-left: -20px;
}


#mobileMenu .nav-child a {
    display: block;
    padding: 0;
    text-decoration: none;
    color: #fff;
    transition: background 0.3s;
    font-size: 16px;
}

#mobileMenu .nav-child a:hover {
    color: var(--accent);
    text-decoration: underline;
}

#mobileMenu li.parent:hover > .nav-child,
#mobileMenu li.parent:focus-within > .nav-child {
  display: block;
}


#mobileMenu .nav-child li > a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  white-space: nowrap;
}

#mobileMenu li.parent {
  margin-bottom: 0;
  border-bottom: 0;
}


#mobileMenu .mod-menu.nav > li > a,
#mobileMenu .mod-menu.nav > li > .mod-menu__separator {
  display: inline-block;
  padding-bottom: 0;
}


@media (max-width: 768px) {
    .header > div.grid-child {
        width: 70%;
    }
    .header > div.container-nav {
        width: 29%;
    }
    .header .menu-toggle {
        display: block;
        margin-right: 0;
        margin-left: auto;
        color: #fff;
    }

    .header .menu-container {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        background: #f7f7f7;
        margin: 0 10px;
        padding: 20px;
        border: 1px solid #174062;
        z-index: 1000;
    }

    .header .mod-menu {
        align-items: baseline;
    }

    .header .menu-container.open {
        display: block;
    }

    .header .mod-menu {
        flex-direction: column;
        gap: 0;
    }

    .header .mod-menu li {
        display: block;
        border-bottom: 1px solid #bdbdbd;
        color:var(--body-color);
        width: 100%;
    }
    .header .mod-menu li + ul {
         width: 100%;
    }
    .mod-list li {
        padding: .5em 0;
    }
    .nav-item a:hover {
        color: var(--accent);
    }
    #mobileMenu .nav-child {
        position: relative;
        background: #f7f7f7;
        text-decoration: none;
        display: block;
    }
    #mobileMenu .nav-child li > a {
        color: var(--accent);
    }
}

.advantages {
    display:flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    margin:60px 0 20px;
}

.advantages .item {
    width: calc(100% / 4 - 20px);
    border: 1px solid #174062;
    border-radius: 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
    position:relative;
}

.advantages-3 .item {
    width: calc(100% / 3 - 20px);
    border: 1px solid #174062;
    border-radius: 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
    position:relative;
}

.advantages-2 .item {
    width: calc(100% / 2 - 20px);
    border: 1px solid #174062;
    border-radius: 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
    position:relative;
}
@media (max-width: 800px) {
    .advantages .item {
        width: calc(100% / 2 - 20px);
    }
}
@media (max-width: 576px) {
    .advantages .item {
        width: 100%;
    }
}
.advantages .item::before {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    right: -17px;
    top: -30px;
    background: var(--accent);
    border: 8px solid #ffeeb8;
    font-size: 25px;
    color: #174062;
    text-align: center;
}
.advantages .item:nth-child(1):before {
    content:'1';
}
.advantages .item:nth-child(2):before {
    content:'2';
}
.advantages .item:nth-child(3):before {
    content:'3';
}
.advantages .item:nth-child(4):before {
    content:'4';
}
.advantages .item:nth-child(5):before {
    content:'5';
}
.advantages .item:nth-child(6):before {
    content:'6';
}
.advantages .item:nth-child(7):before {
    content:'7';
}
.advantages .item:nth-child(8):before {
    content:'8';
}
.advantages .item:nth-child(9):before {
    content:'9';
}
.advantages .item:nth-child(10):before {
    content:'10';
}
.advantages .item:nth-child(11):before {
    content:'11';
}
.advantages .item div.title {
    font-size:20px;
    font-weight:700;
    margin-bottom:20px;
    background:#174062;
    color:#fff;
    text-align: center;
    padding: 15px 0;
    border-radius: 15px 15px 0 0;
}

.advantages .item div.title p {
    margin:0;
}

.advantages .item div.content {
    padding: 15px 30px;
}

summary.table-of-contents-title {
	text-align: left;
	margin-top:0;
    font-size: 18px;
    margin-bottom: 20px;
}
.table-of-contents {
	text-align: left;
    font-size: 15px;
    line-height: 17px;
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 30px 30px 20px 30px;
    margin: 0 0 40px;
    
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #182236 #f8f9fb;
}
.article-sidebar .table-of-contents:open{
    height: 100vh;
}
.table-of-contents p {
	margin: 0 0px 8px 20px;
    position: relative;
    font-style: normal;
    font-size: 16px;
    line-height: 24px !important;
}
.table-of-contents p:before {
    position: absolute;
    content:'';
    background: var(--accent);
    width: 10px;
    height: 2px;
    left: -20px;
    top: 15px;
}
.table-of-contents p:hover {
	cursor:pointer;
	text-decoration: underline;
}
/* .table-of-contents p.toc-h2 {
   font-weight: 700;
} */
.table-of-contents p.toc-h3 {
    margin-left: 40px;
}
.table-of-contents p.toc-h4 {
    margin-left: 60px;
}

.block-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 40px;
}
.block-list .item {
    width: calc(100% / 3 - 20px);
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 15px 30px;
    border-radius: 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .block-list .item {
        width: 100%;
    }
}

.block-list .item p.title{
    font-size: 20px;
    line-height: 1.5 !important;
    font-weight: 700;
}

code {
     background: var(--text);
    padding: 5px 7px;
    border-radius:5px
}

.code-container {
    position: relative;
    background: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px 40px 15px 15px;
    font-family: monospace;
    color: #c7254e;
    font-size: 16px;
    display: inline-block;
    width: 100%;
    margin:15px 0 30px;
  }

  .code-container code {
    background: transparent;
    padding: 0;
    border-radius: 0
  }

  .code-container pre {
    margin-top: 0;
    margin-bottom: 0;
    font-size: inherit;
}
  
  .copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #000;
    transition: 0.2s;
  }
  
  .copy-btn:hover {
    color: #ff6600;
  }

  blockquote {
    background: #174062;
    border-radius: 10px;
    margin: 60px 0;
    padding: 40px 25px;
    font-style: italic;
    line-height: 2;
    color: #fff;
    font-size: 17px;
    position: relative;
    text-align: center;
  }

  blockquote p {
    margin-bottom:0;
  }

  blockquote:after,  blockquote:before {
    position: absolute;
    content:'';
    width: 250px;
    height: 6px;
    background:var(--accent);
    left: calc(100% / 2 - 100px);
    border-radius: 5px;
  } 

  blockquote:before {
    top:-3px;
  }
  blockquote:after {
    bottom:-3px;
  }
.practice {
    width: 100%;
}
  .practice-item details:not(.table-of-contents){
    padding: 15px 30px;
    box-sizing: border-box;
    margin: 25px 0;
    border-radius: 10px;
    font-style: normal;
}

.practice-item details:not(.table-of-contents) summary{
    font-size: 16px;
}

.practice-item details:not(.table-of-contents) summary + * {
    margin-top: 20px;
}

div.task {
    padding: 40px;
    background: #174062;
    border-radius: 10px;
    margin-top: 50px;
    color: #fff;
}

div.task h3 {
    margin: 0 0 30px;
}

div.task p {
    margin: 0;
}
p.subtitle {
    margin-top:50px;
    font-size:18px;
    font-weight:700;
}

div.practice-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 30px 0 50px;
}

div.practice-categories a {
    padding: 0 30px;
    width: fit-content;
    border-radius: 10px;
    border: 1px solid var(--accent);
    background:var(--accent);
    text-align: center;
    color: #FFF;
    font-size: 18px;
    font-weight: 500;
    line-height: 46px;
    transition: .2s linear;
    margin: 0 10px 10px 0;
    text-decoration: none;
}

div.practice-categories a:hover,
div.practice-categories a.filter-active {
    background:#fff;
    color: #22262a;
}
div.practice-categories a:hover {
    cursor: pointer;
}

.practice-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    align-items: stretch;
}

div.practiceItem {
    border: 1px solid var(--accent);
    border-radius: 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
    position: relative;
    width: calc(100% / 3 - 10px);
}
@media (max-width: 800px) {
    div.practiceItem {
        width: calc(100% / 2 - 10px);
    }
}
@media (max-width: 480px) {
    div.practiceItem {
        width:100%;
    }
}
div.practiceItem div.title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    border-radius: 8px 8px 0 0;
}

div.practiceItem div.title p {
    margin: 0;
}

div.practiceItem div.content {
    padding: 15px 30px;
}

div.expert-header {
    display:flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

div.expert-header .content {
    width:calc(100% - 500px);
}
div.expert-header .content blockquote {
    margin:0
}
div.expert-header .content blockquote p {
    margin-bottom:20px
}
div.expert-header .content blockquote p:last-child {
    margin-bottom:0
}
div.expert-header img {
    width: 450px;
    height: auto;
    border-radius: 10px;
}

.experts-items {
    display:flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top:40px
}
.experts-items .expertsItem {
    width: calc(100% / 3 - 20px);
    border: 1px solid var(--accent);
    padding: 20px 20px 10px;
    border-radius: 10px;
    box-sizing: border-box;
     margin-bottom:20px;
}
.experts-items .expertsItem img {
    border-radius: 10px;
    margin-bottom: 20px;
    max-height: 285px;
    object-fit: cover;
    width: 100%;
}
.experts-items .expertsItem .title,
.experts-items .expertsItem .title p a {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}
.experts-items .expertsItem .title p,
.experts-items .expertsItem .title p a {
    line-height: 27px !important;
}
.experts-items .expertsItem .title p a:hover {
    text-decoration: underline;
}
@media (max-width: 800px) {
    div.expert-header img {
        width: 100%;
        height: auto;
    }
    div.expert-header .content {
        width: 100%;
        margin-top: 40px;
    }
    .experts-items .expertsItem {
        width: calc(100% / 2 - 20px);
    }
}
@media (max-width: 576px) {
    .experts-items .expertsItem {
        width:100%;
    }
}
#mod-custom110 {
    width: 500px;
}
#mod-custom110 p {
    font-size: 14px;
    line-height: 1.7 !important;
    margin-top: 20px;
}

@media (max-width: 800px) {
    #mod-custom110 {
        width: 100%;
        margin-bottom:30px;
    }
}

.footer {
    background: var(--panel);
    border: 1px solid var(--border);
    margin-top: 50px;
    color: var(--muted);
}

.footer .grid-child {
    align-items: flex-start !important;
}

.footer .mod-list li a {
    font-size: 17px;
}
.author-block-title {
    color: var(--text);
    font-weight: 400;
    margin: 60px 0 10px;
    font-size: 1.5rem;
}
.author-block {
    background: var(--panel);
    border: 1px solid var(--border);
    padding:20px;
    box-sizing: border-box;
    border-radius:10px;
    margin-bottom: 20px;
}
.author-block .block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text);
}

.author-block .block img{
    width: 120px;
    border-radius:15px;
    margin: 0;
}
.author-block .block .content{
    width: calc(100% - 170px);
}
.author-block .block p.name {
    font-size: 20px;
    font-weight: 700;
}
.author-block .block p {
    margin:0;
}

@media (max-width: 576px) {
    .author-block .block img{
        width: 100%;
    }
    .author-block .block .content{
        width: 100%;
        margin-top:20px;
    }
}
.com-content-article__body ul.mod-articles-items {
    border-left: 0;
    padding: 0;
    margin-left: 0;
}
ul.mod-articles-items li{
    border: 1px solid #ccc;
    text-align: center;
    border-radius: 5px;
    padding: 9px 10px;
    margin: 0;
}
.mod-breadcrumbs__divider {
    display: none;
}
@media (max-width: 992px) {
    .mod-articles-grid {
        --grid-layout-gap: 0rem;
    }
    .com-content-article__body ul.mod-articles-items li {
        margin-bottom: 0;
        border:0;
        text-align: left;
    }

   .container-component>*+* {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.practice-block {
    background: #132756;
    border-radius: 10px;
    padding: 40px;
    box-sizing:border-box;
    margin-top:40px;
}


.article-content table { display: block;  max-width: 100%; }

@media (max-width: 576px) {
    .article-content,
    .com-content-article__body {
        order:1;
        overflow: hidden;
    }
    .article-sidebar {
        order:0
    }
}
.practice-block h2 {
    font-size: 25px;
    margin-top: 0;
}

@media (max-width: 800px) {
    .practice-block {
        padding: 20px;
    }
}



      .card-body {
        background: var(--panel);
        border: 1px solid var(--border);
      }

      .card-body .mod-list li>a,
      .breadcrumb-item.active,
      .breadcrumb-item+.breadcrumb-item:before{
        color: var(--text);
      }
      .card-body .mod-list li>a:hover {
         color: var(--accent);
         text-decoration: underline;
      }
      a {
          color: var(--accent);
      }
      .card-body .mod-list li>a:hover,
      a:hover {
         color: var(--text);
    }
      .card-header {
        background-color: var(--text);
      } 
      .table>:not(caption)>*>* {
        background-color: transparent;
        color: var(--text);
      }

       .card-body .mod-list li::marker {
            display: none;
            font-size: 0;
       }
       .card-body .mod-list ul.nav-child.unstyled li {
        position: relative;
       }
       .card-body .mod-list ul.nav-child.unstyled li::before  {
            position: absolute;
            content: '';
            width: 10px;
            height: 10px;
            top: 12px;
            left: -20px;
            border-radius: 50%;
            border: 2px solid var(--text);
       }

/* Общая обёртка статьи */
.article.article--with-toc {
  --gap: clamp(16px, 2vw, 28px);
  --hero-col-left: 1.2fr;
  --hero-col-right: 1fr;
  --main-col-left: 2.3fr;
  --main-col-right: 1fr;
  --radius: 12px;
  --muted: #6b7280;  /* серый для метаданных */
  --border: #e5e7eb;
}

/* HERO */
.article-hero {
  display: grid;
  grid-template-columns: var(--hero-col-left) var(--hero-col-right);
  gap: var(--gap);
  /* align-items: center; */
  margin-bottom: clamp(20px, 3vw, 40px);
  position: relative;
}

.article-title {
    margin: 0 0 15px 0;
    line-height: 1.5;
    font-size: 40px;
}

@media (max-width: 480px) {
    .article-title {
        font-size: 35px;
    }
     .com-content-article__body h2 {
         font-size: 28px;
    }
    .com-content-article__body h3 {
        font-size: 24px;
    }
}

.article-meta {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.article-meta .meta-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.meta-author {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: right;
    font-size: 18px;
}
@media (max-width: 992px) {
.meta-author {
    position: relative;
    margin-top:40px;
}
}

.article-meta .meta-label {
  color: var(--muted);
}

.hero-media {
  justify-self: end;
  max-width: 560px;
  width: 100%;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}
.hero-text {
    position: relative;
    height: 100%;
}

/* MAIN LAYOUT */
.article-main {
  display: grid;
  grid-template-columns: var(--main-col-left) var(--main-col-right);
  gap: var(--gap);
  margin-top:80px
}

/* Контент */
.article-content img {
     max-width: 75%;
    height: auto;
    margin: 20px auto 40px;
    display: block;
}

/* Sidebar / TOC */
.article-sidebar {
  position: relative;
}

.article-sidebar .table-of-contents{
  position: sticky;
  top: 0;              
  z-index: 10;        
}
/* Адаптивность */
@media (max-width: 992px) {
  .article-hero {
    grid-template-columns: 1fr;
  }
  .hero-media {
    justify-self: stretch;
    order: -1; /* картинка сверху, если нужно наоборот — убери */
  }
  .article-main {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    margin-top: 16px;
  }
}
.disclaimer-wrapper {
  position: relative;
  display: inline-block;
  cursor: help;
  font-weight: bold;
  color: #2563eb; 
}

.disclaimer-tooltip {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  left: 320%;
  top: 125%; 
  transform: translateX(-50%);
  width: 500px;
  background: #fff;
  color: #3c3c3c;
  line-height: 1.4;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  z-index: 10;
  font-weight: 400;
}

@media (max-width: 480px) {
.disclaimer-tooltip {
    width: 400px;
    left: 250%;
}
.article-content img {
     max-width: 100%;
}

}
@media (max-width: 414px) {
.disclaimer-tooltip {
    width: 370px;
    left: 235%;
}
}
@media (max-width: 395px) {
.disclaimer-tooltip {
    width: 315px;
    left: 200%;
}
}
.disclaimer-wrapper:hover .disclaimer-tooltip {
  visibility: visible;
  opacity: 1;
}


.swiper.feedback {
	margin-top: 40px;
    max-width: 900px;
    padding-bottom: 60px;
}

.swiper.feedback .swiper-slide {
	padding: 0 10px;
    box-sizing: border-box;
}

.swiper.feedback .swiper-slide p.name{
	font-size:20px;
    font-weight: 700;
	margin-top:25px;
}

.swiper.feedback .swiper-slide .content{
	border: 1px solid var(--border);
	border-radius: 8px;
    padding: 15px 40px;
}

.swiper.feedback .swiper-pagination-bullet {
    width: 13px;
    height: 13px;
    background:#e5e7eb;
}
.swiper.feedback .swiper-pagination-bullet-active {
    background: var(--accent);
}
@media (max-width: 992px) {
.swiper.feedback  {
    max-width: 960px;
}
}
@media (max-width: 800px) {
.swiper.feedback  {
    max-width: 770px;
}
}
@media (max-width: 576px) {
.swiper.feedback  {
    max-width: 550px;
}
}
@media (max-width: 480px) {
.swiper.feedback  {
    max-width: 450px;
}
.swiper.feedback .swiper-slide .content {
    padding: 15px 20px;
}
}
@media (max-width: 414px) {
.swiper.feedback  {
    max-width: 385px;
}
}
@media (max-width: 375px) {
    .swiper.feedback  {
    max-width: 345px;
}
}
 .quiz {
        max-width: 760px;
        margin: 0 auto;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
      }
      .quiz__header {
        padding: 24px 24px 12px;
      }
      .quiz__title {
        margin: 0 0 8px;
        font-size: 24px;
        font-weight: 700;
      }
      .quiz__subtitle {
        margin: 0 0 20px;
      }

      .progressQuiz {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 0 10px;
      }
      .progress__bar {
        position: relative;
        flex: 1;
        height: 10px;
        background: #eef2ff;
        border-radius: 999px;
        overflow: hidden;
      }
      .progress__fill {
        position: absolute;
        inset: 0;
        width: 0%;
        background:  var(--accent);
        transition: width 0.35s ease;
      }
      .progress__text {
        font-variant-numeric: tabular-nums;
        color: var(--muted);
        font-size: 14px;
      }

      .quiz__body {
        padding: 15px 0;
      }
      .card {
        padding: 18px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #f8f9fb;
      }
      .q-heading {
        margin: 0 0 14px;
        font-size: 18px;
      }

      .options {
        display: grid;
        gap: 10px;
      }
      .opt {
        position: relative;
      }
      .opt input {
        position: absolute;
        opacity: 0;
        inset: 0;
        cursor: pointer;
      }
      .opt label {
        display: block;
        padding: 12px 14px;
        border:  1px dashed #d1d5db;
        border-radius: 10px;
        cursor: pointer;
        user-select: none;
        background: #fff;
      }
      .opt:hover label {
        background: #f3f4f6;
      }
      .opt input:focus-visible + label {
        outline: 3px solid var(--ring);
        outline-offset: 2px;
      }
      .opt input:checked + label {
        background: #eff6ff;
        border-color: var(--primary);
      }

      .nav-quiz {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 24px 24px;
      }
      .btn-quiz {
        appearance: none;
        border: 1px solid var(--border);
        background: #fff;
        color: #111827;
        padding: 12px 16px;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s background, 0.2s border-color, 0.2s transform;
      }
      .btn-quiz:disabled {
        opacity: 0.45;
        cursor: not-allowed;
      }
      .btn-quiz:active {
        transform: translateY(1px);
      }
    .btn-result {
        background: var(--accent);
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: 10px 18px;
        cursor: pointer;
    }
      .result-inline p b {
        margin: 6px 0 8px;
        font-size: 20px;
      }
      .result-inline p {
        margin: 0;
      }
      .actions {
        margin-top: 16px;
        display: flex;
        gap: 10px;
      }
      .btn-restart {
        border:2px solid var(--border);
      }

    #savings-widget {
    margin: 40px auto;
    background: #f8f9fb;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
  }


  #savings-widget p {
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  #savings-widget p:hover {
    background: #f3f4f6;
  }
  #savings-widget label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: #374151;
  }
  #savings-widget input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #2563eb;
  }
  #savings-widget .totals {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  #savings-widget .pill {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 6px 12px;
    color: #374151;
  }
  #savings-widget button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    cursor: pointer;
    margin: 20px 0 0 auto;
    display: block;
  }
  #savings-widget .status {
    text-align: right;
    width: 100%;
    display: block;
    margin: 20px 0 0;
    color: var(--danger);
  }
  .audio-block {
    font-size: 15px;
    line-height: 17px;
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 30px;
    margin: 40px 0;
    border-radius: 10px;
    box-sizing: border-box;
}
    .audio-block p {
    font-size:1.1rem
    }
  .audio-block audio {
    width:100%
}

#reading-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
  }

  /* Заполненная часть */
  #reading-progress-bar {
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 0.2s ease-out;
  }


@media (max-width: 800px) {
    .footer {
        margin-top:0;
    }
}


.module-tool {
    font-size: 15px;
    line-height: 17px;
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 30px;
    margin: 100px 0 40px;
    border-radius: 10px;
    box-sizing: border-box;
    position: relative;
}

.img-block {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: calc(100% / 2 - 70px);
    top: -70px;
    background: var(--panel);
    padding: 0;
    border-radius: 50%;
    border:1px solid #fff;
}

.img-block img {
    margin: 0 auto;
    max-width: 70px;
}

.module-tool .subtitle {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 0;
}
.module-tool .title {
    font-weight: 700;
    font-size: 25px;
    margin-bottom: 30px;
}

.mod-articles-image img {
    max-height: 240px;
    object-fit: cover;
    border-radius: 10px;
}

.mod-articles-title:before {
    display:none
}
.mod-articles-title{
    min-height: 100px;
    line-height: 1.5;
}

ul.more-articles li {
    border: 1px solid var(--accent)!important;
    padding: 20px 20px 10px;
    margin-top:20px;
}

@media (max-width: 576px) {
    .mod-articles-title{
        min-height: auto;
    }
}

.header-error img {
    margin: 0 auto;
    display: block;
}
.error_site {
    background: var(--bg);
    color: var(--text);
    margin-top: 0;
    min-height: 100vh;
}
.error_site .wrapper {
    margin: 0 auto;
    width: 1180px;
}
@media (max-width: 1180px) {
  .error_site .wrapper {
    width: 95%;
}
}
.error_site .page-header {
    text-align:center;
    margin-top:100px;
    font-weight:500;
    font-size: 26px;
    line-height: 50px;
}
.error_site .page-header span {
    font-weight:700;
    font-size: 45px;
}
@media (max-width: 576px) {
   .error_site .page-header {
        margin-top:50px;
    }
}
.error_site a.btn {
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 15px 10px;
    cursor: pointer;
    color: #fff;
    margin:50px auto 0;
    display: block;
    max-width:250px;
} 

.error_site a.btn:hover {
    background: transparent;
    color: #fff;
    border: 1px solid var(--accent);
}