.expert-profile {
    overflow: hidden;
    background: #fff8eb;
    color: #4b2519;
}

.expert-hero {
    position: relative;
    padding: 34px 0 54px;
    border-bottom: 1px solid #ead2ad;
    background:
        radial-gradient(circle at 85% 14%, rgba(246, 195, 75, .28), transparent 28%),
        linear-gradient(135deg, #fff7e6 0%, #fff 48%, #fff0d8 100%);
}

.expert-hero::after {
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(183, 7, 16, .12);
    border-radius: 50%;
    content: "";
}

.expert-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: 54px;
    align-items: center;
}

.expert-hero .mmtl-breadcrumb {
    margin-bottom: 26px;
}

.expert-kicker,
.expert-section-label {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    color: #a5060f;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.expert-kicker::before,
.expert-section-label::before {
    width: 28px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, #b70710, #e4a82d);
    content: "";
}

.expert-hero h1 {
    max-width: 760px;
    margin: 14px 0 13px;
    color: #4d2418;
    font-family: var(--mmtl-font-ui);
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 820;
    letter-spacing: 0;
    line-height: 1.02;
}

.expert-role {
    margin: 0 0 18px;
    color: #a5060f;
    font-size: 18px;
    font-weight: 800;
}

.expert-lead {
    max-width: 760px;
    margin: 0;
    color: #715143;
    font-size: 18px;
    line-height: 1.75;
}

.expert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.expert-portrait-card {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 10px;
    border: 1px solid #e6c99a;
    border-radius: 28px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 30px 70px rgba(98, 48, 17, .16);
}

.expert-portrait-card img,
.expert-portrait-card__fallback {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    object-fit: cover;
}

.expert-portrait-card__fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #9f0710, #d49a2c);
    color: #fff8e8;
    font-size: 86px;
    font-weight: 900;
}

.expert-portrait-card__caption {
    position: absolute;
    right: 26px;
    bottom: 26px;
    left: 26px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 16px;
    background: rgba(74, 31, 19, .82);
    color: #fff7e8;
    backdrop-filter: blur(12px);
}

.expert-portrait-card__caption strong,
.expert-portrait-card__caption span {
    display: block;
}

.expert-portrait-card__caption strong {
    font-size: 15px;
}

.expert-portrait-card__caption span {
    color: #f3d7ad;
    font-size: 12px;
}

.expert-body {
    padding: 46px 0 68px;
}

.expert-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 26px;
    align-items: start;
}

.expert-main,
.expert-sidebar__sticky {
    display: grid;
    gap: 20px;
}

.expert-sidebar__sticky {
    position: sticky;
    top: 132px;
}

.expert-panel,
.expert-proof-card,
.expert-sidebar-card,
.expert-cta-card {
    border: 1px solid #ead2ad;
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 16px 44px rgba(91, 46, 17, .07);
}

.expert-panel {
    padding: 28px;
}

.expert-panel--intro .prose {
    max-width: 860px;
    margin-top: 16px;
}

.expert-panel--intro .prose p {
    color: #60463a;
    font-size: 17px;
    line-height: 1.85;
}

.expert-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.expert-proof-card {
    padding: 24px;
}

.expert-proof-card > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #b70710;
    color: #ffd66d;
    font-weight: 900;
}

.expert-proof-card h2,
.expert-sidebar-card h2,
.expert-cta-card h2,
.expert-section-head h2 {
    margin: 0;
    color: #4f281b;
    font-family: var(--mmtl-font-ui);
    letter-spacing: 0;
}

.expert-proof-card h2 {
    font-size: 22px;
}

.expert-proof-card p,
.expert-sidebar-card p,
.expert-cta-card p {
    margin: 12px 0 0;
    color: #705449;
    line-height: 1.72;
}

.expert-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.expert-section-head h2 {
    margin-top: 7px;
    font-size: 30px;
}

.expert-section-head a {
    color: #a5060f;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.expert-articles .content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.expert-articles .content-card {
    border-color: #ead5b8;
    border-radius: 16px;
}

