:root {
    --md-help-bg: #fbfcff;
    --md-help-card: #ffffff;
    --md-help-text: #111d55;
    --md-help-muted: #59627e;
    --md-help-border: #e4e8f2;
    --md-help-blue: #1778ff;
    --md-help-red: #ff3333;
    --md-help-shadow: 0 12px 28px rgba(27, 39, 83, 0.08);
}

.md-help {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 40px 24px 28px;
    color: var(--md-help-text);
    background: var(--md-help-bg);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.md-help__hero h1 {
    margin: 0;
    color: var(--md-help-text);
    font-size: clamp(32px, 6vw, 44px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0;
}

.md-help__hero p {
    width: min(100%, 430px);
    margin: 12px 0 28px;
    color: var(--md-help-muted);
    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
}

.md-help__hero strong {
    color: var(--md-help-red);
}

.md-help-search {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 0 22px;
    border: 1px solid var(--md-help-border);
    border-radius: 12px;
    background: var(--md-help-card);
    box-shadow: var(--md-help-shadow);
}

.md-help-search svg {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    stroke: #4d5d91;
    stroke-width: 2;
    fill: none;
}

.md-help-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--md-help-text);
    background: transparent;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
}

.md-help-search input::placeholder {
    color: #7b829a;
    opacity: 1;
}

.md-help__topics {
    margin-top: 34px;
}

.md-help__topics h2,
.md-help-support h2 {
    margin: 0;
    color: var(--md-help-text);
    font-size: 19px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
}

.md-help__topics > p,
.md-help-support p {
    margin: 6px 0 18px;
    color: var(--md-help-muted);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.md-help-topic-list {
    border: 1px solid var(--md-help-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--md-help-card);
}

.md-help-topic {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 26px;
    align-items: center;
    min-height: 112px;
    padding: 14px 22px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--md-help-border);
    transition: background-color 160ms ease, transform 160ms ease;
}

.md-help-topic:last-child {
    border-bottom: 0;
}

.md-help-topic:hover,
.md-help-topic:focus-visible {
    background: #f6f9ff;
    transform: translateX(2px);
}

.md-help-topic:focus-visible {
    outline: 3px solid rgba(23, 120, 255, 0.25);
    outline-offset: -3px;
}

.md-help-topic[hidden] {
    display: none;
}

.md-help-topic__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid #edf1f8;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.md-help-topic__icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--md-help-blue);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.md-help-topic__icon svg path[fill],
.md-help-topic__icon svg path {
    fill: none;
}

.md-help-topic__icon .md-help-live-badge + svg path {
    fill: var(--md-help-blue);
    stroke: none;
}

.md-help-live-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 2px 4px;
    border-radius: 3px;
    color: #fff;
    background: var(--md-help-red);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.md-help-topic__copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.md-help-topic__title {
    color: var(--md-help-text);
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}

.md-help-topic__description {
    max-width: 430px;
    color: var(--md-help-muted);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}

.md-help-topic__arrow {
    justify-self: end;
    color: #4b577d;
    font-size: 42px;
    line-height: 1;
    font-weight: 300;
}

.md-help-support {
    margin-top: 28px;
    padding: 28px 24px 22px;
    text-align: center;
    border-radius: 4px;
    background: #f4f9ff;
}

.md-help-support__actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.md-help-support__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid #b9cae9;
    border-radius: 10px;
    background: #ffffff;
    color: var(--md-help-blue);
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
}

.md-help-support__button--whatsapp {
    color: #18b965;
    border-color: #9ce3bd;
}

.md-help-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    color: #76809b;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 560px) {
    .md-help {
        padding: 28px 16px 22px;
    }

    .md-help-search {
        min-height: 64px;
        padding: 0 16px;
    }

    .md-help-topic {
        grid-template-columns: 58px minmax(0, 1fr) 20px;
        min-height: 98px;
        padding: 12px 14px;
    }

    .md-help-topic__icon {
        width: 46px;
        height: 46px;
    }

    .md-help-topic__icon svg {
        width: 31px;
        height: 31px;
    }

    .md-help-topic__title {
        font-size: 15px;
    }

    .md-help-topic__description {
        font-size: 12px;
    }

    .md-help-topic__arrow {
        font-size: 34px;
    }

    .md-help-support {
        padding: 24px 14px 18px;
    }

    .md-help-support__actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
