/* Public doctor profiles */
.mk-public-body {
    background: #fff;
}

.mk-site {
    --mk-gutter: clamp(20px, 5vw, 72px);
    --mk-section-space: clamp(56px, 6.8vw, 98px);
    color: var(--ink);
}

.mk-site .mk-main {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.mk-site [hidden] {
    display: none;
}

.mk-wrap {
    width: min(100% - var(--mk-gutter) * 2, 1160px);
    margin-inline: auto;
}

.mk-site :is(h1, h2, h3, p) {
    margin: 0;
}

.mk-site a {
    color: inherit;
}

.mk-site a:focus-visible,
.mk-site button:focus-visible,
.mk-site summary:focus-visible {
    outline: 3px solid #a2b9c9;
    outline-offset: 4px;
}

.mk-site svg {
    display: block;
    flex: none;
    width: 19px;
    height: 19px;
}

.mk-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: block;
    height: auto;
    padding: 0;
    border-bottom: 1px solid var(--line);
    background: #fffffff5;
    backdrop-filter: blur(14px);
}

.mk-nav-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 76px;
    padding-block: 10px;
}

.mk-identity {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.22;
}

.mk-identity strong,
.mk-caption strong {
    display: block;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.mk-identity small,
.mk-caption small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .73rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.mk-monogram,
.mk-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: none;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 750;
}

.mk-monogram {
    background: var(--primary);
    color: #fff;
    font-size: 1.08rem;
}

.mk-nav nav {
    display: flex;
    flex: none;
    align-items: center;
    gap: clamp(14px, 2.6vw, 27px);
    color: var(--muted);
    font-size: .88rem;
    font-weight: 650;
}

.mk-nav nav > a:not(.mk-button):hover {
    color: var(--primary);
}