.expert-articles .content-card__media {
    aspect-ratio: 1.45 / 1;
}

.expert-articles .content-card__body {
    padding: 15px;
}

.expert-articles .content-card h2 {
    min-height: auto;
    color: #4d281d;
    font-size: 17px;
}

.expert-articles .content-card.content-card--no-image .content-card__body {
    min-height: 190px;
    background: linear-gradient(135deg, rgba(255, 240, 207, .72), rgba(255, 255, 255, 0) 48%), #fff;
}

.expert-sidebar-card,
.expert-cta-card {
    padding: 22px;
}

.expert-sidebar-card h2,
.expert-cta-card h2 {
    font-size: 22px;
}

.expert-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.expert-topic-list a {
    padding: 8px 10px;
    border: 1px solid #edd0a0;
    border-radius: 999px;
    background: #fff8e8;
    color: #8b420f;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.expert-sidebar-card--verify {
    background: #fff;
}

.expert-cta-card {
    overflow: hidden;
    background: linear-gradient(145deg, #9f0710, #c40a15);
    color: #ffe8bd;
}

.expert-cta-card span {
    color: #ffd46f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.expert-cta-card h2 {
    margin-top: 8px;
    color: #fff;
}

.expert-cta-card p {
    color: #f8d9c6;
}

.expert-cta-card .button {
    width: 100%;
    margin-top: 18px;
    border-color: #ffd783;
    background: #ffd783;
    color: #7c080e;
}

@media (max-width: 980px) {
    .expert-hero__grid,
    .expert-layout {
        grid-template-columns: 1fr;
    }

    .expert-portrait-card {
        max-width: 440px;
    }

    .expert-sidebar__sticky {
        position: static;
    }
}

@media (max-width: 680px) {
    .expert-hero {
        padding: 24px 0 38px;
    }

    .expert-hero__grid,
    .expert-layout {
        gap: 22px;
    }

    .expert-hero h1 {
        font-size: 38px;
    }

    .expert-lead {
        font-size: 16px;
    }

    .expert-proof-grid,
    .expert-articles .content-grid {
        grid-template-columns: 1fr;
    }

    .expert-panel,
    .expert-proof-card,
    .expert-sidebar-card,
    .expert-cta-card {
        border-radius: 18px;
    }

    .expert-panel {
        padding: 22px 18px;
    }

    .expert-section-head {
        display: grid;
    }
}

.expert-archive {
    overflow: hidden;
    background: #fff8eb;
    color: #4b2519;
}

.expert-archive-hero {
    padding: 38px 0 52px;
    border-bottom: 1px solid #ead2ad;
    background:
        radial-gradient(circle at 82% 12%, rgba(246, 195, 75, .3), transparent 28%),
        linear-gradient(135deg, #fff7e6 0%, #fff 48%, #fff0d8 100%);
}

.expert-archive-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 48px;
    align-items: end;
}

.expert-archive-hero h1 {
    max-width: 850px;
    margin: 14px 0 16px;
    color: #4d2418;
    font-family: var(--mmtl-font-ui);
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 820;
    letter-spacing: 0;
    line-height: 1.03;
}

.expert-archive-hero p {
    max-width: 780px;
    margin: 0;
    color: #715143;
    font-size: 18px;
    line-height: 1.75;
}

.expert-archive-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.expert-archive-stats {
    display: grid;
    gap: 12px;
}

.expert-archive-stats div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 1px solid #ead2ad;
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 16px 40px rgba(91, 46, 17, .07);
}

.expert-archive-stats strong {
    color: #b70710;
    font-size: 36px;
    line-height: 1;
}

.expert-archive-stats span {
    color: #6d5043;
    font-weight: 800;
}

.expert-directory {
    padding: 48px 0 58px;
}

.expert-directory__head {
    margin-bottom: 24px;
}

.expert-directory__head p {
    max-width: 560px;
    margin: 0;
    color: #7a5b4c;
    line-height: 1.65;
}

