.clinic-faq-content,
.clinic-media-content,
.clinic-partners-content {
    background: #f6f9fb;
}

.clinic-faq-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    gap: 14px;
}

.clinic-faq-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce8ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 28px rgb(8 32 58 / 4%);
    scroll-margin-top: 150px;
}

.clinic-faq-item summary {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 16px;
    min-height: 78px;
    padding: 16px 22px;
    color: #08203a;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.65;
    cursor: pointer;
    list-style: none;
    overflow-wrap: anywhere;
}

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

.clinic-faq-item summary:hover {
    background: #f7fbfc;
}

.clinic-faq-item summary:focus-visible {
    outline: 3px solid #099ab4;
    outline-offset: -4px;
}

.clinic-faq-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #edf8fa;
    color: #087e94;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

.clinic-faq-item summary > i {
    color: #087e94;
    font-size: 20px;
    transition: transform .2s ease;
}

.clinic-faq-item[open] {
    border-color: #a9d1db;
}

.clinic-faq-item[open] summary > i {
    transform: rotate(45deg);
}

.clinic-faq-answer {
    margin: 0 22px 22px 80px;
    padding-top: 18px;
    border-top: 1px solid #e3edf2;
}

html[dir="rtl"] .clinic-faq-answer {
    margin-right: 80px;
    margin-left: 22px;
}

.page-empty-state {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-height: 330px;
    padding: 56px 24px;
    border: 1px dashed #b8cfd9;
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.page-empty-state > span {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: #edf8fa;
    color: #087e94;
    font-size: 29px;
}

.page-empty-state h2 {
    margin-bottom: 10px;
    color: #08203a;
    font-size: 1.3rem;
}

.page-empty-state p {
    max-width: 520px;
    margin-bottom: 22px;
    color: #617789;
    line-height: 1.8;
}

.media-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 640px;
    margin: 0 auto 34px;
    padding: 8px;
    border: 1px solid #dce8ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgb(8 32 58 / 5%);
}

.media-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 72px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: #08203a;
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.media-tab:hover {
    background: #f1f8fa;
}

.media-tab[aria-selected="true"] {
    border-color: #08203a;
    background: #08203a;
    color: #fff;
}

.media-tab:focus-visible {
    outline: 3px solid #099ab4;
    outline-offset: 3px;
}

.media-tab-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #edf8fa;
    color: #087e94;
    font-size: 20px;
    transition: background-color .2s, color .2s;
}

.media-tab[aria-selected="true"] .media-tab-icon {
    background: #087e94;
    color: #fff;
}

.media-tab-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.media-tab-text strong {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.media-tab-text span {
    color: #617789;
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}

.media-tab[aria-selected="true"] .media-tab-text span {
    color: #b1edf5;
}

.media-panel:focus-visible {
    outline: 3px solid #099ab4;
    outline-offset: 8px;
    border-radius: 12px;
}

.media-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 20px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dce8ee;
}

.media-panel-head h2 {
    margin: 0;
    color: #08203a;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.media-panel-head p {
    margin: 0;
    color: #617789;
    line-height: 1.7;
}

.video-player {
    margin-bottom: 22px;
    scroll-margin-top: 88px;
}

.video-player-frame {
    overflow: hidden;
    border-radius: 20px;
    background: #061626;
    aspect-ratio: 16 / 9;
}

.video-player-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.video-player h3 {
    margin: 14px 4px 0;
    color: #08203a;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.5;
}

.gallery-card--video.is-active {
    border-color: #087e94;
    box-shadow: 0 10px 30px rgb(8 126 148 / 16%);
}

.clinic-gallery--videos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card--video .gallery-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #08203a;
}

.gallery-card--video .gallery-frame img,
.gallery-card--video .gallery-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.gallery-card--video .gallery-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(8 32 58 / 0%) 40%, rgb(8 32 58 / 45%));
    pointer-events: none;
}

.gallery-card--video .gallery-play {
    z-index: 1;
    transition: transform .25s ease, background-color .25s;
}

.gallery-card--video:hover .gallery-play {
    background: #065b71;
    transform: scale(1.08);
}

.gallery-toolbar {
    margin-bottom: 22px;
}

.media-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-filter button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding-block: 8px;
    padding-inline: 16px 8px;
    border: 1px solid #cbdde6;
    border-radius: 100px;
    background: #fff;
    color: #40586b;
    font-size: .9rem;
    font-weight: 600;
}

