

/* Start:/local/templates/agstudio/components/bitrix/news.detail/blog_detail/style.css?177939777712721*/
.news-detail {
    padding: 34px 0 90px;
    background: #fff;
    color: var(--text-main, #161616);
}

.news-detail__hero {
    margin: 0 auto 38px;
}

.news-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--primary-color, #4f00ff);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.news-detail__back span {
    position: relative;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: rgba(79, 0, 255, .08);
    transition: background .2s ease, transform .2s ease;
}

.news-detail__back span::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.news-detail__back:hover {
    color: var(--theme-color, #8f3cf5);
}

.news-detail__back:hover span {
    background: rgba(143, 60, 245, .12);
    transform: translateX(-3px);
}

.news-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.news-detail__meta-item {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f4f2ff;
    color: var(--primary-color, #4f00ff);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.news-detail__title {
    color: var(--text-main, #161616);
    font-size: clamp(36px, 5vw, 68px);
    line-height: .98;
    font-weight: 800;
    letter-spacing: -0.055em;
}

.news-detail__lead {
    margin-top: 26px;
    color: #42424a;
    font-size: 20px;
    line-height: 1.65;
    font-weight: 400;
}

.news-detail__lead p {
    margin: 0;
}

.news-detail__picture {
    max-width: 1120px;
    margin: 0 auto 54px;
    overflow: hidden;
    border-radius: 15px;
    background: #f8f9fa;
    box-shadow: 0 24px 70px rgba(22, 22, 22, .08);
}

.news-detail__picture img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 360px;
    object-fit: cover;
}

.news-detail__content {
    color: #34343a;
    font-size: 17px;
    line-height: 1.75;
}

.news-detail__content > *:first-child {
    margin-top: 0;
}

.news-detail__content > *:last-child {
    margin-bottom: 0;
}

.news-detail__content h1,
.news-detail__content h2,
.news-detail__content h3,
.news-detail__content h4 {
    color: var(--text-main, #161616);
    letter-spacing: -0.035em;
}

.news-detail__content h1 {
    margin: 54px 0 24px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    font-weight: 800;
}

.news-detail__content h2 {
    position: relative;
    margin: 62px 0 24px;
    padding-top: 18px;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.12;
    font-weight: 800;
}

.news-detail__content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: var(--primary-color, #4f00ff);
}

.news-detail__content h3 {
    margin: 42px 0 16px;
    font-size: clamp(22px, 2.4vw, 29px);
    line-height: 1.2;
    font-weight: 800;
}

.news-detail__content h4 {
    margin: 32px 0 14px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 750;
}

.news-detail__content p {
    margin: 0 0 23px;
}

.news-detail__content p:first-of-type {
    color: #202026;
    font-size: 19px;
    line-height: 1.68;
}

.news-detail__content strong {
    color: #111;
    font-weight: 750;
}

.news-detail__content a {
    color: var(--primary-color, #4f00ff);
    font-weight: 700;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
    transition: color .2s ease, background-size .2s ease;
}

.news-detail__content a:hover {
    color: var(--theme-color, #8f3cf5);
    background-size: 0 1px;
    text-decoration: none;
}

.news-detail__content ul,
.news-detail__content ol {
    display: grid;
    gap: 12px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.news-detail__content li {
    position: relative;
    min-height: 58px;
    padding: 16px 20px 16px 52px;
    border: 1px solid rgba(79, 0, 255, .09);
    border-radius: 15px;
    background: #f8f9fa;
    color: #303038;
    line-height: 1.6;
}

.news-detail__content ul li::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 25px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-color, #4f00ff);
    box-shadow: 0 0 0 7px rgba(79, 0, 255, .09);
}

.news-detail__content ol {
    counter-reset: detail-counter;
}

.news-detail__content ol li {
    counter-increment: detail-counter;
}

.news-detail__content ol li::before {
    content: counter(detail-counter);
    position: absolute;
    left: 16px;
    top: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color, #4f00ff);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
}

.news-detail__content blockquote {
    position: relative;
    margin: 42px 0;
    padding: 30px 34px;
    border-radius: 15px;
    background:
        radial-gradient(circle at top right, rgba(207, 115, 255, .22), transparent 42%),
        linear-gradient(135deg, #161616 0%, #27115c 100%);
    color: rgba(255, 255, 255, .88);
    font-size: 20px;
    line-height: 1.55;
    font-weight: 500;
    box-shadow: 0 22px 60px rgba(79, 0, 255, .17);
}

.news-detail__content blockquote p {
    margin: 0;
    color: inherit;
}
.news-detail__content code {
    display: inline;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(79, 0, 255, .08);
    color: var(--primary-color, #4f00ff);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .88em;
    line-height: 1.45;
    font-weight: 600;
    white-space: nowrap;
}

.news-detail__content pre {
    position: relative;
    margin: 34px 0;
    padding: 0;
    overflow: hidden;
    border-radius: 15px;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 20px 50px rgba(22, 22, 22, .12);
}

.news-detail__content pre::before {
    content: "PHP";
    display: block;
    height: 42px;
    padding: 0 18px;
    background: #161b22;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .55);
    font-family: var(--font-family, Arial, sans-serif);
    font-size: 12px;
    line-height: 42px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-detail__content pre code {
    display: block;
    padding: 22px 24px;
    overflow: auto;
    border-radius: 0;
    background: transparent;
    color: #e6edf3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
    max-height: 500px;
}

/* убираем inline-стиль code внутри pre */
.news-detail__content pre code.hljs {
    background: transparent;
}

/* scrollbar */
.news-detail__content pre code::-webkit-scrollbar {
    height: 10px;
}

.news-detail__content pre code::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .06);
}

.news-detail__content pre code::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .24);
    border-radius: 999px;
}

.news-detail__content pre code::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .38);
}

.news-detail__content table {
    display: table!important;
    width: 100%;
    margin: 36px 0;
    padding-bottom: 0!important;
    overflow-x: auto;
    border: 1px solid rgba(22, 22, 22, .08);
    border-spacing: 0;
    border-collapse: separate;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.news-detail__content table thead,
.news-detail__content table tbody,
.news-detail__content table tr {
    width: 100%;
}

.news-detail__content table th,
.news-detail__content table td {
    min-width: 170px;
    padding: 18px 20px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(22, 22, 22, .08);
    font-size: 15px;
    line-height: 1.45;
}

.news-detail__content table th {
    background: #161616;
    color: #fff;
    font-weight: 750;
}

.news-detail__content table td {
    color: #32323a;
}

.news-detail__content table tbody tr:nth-child(even) td {
    background: #f8f9fa;
}

.news-detail__content table tbody tr:last-child td {
    border-bottom: 0;
}

.news-detail__content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 36px auto;
    border-radius: 15px;
}

.news-detail__content hr {
    width: 100%;
    height: 1px;
    margin: 46px 0;
    border: 0;
    background: rgba(22, 22, 22, .1);
}

.news-detail__footer {
    margin: 58px auto 0;
    padding-top: 34px;
    border-top: 1px solid rgba(22, 22, 22, .1);
}

.news-detail__footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--primary-color, #4f00ff);
    color: #fff!important;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 750;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.news-detail__footer-link:hover {
    background: var(--theme-color, #8f3cf5);
}

@media (max-width: 1024px) {
    .news-detail {
        padding: 28px 0 76px;
    }

    .news-detail__picture {
        border-radius: 26px;
    }

    .news-detail__picture img {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .news-detail {
        padding: 24px 0 62px;
    }

    .news-detail__hero {
        margin-bottom: 30px;
    }

    .news-detail__back {
        margin-bottom: 22px;
    }

    .news-detail__title {
        font-size: 34px;
        line-height: 1.05;
    }

    .news-detail__lead {
        margin-top: 20px;
        font-size: 18px;
        line-height: 1.58;
    }

    .news-detail__picture {
        margin-bottom: 40px;
        border-radius: 15px;
    }

    .news-detail__picture img {
        min-height: 240px;
    }

    .news-detail__content {
        font-size: 16px;
        line-height: 1.68;
    }

    .news-detail__content p:first-of-type {
        font-size: 17px;
    }

    .news-detail__content h2 {
        margin-top: 48px;
        font-size: 28px;
    }

    .news-detail__content h3 {
        margin-top: 34px;
        font-size: 22px;
    }

    .news-detail__content li {
        min-height: auto;
        padding: 14px 16px 14px 44px;
        border-radius: 17px;
    }

    .news-detail__content ul li::before {
        left: 17px;
        top: 23px;
    }

    .news-detail__content ol li::before {
        left: 12px;
        top: 13px;
    }

    .news-detail__content blockquote {
        margin: 34px 0;
        padding: 24px;
        border-radius: 15px;
        font-size: 18px;
    }

    .news-detail__content table {
        display: block!important;
        max-width: 100%;
    }

    .news-detail__content table th,
    .news-detail__content table td {
        min-width: 160px;
        padding: 15px 16px;
        font-size: 14px;
    }

    .news-detail__footer {
        margin-top: 44px;
        padding-top: 26px;
    }
}

@media (max-width: 768px) {
    .news-detail__content pre::before {
        height: 38px;
        padding: 0 15px;
        font-size: 11px;
        line-height: 38px;
    }

    .news-detail__content pre code {
        padding: 18px 16px;
        font-size: 13px;
        line-height: 1.65;
    }

    .news-detail__content code {
        white-space: normal;
        word-break: break-word;
    }

    .news-detail__content pre code {
        white-space: pre;
        word-break: normal;
    }
}

@media (max-width: 480px) {
    .news-detail__title {
        font-size: 30px;
        letter-spacing: -0.045em;
    }

    .news-detail__meta-item {
        min-height: 31px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .news-detail__picture img {
        min-height: 210px;
    }

    .news-detail__content {
        font-size: 15.5px;
    }

    .news-detail__content h2 {
        font-size: 25px;
    }

    .news-detail__content h3 {
        font-size: 21px;
    }

    .news-detail__footer-link {
        width: 100%;
    }
}
/* End */


/* Start:/local/templates/agstudio/components/bitrix/news.detail/blog_detail/assets/highlight/github-dark.min.css?17793818241315*/
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
  Theme: GitHub Dark
  Description: Dark theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15

  Outdated base version: https://github.com/primer/github-syntax-dark
  Current colors taken from GitHub's CSS
*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#79c0ff}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-code,.hljs-comment,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}
/* End */
/* /local/templates/agstudio/components/bitrix/news.detail/blog_detail/style.css?177939777712721 */
/* /local/templates/agstudio/components/bitrix/news.detail/blog_detail/assets/highlight/github-dark.min.css?17793818241315 */
