

/* Start:/local/templates/itach.by/components/bitrix/news.detail/news-detail/style.css?17953024659106*/
/* Детальная страница новости (2026-11-22). Референс — блог itach-soft.ru, в фирменном стиле itach.by. */

.nd {
    --nd-red: #e8473a;
    --nd-text: #2b2b2b;
    --nd-dark: #1a1a1a;
    --nd-muted: #777;
    --nd-line: #ececec;
    --nd-peach: linear-gradient(135deg, #fff4ef 0%, #ffe8e1 100%);
    padding-top: 24px
}

/* Шапка */
.nd .nd-head {
    max-width: 900px;
    margin-bottom: 28px
}

.nd .nd-title {
    margin: 0;
    font-family: "Gilroy Bold", sans-serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 1.12;
    color: var(--nd-dark);
    text-wrap: balance
}

/* Две колонки */
.nd .nd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: start
}

.nd .nd-main {
    min-width: 0;
    max-width: 700px
}

.nd .nd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 22px;
    font-size: 15px;
    color: var(--nd-muted)
}

/* Коротко */
.nd .nd-summary {
    margin-bottom: 36px;
    padding: 24px 28px;
    border-radius: 16px;
    background: var(--nd-peach)
}

.nd .nd-summary__title {
    margin-bottom: 8px;
    font-family: "Gilroy Bold", sans-serif;
    font-size: 17px;
    color: var(--nd-dark)
}

.nd .nd-summary p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--nd-text)
}

/* Текст статьи */
.nd .nd-body {
    font-size: 18px;
    line-height: 1.65;
    color: var(--nd-text)
}

.nd .nd-body p {
    margin: 0 0 1.1em
}

.nd .nd-body h2,
.nd .nd-body h3 {
    font-family: "Gilroy Bold", sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--nd-dark);
    margin: 1.8em 0 .6em;
    scroll-margin-top: 96px
}

.nd .nd-body h2 {
    font-size: 30px
}

.nd .nd-body h3 {
    font-size: 22px
}

.nd .nd-body > h2:first-child,
.nd .nd-body > h3:first-child {
    margin-top: 0
}

.nd .nd-body b,
.nd .nd-body strong {
    font-family: "Gilroy SemiBold", sans-serif;
    font-weight: 600;
    color: var(--nd-dark)
}

.nd .nd-body a {
    display: inline;
    color: var(--nd-red);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px
}

.nd .nd-body a:hover {
    text-decoration: none
}

.nd .nd-body ul,
.nd .nd-body ol {
    margin: 0 0 1.3em;
    padding: 0
}

.nd .nd-body ul > li {
    position: relative;
    list-style: none;
    padding-left: 24px;
    margin-bottom: .6em
}

.nd .nd-body ul > li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--nd-red)
}

.nd .nd-body ol {
    counter-reset: nd-ol
}

.nd .nd-body ol > li {
    position: relative;
    list-style: none;
    padding-left: 34px;
    margin-bottom: .6em;
    counter-increment: nd-ol
}

.nd .nd-body ol > li::before {
    content: counter(nd-ol);
    position: absolute;
    left: 0;
    top: .15em;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--nd-red);
    color: #fff;
    font-family: "Gilroy Bold", sans-serif;
    font-size: 13px;
    line-height: 24px;
    text-align: center
}

.nd .nd-body blockquote {
    margin: 1.6em 0;
    padding: 22px 26px;
    border-left: 4px solid var(--nd-red);
    border-radius: 0 14px 14px 0;
    background: #f7f7f7;
    font-family: "Gilroy Medium", sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: var(--nd-dark)
}

.nd .nd-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: .4em 0 1.2em
}

.nd .nd-body table {
    width: 100%;
    margin: 0 0 1.4em;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.5
}

.nd .nd-body th,
.nd .nd-body td {
    padding: 12px 14px;
    border: 1px solid var(--nd-line);
    text-align: left;
    vertical-align: top
}

.nd .nd-body th {
    background: #f7f7f7;
    font-family: "Gilroy SemiBold", sans-serif
}

/* Предыдущая / следующая */
.nd .nd-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--nd-line)
}

.nd .nd-nav__link {
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--nd-line);
    border-radius: 14px;
    color: var(--nd-dark);
    transition: border-color .2s, box-shadow .2s
}

.nd .nd-nav__link:hover {
    border-color: var(--nd-red);
    box-shadow: 0 6px 20px rgba(232, 71, 58, .08)
}

.nd .nd-nav__link--next {
    grid-column: 2;
    text-align: right
}