.expert-directory__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.expert-card {
    overflow: hidden;
    border: 1px solid #ead2ad;
    border-radius: 24px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 16px 42px rgba(91, 46, 17, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.expert-card:first-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(250px, .72fr) 1fr;
}

.expert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 54px rgba(91, 46, 17, .13);
}

.expert-card__media {
    display: block;
    overflow: hidden;
    background: #fff0d8;
}

.expert-card__media img,
.expert-card__media > span {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.expert-card:first-child .expert-card__media img,
.expert-card:first-child .expert-card__media > span {
    aspect-ratio: 4 / 5;
}

.expert-card__media > span {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #9f0710, #d49a2c);
    color: #fff8e8;
    font-size: 64px;
    font-weight: 900;
}

.expert-card__body {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 22px;
}

.expert-card__eyebrow {
    width: max-content;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff0cf;
    color: #a5060f;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.expert-card h2 {
    margin: 2px 0 0;
    color: #4d2418;
    font-family: var(--mmtl-font-ui);
    font-size: 26px;
    line-height: 1.14;
    letter-spacing: 0;
}

.expert-card h2 a {
    text-decoration: none;
}

.expert-card__role {
    margin: 0;
    color: #a5060f;
    font-weight: 850;
}

.expert-card__body > p:not(.expert-card__role) {
    margin: 0;
    color: #6f5145;
    line-height: 1.65;
}

.expert-card__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
}

.expert-card__topics span {
    padding: 6px 8px;
    border: 1px solid #edd0a0;
    border-radius: 999px;
    color: #865023;
    font-size: 11px;
    font-weight: 800;
}

.expert-card__link {
    width: max-content;
    margin-top: 8px;
    color: #b70710;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.expert-process {
    padding: 44px 0 66px;
    border-top: 1px solid #ead2ad;
    background: #fff;
}

.expert-process__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: start;
}

.expert-process h2 {
    max-width: 560px;
    margin: 12px 0 0;
    color: #4d2418;
    font-family: var(--mmtl-font-ui);
    font-size: 34px;
    line-height: 1.15;
}

.expert-process ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: expert-process;
}

.expert-process li {
    counter-increment: expert-process;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 18px;
    border: 1px solid #ead2ad;
    border-radius: 18px;
    background: #fffaf2;
}

.expert-process li::before {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #b70710;
    color: #ffd66d;
    content: counter(expert-process, decimal-leading-zero);
    font-size: 12px;
    font-weight: 900;
}

.expert-process li strong,
.expert-process li span {
    grid-column: 2;
}

.expert-process li strong {
    color: #4d2418;
}

.expert-process li span {
    color: #73574a;
    line-height: 1.6;
}

body.has-consult-dialog {
    overflow: hidden;
}

.consult-dialog {
    width: min(900px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: transparent;
    color: #4d2a1e;
    overflow: hidden;
    box-shadow: 0 32px 90px rgba(55, 18, 7, .34);
}

.consult-dialog::backdrop {
    background: rgba(48, 17, 10, .68);
    backdrop-filter: blur(6px);
}

.consult-dialog__shell {
    position: relative;
    display: grid;
    grid-template-columns: 36% 64%;
    min-height: 570px;
    background: #fffaf2;
}

.consult-dialog__close {
    position: absolute;
    z-index: 4;
    top: 14px;
    right: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid #ecd6b8;
    border-radius: 50%;
    background: #fff;
    color: #7a4a32;
    font-size: 25px;
    cursor: pointer;
}

.consult-dialog__aside {
    position: relative;
    overflow: hidden;
    padding: 56px 34px 38px;
    background: linear-gradient(145deg, #9f0710, #6e0308);
    color: #ffecc7;
}

.consult-dialog__mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin-bottom: 30px;
    border-radius: 50%;
    background: #f7c54a;
    color: #97070f;
    font-size: 24px;
}

.consult-dialog__eyebrow {
    margin: 0 0 10px;
    color: #f7ce6b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.consult-dialog__aside h2 {
    margin: 0 0 17px;
    color: #fff;
    font-family: var(--mmtl-font-ui);
    font-size: 29px;
    line-height: 1.2;
}

.consult-dialog__aside > p:not(.consult-dialog__eyebrow) {
    margin: 0;
    color: #f2d8c5;
    font-size: 13px;
    line-height: 1.7;
}

.consult-dialog__aside ul {
    display: grid;
    gap: 11px;
    margin: 30px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    list-style: none;
}

.consult-dialog__aside li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 700;
}