.media-filter button span {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding-inline: 8px;
    border-radius: 100px;
    background: #edf4f7;
    color: #08203a;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

.media-filter button:hover,
.media-filter button.active {
    border-color: #087e94;
    background: #087e94;
    color: #fff;
}

.media-filter button:hover span,
.media-filter button.active span {
    background: rgb(255 255 255 / 18%);
    color: #fff;
}

.media-filter button:focus-visible {
    outline: 3px solid #099ab4;
    outline-offset: 3px;
}

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

.gallery-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce8ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgb(8 32 58 / 5%);
    color: #08203a;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.gallery-card:disabled {
    cursor: default;
}

.gallery-card:hover {
    border-color: #8fc4cf;
}

.gallery-card:focus-visible {
    outline: 3px solid #099ab4;
    outline-offset: 3px;
}

.gallery-card.is-hidden {
    display: none;
}

.gallery-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e7f3f6;
}

.gallery-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-card:hover .gallery-frame img {
    transform: scale(1.04);
}

.gallery-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e7f5f7, #f8fbfc);
    color: #79a5b5;
    font-size: 42px;
}

.gallery-zoom,
.gallery-play {
    position: absolute;
    display: grid;
    place-items: center;
    color: #fff;
}

.gallery-zoom {
    inset-block-end: 14px;
    inset-inline-end: 14px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgb(8 32 58 / 82%);
}

.gallery-play {
    inset: 0;
    width: 64px;
    height: 64px;
    margin: auto;
    border-radius: 50%;
    background: #087e94;
    box-shadow: 0 10px 24px rgb(8 32 58 / 22%);
    font-size: 18px;
}

.gallery-play i {
    margin-inline-start: 3px;
}

.gallery-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 18px;
}

.gallery-kind {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #087e94;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.gallery-meta strong {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.gallery-filter-empty {
    margin: 28px 0 0;
    padding: 28px;
    border: 1px dashed #b8cfd9;
    border-radius: 18px;
    background: #fff;
    color: #617789;
    text-align: center;
}

.gallery-viewer {
    width: min(1600px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    height: min(calc(100vh - 24px), calc(min(1600px, 100vw - 24px) * 9 / 16 + 110px));
    height: min(calc(100dvh - 24px), calc(min(1600px, 100vw - 24px) * 9 / 16 + 110px));
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: #08203a;
    color: #fff;
    overflow: hidden;
}

.gallery-viewer[open] {
    display: flex;
    flex-direction: column;
}

.gallery-viewer::backdrop {
    background: rgb(8 20 34 / 78%);
}

.gallery-viewer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 16px 16px 22px;
}

.gallery-viewer-bar h2 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.gallery-viewer-close,
.gallery-viewer-nav {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid #456575;
    background: transparent;
    color: #fff;
}

.gallery-viewer-close {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 20px;
}

.gallery-viewer-stage {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0 16px 18px;
}

.gallery-viewer-nav {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 22px;
}

.gallery-viewer-close:hover,
.gallery-viewer-nav:hover {
    border-color: #b1edf5;
    background: rgb(255 255 255 / 8%);
}

.gallery-viewer-frame {
    display: grid;
    place-items: center;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #061626;
    container-type: size;
}

.gallery-viewer-frame img,
.gallery-viewer-frame iframe {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border: 0;
    background: #000;
}

.gallery-viewer-frame iframe {
    width: min(100cqw, 100cqh * 16 / 9);
    height: auto;
    aspect-ratio: 16 / 9;
}

.gallery-viewer-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-viewer-frame [hidden] {
    display: none;
}

.clinic-partners-content .container {
    display: grid;
    gap: 24px;
}

.partner-card {
    display: grid;
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce8ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 30px rgb(8 32 58 / 4%);
}

.partner-identity {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 34px;
    border-inline-end: 1px solid #e2ecf1;
    background: #f8fbfc;
    text-align: center;
}

.partner-logo {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 170px;
    max-width: 100%;
    height: 130px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #dce8ee;
    border-radius: 18px;
    background: #fff;
}

.partner-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-logo > span {
    color: #7ca5b4;
    font-size: 42px;
}

.partner-identity h2 {
    margin-bottom: 12px;
    color: #08203a;
    font-size: 1.35rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.partner-identity .ui-text-link {
    justify-content: center;
}

.partner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(26px, 4vw, 46px);
}

