/* Mammology center page in the shared clinic layout. */
.mammology-center-page {
    --center-line: #373a42;
    --center-gold: #c8a254;
    color: #e9e9e9;
}

.mammology-center-layout a:any-link,
.mammology-center-layout a:any-link:hover {
    text-decoration: none;
}

.mammology-center-page .hair-card-grid {
    align-items: start;
}

.mammology-center-page .hair-info-card {
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid #303238;
    border-radius: 12px;
}

.mammology-center-page .hair-section-lead {
    max-width: 840px;
    color: #b9bbc1;
}

.center-layout > .mammology-center-page {
    width: calc(100% - var(--aside-width));
    margin-left: var(--aside-width);
    padding: 30px clamp(12px, 4vw, 60px) 52px;
    container-type: inline-size;
}

.mammology-center-layout .center-navigation {
    display: flex;
}

.center-navigation .svg-icon_nav {
    flex-shrink: 0;
}

.center-navigation > a[aria-current="location"] {
    background-color: #1e1f24;
}

.center-navigation-divider {
    flex-shrink: 0;
    height: 1px;
    margin: 10px 0;
    background-color: var(--main-border-color);
}

.center-navigation-title {
    flex-shrink: 0;
    margin: 0;
    padding: 6px 10px 14px;
    color: #c8a254;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.mammology-center-page :focus-visible,
.center-navigation :focus-visible,
header :focus-visible,
footer :focus-visible,
.mobile-fixed-button :focus-visible {
    outline: 2px solid #c8a254;
    outline-offset: 3px;
}

.mammology-center-page [id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.mammology-center-page .btn {
    box-sizing: border-box;
    height: auto;
    min-height: 46px;
    max-width: 100%;
    font-family: inherit;
    line-height: 1.35;
    white-space: normal;
    padding-block: 8px;
}

.center-intro {
    display: grid;
    min-width: 0;
    gap: clamp(24px, 3vw, 40px);
}

.center-banner .item {
    min-height: clamp(440px, 41vw, 530px);
    padding: 46px clamp(24px, 4vw, 60px) clamp(34px, 4vw, 54px);
    align-items: flex-start;
}

.center-banner .item::before {
    background: linear-gradient(90deg, rgba(16, 17, 20, .88), rgba(16, 17, 20, .71) 53%, rgba(16, 17, 20, .42));
}

.center-banner .slider-background {
    object-position: 67% center;
}

.center-banner h1 {
    color: #fff;
    text-align: left;
    text-wrap: balance;
    font-size: clamp(33px, 3.7vw, 56px);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -.025em;
}

.center-banner .slider-description {
    max-width: 690px;
    margin-top: 16px;
}

.center-banner .slider-description p {
    text-align: left;
    font-size: clamp(15px, 1.3vw, 18px);
}

.center-banner-promise {
    margin-top: 24px;
    color: #fff;
    font-size: clamp(19px, 2.1vw, 28px);
    font-weight: 600;
    line-height: 1.35;
}

.center-banner-path {
    margin-top: 8px;
    color: #c8a254;
    text-align: left;
    font-size: clamp(16px, 2vw, 23px);
    line-height: 1.4;
}

.center-banner .slider-button-group {
    margin-top: 20px;
    justify-content: flex-start;
}

.center-banner .slider-button-group .btn {
    padding-block: 8px;
}

.center-hero-services {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(12px, 1.2vw, 18px);
    padding: 0;
    margin: 0;
    list-style: none;
}

.center-hero-services li {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: clamp(10px, 1.2vw, 14px) 8px;
    border: 1px solid var(--center-line);
    border-radius: 8px;
    background-color: #1c1e23;
    line-height: 1.5;
    text-align: center;
}

.center-hero-services li > span {
    font-size: clamp(11px, 9cqi, 14px);
    white-space: nowrap;
}

.center-hero-services svg {
    flex: 0 0 22px;
    color: var(--center-gold);
}

.center-direction-grid .direction-card,
.center-doctor {
    position: relative;
    isolation: isolate;
}

.center-direction-grid .direction-list_title a::after,
.center-doctor-profile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.center-direction-grid .direction-list .btn,
.center-doctor-booking .btn {
    position: relative;
    z-index: 2;
}

.center-directions .center-direction-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.center-direction-grid .direction-card {
    width: 100%;
    min-height: 178px;
}

.center-direction-grid .center-direction-image {
    display: block;
    width: clamp(86px, 11vw, 160px);
    height: auto;
    min-width: 0;
    flex: 0 0 auto;
    object-fit: cover;
    object-position: 50% 50%;
}

.center-direction-grid .center-direction-portrait {
    object-position: 50% 34%;
}

.center-direction-grid .direction-card .direction-list {
    width: auto;
    min-width: 0;
    padding: clamp(14px, 2vw, 26px);
    padding-bottom: clamp(12px, 1.5vw, 20px);
}

.center-direction-grid .direction-card .direction-list_title {
    margin-bottom: 12px;
}

.center-direction-grid .direction-card .direction-list_title a {
    font-size: clamp(17px, 1.55vw, 24px);
    line-height: 1.25;
}

.center-direction-grid .direction-card .direction-list a {
    width: auto;
    height: auto;
}

.center-direction-grid .direction-card .direction-list_link {
    margin-bottom: 16px;
    line-height: 1.5;
}

.center-direction-grid a:hover {
    color: #e0bc72;
}

.center-direction-grid .direction-list .btn {
    align-self: flex-start;
    margin-top: auto;
    font-size: 14px;
    padding: 8px 12px;
}

.center-care-route {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.center-care-route > li {
    position: relative;
    display: flex;
}

.center-care-route > li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(50% - 4px);
    right: -15px;
    width: 7px;
    height: 7px;
    border: solid #8e794b;
    border-width: 1px 1px 0 0;
    transform: rotate(45deg);
}

.center-care-route a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid var(--center-line);
    border-radius: 8px;
    background: #1c1e23;
    color: #e9e9e9;
    font-size: 14px;
    line-height: 1.4;
}

.center-care-route a:hover {
    border-color: #8e794b;
}

.center-service-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--center-gold);
}

