
.site-help-actions {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.site-help-trigger,
.site-scroll-top {
    border: 0;
    cursor: pointer;
    font: inherit;
    box-shadow: 0 5px 20px rgba(0,0,0,.18);
}

.site-help-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 10px;
    border-radius: 30px;
    background: #252525;
    color: #fff;
    font-weight: 600;
}

.site-help-trigger span:first-child {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: #252525;
    font-size: 21px;
    font-weight: bold;
}

.site-help-trigger.site-help-pulse {
    animation: site-help-pulse 1.8s ease-in-out 3;
}

@keyframes site-help-pulse {
    50% {
        box-shadow: 0 0 0 10px rgba(37,37,37,.13);
    }
}

.site-scroll-top {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    color: #252525;
    font-size: 24px;
}

.site-scroll-top[hidden],
.site-help-overlay[hidden] {
    display: none !important;
}

.site-help-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15,20,25,.7);
}

.site-help-panel {
    box-sizing: border-box;
    width: 100%;
    max-width: 660px;
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #fff;
    color: #242424;
}

.site-help-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid #eee;
}

.site-help-heading h2 {
    margin: 0;
    font-size: 22px;
}

.site-help-close {
    border: 0;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
}

.site-help-content {
    overflow-y: auto;
    padding: 8px 24px 24px;
    overscroll-behavior: contain;
}

.site-help-section h3 {
    margin: 22px 0 10px;
    font-size: 17px;
}

.site-help-question {
    border-bottom: 1px solid #e8e8e8;
}

.site-help-question summary {
    padding: 14px 4px;
    cursor: pointer;
    font-weight: 500;
}

.site-help-question p {
    margin: 0;
    padding: 0 4px 16px;
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 600px) {
    .site-help-actions {
        right: 14px;
        bottom: 14px;
    }

    .site-help-trigger {
        padding: 7px 12px 7px 7px;
    }

    .site-help-heading,
    .site-help-content {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-help-trigger.site-help-pulse {
        animation: none;
    }
}

/* FAQ: иконки из шапки сайта */
.site-help-question svg {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin: 0 5px;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Кликабельные ссылки внутри FAQ */
.site-help-action-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    margin: 12px 0;
    padding: 11px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: #f7f7f7;
    color: #242424;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition:
        background .2s ease,
        border-color .2s ease;
}

.site-help-action-link:hover {
    background: #ececec;
    border-color: #aaa;
}

.site-help-action-link svg {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-help-action-link span:last-child {
    margin-left: auto;
    font-size: 17px;
    font-weight: 400;
}

@media (max-width: 600px) {
    .site-help-action-link {
        width: 100%;
    }
}
