:root {
    --helin: #6BC2C3;
    --helin-soft: #97d5d4;
    --white: #ffffff;
    --text: #102d44;
    --muted: #6c7f8f;
    --line: #dceced;
    --bg: #fbfdfd;
    --card: #ffffff;
    --shadow: 0 16px 38px rgba(16,45,68,.08);
    --shadow-soft: 0 8px 22px rgba(16,45,68,.055);
}

.page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 38px 86px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7c8d98;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 42px;
}

.breadcrumb strong {
    color: var(--helin);
}

.hero {
    display: grid;
    grid-template-columns: 1fr 560px;
    gap: 52px;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 42px 42px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e8eeee;
    margin-bottom: 28px;
    overflow: hidden;
    position: relative;
}

.hero:after {
    content: "";
    position: absolute;
    right: -100px;
    top: -130px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(151,213,212,.18);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--helin);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 22px;
    color: #12284a;
    font-size: 48px;
    line-height: 1.04;
    letter-spacing: -0.055em;
    max-width: 560px;
}

.hero p {
    color: #4f6170;
    font-size: 17px;
    line-height: 1.65;
    margin: 0 0 32px;
    max-width: 570px;
}

.meta-row {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 22px;
    border-right: 1px solid #dceced;
}

.meta-item:last-child {
    border-right: 0;
}

.meta-icon {
    width: 34px;
    height: 34px;
    color: var(--helin);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.meta-item small {
    display: block;
    color: #526878;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.meta-item strong {
    display: block;
    color: var(--helin);
    font-size: 14px;
    font-weight: 950;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-btn, .outline-btn {
    min-height: 46px;
    height: auto;
    padding: 10px 22px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
    text-decoration: none;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.primary-btn {
    border: 2px solid var(--helin);
    background: var(--helin);
    color: #fff;
    box-shadow: 0 13px 22px rgba(107,194,195,.22);
}

.primary-btn:hover {
    background: #fff;
    color: var(--helin);
}

.outline-btn {
    border: 2px solid var(--helin);
    background: #fff;
    color: var(--helin);
}

.outline-btn:hover {
    background: var(--helin);
    color: #fff;
}

.case-photo-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.clinical-photo {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(16,45,68,.16);
    background: #fff;
}

.case-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}

.case-photo-placeholder {
    width: 100%;
    min-height: 280px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(107,194,195,.14), rgba(151,213,212,.22));
}

.tabs-wrapper {
    position: relative;
}

.tabs {
    background: #fff;
    border: 1px solid #e8eeee;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 0;
    padding: 0 28px;
    margin-bottom: 26px;
    overflow: auto;
}

@media (max-width: 1023px) {
    .tabs-scroll-hint {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 48px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 10px;
        background: linear-gradient(to right, transparent, #fff 70%);
        pointer-events: none;
        z-index: 2;
        color: #9ca3af;
        font-size: 11px;
        opacity: 0.7;
        transition: opacity .25s;
        border-radius: 0 10px 10px 0;
    }

    .tabs-scroll-hint.hidden {
        opacity: 0;
    }
}

@media (min-width: 1024px) {
    .tabs-scroll-hint {
        display: none;
    }
}

.tab {
    height: 64px;
    min-width: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #23384a;
    font-size: 14px;
    font-weight: 850;
    position: relative;
    text-decoration: none;
    cursor: pointer;
}

.tab.active {
    color: var(--helin);
}

.tab.active:after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 4px;
    background: var(--helin);
    border-radius: 999px 999px 0 0;
}

.tab:hover {
    color: var(--helin);
}

.tab-panels {
    min-width: 0;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 22px;
    align-items: start;
    margin-bottom: 26px;
}

.case-card {
    background: #fff;
    border: 1px solid #e8eeee;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    padding: 34px 38px;
}

.case-card h2 {
    margin: 0 0 18px;
    font-size: 28px;
    letter-spacing: -0.035em;
    color: #172b49;
}

.case-card p {
    margin: 0 0 22px;
    color: #566a78;
    font-size: 15px;
    line-height: 1.7;
}

.case-card h3 {
    margin: 28px 0 14px;
    color: var(--helin);
    font-size: 17px;
    font-weight: 950;
}

.case-card ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    color: #394f5e;
    font-size: 14px;
}

.case-card li {
    position: relative;
    padding-left: 22px;
    line-height: 1.5;
}

.case-card li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--helin);
}

.case-detail-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 22px;
    display: block;
    box-shadow: var(--shadow-soft);
}

.case-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
    width: 100%;
}

.case-img {
    flex: 1 1 calc((100% - 28px) / 3);
    min-width: 220px;
    padding: 0;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
    box-shadow: 0 2px 8px rgba(16,45,68,.08);
    transition: transform .2s, box-shadow .2s;
    position: relative;
}

.case-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16,45,68,.12);
}

.case-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.case-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 40, 74, .94);
    padding: 16px;
}

.case-lightbox[hidden] {
    display: none;
}