.center-doctor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
}

.center-doctor-grid {
    align-items: stretch;
}

.center-consultation-info {
    display: grid;
    gap: 28px;
}

.center-visit-photo {
    display: none;
}

@media (min-width: 1001px) {
    .center-visit {
        display: grid;
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        align-items: start;
        gap: clamp(16px, 2.4cqw, 28px);
    }

    .center-visit-photo {
        display: block;
        box-sizing: border-box;
        width: 100%;
        height: auto;
        max-height: 420px;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        border: 1px solid var(--center-line);
        border-radius: 12px;
    }
}

.center-reasons h3 {
    margin-bottom: 16px;
    color: #fff;
    font-size: clamp(20px, 2.4cqw, 26px);
    font-weight: 500;
    line-height: 1.3;
}

.center-reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.7cqw, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.center-reasons-grid > li {
    overflow: hidden;
    border: 1px solid var(--center-line);
    border-radius: 12px;
    background: #1c1e23;
}

.center-reasons-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.center-reasons-grid p {
    padding: clamp(12px, 1.4cqw, 16px);
    color: #e9e9e9;
    font-size: clamp(14px, 1.5cqw, 16px);
    line-height: 1.5;
}

.center-reasons-note {
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid #6b512d;
    border-radius: 8px;
    background: #30271b;
    color: #f1e6d4;
    font-size: 15px;
    line-height: 1.6;
}

.center-reasons-note strong {
    color: #f4cb77;
    font-weight: 600;
}

.center-actions-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.center-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.center-card .hair-check-list {
    margin: 0 0 12px;
}

.center-card > .center-details:first-of-type {
    margin-top: 14px;
}

.center-card-bottom {
    align-self: flex-start;
    margin-top: 14px;
}

.center-doctor {
    display: grid;
    grid-template-columns: clamp(96px, 9vw, 144px) minmax(0, 1fr);
    align-items: start;
    grid-template-rows: auto 1fr auto;
    gap: 18px 24px;
    padding: 28px;
    padding-bottom: 20px;
    border: 1px solid #373a42;
    border-radius: 12px;
    background: #1c1e23;
}

.center-doctor > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
}

.center-doctor-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: center;
    gap: 9px;
    font-size: 15px;
    line-height: 1.55;
}

.center-doctor-content h3 {
    color: #fff;
    font-size: clamp(20px, 1.75vw, 26px);
    line-height: 1.3;
    font-weight: 500;
}

.center-doctor-description {
    grid-column: 1 / -1;
    color: #b9bbc1;
    font-size: 15px;
    line-height: 1.65;
}

.center-doctor-description > p + p {
    margin-top: 6px;
}

.center-doctor-profile {
    color: inherit;
}

