/* ===== Advantage block (service pages) ===== */
.advantage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 64px;
    align-items: start;
    margin-top: 40px;
}
.advantage-grid > * {
    min-width: 0;
}
.advantage-copy p {
    margin: 0 0 16px;
    color: var(--neutral-700);
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.advantage-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 28px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-blue);
}
.advantage-list li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    color: var(--neutral-800);
    font-size: 0.94rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.advantage-list li i {
    margin-top: 5px;
    color: var(--brand-700);
    font-size: 0.8rem;
}

/* ===== Why choose us tabs use the shared Tabs component in components.css ===== */
.section-heading + .tabs-center {
    margin-top: 28px;
}
.tab-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.tab-grid picture {
    display: block;
    width: 100%;
}
.tab-grid img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
#panel-cert .tab-grid img,
#panel-platform .tab-grid img,
.exhibition-tab-grid img {
    object-fit: contain;
    background: var(--white);
}
.partner-tab-grid img {
    height: 120px;
    padding: 20px 28px;
    object-fit: contain;
    background: var(--white);
}
.image-lightbox-trigger {
    position: relative;
    display: block;
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: zoom-in;
}
.image-lightbox-trigger img {
    display: block;
    transition: border-color var(--motion-fast) ease, transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.image-lightbox-trigger:hover img,
.image-lightbox-trigger:focus-visible img {
    border-color: var(--brand-500);
    box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.55);
    transform: translateY(-1px);
}
.image-lightbox-trigger:focus-visible {
    outline-offset: 4px;
}
.image-lightbox-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: var(--white);
    background: rgba(15, 45, 76, 0.52);
    box-shadow: 0 4px 12px -8px rgba(15, 23, 42, 0.48);
    font-size: 0.74rem;
    pointer-events: none;
    transition: background var(--motion-fast) ease, transform var(--motion-fast) ease;
}
.image-lightbox-trigger:hover .image-lightbox-hint,
.image-lightbox-trigger:focus-visible .image-lightbox-hint {
    background: rgba(15, 45, 76, 0.78);
    transform: scale(1.03);
}

/* ===== Full-size viewer for eligible service tab galleries ===== */
.image-lightbox.modal {
    display: flex;
    flex-direction: column;
    width: min(96vw, 1440px);
    height: min(92dvh, 1000px);
    max-height: calc(100dvh - 24px);
    padding: 52px 20px 18px;
    overflow: hidden;
    background: var(--surface-subtle);
    text-align: left;
}
.image-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--neutral-700);
    background: var(--white);
    cursor: pointer;
    box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.55);
    transition: color var(--motion-fast) ease, background var(--motion-fast) ease;
}
.image-lightbox-close:hover {
    color: var(--brand-900);
    background: var(--neutral-100);
}
.image-lightbox-stage {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    place-items: center;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
}
.image-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(calc(92dvh - 170px), 830px);
    object-fit: contain;
    cursor: zoom-in;
}
.image-lightbox.is-zoomed .image-lightbox-stage {
    display: block;
    text-align: center;
}
.image-lightbox.is-zoomed .image-lightbox-image {
    max-width: none;
    max-height: none;
    margin: 0 auto;
    cursor: zoom-out;
}
.image-lightbox-footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
}
.image-lightbox.modal .image-lightbox-caption {
    min-width: 0;
    margin: 0;
    color: var(--neutral-700);
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.image-lightbox-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}
.image-lightbox-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--brand-700);
    background: var(--white);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}
.image-lightbox-action:hover {
    border-color: var(--brand-500);
    color: var(--brand-800);
    background: var(--brand-50);
}

/* ===== Service FAQ (uses accordion from components.css) ===== */
.service-faq-wrap {
    max-width: 820px;
    margin: 40px auto 0;
    border-top: 1px solid var(--line);
}

/* ===== Responsive (service pages) ===== */
@media (max-width: 1080px) {
    .advantage-grid {
        grid-template-columns: 1fr;
    }
    .tab-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 720px) {
    .advantage-grid { gap: 28px; margin-top: 30px; }
    .advantage-list { padding: 20px; }
    .tab-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .partner-tab-grid img {
        height: 104px;
        padding: 14px 16px;
    }
    .image-lightbox.modal {
        width: calc(100vw - 16px);
        height: calc(100dvh - 16px);
        max-height: none;
        padding: 50px 10px 10px;
        border-radius: var(--radius-md);
    }
    .image-lightbox-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }
    .image-lightbox-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .image-lightbox-action {
        min-width: 0;
        padding-inline: 8px;
        text-align: center;
    }
    .image-lightbox-image {
        max-height: calc(100dvh - 210px);
    }
}