.case-lightbox__frame {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.case-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: translate(var(--pan-x, 0px), var(--pan-y, 0px)) scale(var(--zoom-scale, 1));
    transition: transform .15s ease-out;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.case-lightbox__image.is-zoomed {
    cursor: grab;
}

.case-lightbox__image.is-grabbing {
    cursor: grabbing;
}

.case-lightbox__nav,
.case-lightbox__close {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .92);
    color: #123F4A;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .2);
    cursor: pointer;
    transition: background .2s, color .2s;
}

.case-lightbox__nav {
    top: 50%;
    width: 2.75rem;
    height: 2.75rem;
    transform: translateY(-50%);
    font-size: 1rem;
}

.case-lightbox__nav--prev { left: max(1rem, env(safe-area-inset-left)); }
.case-lightbox__nav--next { right: max(1rem, env(safe-area-inset-right)); }

.case-lightbox__close {
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    line-height: 1;
}

.case-lightbox__nav:hover,
.case-lightbox__close:hover {
    background: #fff;
    color: #4DA9AA;
}

.case-lightbox__nav[hidden],
.case-lightbox__close[hidden] {
    display: none;
}

.case-lightbox__hint {
    position: absolute;
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 12px;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 639px) {
    .case-lightbox {
        padding: 12px;
    }

    .case-lightbox__nav {
        width: 2.25rem;
        height: 2.25rem;
    }

    .case-lightbox__nav--prev { left: .5rem; }
    .case-lightbox__nav--next { right: .5rem; }
    .case-lightbox__close { top: .5rem; right: .5rem; }
    .case-lightbox__hint { font-size: 10px; padding: 4px 10px; }
}

.share-card, .advisor-card {
    background: #fff;
    border: 1px solid #e8eeee;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    padding: 24px;
    margin-bottom: 18px;
}

.share-card h3, .advisor-card h3 {
    margin: 0 0 20px;
    color: #172b49;
    font-size: 15px;
    font-weight: 950;
}

.share-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.share-header h3 {
    margin: 0;
}

.share-copy {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--helin);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background .2s;
}

.share-copy:hover {
    background: #eaf8f8;
}

.share-copy .tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #123f4a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    pointer-events: none;
}

.share-copy .tooltip.show {
    opacity: 1;
    visibility: visible;
}

.advisor-card {
    background: linear-gradient(135deg,#f7ffff,#fff);
}

.advisor-head {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 20px;
}

.advisor-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #dff5f5;
    color: #1b7b88;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 20px rgba(107,194,195,.16);
}

.advisor-card p {
    margin: 0;
    color: #526878;
    font-size: 13px;
    line-height: 1.55;
}

.advisor-btn {
    width: 100%;
    min-height: 46px;
    height: auto;
    border: 2px solid var(--helin);
    border-radius: 8px;
    background: var(--helin);
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(107,194,195,.22);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.advisor-btn:hover {
    background: #fff;
    color: var(--helin);
}

.advisor-btn .material-icons {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.bottom-cta {
    background: #f7ffff;
    border: 1px solid #dceced;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 26px 34px;
    display: grid;
    grid-template-columns: 82px 1fr auto;
    align-items: center;
    gap: 28px;
}

.bottom-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #dff5f5;
    color: #153d50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 12px 22px rgba(107,194,195,.14);
}

.bottom-cta h2 {
    margin: 0 0 8px;
    font-size: 23px;
    letter-spacing: -0.025em;
    color: #172b49;
}

.bottom-cta p {
    margin: 0;
    color: #6a7c89;
    font-size: 15px;
}

.bottom-cta button {
    width: 240px;
    min-height: 48px;
    height: auto;
    border: 0;
    border-radius: 8px;
    background: var(--helin);
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.bottom-cta button:hover {
    background: #2aa8a8;
}

.bottom-cta .advisor-btn {
    width: auto;
    min-width: 280px;
    min-height: 54px;
    height: auto;
    padding: 12px 36px;
    font-size: 16px;
    white-space: normal;
}

/* Responsive */
@media(max-width: 1120px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .bottom-cta {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 18px;
    }

    .bottom-icon {
        margin: 0 auto;
    }

    .bottom-cta button,
    .bottom-cta .advisor-btn {
        width: 100%;
        min-width: auto;
        padding: 12px 20px;
    }
}

@media(max-width: 720px) {
    .page {
        padding: 24px 16px 56px;
    }

    .breadcrumb {
        margin-bottom: 26px;
    }

    .hero {
        padding: 26px 20px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 15px;
    }

    .case-photo-wrapper {
        max-width: 100%;
    }

    .case-card {
        padding: 24px 20px;
    }

    .case-card h2 {
        font-size: 24px;
    }

    .case-img {
        flex-basis: 100%;
    }

    .meta-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .meta-item {
        border-right: 0;
        padding-right: 0;
    }

    .share-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .bottom-cta {
        padding: 22px 20px;
    }

    .bottom-cta h2 {
        font-size: 20px;
    }

    .bottom-cta p {
        font-size: 14px;
    }
}
