.expert-page, .expert-related, .expert-detail-cta {
    --ex-ink: #10182d;
    --ex-text: #405071;
    --ex-muted: #74809b;
    --ex-line: #e7e8f3;
    --ex-violet: #5e13ef;
    --ex-pink: #ed3f8d;
    --ex-gradient: linear-gradient(110deg, #5512ef, #8524ed 52%, #ed3f8d);
    box-sizing: border-box;
    color: var(--ex-ink);
}

.expert-page *, .expert-related *, .expert-detail-cta * {
    box-sizing: border-box;
}

.expert-page__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr);
    gap: clamp(40px, 7vw, 100px);
    align-items: center;
    overflow: hidden;
    padding: clamp(48px, 7vw, 92px);
    background: radial-gradient(circle at 86% 20%, rgba(237, 63, 141, .14), transparent 27%), radial-gradient(circle at 68% 90%, rgba(94, 19, 239, .13), transparent 31%), linear-gradient(135deg, #fff, #faf8ff);
    border: 1px solid var(--ex-line);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(36, 27, 81, .07);
}

.expert-page__eyebrow, .expert-page__heading span, .expert-related__heading > span {
    margin-bottom: 20px;
    color: #58688e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.expert-page__hero h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.expert-page__hero h1 span {
    color: transparent;
    background: var(--ex-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.expert-page__hero-copy > p {
    max-width: 720px;
    margin: 25px 0 0;
    color: var(--ex-text);
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.65;
}

.expert-page__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.expert-page__topics span {
    padding: 9px 13px;
    color: #5d4d83;
    font-size: 13px;
    font-weight: 600;
    background: rgba(94, 19, 239, .06);
    border: 1px solid rgba(94, 19, 239, .1);
    border-radius: 999px;
}

.expert-page__hero-aside {
    display: grid;
    gap: 24px;
    padding: 32px;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(94, 19, 239, .12);
    border-radius: 20px;
    box-shadow: 0 22px 55px rgba(45, 29, 96, .08);
    backdrop-filter: blur(10px);
}

.expert-page__hero-icon {
    display: flex;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    color: var(--ex-violet);
    background: linear-gradient(145deg, #fff, #f1e9ff);
    border: 1px solid rgba(94, 19, 239, .12);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(94, 19, 239, .1);
}

.expert-page__hero-icon svg {
    width: 40px;
    height: 40px;
}

.expert-page__hero-aside strong {
    display: block;
    margin-bottom: 10px;
    font-size: 21px;
}

.expert-page__hero-aside p {
    margin: 0;
    color: var(--ex-text);
    line-height: 1.65;
}

.expert-page__catalog {
    margin-top: clamp(78px, 9vw, 128px);
}

.expert-page__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
}

.expert-page__heading span {
    display: block;
    margin-bottom: 15px;
}

.expert-page__heading h2, .expert-related__heading h2 {
    margin: 0;
    font-size: clamp(36px, 4.2vw, 56px);
    line-height: 1.07;
    letter-spacing: -.04em;
}

.expert-page__heading > p {
    max-width: 520px;
    margin: 0;
    color: var(--ex-text);
    font-size: 16px;
    line-height: 1.65;
}

.expert-page__telegram {
    display: grid;
    grid-template-columns: 66px 1fr auto;
    gap: 22px;
    align-items: center;
    margin-top: 70px;
    padding: 26px 30px;
    background: linear-gradient(120deg, #fbf9ff, #fff);
    border: 1px solid var(--ex-line);
    border-radius: 20px;
}

.expert-page__telegram-icon {
    display: flex;
    width: 66px;
    height: 66px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #25a9e9, #6615e9);
    border-radius: 50%;
}

.expert-page__telegram strong {
    display: block;
    margin-bottom: 5px;
    font-size: 19px;
}

.expert-page__telegram p {
    margin: 0;
    color: var(--ex-text);
}

.expert-page__telegram a {
    display: inline-flex;
    gap: 18px;
    align-items: center;
    padding: 14px 20px;
    color: var(--ex-violet);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(94, 19, 239, .22);
    border-radius: 11px;
}

.expert-page__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
    margin-top: clamp(78px, 9vw, 128px);
    padding: clamp(40px, 6vw, 72px);
    color: #fff;
    background: radial-gradient(circle at 75% 10%, rgba(255, 255, 255, .16), transparent 25%), var(--ex-gradient);
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(94, 19, 239, .2);
}

.expert-page__cta > div {
    max-width: 780px;
}

.expert-page__cta span {
    font-size: 14px;
    font-weight: 700;
    opacity: .75;
}

.expert-page__cta h2 {
    margin: 10px 0 12px;
    font-size: clamp(30px, 4vw, 47px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.expert-page__cta p {
    margin: 0;
    font-size: 17px;
    opacity: .78;
}

.expert-page__cta button {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 52px;
    align-items: center;
    gap: 18px;
    padding: 13px 23px;
    color: var(--ex-violet);
    font-weight: 700;
    cursor: pointer;
    background: #fff;
    border: 0;
    border-radius: 12px;
    transition: transform .25s ease;
}

.expert-page__cta button:hover {
    transform: translateY(-2px);
}

.expert-detail-cta {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 290px);
    gap: 10px 30px;
    overflow: hidden;
    width: 100%;
    max-width: 1070px;
    align-items: end;
    margin: clamp(38px, 5vw, 58px) auto;
    padding: clamp(26px, 3.5vw, 36px);
    color: var(--ex-ink);
    background: linear-gradient(135deg, #faf8ff 0%, #fff 58%, #f7f3ff 100%);
    border: 1px solid #ded8ee;
    border-radius: 20px;
    box-shadow: 0 16px 42px rgba(35, 27, 79, .08);
}

.expert-detail-cta::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    width: 4px;
    background: linear-gradient(180deg, var(--ex-violet), var(--ex-pink));
}

.expert-detail-cta::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -70px;
    z-index: -1;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(94, 19, 239, .08), transparent 68%);
    pointer-events: none;
}

.expert-detail-cta > div {
    display: contents;
}

.expert-detail-cta span {
    display: inline-block;
    grid-column: 1 / -1;
    color: var(--ex-violet);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.4;
    text-transform: uppercase;
}

.expert-detail-cta h2,
.expert-article__content .expert-detail-cta h2 {
    grid-column: 1 / -1;
    margin: 0 0 7px;
    color: var(--ex-ink);
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.14;
    letter-spacing: -.025em;
}

.expert-detail-cta p,
.expert-article__content .expert-detail-cta p {
    min-width: 0;
    margin: 0;
    color: var(--ex-text);
    font-size: 15px;
    line-height: 1.6;
}

.expert-detail-cta button {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    max-width: 290px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 18px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    background: linear-gradient(110deg, #5e13ef, #8d2bd5);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(94, 19, 239, .18);
    transition: box-shadow .25s ease, transform .25s ease;
}

.expert-detail-cta button b {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
    transition: transform .25s ease;
}

.expert-detail-cta button:hover {
    box-shadow: 0 13px 28px rgba(94, 19, 239, .24);
    transform: translateY(-2px);
}

.expert-detail-cta button:hover b {
    transform: translateX(3px);
}

.expert-detail-cta button:focus-visible {
    outline: 3px solid rgba(94, 19, 239, .22);
    outline-offset: 3px;
}

.expert-detail-cta.expert-detail-cta--footer {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
    gap: 9px clamp(36px, 5vw, 70px);
    max-width: none;
    margin-top: 60px !important;
    padding-block: 40px !important;
    padding-inline: clamp(64px, 6vw, 96px) !important;
    align-items: center;
}

.expert-detail-cta--content {
    display: contents;
}

.expert-detail-cta--footer span,
.expert-detail-cta--footer h2,
.expert-article__content .expert-detail-cta--footer h2,
.expert-detail-cta--footer p,
.expert-article__content .expert-detail-cta--footer p {
    grid-column: 1;
}

.expert-detail-cta--footer h2,
.expert-article__content .expert-detail-cta--footer h2 {
    max-width: 820px;
    margin-bottom: 3px;
    font-size: clamp(28px, 3vw, 38px);
}

.expert-detail-cta--footer p,
.expert-article__content .expert-detail-cta--footer p {
    max-width: 650px;
}

.expert-detail-cta--footer button {
    grid-column: 2;
    grid-row: 1 / 4;
    max-width: 340px;
    align-self: center;
}

@media (prefers-reduced-motion: reduce) {
    .expert-detail-cta button,
    .expert-detail-cta button b {
        transition: none;
    }
}

.expert-related {
    margin-top: clamp(78px, 9vw, 128px);
}

.expert-related__heading {
    position: relative;
    margin-bottom: 38px;
    padding-right: 130px;
}

.expert-related__heading > span {
    display: block;
    margin-bottom: 14px;
}

.expert-related__heading > a {
    position: absolute;
    right: 0;
    bottom: 8px;
    color: var(--ex-violet);
    font-weight: 700;
    text-decoration: none;
}

/* CTA внутри статей */
.article-cta {
    --cta-accent: #6708c7;
    --cta-accent-hover: #51069e;

    box-sizing: border-box;
    margin: 36px 0;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid #e7dcf3;
    border-radius: 16px;
    background: #f8f5fc;
    color: #101828;
    font-family: inherit;
}

.article-cta,
.article-cta * {
    box-sizing: border-box;
}

.article-cta .article-cta__title {
    margin: 0 0 12px;
    padding: 0;
    color: #101828;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.article-cta .article-cta__text {
    max-width: 720px;
    margin: 0;
    padding: 0;
    color: #475467;
    font-size: 17px;
    line-height: 1.65;
}

.article-cta .article-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin: 24px 0 0;
}

.article-cta .article-cta__button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 52px;
    max-width: 100%;
    margin: 0;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--cta-accent);
    box-shadow: none;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.article-cta .article-cta__link,