.mk-site .mk-button,
.mk-site .mk-outline {
    display: inline-flex;
    min-height: 46px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-size: .88rem;
    font-weight: 725;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.mk-site .mk-button:hover {
    background: var(--primary-hover);
}

.mk-site .mk-outline {
    border-color: #d5dde2;
    background: #ffffffa8;
    color: var(--ink);
}

.mk-site .mk-outline:hover {
    border-color: #b4c4d0;
    background: #fff;
    color: var(--primary);
}

.mk-site .mk-menu {
    display: none;
    width: 44px;
    height: 44px;
    flex: none;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.mk-main [id] {
    scroll-margin-top: 90px;
}

.mk-hero {
    padding-block: clamp(45px, 6vw, 86px) clamp(62px, 7.2vw, 100px);
    border-bottom: 1px solid #eaeef1;
    background: radial-gradient(ellipse at 92% 5%, #e9eef2 0%, #f4f6f8 42%, #fafbfc 82%);
}

.mk-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(28px, 7vw, 99px);
}

.mk-site .mk-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-size: .73rem;
    font-weight: 750;
    line-height: 1.45;
    letter-spacing: .13em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.mk-kicker i {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px var(--mint);
}

.mk-site .mk-hero h1 {
    margin-block: 20px 16px;
    color: var(--dark);
    font-size: clamp(2.8rem, 5.8vw, 5.25rem);
    font-weight: 760;
    letter-spacing: -.065em;
    line-height: 1.04;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.mk-site .mk-lead {
    max-width: 33rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.16rem);
    line-height: 1.72;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.mk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.mk-portrait {
    position: relative;
    margin: 0;
}

.mk-portrait > img,
.mk-empty {
    display: block;
    width: 100%;
    height: clamp(330px, 38vw, 492px);
    border: 1px solid #dee6ec;
    border-radius: 30px;
    background: #e5ebf0;
    object-fit: cover;
    object-position: center 27%;
}

.mk-empty {
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 19% 13%, #f9fafb 0%, #ecf1f400 48%),
        linear-gradient(145deg, #eaeff3 22%, #dde5eb 100%);
}

.mk-empty::before,
.mk-empty::after {
    position: absolute;
    width: min(52vw, 270px);
    aspect-ratio: 1;
    border: 1px solid #f8fafbbf;
    border-radius: 50%;
    box-shadow: 0 0 0 27px #f8fafb52, 0 0 0 57px #f8fafb39;
    content: "";
}

.mk-empty::after {
    right: -23%;
    bottom: -52%;
}

.mk-empty > span {
    z-index: 1;
    color: #4a6375;
    font-size: clamp(5rem, 11vw, 9rem);
    font-weight: 720;
    line-height: 1;
}

.mk-caption {
    position: absolute;
    inset: auto 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 11px 13px;
    border: 1px solid #ebf0f3;
    border-radius: 15px;
    background: #ffffffed;
    box-shadow: 0 10px 30px #1d262d13;
    backdrop-filter: blur(12px);
}

.mk-strip {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 11px;
    margin-top: -31px;
}

.mk-strip a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 72px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px #20292f0a;
    transition: border-color .18s ease;
}

.mk-strip a:hover {
    border-color: #bbcbd6;
}

.mk-strip strong,
.mk-strip small {
    display: block;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.mk-strip strong {
    font-size: .9rem;
}

.mk-strip small {
    margin-top: 4px;
    color: var(--muted);
    font-size: .73rem;
}

.mk-strip a > svg {
    color: var(--primary);
}

.mk-section {
    padding-block: var(--mk-section-space);
}

.mk-site h2 {
    margin-block: 10px 18px;
    color: inherit;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 735;
    line-height: 1.1;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.mk-about,
.mk-contact,
.mk-book-grid,
.mk-faq {
    display: grid;
    grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
    gap: clamp(28px, 6vw, 84px);
    align-items: start;
}

.mk-about .mk-specialty {
    color: var(--primary);
    font-weight: 675;
}

.mk-prose {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.mk-services {
    background: var(--bg);
    border-block: 1px solid #edf0f2;
}

.mk-strip + .mk-services {
    margin-top: var(--mk-section-space);
}

.mk-service-grid,
.mk-gallery,
.mk-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: clamp(22px, 3.5vw, 37px);
}

.mk-service-grid article {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: clamp(19px, 2.3vw, 30px);
    border: 1px solid #e6eaec;
    border-radius: 19px;
    background: #fff;
}

.mk-service-grid article:nth-child(3n + 2) .mk-icon {
    background: var(--mint);
    color: var(--teal);
}

.mk-service-grid article:nth-child(3n) .mk-icon {
    background: #f1f4f6;
    color: #627684;
}

.mk-site .mk-service-grid h3,
.mk-site .mk-steps h3 {
    color: var(--ink);
    font-size: 1.12rem;
    font-weight: 725;
    letter-spacing: -.03em;
    line-height: 1.24;
    overflow-wrap: anywhere;
}

.mk-site .mk-service-grid h3 {
    margin-top: 4px;
}

.mk-service-grid p,
.mk-steps p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.mk-site .mk-service-grid a {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 9px;
    color: var(--primary);
    font-size: .79rem;
    font-weight: 725;
}

.mk-site .mk-service-grid a:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.mk-service-grid a svg {
    width: 15px;
    height: 15px;
}

.mk-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: 17px;
    background: var(--bg);
    color: var(--primary);
    cursor: zoom-in;
}

.mk-gallery-item > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.mk-gallery-item:hover > img {
    transform: scale(1.04);
}

.mk-gallery-item > span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
}

.mk-book {
    background: radial-gradient(ellipse at 88% 7%, #415461, transparent 64%), var(--dark);
    color: #fff;
}

.mk-book-grid {
    align-items: center;
}

.mk-book .mk-kicker {
    color: #cbd7e0;
}

.mk-book p {
    max-width: 25rem;
    color: #dee4e8;
    font-size: 1rem;
    line-height: 1.62;
}

.mk-book-grid > div > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 21px;
    color: #e1e8ee;
    font-size: .88rem;
    font-weight: 700;
}

.mk-book-grid > div > a:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.mk-form {
    min-width: 0;
    padding: clamp(20px, 4vw, 42px);
    border: 1px solid #edf0f2;
    border-radius: 21px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 18px 48px #11181d47;
}

.mk-form form {
    display: grid;
    gap: 14px;
    margin: 0;
}

.mk-form label {
    display: block;
    margin: 0;
    color: var(--ink);
    font-size: .86rem;
    font-weight: 680;
}

.mk-form :is(input:not([type="checkbox"], [type="hidden"]), select) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 6px 0 0;
}

.mk-form .mk-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    padding-block: 3px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 550;
    line-height: 1.45;
}

.mk-form input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--primary);
}

