

/* Start:/local/templates/.default/components/bitrix/breadcrumb/breadcrumb/style.min.css?1750782210467*/
.bx-breadcrumb{margin:10px 0}.bx-breadcrumb i{color:#b5bdc2;line-height:13px;font-size:12px;vertical-align:middle;margin-right:5px}.bx-breadcrumb .bx-breadcrumb-item{float:left;margin-bottom:10px;white-space:nowrap;line-height:13px;vertical-align:middle;margin-right:10px}.bx-breadcrumb .bx-breadcrumb-item span{font-family:"Open Sans",Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:13px;white-space:normal}.bx-breadcrumb .bx-breadcrumb-item a{border-bottom:0}
/* End */


/* Start:/local/components/polugale/documents/templates/.default/style.css?178655207111829*/
/* Страница «Документация». Размеры сняты с макета (узел 9281:119856):
   сетка 325 + 40 + 1055, карточка 338x248, превью 120x160, отступ в сетке 20. */

.docs {
    --docs-ink: #2b2b2b;
    --docs-accent: #179bd7;
    --docs-bg: #f5f7fb;
    --docs-line: #e4eaf2;
    --docs-muted: #6b7683;
    --docs-radius: 8px;

    margin: 0 0 80px;              /* до блока преимуществ — по макету */
    color: var(--docs-ink);
    font-family: Gilroy, sans-serif;
}

/* Блок преимуществ с формой расчёта сам отступов снизу не имеет: на страницах
   каталога под ним идут другие секции, а здесь он последний и упирался в футер.
   Селектор с двумя классами намеренно: общий стиль .wrap подключается позже
   объединённого CSS и при равной специфичности перебивал этот отступ. */
.wrap.docs-cta { margin-bottom: 60px; }

.docs *, .docs *::before, .docs *::after { box-sizing: border-box; }

/* ---------- шапка страницы ---------- */
.docs__title {
    margin: 0 0 20px;
    font-weight: 700;
    font-size: 40px;
    line-height: 50px;
    text-transform: uppercase;
}
.docs__intro { max-width: 1060px; }
.docs__intro p {
    margin: 0 0 12px;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
}
.docs__intro p:last-child { margin-bottom: 0; }

.docs__empty { margin: 20px 0 0; font-size: 16px; color: var(--docs-muted); }

/* ---------- раскладка ---------- */
.docs__layout {
    display: grid;
    grid-template-columns: 325fr 1055fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

/* ---------- якорное меню ---------- */
.docs__aside { position: sticky; top: 20px; }

.docs__nav-toggle { display: none; }

.docs__nav {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: var(--docs-radius);
    background: var(--docs-bg);
}
.docs__nav-link {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    color: var(--docs-ink);
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.docs__nav-link:hover { color: var(--docs-accent); }
.docs__nav-link.is-active {
    background: #fff;
    color: var(--docs-accent);
    font-weight: 700;
}

/* ---------- секции ---------- */
.docs__section { scroll-margin-top: 20px; }
.docs__section + .docs__section { margin-top: 50px; }

.docs__section-title {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 24px;
    line-height: 30px;
}
.docs__section-text {
    margin: 0 0 20px;
    max-width: 900px;
    font-size: 16px;
    line-height: 21px;
    color: var(--docs-muted);
}

/* ---------- сетка карточек ---------- */
.docs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.docs__card {
    display: flex;
    flex-direction: column;
    min-height: 248px;
    padding: 10px;
    border-radius: var(--docs-radius);
    background: var(--docs-bg);
}
.docs__card.is-hidden { display: none; }

.docs__card-top {
    position: relative;
    display: flex;
    gap: 20px;
    height: 160px;
}

.docs__card-preview {
    flex: 0 0 120px;
    width: 120px;
    height: 160px;
    overflow: hidden;
    border: 1px solid var(--docs-line);
    border-radius: 4px;
    background: #fff;
}
.docs__card-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;   /* обрезка по верху — как в макете */
}

/* справа висят иконки — оставляем под них место, иначе длинный бейдж наезжает */
.docs__card-meta { flex: 1 1 auto; min-width: 0; padding-right: 40px; }

.docs__badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--docs-accent);
    color: #fff;
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
}
.docs__date {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    line-height: 14px;
    color: var(--docs-ink);
}

/* иконки: по макету белые квадраты справа, появляются при наведении на карточку */
.docs__card-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity .2s ease;
}
.docs__card:hover .docs__card-actions,
.docs__card:focus-within .docs__card-actions { opacity: 1; }