.partner-description {
    max-width: 76ch;
}

.partner-media {
    overflow: hidden;
    width: 100%;
    max-width: 760px;
    margin-top: 24px;
    border-radius: 16px;
    background: #08203a;
}

.partner-media iframe,
.partner-media video,
.partner-media embed,
.partner-media object {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 260px;
    border: 0;
}

.error-section {
    display: grid;
    align-items: center;
    min-height: min(720px, calc(100vh - 100px));
    min-height: min(720px, calc(100dvh - 100px));
    padding: clamp(56px, 9vw, 110px) 0;
    background:
        radial-gradient(circle at 14% 20%, rgb(8 126 148 / 12%), transparent 30%),
        linear-gradient(145deg, #f7fbfc, #edf5f8);
}

.error-card {
    position: relative;
    overflow: hidden;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(34px, 7vw, 72px);
    border: 1px solid #d7e6ed;
    border-radius: 28px;
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 24px 70px rgb(8 32 58 / 10%);
    text-align: center;
}

.error-code {
    position: absolute;
    inset-block-start: -26px;
    inset-inline-end: -6px;
    color: rgb(8 126 148 / 6%);
    font-size: clamp(9rem, 24vw, 16rem);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.error-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 26px;
    border-radius: 22px;
    background: #08203a;
    color: #a5eaf3;
    font-size: 32px;
}

.error-card h1 {
    position: relative;
    margin-bottom: 16px;
    color: #08203a;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.error-card p {
    position: relative;
    max-width: 520px;
    margin: 0 auto 30px;
    color: #5b7182;
    font-size: 1rem;
    line-height: 1.85;
}

.error-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.ui-button--secondary {
    border: 1px solid #c4d9e2;
    background: #fff;
    color: #173f57;
}

.ui-button--secondary:hover {
    border-color: #087e94;
    background: #edf8fa;
    color: #065d70;
}

.certificate-detail-content {
    background: #f6f9fb;
}

.certificate-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .7fr);
    align-items: start;
    gap: 32px;
}

.certificate-detail-layout > * {
    min-width: 0;
}

.certificate-visual {
    display: grid;
    gap: 16px;
}

.certificate-main-image {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    min-height: 420px;
    padding: clamp(20px, 4vw, 44px);
    border: 1px solid #dce8ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 9px 34px rgb(8 32 58 / 5%);
}

.certificate-main-image img {
    display: block;
    width: 100%;
    height: min(62vh, 650px);
    object-fit: contain;
}

.certificate-main-image > span {
    position: absolute;
    inset-block-end: 18px;
    inset-inline-end: 18px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #d2e4eb;
    border-radius: 13px;
    background: rgb(255 255 255 / 94%);
    color: #087e94;
    box-shadow: 0 8px 24px rgb(8 32 58 / 12%);
}

.certificate-main-image--empty {
    background: linear-gradient(145deg, #eaf5f8, #fff);
    color: #80a9b8;
    font-size: 72px;
}

.certificate-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.certificate-thumbnail-grid a {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    padding: 8px;
    border: 1px solid #dce8ee;
    border-radius: 12px;
    background: #fff;
}

.certificate-thumbnail-grid a:hover {
    border-color: #087e94;
}

.certificate-thumbnail-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.certificate-facts {
    position: sticky;
    top: 138px;
    padding: 30px;
    border-radius: 22px;
    background: #08203a;
    box-shadow: 0 18px 44px rgb(8 32 58 / 16%);
    color: #d8e8ef;
}

.certificate-facts-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    border-radius: 15px;
    background: #a5eaf3;
    color: #08203a;
    font-size: 25px;
}

.certificate-facts h2 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.3rem;
}

.certificate-facts dl {
    margin: 0;
}

.certificate-facts dl > div {
    display: grid;
    grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr);
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid rgb(220 232 238 / 18%);
}

.certificate-facts dt {
    color: #9fb8c6;
    font-size: .78rem;
    font-weight: 500;
}