.center-card p.center-price,
.center-doctor .center-price,
.center-service-actions .center-price {
    color: #c8a254;
    font-size: 22px;
    font-weight: 600;
}

.center-price span {
    color: #e9e9e9;
    font-size: 14px;
    font-weight: 400;
}

.center-text-link {
    color: #e0bc72;
    font-size: inherit;
}

.center-text-link:hover {
    color: #f4dca9;
}

.center-doctor-booking {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 16px;
    border-top: 1px solid #373a42;
}

.center-doctor-booking .center-price span {
    display: block;
    margin-top: 4px;
}

.center-services {
    display: grid;
    gap: 24px;
}

.center-service {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(28px, 5vw, 64px);
    padding: clamp(24px, 3vw, 40px);
    padding-bottom: clamp(18px, 2vw, 26px);
    border: 1px solid #303238;
    border-radius: 12px;
    background: #101114;
}

.center-service-overview,
.center-service-details {
    min-width: 0;
}

.center-service-overview h3 {
    margin-bottom: 16px;
    color: #fff;
    font-size: clamp(23px, 2.4vw, 30px);
    font-weight: 500;
    line-height: 1.25;
}

.center-service-overview > p {
    max-width: 430px;
    color: #b9bbc1;
    font-size: 16px;
    line-height: 1.65;
}

.center-service-actions {
    display: grid;
    justify-items: start;
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--center-line);
    font-size: 15px;
    line-height: 1.5;
}

.center-service-actions > p:not(.center-price) {
    color: #b9bbc1;
}

#diagnostics .center-price {
    line-height: 1.25;
}

#diagnostics .center-price span {
    display: block;
    margin-bottom: 4px;
    color: #b9bbc1;
    line-height: 1.4;
}

.center-service-actions .btn {
    width: 100%;
    min-height: 48px;
    padding-inline: 12px;
    font-size: 16px;
}

.center-comparison-section {
    margin-top: 24px;
}

.center-comparison-section h3 {
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 500;
    line-height: 1.35;
}

.center-comparison-wrap {
    overflow: hidden;
    border: 1px solid var(--center-line);
    border-radius: 8px;
    background: #101114;
}

.center-comparison {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.center-comparison th,
.center-comparison td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
}

.center-comparison th {
    background: #25272d;
}

.center-comparison thead th:last-child {
    color: var(--center-gold);
}

.center-comparison tbody tr {
    border-top: 1px solid var(--center-line);
}

.center-comparison-result {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.center-comparison-mark {
    flex: 0 0 18px;
    font-family: system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.center-comparison-mark_drawback {
    color: #ee9189;
}

.center-comparison-mark_neutral {
    color: #a0a2a9;
}

.center-comparison-mark_advantage {
    color: #82d4a0;
}

.center-treatment-options {
    margin-top: 24px;
}

.center-treatment-options > h3,
.center-treatment-options h4 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
}

.center-section-intro > p + p,
.center-card > p + p {
    margin-top: 10px;
}

.center-photo-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(18px, 3cqw, 40px);
    margin-bottom: 24px;
}

.center-photo-intro .hair-section-lead {
    margin: 0;
}

.center-section-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.15;
    max-height: 236px;
    object-fit: cover;
    border: 1px solid var(--center-line);
    border-radius: 12px;
}

.center-service-photo {
    max-height: 216px;
    margin-bottom: 4px;
}

.center-ultrasound-photo {
    object-position: center 33%;
}

.center-details > ul {
    margin: 0 0 14px;
}

.center-details {
    display: block;
    width: 100%;
}

.center-details + .center-details {
    border-top: 1px solid #373a42;
}

.center-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    list-style: none;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

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

.center-details summary::after {
    content: "";
    flex: 0 0 18px;
    height: 18px;
    background: url("/public/user/img/icons/icon-arrow-up-header.svg") center / 16px no-repeat;
}

.center-details[open] summary::after {
    transform: rotate(180deg);
}

.center-details > p {
    margin: 0;
    padding: 0 30px 18px 0;
    color: #b9bbc1;
    font-size: 15px;
    line-height: 1.7;
    background: transparent;
}

.center-service-details .center-details:first-child summary {
    padding-top: 0;
}

.mammology-center-page .mammo-price-list {
    padding: 16px;
}

.mammology-center-page .mammo-price-row dt,
.center-section-note {
    color: #e9e9e9;
    font-size: 16px;
    line-height: 1.55;
}