.article-cta .article-cta__link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--cta-accent);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 5px;
    transition: text-decoration-color 160ms ease;
}

.article-cta .article-cta__note {
    margin: 16px 0 0;
    padding: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}

@media (hover: hover) {
    .article-cta .article-cta__button:hover {
        background: var(--cta-accent-hover);
        color: #fff;
    }

    .article-cta .article-cta__link:hover {
        text-decoration-color: currentColor;
    }
}

.article-cta .article-cta__button:focus-visible,
.article-cta .article-cta__link:focus-visible {
    outline: 3px solid var(--cta-accent);
    outline-offset: 4px;
}

@media (max-width: 575px) {
    .article-cta {
        margin: 28px 0;
        padding: 24px 20px;
    }

    .article-cta .article-cta__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .article-cta .article-cta__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-cta .article-cta__button,
    .article-cta .article-cta__link {
        transition: none;
    }
}

@media (max-width: 991.98px) {
    .expert-page__hero {
        grid-template-columns: 1fr 300px;
        padding: 50px 36px;
    }

    .expert-page__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .expert-page__cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .expert-detail-cta.expert-detail-cta--footer {
        grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
        gap: 9px 30px;
        padding-block: 36px !important;
        padding-inline: 56px !important;
    }
}

@media (max-width: 767.98px) {
    .expert-page__hero {
        grid-template-columns: 1fr;
        padding: 34px 22px;
        border-radius: 20px;
    }

    .expert-page__hero-aside {
        padding: 24px;
    }

    .expert-page__telegram {
        grid-template-columns: 54px 1fr;
        padding: 22px;
    }

    .expert-page__telegram-icon {
        width: 54px;
        height: 54px;
    }

    .expert-page__telegram a {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .expert-page__cta {
        padding: 34px 22px;
        border-radius: 20px;
    }

    .expert-page__cta button {
        width: 100%;
        justify-content: center;
    }

    .expert-detail-cta {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 34px auto;
        padding: 24px 22px;
        border-radius: 17px;
    }

    .expert-detail-cta button {
        width: 100%;
        max-width: none;
        margin-top: 12px;
    }

    .expert-detail-cta.expert-detail-cta--footer {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 30px;
        padding-block: 28px !important;
        padding-inline: 26px !important;
    }

    .expert-detail-cta--footer span,
    .expert-detail-cta--footer h2,
    .expert-article__content .expert-detail-cta--footer h2,
    .expert-detail-cta--footer p,
    .expert-article__content .expert-detail-cta--footer p,
    .expert-detail-cta--footer button {
        grid-column: 1;
    }

    .expert-detail-cta--footer button {
        grid-row: auto;
    }

    .expert-related__heading {
        padding-right: 0;
    }

    .expert-related__heading > a {
        position: static;
        display: inline-block;
        margin-top: 18px;
    }
}