.consult-dialog__aside li span {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #ffd66b;
}

.consult-dialog__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 48px;
    background: linear-gradient(180deg, #fffdf8, #fff8ec);
}

.consult-dialog__heading > span {
    display: block;
    margin-bottom: 7px;
    color: #aa0b14;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.consult-dialog__heading h2 {
    margin: 0 0 8px;
    font-family: var(--mmtl-font-ui);
    font-size: 28px;
}

.consult-dialog__heading p {
    margin: 0;
    color: #8a6756;
    font-size: 12px;
}

.consult-form {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.consult-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.consult-form label {
    display: grid;
    gap: 6px;
}

.consult-form label > span {
    color: #6b4532;
    font-size: 11px;
    font-weight: 800;
}

.consult-form label em {
    color: #ad0913;
    font-style: normal;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #ead4b5;
    border-radius: 10px;
    background: #fff;
    color: #4f372c;
    font: inherit;
    font-size: 12px;
    outline: none;
}

.consult-form input,
.consult-form select {
    height: 42px;
}

.consult-form textarea {
    min-height: 74px;
    resize: vertical;
}

.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
    border-color: #ad0913;
    box-shadow: 0 0 0 3px rgba(173, 9, 19, .09);
}

.consult-form__honeypot {
    position: absolute !important;
    left: -9999px !important;
}

.consult-form__submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 11px 15px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #a80711, #c90b16);
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.consult-form__submit:disabled {
    opacity: .65;
}

.consult-form__privacy {
    margin: 0;
    color: #9b8071;
    font-size: 9px;
    text-align: center;
}

.consult-form__status {
    display: none;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
}

.consult-form__status:not(:empty) {
    display: block;
}

.consult-form__status.is-success {
    background: #edf8ef;
    color: #28643a;
}

.consult-form__status.is-error {
    background: #fff0ee;
    color: #9d1c23;
}

@media (max-width: 980px) {
    .expert-archive-hero__grid,
    .expert-process__grid {
        grid-template-columns: 1fr;
    }

    .expert-directory__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .expert-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .consult-dialog {
        width: min(520px, calc(100vw - 20px));
        overflow: auto;
    }

    .consult-dialog__shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .consult-dialog__aside {
        padding: 24px 58px 21px 23px;
    }

    .consult-dialog__mark {
        width: 38px;
        height: 38px;
        margin-bottom: 15px;
    }

    .consult-dialog__aside h2 {
        font-size: 23px;
    }

    .consult-dialog__aside ul {
        display: none;
    }

    .consult-dialog__content {
        padding: 25px 21px;
    }

    .consult-dialog__heading h2 {
        font-size: 24px;
    }
}

@media (max-width: 680px) {
    .expert-archive-hero {
        padding: 26px 0 38px;
    }

    .expert-archive-hero h1 {
        font-size: 38px;
    }

    .expert-archive-stats div,
    .expert-card:first-child,
    .expert-directory__grid,
    .expert-process li {
        grid-template-columns: 1fr;
    }

    .expert-card:first-child {
        display: block;
    }

    .expert-card__media img,
    .expert-card__media > span {
        min-height: 280px;
    }

    .expert-process li strong,
    .expert-process li span {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .consult-form__row {
        grid-template-columns: 1fr;
    }

    .consult-dialog__content {
        padding-inline: 17px;
    }
}
