

/* Start:/local/templates/versta_desktop/assets/css/pages/help.css?17917267597963*/
/*
 * Экран 24 «Помощь» (/help/ и страницы /help/**, BES-77).
 * Подключается Layout::pageCss('help') из веток versta_desktop файлов страниц.
 * Заголовок — .page-head (layout.css), раскладка «меню | текст» — .content-page--aside + .content-nav (layout.css),
 * меню — bitrix:menu [vd_help], плитки — news.list [vd_help_tiles], вопросы — news.list [faq] (стили — их style.css).
 *
 * /help/:
 * <header class="page-head page-head--d1 page-head--stacked page-head--surface">…</header>
 * <div class="content-page content-page--aside help-page help-page--hub">
 *   <aside class="content-page__aside">…меню…</aside>
 *   <div class="content-page__main help-hub">
 *     <section class="help-topics">…</section> <section class="faq faq--block">…</section>
 *     <section class="help-docs"><h2 class="help-hub__title">Документы</h2><div class="help-docs__list">…область help-docs…</div></section>
 *   </div>
 * </div>
 * <section class="help-contact">…«Не нашли ответ?» + карточки телефона и e-mail (области phone, email)…</section>
 *
 * Подстраницы: <div class="content-page content-page--aside help-page"><aside>…</aside>
 *   <div class="content-page__main content">…текст страницы из редактора…</div></div>
 */

/* ========== /help/: колонка блоков ========== */
.help-page--hub {
    padding-bottom: clamp(64px, 7.78vw, 112px);
}

.help-hub {
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 4.44vw, 64px);
    min-width: 0;
}

.help-hub__title {
    font: 700 32px / 1 var(--vd-font-display);
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ========== Документы (область help-docs: список ссылок) ========== */
.help-docs {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.help-docs__list ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-docs__list li {
    display: flex;
    min-width: 0;
}

.help-docs__list a {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 120px;
    padding: 24px;
    border: 1px solid var(--vd-divider);
    border-radius: var(--vd-radius);
    font: 600 15px / 1.35 var(--vd-font-text);
    color: var(--vd-ink);
    overflow-wrap: break-word;
    transition: border-color var(--vd-transition);
}

.help-docs__list a::after {
    content: '→';
    align-self: flex-end;
    color: var(--vd-text-3);
    transition: transform var(--vd-transition), color var(--vd-transition);
}

.help-docs__list a:hover {
    border-color: var(--vd-ink);
    color: var(--vd-ink);
}

.help-docs__list a:hover::after {
    color: var(--vd-ink);
    transform: translateX(3px);
}

/* Область написали абзацами, а не списком — просто текст со ссылками */
.help-docs__list p {
    font-size: var(--vd-fs-body);
    line-height: 1.6;
    color: var(--vd-text-2);
}

.help-docs__list p a {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--vd-line-strong);
    border-radius: 0;
}

.help-docs__list p a::after {
    content: none;
}

/* ========== «Не нашли ответ?» ========== */
.help-contact {
    --help-on-dark: rgba(255, 255, 255, .68);       /* вторичный текст на чёрном */
    --help-on-dark-card: rgba(255, 255, 255, .08);  /* плашка контакта */
    --help-on-dark-hover: rgba(255, 255, 255, .14);

    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    gap: 24px 40px;
    align-items: center;
    margin: 0 var(--vd-gutter) clamp(72px, 8.33vw, 120px);
    padding: clamp(32px, 3.33vw, 48px);
    border-radius: var(--vd-radius);
    background: var(--vd-ink);
    color: var(--vd-white);
}

/* Один контакт — колонка шире */
.help-contact:not(:has(.help-contact__card + .help-contact__card)) {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.help-contact__intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.help-contact__title {
    font: 700 clamp(28px, 2.5vw, 36px) / 1 var(--vd-font-display);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.help-contact__text {
    max-width: 520px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--help-on-dark);
}

.help-contact__text a {
    color: var(--vd-white);
    border-bottom: 1px solid var(--help-on-dark);
}

.help-contact__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 20px;
    border-radius: var(--vd-radius-m);
    background: var(--help-on-dark-card);
    transition: background-color var(--vd-transition);
}

.help-contact__card:has(a:hover) {
    background: var(--help-on-dark-hover);
}

.help-contact__label {
    font: 11px / 1 var(--vd-font-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--help-on-dark);
}

.help-contact__value {
    font: 600 17px / 1.2 var(--vd-font-text);
    overflow-wrap: anywhere;
}

.help-contact__value a,
.help-contact__value a:hover {
    color: var(--vd-white);
}

/* Нажимается вся карточка */
.help-contact__value a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

/* ========== Текст подстраниц: наследие визуального редактора garderob ========== */
/* Мелкий кегль из редактора (13px) — к размеру текста колонки */
.help-page .content [style*="font-size: 13px"],
.help-page .content [style*="font-size:13px"] {
    font-size: inherit !important;
}

/* Крупный кегль (18pt) вместо заголовка — подзаголовком */
.help-page .content [style*="font-size: 18pt"],
.help-page .content [style*="font-size:18pt"] {
    font: 700 22px / 1.1 var(--vd-font-display) !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--vd-ink);
}

/* Плашки с голубой заливкой из редактора — в серую поверхность шаблона */
.help-page .content div[style*="background-color"] {
    margin: 0 0 1em;
    padding: 20px 24px !important;
    border-radius: var(--vd-radius-m);
    background-color: var(--vd-surface) !important;
}

.help-page .content div[style*="background-color"] > :last-child {
    margin-bottom: 0;
}

/* Пустая строка <br> в начале текста — без лишнего отступа над первым абзацем */
.help-page .content > div:first-child > br:first-child {
    display: none;
}

/* Картинка-баннер прямо в обёртке (не в абзаце) — отступ до текста */
.help-page .content div > img {
    margin-bottom: 1.5em;
}

/* Межстрочный из редактора (line-height:1.6) — как у колонки */
.help-page .content [style*="line-height"] {
    line-height: inherit !important;
}

/* ========== Узкие экраны ========== */
@media (max-width: 1024px) {
    .help-contact,
    .help-contact:not(:has(.help-contact__card + .help-contact__card)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .help-contact__intro {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .help-contact,
    .help-contact:not(:has(.help-contact__card + .help-contact__card)) {
        grid-template-columns: minmax(0, 1fr);
    }

    .help-hub__title {
        font-size: 26px;
    }
}

/* End */
/* /local/templates/versta_desktop/assets/css/pages/help.css?17917267597963 */