.mammology-center-page .mammo-price-row dd {
    color: #c8a254;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.center-section-note {
    margin-top: 14px;
}

.center-faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 8px 28px;
    border: 1px solid #303238;
    border-radius: 12px;
    background: #101114;
}

.center-faq summary {
    font-size: 17px;
    padding: 14px 0;
}

.center-appointment .form-layout {
    background-position: center;
    gap: clamp(20px, 3vw, 36px);
}

.center-booking-copy {
    display: grid;
    gap: 16px;
    min-width: 0;
    max-width: 650px;
}

.center-booking-copy h2 {
    color: #fff;
    font-weight: 400;
    font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.2;
}

.center-booking-copy p {
    color: #e9e9e9;
    line-height: 1.6;
}

.center-booking-copy > .btn {
    justify-self: start;
}

.center-appointment-contact {
    display: grid;
    gap: 14px;
    padding: 20px;
    width: 38%;
    max-width: 370px;
    min-width: min(100%, 230px);
    box-sizing: border-box;
    border-radius: 8px;
    background: rgba(16, 17, 20, .82);
}

.center-appointment-contact h3 {
    font-size: 20px;
    font-weight: 500;
}

.center-appointment-contact p {
    font-size: 15px;
    line-height: 1.5;
}

.center-appointment-contact a[href^="tel:"] {
    color: #fff;
    font-size: 18px;
}

/* The shell uses the clinic's header and footer class names. */
.header-mobile-menu,
.header-mobile-search {
    border: 0;
}

.header-nav .nav-link_multi.active-array .nav-link_hidden {
    display: flex;
}

@container (max-width: 820px) {
    .center-hero-services {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
    }

    .center-doctor-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@container (max-width: 680px) {
    .center-photo-intro {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .center-section-photo {
        max-height: 210px;
    }
}

@media (max-width: 1000px) {
    .center-layout > .mammology-center-page {
        width: 100%;
        margin-left: 0;
        padding-top: 12px;
        padding-bottom: 64px;
    }

    .center-banner .item {
        min-height: 420px;
    }
}

@media (max-width: 760px) {
    .center-service,
    .mammology-center-page .hair-card-grid,
    .mammology-center-page .mammo-price-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .center-banner .item {
        padding: 30px 20px 34px;
    }

    .center-banner h1 {
        font-size: clamp(22px, 7vw, 38px);
    }

    .center-banner .item::before {
        background: linear-gradient(180deg, rgba(16, 17, 20, .72), rgba(16, 17, 20, .84));
    }

    .center-appointment-contact {
        width: 100%;
        max-width: none;
    }

    .mammology-center-page .mammo-price-row {
        gap: 8px;
    }

    .mammology-center-page .mammo-price-row dd {
        text-align: left;
    }

    .center-faq {
        padding: 10px 16px;
    }

    .center-service {
        gap: 28px;
    }

    .center-service-details {
        padding-top: 20px;
    }

}

@media (max-width: 640px) {
    .center-care-route {
        grid-template-columns: minmax(0, 1fr);
    }

    .center-care-route > li:not(:last-child)::after {
        top: calc(100% + 8px);
        right: auto;
        left: calc(50% - 4px);
        transform: rotate(135deg);
    }

    .center-comparison {
        display: flex;
        flex-direction: column;
    }

    .center-comparison :is(thead, tbody, tr) {
        display: contents;
    }

    .center-comparison td,
    .center-comparison th:last-child {
        border-top: 1px solid var(--center-line);
    }

    .center-comparison th:last-child {
        order: 1;
    }

    .center-comparison td:last-child {
        order: 2;
    }

    .center-actions-row .btn {
        flex: 1 1 0;
        min-width: 0;
        padding-inline: 8px;
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .center-directions .center-direction-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .center-direction-grid .direction-card {
        min-height: 146px;
        flex-direction: column;
    }

    .center-direction-grid .center-direction-image {
        width: 100%;
        height: 140px;
    }

    .center-direction-grid .center-direction-portrait {
        object-position: 50% 10%;
    }
}

@media (max-width: 500px) {
    .center-hero-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .center-hero-services li:last-child {
        grid-column: 1 / -1;
    }

    .center-hero-services li:last-child br {
        display: none;
    }

    .center-doctor {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 18px;
        padding: 20px;
    }

    .center-doctor > img {
        width: 96px;
    }

    .center-doctor-content h3 {
        font-size: 20px;
    }

    .center-doctor-booking .btn {
        width: 100%;
    }
}