.certificate-facts dd {
    margin: 0;
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.certificate-facts dd a {
    color: #a5eaf3;
}

.certificate-fact-actions {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.certificate-fact-actions .ui-button {
    width: 100%;
    background: #a5eaf3;
    color: #08203a;
}

.certificate-fact-actions .ui-text-link {
    justify-content: center;
    color: #fff;
}

.certificate-article {
    max-width: 920px;
    margin-top: 40px;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid #dce8ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 30px rgb(8 32 58 / 4%);
}

.certificate-article > h2 {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e1ebf0;
    color: #08203a;
    font-size: 1.55rem;
}

.certificate-copy-section + .certificate-copy-section {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid #e6eef2;
}

.certificate-copy-section h3 {
    margin-bottom: 14px;
    color: #123b54;
    font-size: 1.12rem;
}

.certificate-video {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
    background: #08203a;
}

.certificate-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.related-certificates {
    padding: clamp(54px, 7vw, 86px) 0;
    background: #fff;
}

.related-certificates-heading {
    margin-bottom: 28px;
}

.related-certificates-heading h2 {
    margin: 0;
    color: #08203a;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.related-certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.related-certificate-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce8ee;
    border-radius: 17px;
    background: #fff;
    color: #08203a;
}

.related-certificate-card:hover {
    border-color: #8fc4cf;
    color: #087e94;
    transform: translateY(-3px);
}

.related-certificate-image {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 16px;
    border-bottom: 1px solid #e5edf2;
    background: #f6fafb;
    color: #7ca7b6;
    font-size: 42px;
}

.related-certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.related-certificate-card > strong {
    flex: 1;
    padding: 19px 20px 10px;
    color: inherit;
    font-size: .98rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.related-certificate-card > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 20px;
    color: #087e94;
    font-size: .8rem;
    font-weight: 600;
}

.ui-richtext,
.ui-richtext * {
    max-width: 100%;
}

.ui-richtext a,
.ui-richtext td,
.ui-richtext th,
.ui-richtext p,
.ui-richtext li {
    overflow-wrap: anywhere;
}

.ui-richtext iframe,
.ui-richtext video,
.ui-richtext embed,
.ui-richtext object {
    max-width: 100%;
}

.ui-richtext table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
}

@media (max-width: 991px) {
    .partner-card,
    .certificate-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .certificate-facts {
        position: relative;
        top: auto;
    }

    .related-certificate-grid,
    .clinic-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .clinic-gallery.clinic-gallery--videos {
        grid-template-columns: minmax(0, 1fr);
    }

    .partner-identity {
        border-inline-end: 0;
        border-block-end: 1px solid #e2ecf1;
    }
}

@media (max-width: 575px) {
    .clinic-faq-item summary {
        grid-template-columns: 34px minmax(0, 1fr) 20px;
        gap: 11px;
        min-height: 70px;
        padding: 14px;
        font-size: .94rem;
    }

    .clinic-faq-number {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .clinic-faq-answer,
    html[dir="rtl"] .clinic-faq-answer {
        margin: 0 14px 18px;
        padding-top: 16px;
    }

    .partner-content,
    .partner-identity {
        padding: 24px;
    }

    .clinic-gallery,
    .clinic-gallery.clinic-gallery--videos {
        grid-template-columns: minmax(0, 1fr);
    }

    .media-tabs {
        gap: 6px;
        padding: 6px;
    }

    .media-tab {
        gap: 10px;
        min-height: 60px;
        padding: 10px;
    }

    .media-tab-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .media-tab-text strong {
        font-size: .95rem;
    }

    .media-tab-text span {
        font-size: .78rem;
    }

    .media-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .media-filter button {
        flex-shrink: 0;
    }

    .gallery-viewer {
        width: calc(100vw - 12px);
        border-radius: 16px;
    }

    .gallery-viewer-bar {
        padding: 10px 10px 10px 16px;
    }

    .gallery-viewer-stage {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 6px 6px;
    }

    .gallery-viewer-frame {
        min-height: 0;
        border-radius: 12px;
    }

    .gallery-viewer-nav {
        display: none;
    }

    .error-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .error-actions .ui-button {
        width: 100%;
    }

    .certificate-main-image {
        min-height: 280px;
        padding: 16px;
    }

    .certificate-main-image img {
        height: 44vh;
        height: 44dvh;
    }

    .certificate-thumbnail-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .certificate-facts,
    .certificate-article {
        padding: 24px;
    }

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

@media (prefers-reduced-motion: reduce) {
    .clinic-faq-page *,
    .clinic-media-page *,
    .clinic-partners-page *,
    .certificate-detail-page *,
    .error-page * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