.docs__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: var(--docs-ink);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.docs__icon svg { width: 16px; height: 16px; }
.docs__icon:hover { background: var(--docs-accent); color: #fff; }
.docs__icon.is-done { background: #2e9e4f; color: #fff; }

.docs__card-title {
    margin: 24px 0 0;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
}
.docs__card-open {
    display: -webkit-box;
    -webkit-line-clamp: 2;            /* максимум 2 строки, дальше многоточие */
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.docs__card:hover .docs__card-open { color: var(--docs-accent); text-decoration: underline; }

/* ---------- показать ещё ---------- */
.docs__more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.docs__more {
    min-width: 146px;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 4px;
    background: #7ab648;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    line-height: 19px;
    cursor: pointer;
    transition: opacity .2s ease;
}
.docs__more:hover { opacity: .88; }
.docs__more.is-hidden { display: none; }

/* ---------- модалка ---------- */
.docs-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.docs-modal[hidden] { display: none; }
.docs-modal__overlay { position: absolute; inset: 0; background: rgba(15, 27, 38, .65); }

.docs-modal__window {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(920px, 92vw);
    height: min(88vh, 1000px);
    border-radius: var(--docs-radius);
    background: #fff;
    font-family: Gilroy, sans-serif;
    overflow: hidden;
}

.docs-modal__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--docs-line);
}
.docs-modal__title {
    flex: 1 1 auto;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    color: var(--docs-ink);
}
.docs-modal__tools { display: flex; align-items: center; gap: 10px; }
.docs-modal__tools .docs__icon { background: var(--docs-bg); }

.docs-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    padding: 0; border: 0; border-radius: 4px;
    background: var(--docs-bg);
    color: var(--docs-ink);
    cursor: pointer;
}
.docs-modal__close svg { width: 14px; height: 14px; }
.docs-modal__close:hover { background: var(--docs-accent); color: #fff; }

.docs-modal__body {
    flex: 1 1 auto;
    overflow-y: auto;              /* многостраничные листаются скроллом внутри модалки */
    padding: 20px;
    background: #f0f2f6;
    text-align: center;
}
.docs-modal__body canvas,
.docs-modal__body img {
    display: block;
    max-width: 100%;
    margin: 0 auto 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.docs-modal__body iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

.docs-modal__loader { padding: 40px 0; color: var(--docs-muted); font-size: 16px; }

.docs-modal__fallback { padding: 40px 20px; }
.docs-modal__fallback p { margin: 0 0 20px; font-size: 16px; color: var(--docs-ink); }
.docs-modal__fallback a {
    display: inline-block;
    margin: 0 6px;
    padding: 12px 20px;
    border-radius: 4px;
    background: var(--docs-accent);
    color: #fff;
    font-size: 16px;
    text-decoration: none;
}

.docs-modal__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 0; border-radius: var(--docs-radius);
    background: rgba(43, 43, 43, .55);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease;
}
.docs-modal__arrow:hover { background: var(--docs-accent); }
.docs-modal__arrow--prev { left: -60px; }
.docs-modal__arrow--next { right: -60px; }
.docs-modal__arrow svg { width: 10px; height: 16px; }
.docs-modal__arrow[disabled] { opacity: .35; cursor: default; pointer-events: none; }

body.docs-modal-open { overflow: hidden; }

/* ---------- планшет ---------- */
@media (max-width: 1199px) {
    .docs__title { font-size: 32px; line-height: 40px; }
    .docs__layout { grid-template-columns: 260fr 1055fr; gap: 24px; }
    .docs__grid { grid-template-columns: repeat(2, 1fr); }
    .docs-modal__arrow--prev { left: 8px; }
    .docs-modal__arrow--next { right: 8px; }
}

/* ---------- мобильные ---------- */
@media (max-width: 767px) {
    .docs { margin-bottom: 50px; }
    .docs__title { font-size: 28px; line-height: 32px; margin-bottom: 16px; }
    .docs__intro p { font-size: 15px; line-height: 20px; }

    .docs__layout { display: block; margin-top: 24px; }

    /* меню сворачивается в выпадающий список над контентом */
    .docs__aside { position: static; margin-bottom: 24px; }
    .docs__nav-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        border: 1px solid var(--docs-line);
        border-radius: var(--docs-radius);
        background: var(--docs-bg);
        color: var(--docs-ink);
        font-family: inherit;
        font-size: 16px;
        line-height: 21px;
        text-align: left;
        cursor: pointer;
    }
    .docs__nav-toggle::after {
        content: '';
        width: 10px; height: 10px;
        margin-left: 12px;
        border-right: 2px solid var(--docs-ink);
        border-bottom: 2px solid var(--docs-ink);
        transform: rotate(45deg) translateY(-25%);
        transition: transform .2s ease;
    }
    .docs__nav-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-25%); }

    .docs__nav { display: none; margin-top: 8px; }
    .docs__nav.is-open { display: flex; }

    .docs__grid { grid-template-columns: 1fr; }
    .docs__section + .docs__section { margin-top: 36px; }
    .docs__section-title { font-size: 20px; line-height: 26px; }

    /* на тач-устройствах иконки видны всегда: наведения там нет */
    .docs__card-actions { opacity: 1; }

    .docs-modal__window { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
    .docs-modal__arrow { display: none; }     /* переключение свайпом */
    .docs-modal__title { font-size: 15px; line-height: 19px; }
    .docs-modal__body { padding: 10px; }
}

/* End */
/* /local/templates/.default/components/bitrix/breadcrumb/breadcrumb/style.min.css?1750782210467 */
/* /local/components/polugale/documents/templates/.default/style.css?178655207111829 */