.mk-steps {
    padding: 0;
    list-style: none;
}

.mk-steps li {
    padding: 18px 8px 0 0;
    border-top: 1px solid var(--line);
}

.mk-steps b {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .85rem;
}

.mk-site .mk-steps p {
    margin-top: 6px;
}

.mk-faq {
    border-top: 1px solid var(--line);
}

.mk-faq details {
    border-bottom: 1px solid var(--line);
}

.mk-faq details:first-child {
    border-top: 1px solid var(--line);
}

.mk-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding-block: 10px;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.mk-faq summary::-webkit-details-marker {
    display: none;
}

.mk-faq summary::after {
    display: grid;
    flex: none;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    content: "+";
    font-weight: 500;
}

.mk-faq details[open] summary::after {
    content: "−";
}

.mk-faq details p {
    padding: 0 28px 16px 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
}

.mk-contact {
    padding: clamp(24px, 5vw, 63px);
    border: 1px solid #e8edf0;
    border-radius: 24px;
    background: #f6f8f9;
}

.mk-contact p,
.mk-contact-list small {
    color: var(--muted);
}

.mk-contact-list > :is(a, div) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 4px 10px;
    padding: 12px 0;
    border-bottom: 1px solid #e1e7ec;
}

.mk-contact-list small {
    grid-column: 1 / -1;
    font-size: .76rem;
    font-weight: 650;
}

.mk-contact-list strong {
    overflow-wrap: anywhere;
}

.mk-contact-list svg {
    color: var(--primary);
}

.mk-contact-list a:hover > strong {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.mk-footer {
    margin-top: var(--mk-section-space);
    padding: 0;
    border-top: 1px solid var(--line);
    background: var(--bg);
    color: var(--muted);
}

.mk-footer .mk-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 22px;
    min-height: 83px;
    padding-block: 16px;
    font-size: .8rem;
}

.mk-footer strong {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.mk-footer a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
}

.mk-footer a:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.mk-lightbox {
    max-width: 92vw;
    max-height: 87vh;
    padding: 0;
    border: 0;
    border-radius: 15px;
    background: var(--dark);
}

.mk-lightbox::backdrop {
    background: #1d262de8;
}

.mk-lightbox img {
    display: block;
    max-width: min(92vw, 1150px);
    max-height: 87vh;
    object-fit: contain;
}

.mk-lightbox button {
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

@media (max-width: 950px) {
    .mk-nav-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .mk-nav:not([data-menu-ready]) nav {
        flex-wrap: wrap;
        width: 100%;
        padding-bottom: 5px;
    }

    .mk-nav[data-menu-ready] .mk-menu {
        display: grid;
    }

    .mk-nav[data-menu-ready] nav {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        gap: 2px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 18px 42px #20292f25;
    }

    .mk-nav[data-menu-ready] nav.mk-open {
        display: grid;
    }

    .mk-nav nav > a:not(.mk-button) {
        padding: 9px 12px;
        border-radius: 7px;
    }

    .mk-nav nav > a:not(.mk-button):hover {
        background: var(--primary-soft);
    }
}

@media (max-width: 760px) {
    .mk-hero-inner,
    .mk-about,
    .mk-contact,
    .mk-book-grid,
    .mk-faq {
        grid-template-columns: minmax(0, 1fr);
    }

    .mk-site .mk-hero h1 {
        max-width: 15ch;
        font-size: clamp(2.7rem, 8.5vw, 4.15rem);
    }

    .mk-portrait > img,
    .mk-empty {
        height: clamp(275px, 73vw, 430px);
    }

    .mk-strip {
        margin-top: -22px;
    }

    .mk-service-grid,
    .mk-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mk-faq h2 {
        margin-bottom: 0;
    }
}

@media (max-width: 470px) {
    .mk-service-grid,
    .mk-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .mk-strip a {
        min-height: 65px;
    }

    .mk-portrait > img,
    .mk-empty {
        border-radius: 21px;
    }

    .mk-caption {
        inset: auto 10px 10px;
    }

    .mk-steps li {
        padding-top: 13px;
    }

    .mk-footer span {
        order: 3;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mk-site *,
    .mk-site *::before,
    .mk-site *::after {
        transition: none;
    }
}