.nd .nd-nav__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--nd-muted)
}

.nd .nd-nav__name {
    display: block;
    font-family: "Gilroy SemiBold", sans-serif;
    font-size: 16px;
    line-height: 1.4
}

/* Правая колонка */
.nd .nd-aside {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 16px
}

.nd .nd-toc--aside {
    padding: 22px 20px;
    border: 1px solid var(--nd-line);
    border-radius: 16px;
    background: #fff
}

.nd .nd-toc__title {
    margin-bottom: 12px;
    font-family: "Gilroy Bold", sans-serif;
    font-size: 18px;
    color: var(--nd-dark)
}

.nd .nd-toc__list {
    margin: 0;
    padding: 0;
    list-style: none
}

.nd .nd-toc__list li {
    list-style: none;
    margin: 0
}

.nd .nd-toc__list a {
    display: flex;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.35;
    color: #444;
    transition: background .2s, color .2s
}

.nd .nd-toc__list a:hover {
    color: var(--nd-red)
}

.nd .nd-toc__list a.is-active {
    background: #fff1ec;
    color: var(--nd-red)
}

.nd .nd-toc__num {
    flex: 0 0 auto;
    min-width: 20px;
    font-family: "Gilroy SemiBold", sans-serif;
    font-size: 13px;
    line-height: 20px;
    color: #9a9a9a
}

.nd .nd-toc__list a.is-active .nd-toc__num {
    color: var(--nd-red)
}

/* Содержание в тексте — только на узких экранах */
.nd .nd-toc--inline {
    display: none;
    margin-bottom: 24px;
    padding: 0 18px;
    border: 1px solid var(--nd-line);
    border-radius: 14px
}

.nd .nd-toc--inline summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 16px 0;
    cursor: pointer;
    list-style: none
}

.nd .nd-toc--inline summary::-webkit-details-marker {
    display: none
}

.nd .nd-toc--inline summary::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid var(--nd-dark);
    border-bottom: 2px solid var(--nd-dark);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .2s
}

.nd .nd-toc--inline[open] summary::after {
    transform: rotate(-135deg) translateY(-3px)
}

.nd .nd-toc--inline .nd-toc__list {
    padding-bottom: 12px
}

/* Карточка «Обсудим задачу» */
.nd .nd-cta {
    padding: 24px 22px;
    border-radius: 16px;
    background: var(--nd-peach)
}

.nd .nd-cta__title {
    margin-bottom: 8px;
    font-family: "Gilroy Bold", sans-serif;
    font-size: 21px;
    line-height: 1.25;
    color: var(--nd-dark)
}

.nd .nd-cta__text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.5;
    color: #666
}

.nd .nd-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 26px;
    border-radius: 8px;
    background: var(--nd-red);
    color: #fff;
    font-family: "Gilroy SemiBold", sans-serif;
    font-size: 16px;
    transition: background .2s
}

.nd .nd-cta__btn:hover {
    background: #d23a2e;
    color: #fff
}

.nd .nd-cta__phone {
    margin-top: 14px;
    font-family: "Gilroy SemiBold", sans-serif;
    font-size: 17px
}

.nd .nd-cta__phone a {
    color: var(--nd-dark)
}

/* Адаптив */
@media screen and (max-width:1100px) {
    .nd .nd-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 36px
    }
}

@media screen and (max-width:960px) {
    .nd .nd-layout {
        grid-template-columns: minmax(0, 1fr)
    }

    .nd .nd-main {
        max-width: none
    }

    .nd .nd-aside {
        position: static
    }

    .nd .nd-toc--aside {
        display: none
    }

    .nd .nd-toc--inline {
        display: block
    }

    .nd .nd-title {
        font-size: 34px
    }
}

@media screen and (max-width:600px) {
    .nd .nd-title {
        font-size: 28px
    }

    .nd .nd-summary {
        padding: 18px 20px
    }

    .nd .nd-summary p,
    .nd .nd-body {
        font-size: 17px
    }

    .nd .nd-body h2 {
        font-size: 24px
    }

    .nd .nd-body h3 {
        font-size: 20px
    }

    .nd .nd-body blockquote {
        padding: 16px 18px;
        font-size: 18px
    }

    .nd .nd-body table {
        display: block;
        overflow-x: auto
    }

    .nd .nd-nav {
        grid-template-columns: 1fr
    }

    .nd .nd-nav__link--next {
        grid-column: auto;
        text-align: left
    }
}

/* End */
/* /local/templates/itach.by/components/bitrix/news.detail/news-detail/style.css?17953024659106 */
