/* ==========================================================================
   SGS Intercools — Inner pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page hero
   -------------------------------------------------------------------------- */

.sgs-page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: calc(var(--sgs-header-h) + clamp(52px, 6vw, 110px)) clamp(40px, 5vw, 92px);
    background-color: var(--sgs-navy-deep);
    color: var(--sgs-white);
    /* GSAP parallax writes this on the section; see the ::before layer. */
    --sgs-parallax-y: 0%;
}

.sgs-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Image + navy wash on one composited layer (parallax = transform). */
    background-image:
        linear-gradient(105deg, rgba(7, 41, 79, 0.96) 0%, rgba(7, 41, 79, 0.82) 45%, rgba(7, 41, 79, 0.45) 100%),
        var(--sgs-bg-image);
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    transform: translate3d(0, var(--sgs-parallax-y, 0%), 0) scale(var(--sgs-parallax-scale, 1));
    transform-origin: center center;
}

.sgs-page-hero__inner {
    max-width: 56rem;
}

.sgs-page-hero .sgs-h1 {
    font-size: clamp(2.1rem, 4.1vw, 4.6rem);
    line-height: 1.02;
}

.sgs-page-hero__intro {
    max-width: 42em;
    margin-block-start: clamp(14px, 1.6vw, 26px);
    color: rgba(255, 255, 255, 0.92);
    font-stretch: var(--sgs-font-narrow);
    font-weight: 300;
    font-size: clamp(0.95rem, 1.32vw, 1.55rem);
    line-height: 1.55;
}

.sgs-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: clamp(0.72rem, 0.82vw, 0.95rem);
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
}

.sgs-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.sgs-breadcrumb a:hover {
    color: var(--sgs-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sgs-breadcrumb li + li::before {
    content: '/';
    margin-inline-end: 8px;
    opacity: 0.55;
}

/* --------------------------------------------------------------------------
   Generic page section
   -------------------------------------------------------------------------- */

.sgs-page {
    padding-block: clamp(40px, 4.8vw, 92px);
    background: var(--sgs-white);
}

.sgs-page--surface {
    background: var(--sgs-surface);
}

.sgs-page__head {
    max-width: 52rem;
    margin-block-end: clamp(24px, 3vw, 46px);
}

.sgs-page__head .sgs-sub {
    margin-block-start: 12px;
}

.sgs-listing {
    --sgs-card-bg: var(--sgs-white);
}

.sgs-listing .sgs-service-card {
    background: var(--sgs-card-bg);
    border-color: rgba(8, 71, 109, 0.28);
}

.sgs-listing .sgs-service-card:hover {
    background: var(--sgs-white);
}

/* home.css flips the card text to white for its dark hover state; the listing
   keeps a white card, so the text colours must stay readable on hover. */
.sgs-listing .sgs-service-card:hover .sgs-service-card__eyebrow,
.sgs-listing .sgs-service-card:hover .sgs-service-card__title {
    color: var(--sgs-primary);
}

.sgs-listing .sgs-service-card:hover .sgs-service-card__text {
    color: rgba(8, 71, 109, 0.92);
}

/* --------------------------------------------------------------------------
   Services listing / detail
   -------------------------------------------------------------------------- */

.sgs-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 36px);
}

.sgs-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(24px, 3.4vw, 64px);
    align-items: start;
}

.sgs-detail__media-col {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.2vw, 16px);
    min-width: 0;
}

.sgs-detail__media {
    overflow: hidden;
    border-radius: var(--sgs-radius-card);
    box-shadow: var(--sgs-shadow-card);
    background: var(--sgs-surface);
    aspect-ratio: 4 / 3;
}

.sgs-detail__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sgs-gallery-rail {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sgs-gallery-strip {
    flex: 1 1 auto;
    display: flex;
    min-width: 0;
    gap: 10px;
    padding-block: 4px;
    overflow-x: auto;
    /* No visible scrollbar: the rail arrows are the navigation. */
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
}

.sgs-gallery-strip::-webkit-scrollbar {
    display: none;
}

.sgs-gallery-arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(8, 71, 109, 0.28);
    border-radius: 50%;
    background: var(--sgs-white);
    color: var(--sgs-primary);
    cursor: pointer;
    transition: border-color var(--sgs-dur-fast) var(--sgs-ease), background-color var(--sgs-dur-fast) var(--sgs-ease), opacity var(--sgs-dur-fast) var(--sgs-ease);
}

.sgs-gallery-arrow[hidden] {
    display: none;
}

.sgs-gallery-arrow:hover {
    border-color: var(--sgs-primary);
    background: rgba(8, 71, 109, 0.06);
}

.sgs-gallery-arrow:focus-visible {
    outline: 2px solid var(--sgs-primary);
    outline-offset: 2px;
}

.sgs-gallery-arrow[disabled] {
    opacity: 0.32;
    cursor: default;
}

.sgs-gallery-arrow svg {
    width: 16px;
    height: 16px;
}

.sgs-gallery-thumb {
    position: relative;
    flex: 0 0 auto;
    width: clamp(74px, 7vw, 104px);
    aspect-ratio: 4 / 3;
    border: 2px solid transparent;
    border-radius: clamp(12px, 1.2vw, 18px);
    background: var(--sgs-surface);
    overflow: hidden;
    scroll-snap-align: start;
    transition: border-color var(--sgs-dur-fast) var(--sgs-ease), box-shadow var(--sgs-dur-fast) var(--sgs-ease);
}

.sgs-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sgs-gallery-thumb:hover {
    border-color: rgba(8, 71, 109, 0.42);
}

.sgs-gallery-thumb.is-active {
    border-color: var(--sgs-primary);
    box-shadow: 0 8px 22px rgba(8, 71, 109, 0.22);
}

.sgs-gallery-thumb--video {
    border-color: rgba(8, 71, 109, 0.55);
    box-shadow: 0 6px 16px rgba(3, 22, 43, 0.18);
}

.sgs-gallery-thumb--video:hover {
    border-color: var(--sgs-primary);
}

.sgs-gallery-thumb--video img {
    filter: brightness(0.6);
}

.sgs-gallery-thumb__tag {
    position: absolute;
    inset-block-end: 6px;
    inset-inline-start: 6px;
    padding: 2px 8px;
    border-radius: var(--sgs-radius-pill);
    background: rgba(8, 71, 109, 0.94);
    color: var(--sgs-white);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    line-height: 1.6;
    text-transform: uppercase;
    pointer-events: none;
}

.sgs-gallery-thumb__play {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--sgs-primary);
    box-shadow: 0 4px 14px rgba(3, 22, 43, 0.35);
    transform: translate(-50%, -50%);
    transition: transform var(--sgs-dur-fast) var(--sgs-ease);
}

.sgs-gallery-thumb__play svg {
    width: 15px;
    height: 15px;
    margin-inline-start: 2px;
}

.sgs-gallery-thumb--video:hover .sgs-gallery-thumb__play {
    transform: translate(-50%, -50%) scale(1.08);
}

.sgs-detail__body {
    padding-block-start: clamp(4px, 0.8vw, 12px);
}

.sgs-detail__body .sgs-copy {
    margin-block-start: clamp(14px, 1.6vw, 26px);
}

.sgs-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-block: 0 clamp(14px, 1.6vw, 24px);
    padding: 0;
    list-style: none;
}

.sgs-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid rgba(8, 71, 109, 0.3);
    border-radius: var(--sgs-radius-pill);
    background: rgba(8, 71, 109, 0.05);
    color: var(--sgs-primary);
    font-size: 0.82rem;
    font-weight: 500;
}

.sgs-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-block-start: clamp(20px, 2.2vw, 34px);
}

.sgs-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
    gap: clamp(10px, 1.2vw, 18px);
    margin-block-start: clamp(28px, 3.4vw, 56px);
}

.sgs-gallery__item {
    overflow: hidden;
    border-radius: clamp(16px, 1.6vw, 26px);
    aspect-ratio: 4 / 3;
    background: var(--sgs-surface);
    display: block;
}

.sgs-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms var(--sgs-ease-out);
}

.sgs-gallery__item:hover img {
    transform: scale(1.05);
}

.sgs-related {
    margin-block-start: clamp(40px, 5vw, 84px);
}

.sgs-related__title {
    margin-block-end: clamp(18px, 2.2vw, 34px);
}

/* --------------------------------------------------------------------------
   Product filter bar
   -------------------------------------------------------------------------- */

.sgs-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-block-end: clamp(24px, 3vw, 44px);
}

.sgs-filterbar__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sgs-filterbar__tab {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.4em 1.15em;
    border: 1px solid rgba(8, 71, 109, 0.28);
    border-radius: var(--sgs-radius-pill);
    background: var(--sgs-white);
    color: var(--sgs-primary);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--sgs-dur-fast) var(--sgs-ease), color var(--sgs-dur-fast) var(--sgs-ease), border-color var(--sgs-dur-fast) var(--sgs-ease);
}

.sgs-filterbar__tab:hover {
    border-color: var(--sgs-primary);
    color: var(--sgs-primary);
}

.sgs-filterbar__tab.is-active {
    background: var(--sgs-primary);
    border-color: var(--sgs-primary);
    color: var(--sgs-white);
}

.sgs-filterbar__selects {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.sgs-filterbar__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
}

.sgs-filterbar__select {
    min-height: 42px;
    max-width: 100%;
    padding-block: 0.4em;
    padding-inline: 1.15em 2.4em;
    border: 1px solid rgba(8, 71, 109, 0.28);
    border-radius: var(--sgs-radius-pill);
    background-color: var(--sgs-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308476D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85em center;
    background-size: 16px 16px;
    color: var(--sgs-primary);
    font-family: var(--sgs-font);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color var(--sgs-dur-fast) var(--sgs-ease), box-shadow var(--sgs-dur-fast) var(--sgs-ease);
}

.sgs-filterbar__select:hover {
    border-color: var(--sgs-primary);
}

.sgs-filterbar__select:focus {
    outline: none;
    border-color: var(--sgs-primary);
    box-shadow: 0 0 0 4px rgba(8, 71, 109, 0.18);
}

/* The submit button is only needed when JavaScript is unavailable:
   with JS the form submits on change. */
.sgs-js .sgs-filterbar__submit {
    display: none;
}

.sgs-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: min(100%, 20rem);
    padding: 5px 6px 5px 18px;
    border: 1px solid var(--sgs-input-border);
    border-radius: var(--sgs-radius-pill);
    background: var(--sgs-white);
}

[dir='rtl'] .sgs-search {
    padding: 5px 18px 5px 6px;
}

.sgs-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--sgs-text-body);
    font-size: 0.92rem;
    font-family: var(--sgs-font);
}

.sgs-search input:focus {
    outline: none;
}

.sgs-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--sgs-primary);
    color: var(--sgs-white);
}

.sgs-search button svg {
    width: 18px;
    height: 18px;
}

.sgs-results-count {
    font-size: 0.9rem;
    color: var(--sgs-placeholder);
    margin-block-end: 16px;
}

/* --------------------------------------------------------------------------
   Site search (header dialog + results page)
   -------------------------------------------------------------------------- */

.sgs-search--lg {
    min-width: min(100%, 34rem);
    gap: 10px;
    padding: 8px 8px 8px 22px;
}

[dir='rtl'] .sgs-search--lg {
    padding: 8px 22px 8px 8px;
}

.sgs-search--lg input {
    font-size: 1rem;
}

.sgs-search--lg button {
    width: 46px;
    height: 46px;
}

.sgs-search--lg button svg {
    width: 20px;
    height: 20px;
}

.sgs-search-modal {
    width: min(720px, calc(100vw - clamp(24px, 5vw, 64px)));
    max-width: 720px;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: clamp(20px, 2vw, 32px);
    background: transparent;
    color: var(--sgs-text-body);
    overflow: visible;
    box-shadow: 0 36px 90px rgba(3, 22, 43, 0.45);
}

.sgs-search-modal::backdrop {
    background: rgba(4, 24, 44, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.sgs-search-modal__panel {
    position: relative;
    display: grid;
    gap: 14px;
    padding: clamp(26px, 3vw, 44px);
    border-radius: inherit;
    background: var(--sgs-white);
}

.sgs-search-modal__title {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--sgs-primary);
}

.sgs-search-modal__form {
    margin: 0;
}

.sgs-search-modal__form .sgs-search {
    width: 100%;
}

.sgs-search-modal__hint {
    margin: 0;
    font-size: 0.88rem;
    color: var(--sgs-placeholder);
}

.sgs-search-modal__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: 4px;
}

.sgs-search-modal__links a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid rgba(8, 71, 109, 0.22);
    border-radius: var(--sgs-radius-pill);
    color: var(--sgs-primary);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--sgs-dur-fast) var(--sgs-ease), border-color var(--sgs-dur-fast) var(--sgs-ease);
}

.sgs-search-modal__links a:hover {
    border-color: var(--sgs-primary);
    background: rgba(8, 71, 109, 0.06);
}

.sgs-search-modal__close {
    position: absolute;
    inset-block-start: clamp(14px, 1.6vw, 22px);
    inset-inline-end: clamp(14px, 1.6vw, 22px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(8, 71, 109, 0.18);
    border-radius: 50%;
    background: var(--sgs-white);
    color: var(--sgs-primary);
    cursor: pointer;
    transition: background-color var(--sgs-dur-fast) var(--sgs-ease), color var(--sgs-dur-fast) var(--sgs-ease);
}

.sgs-search-modal__close:hover {
    background: var(--sgs-primary);
    color: var(--sgs-white);
}

.sgs-search-modal__close svg {
    width: 18px;
    height: 18px;
}

@media (prefers-reduced-motion: no-preference) {
    .sgs-search-modal[open] {
        animation: sgs-search-in var(--sgs-dur-fast) var(--sgs-ease) both;
    }

    .sgs-search-modal[open]::backdrop {
        animation: sgs-search-fade var(--sgs-dur-fast) var(--sgs-ease) both;
    }
}

@keyframes sgs-search-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes sgs-search-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sgs-search-page__form {
    margin-block-end: clamp(22px, 3vw, 36px);
}

.sgs-search-page__form .sgs-search {
    width: min(100%, 44rem);
    margin-inline: auto;
}

.sgs-search-quick {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-block-start: 18px;
}

.sgs-search-group {
    margin-block-end: clamp(28px, 3.4vw, 48px);
}

.sgs-search-group__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 18px;
    padding-block-end: 12px;
    margin-block-end: 18px;
    border-block-end: 1px solid rgba(8, 71, 109, 0.14);
}

.sgs-search-group__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
}

.sgs-search-group__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding-inline: 8px;
    border-radius: var(--sgs-radius-pill);
    background: rgba(8, 71, 109, 0.08);
    color: var(--sgs-primary);
    font-size: 0.76rem;
    font-weight: 600;
}

.sgs-search-group__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sgs-primary);
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
}

.sgs-search-group__more svg {
    width: 16px;
    height: 16px;
}

.sgs-search-group__more:hover {
    text-decoration: underline;
}

.sgs-search-results {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sgs-result {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 20px);
    padding: 10px clamp(14px, 1.6vw, 20px) 10px 10px;
    border: 1px solid rgba(8, 71, 109, 0.12);
    border-radius: clamp(16px, 1.6vw, 24px);
    background: var(--sgs-white);
    transition: border-color var(--sgs-dur-fast) var(--sgs-ease), box-shadow var(--sgs-dur-fast) var(--sgs-ease);
}

[dir='rtl'] .sgs-result {
    padding: 10px 10px 10px clamp(14px, 1.6vw, 20px);
}

.sgs-result:hover {
    border-color: rgba(8, 71, 109, 0.34);
    box-shadow: 0 14px 34px rgba(8, 71, 109, 0.1);
}

.sgs-result__media {
    flex: 0 0 auto;
    width: clamp(64px, 8vw, 84px);
    aspect-ratio: 1;
    border-radius: clamp(12px, 1.2vw, 18px);
    overflow: hidden;
    background: rgba(8, 71, 109, 0.06);
}

.sgs-result__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sgs-result__body {
    flex: 1 1 auto;
    min-width: 0;
}

.sgs-result__eyebrow {
    margin: 0 0 4px;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sgs-placeholder);
}

.sgs-result__type {
    color: var(--sgs-primary);
    font-weight: 600;
}

.sgs-result__title {
    margin: 0;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    font-weight: 500;
    line-height: 1.3;
}

.sgs-result__title a {
    color: var(--sgs-primary);
    text-decoration: none;
}

.sgs-result__title a:hover {
    text-decoration: underline;
}

/* Stretched link: the whole row is clickable, one link per result. */
.sgs-result__title a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.sgs-result__text {
    display: -webkit-box;
    margin: 6px 0 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--sgs-text-body);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sgs-result__arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(8, 71, 109, 0.07);
    color: var(--sgs-primary);
}

.sgs-result__arrow svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 575.98px) {
    .sgs-result__arrow {
        display: none;
    }

    .sgs-result__media {
        width: 58px;
    }
}

.sgs-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 34px);
}

/* --------------------------------------------------------------------------
   Partners & clients
   -------------------------------------------------------------------------- */

.sgs-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: clamp(16px, 2vw, 32px);
}

.sgs-partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.2vw, 20px);
    min-height: clamp(180px, 15vw, 260px);
    padding: clamp(22px, 2.2vw, 38px);
    border: 1px solid rgba(8, 71, 109, 0.22);
    border-radius: var(--sgs-radius-card);
    background: linear-gradient(150deg, #F7FAFD 0%, #FFFFFF 100%);
    text-align: center;
    text-decoration: none;
    color: var(--sgs-primary);
    transition: transform var(--sgs-dur-base) var(--sgs-ease-out), box-shadow var(--sgs-dur-base) var(--sgs-ease), border-color var(--sgs-dur-base) var(--sgs-ease);
}

.sgs-partner-card:hover {
    transform: translateY(-4px);
    border-color: var(--sgs-primary);
    box-shadow: var(--sgs-shadow-card);
    color: var(--sgs-primary);
}

.sgs-partner-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(64px, 5.4vw, 100px);
}

.sgs-partner-card__logo img {
    max-width: min(100%, 16rem);
    max-height: clamp(64px, 5.4vw, 100px);
    object-fit: contain;
}

.sgs-partner-card__name {
    font-size: clamp(1rem, 1.2vw, 1.35rem);
    font-weight: 600;
}

.sgs-partner-card__link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sgs-partner-card__link svg {
    width: 0.9em;
    height: 0.9em;
}

.sgs-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 45%), 1fr));
    gap: clamp(12px, 1.6vw, 26px);
}

.sgs-client-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 1.8vw, 30px);
    min-height: clamp(110px, 9vw, 160px);
    border: 1px solid rgba(8, 71, 109, 0.16);
    border-radius: clamp(18px, 1.8vw, 30px);
    background: var(--sgs-white);
    transition: border-color var(--sgs-dur-fast) var(--sgs-ease), box-shadow var(--sgs-dur-fast) var(--sgs-ease), transform var(--sgs-dur-fast) var(--sgs-ease-out);
}

.sgs-client-card:hover {
    border-color: rgba(8, 71, 109, 0.4);
    box-shadow: var(--sgs-shadow-card);
    transform: translateY(-3px);
}

.sgs-client-card img {
    max-width: 100%;
    max-height: clamp(60px, 5vw, 90px);
    object-fit: contain;
}

.sgs-client-card__name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--sgs-primary);
    text-align: center;
}

/* Clients — strengths strip + section title */

.sgs-clients-perks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 clamp(38px, 4.6vw, 76px);
    padding: clamp(18px, 2.2vw, 38px) clamp(12px, 1.6vw, 28px);
    list-style: none;
    border: 1px solid rgba(8, 71, 109, 0.14);
    border-radius: var(--sgs-radius-media);
    background: var(--sgs-white);
    box-shadow: var(--sgs-shadow-card);
}

.sgs-clients-perks__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 0.9vw, 16px);
    padding-inline: clamp(6px, 0.8vw, 18px);
}

.sgs-clients-perks__item + .sgs-clients-perks__item::before {
    content: '';
    position: absolute;
    inset-block: 18%;
    inset-inline-start: 0;
    width: 1px;
    background: rgba(8, 71, 109, 0.22);
}

.sgs-clients-perks__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: clamp(34px, 2.9vw, 52px);
    height: clamp(34px, 2.9vw, 52px);
    border-radius: 50%;
    background: rgba(8, 71, 109, 0.07);
    color: var(--sgs-primary);
}

.sgs-clients-perks__icon svg {
    width: 55%;
    height: 55%;
}

.sgs-clients-perks__label {
    font-size: clamp(0.82rem, 1.02vw, 1.16rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--sgs-primary);
}

.sgs-clients-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.6vw, 26px);
    margin: 0 0 clamp(26px, 3.2vw, 52px);
    text-align: center;
}

.sgs-clients-title__line {
    height: 1px;
    flex: 0 1 clamp(28px, 9vw, 130px);
    background: rgba(8, 71, 109, 0.28);
}

.sgs-clients-title__text {
    font-size: clamp(1.35rem, 2.1vw, 2.35rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--sgs-primary);
}

@media (max-width: 991px) {
    .sgs-clients-perks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: clamp(18px, 5vw, 26px);
    }

    .sgs-clients-perks__item {
        justify-content: flex-start;
    }

    .sgs-clients-perks__item:nth-child(odd)::before {
        display: none;
    }

    .sgs-clients-perks__item:nth-child(n + 3)::after {
        content: '';
        position: absolute;
        inset-block-start: calc(-0.5 * clamp(18px, 5vw, 26px));
        inset-inline: 8%;
        height: 1px;
        background: rgba(8, 71, 109, 0.22);
    }
}

/* --------------------------------------------------------------------------
   Careers
   -------------------------------------------------------------------------- */

.sgs-careers__why {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 22px);
    margin-block-start: clamp(20px, 2.4vw, 38px);
    padding: 0;
    list-style: none;
}

.sgs-careers__point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: clamp(14px, 1.4vw, 22px) clamp(16px, 1.6vw, 26px);
    border: 1px solid rgba(8, 71, 109, 0.18);
    border-radius: clamp(16px, 1.6vw, 26px);
    background: var(--sgs-white);
    font-size: clamp(0.88rem, 1vw, 1.08rem);
    font-weight: 300;
    line-height: 1.5;
    color: var(--sgs-text-body);
}

.sgs-careers__point svg {
    flex: none;
    width: 22px;
    height: 22px;
    margin-block-start: 2px;
    color: var(--sgs-primary);
}

/* Application form card */

.sgs-careers-apply {
    padding-block-start: 0;
}

.sgs-apply-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(26px, 3.4vw, 68px);
    align-items: start;
    padding: clamp(24px, 3vw, 58px);
    border: 1px solid rgba(8, 71, 109, 0.14);
    border-radius: clamp(24px, 2.6vw, 44px);
    background: var(--sgs-white);
    box-shadow: var(--sgs-shadow-card);
}

.sgs-apply-card__intro .sgs-sub {
    margin-block-start: 14px;
}

.sgs-apply-card__title {
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2.9rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--sgs-primary);
}

.sgs-apply-card__note {
    margin-block-start: clamp(18px, 2vw, 30px);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--sgs-placeholder);
}

.sgs-apply-card__note a {
    color: var(--sgs-primary);
}

.sgs-apply-card__form {
    min-width: 0;
}

.sgs-apply-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.15vw, 20px);
}

.sgs-apply-card__grid .sgs-field--full {
    grid-column: 1 / -1;
}

.sgs-apply-card select.sgs-control {
    appearance: none;
    -webkit-appearance: none;
    padding-inline-end: clamp(42px, 3.6vw, 58px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308476D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right clamp(18px, 1.5vw, 24px) center;
    background-size: 18px 18px;
    cursor: pointer;
}

.sgs-apply-card select.sgs-control:invalid {
    color: var(--sgs-placeholder);
}

.sgs-upload {
    display: grid;
    gap: 8px;
    align-content: start;
}

.sgs-upload .sgs-label {
    margin-block-end: 0;
}

.sgs-upload__input {
    display: flex;
    align-items: center;
    min-height: clamp(48px, 3.7vw, 70px);
    padding-block: 6px;
    padding-inline: 6px clamp(18px, 1.4vw, 26px);
    color: var(--sgs-placeholder);
    font-size: clamp(0.85rem, 0.92vw, 1.05rem);
    cursor: pointer;
}

.sgs-upload__input:focus {
    padding-block: 5px;
}

.sgs-upload__input::file-selector-button {
    margin-inline-end: 14px;
    padding: 0.62em clamp(18px, 1.4vw, 26px);
    border: 0;
    border-radius: var(--sgs-radius-pill);
    background: var(--sgs-primary);
    color: var(--sgs-white);
    font-family: var(--sgs-font);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: opacity var(--sgs-dur-fast) var(--sgs-ease);
}

.sgs-upload__input:hover::file-selector-button {
    opacity: 0.88;
}

.sgs-upload__hint {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--sgs-placeholder);
}

.sgs-apply-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px clamp(16px, 1.6vw, 26px);
    margin-block-start: clamp(16px, 1.8vw, 28px);
}

.sgs-apply-card__hint {
    margin: 0;
    max-width: 34rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--sgs-placeholder);
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.sgs-contact-page {
    padding-block: clamp(40px, 4.8vw, 92px);
    background: var(--sgs-white);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.sgs-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(40px, 4.6vw, 84px);
    background: linear-gradient(120deg, var(--sgs-navy-deep) 0%, var(--sgs-primary) 100%);
    color: var(--sgs-white);
}

.sgs-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.sgs-cta__title {
    margin: 0;
    font-size: clamp(1.4rem, 2.4vw, 2.7rem);
    font-weight: 700;
    font-stretch: var(--sgs-font-wide);
    letter-spacing: 0.02em;
    color: var(--sgs-white);
}

.sgs-cta__text {
    margin: 8px 0 0;
    font-size: clamp(0.9rem, 1.1vw, 1.15rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.82);
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.sgs-empty {
    padding: clamp(32px, 4vw, 60px) 24px;
    border: 1px dashed rgba(8, 71, 109, 0.3);
    border-radius: var(--sgs-radius-card);
    text-align: center;
    color: var(--sgs-placeholder);
    background: rgba(255, 255, 255, 0.6);
}

.sgs-empty p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Pagination (Bootstrap 5 markup)
   -------------------------------------------------------------------------- */

.sgs-pagination {
    margin-block-start: clamp(26px, 3vw, 48px);
}

.sgs-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

.sgs-pagination .page-link,
.sgs-pagination .page-item > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 6px 14px;
    border: 1px solid rgba(8, 71, 109, 0.24);
    border-radius: var(--sgs-radius-pill);
    background: var(--sgs-white);
    color: var(--sgs-primary);
    font-size: 0.9rem;
    text-decoration: none;
}

.sgs-pagination .page-link:hover {
    border-color: var(--sgs-primary);
    background: var(--sgs-surface);
    color: var(--sgs-primary);
}

.sgs-pagination .active > span {
    background: var(--sgs-primary);
    border-color: var(--sgs-primary);
    color: var(--sgs-white);
}

.sgs-pagination .disabled > span {
    opacity: 0.45;
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.sgs-about-page {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 3.4vw, 64px);
    align-items: start;
}

.sgs-about-page__media {
    overflow: hidden;
    border-radius: var(--sgs-radius-card);
    box-shadow: var(--sgs-shadow-card);
    aspect-ratio: 5 / 4;
}

.sgs-about-page__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sgs-values {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.sgs-values li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: clamp(0.92rem, 1.05vw, 1.12rem);
    font-weight: 300;
    line-height: 1.5;
}

.sgs-values svg {
    flex: none;
    width: 22px;
    height: 22px;
    margin-block-start: 2px;
    color: var(--sgs-primary);
}

.sgs-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 24px);
    margin-block-start: clamp(30px, 3.4vw, 54px);
}

.sgs-pillar {
    padding: clamp(20px, 2.2vw, 34px);
    border-radius: var(--sgs-radius-card);
    background: var(--sgs-white);
    border: 1px solid rgba(8, 71, 109, 0.18);
}

.sgs-pillar h3 {
    margin: 0 0 10px;
    font-size: clamp(1.05rem, 1.3vw, 1.4rem);
    font-weight: 600;
    color: var(--sgs-primary);
}

.sgs-pillar p {
    margin: 0;
    font-size: clamp(0.9rem, 1vw, 1.08rem);
    font-weight: 300;
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .sgs-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sgs-apply-card {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(22px, 3vw, 38px);
    }
}

@media (max-width: 991.98px) {
    .sgs-services-grid,
    .sgs-detail,
    .sgs-about-page {
        grid-template-columns: 1fr;
    }

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

    .sgs-detail__media {
        max-width: 40rem;
    }
}

@media (max-width: 767.98px) {
    .sgs-catalog-grid {
        grid-template-columns: 1fr;
        max-width: 26rem;
        margin-inline: auto;
    }

    .sgs-careers__why,
    .sgs-pillars {
        grid-template-columns: 1fr;
    }

    .sgs-apply-card__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sgs-filterbar {
        align-items: stretch;
    }

    .sgs-search {
        min-width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Service request modal
   -------------------------------------------------------------------------- */

html.sgs-modal-open,
html.sgs-modal-open body {
    overflow: hidden;
}

.sgs-request-modal {
    width: min(980px, calc(100vw - clamp(24px, 4vw, 64px)));
    max-width: 980px;
    max-height: min(88vh, 780px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: clamp(24px, 2.4vw, 40px);
    background: transparent;
    color: var(--sgs-text-body);
    overflow: hidden;
    box-shadow: 0 36px 90px rgba(3, 22, 43, 0.45);
}

.sgs-request-modal::backdrop {
    background: rgba(4, 24, 44, 0.58);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.sgs-request-modal__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    grid-template-rows: minmax(0, 1fr);
    max-height: min(88vh, 780px);
    min-height: 0;
    border-radius: inherit;
    background: var(--sgs-white);
    overflow: hidden;
}

.sgs-request-modal__aside {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2vw, 30px);
    min-height: 0;
    padding: clamp(28px, 3vw, 48px);
    color: var(--sgs-white);
    background-color: var(--sgs-navy-deep);
    background-image:
        linear-gradient(158deg, rgba(4, 26, 49, 0.97) 4%, rgba(8, 71, 109, 0.9) 52%, rgba(7, 51, 114, 0.8) 100%),
        var(--sgs-request-image);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.sgs-request-modal__aside::before {
    content: '';
    position: absolute;
    inset-block-start: -22%;
    inset-inline-end: -30%;
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 221, 232, 0.24) 0%, rgba(79, 221, 232, 0) 68%);
    pointer-events: none;
}

.sgs-request-modal__aside > * {
    position: relative;
    z-index: 1;
}

.sgs-request-modal__intro {
    display: grid;
    gap: 10px;
    align-content: start;
}

.sgs-request-modal__intro .sgs-eyebrow {
    margin: 0;
}

.sgs-request-modal__service {
    margin: 0;
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.16;
    color: var(--sgs-white);
}

.sgs-request-modal__chip {
    justify-self: start;
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: var(--sgs-radius-pill);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
}

/* The service picker hides the chip until a service is selected. */
.sgs-request-modal__chip[hidden] {
    display: none;
}

.sgs-request-modal__sub {
    margin: 0;
    max-width: 26rem;
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.sgs-request-modal__perks {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sgs-request-modal__perk {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.sgs-request-modal__perk-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--sgs-white);
}

.sgs-request-modal__perk-icon svg {
    width: 17px;
    height: 17px;
}

.sgs-request-modal__contact {
    display: grid;
    gap: 8px;
    margin-block-start: auto;
    padding-block-start: 18px;
    border-block-start: 1px solid rgba(255, 255, 255, 0.2);
}

.sgs-request-modal__contact-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.sgs-request-modal__contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--sgs-white);
    text-decoration: none;
    transition: opacity var(--sgs-dur-fast) var(--sgs-ease);
}

.sgs-request-modal__contact a:hover {
    opacity: 0.78;
    color: var(--sgs-white);
}

.sgs-request-modal__contact svg {
    flex: none;
    width: 16px;
    height: 16px;
    opacity: 0.75;
}

.sgs-request-modal__close {
    position: absolute;
    inset-block-start: clamp(14px, 1.6vw, 20px);
    inset-inline-end: clamp(14px, 1.6vw, 20px);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(8, 71, 109, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--sgs-primary);
    box-shadow: 0 6px 18px rgba(7, 38, 80, 0.18);
    cursor: pointer;
    transition:
        transform var(--sgs-dur-fast) var(--sgs-ease-out),
        background-color var(--sgs-dur-fast) var(--sgs-ease);
}

.sgs-request-modal__close:hover {
    transform: rotate(90deg);
    background: var(--sgs-white);
}

.sgs-request-modal__close svg {
    width: 18px;
    height: 18px;
}

.sgs-request-modal__body {
    min-width: 0;
    min-height: 0;
    padding: clamp(28px, 3vw, 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--sgs-white);
}

.sgs-request-modal__title {
    margin: 0 0 clamp(18px, 2vw, 26px);
    padding-inline-end: 44px;
    font-size: clamp(1.35rem, 1.9vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.18;
    color: var(--sgs-primary);
}

.sgs-request-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 16px);
}

.sgs-request-modal__grid .sgs-field--full {
    grid-column: 1 / -1;
}

.sgs-request-modal textarea.sgs-control {
    min-height: 118px;
    border-radius: 26px;
}

.sgs-request-modal__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px clamp(16px, 1.6vw, 24px);
    margin-block-start: clamp(18px, 2vw, 26px);
}

.sgs-request-modal__actions .sgs-btn {
    font-size: clamp(0.88rem, 1vw, 1.15rem);
}

.sgs-request-modal__note {
    margin: 0;
    max-width: 28rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--sgs-placeholder);
}

/* --------------------------------------------------------------------------
   Request modal select chevron
   -------------------------------------------------------------------------- */

.sgs-request-modal select.sgs-control {
    appearance: none;
    -webkit-appearance: none;
    padding-inline-end: clamp(42px, 3.6vw, 58px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308476D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right clamp(18px, 1.5vw, 24px) center;
    background-size: 18px 18px;
    cursor: pointer;
}

.sgs-request-modal select.sgs-control:invalid {
    color: var(--sgs-placeholder);
}

@keyframes sgs-request-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sgs-request-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sgs-request-modal[open] {
    animation: sgs-request-in 320ms var(--sgs-ease-out);
}

.sgs-request-modal[open]::backdrop {
    animation: sgs-request-backdrop-in 260ms var(--sgs-ease);
}

@media (max-width: 991.98px) {
    .sgs-request-modal__panel {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
    }

    .sgs-request-modal__aside {
        gap: 8px;
        padding: 24px clamp(20px, 4vw, 30px) 20px;
    }

    .sgs-request-modal__intro {
        gap: 6px;
    }

    .sgs-request-modal__service {
        padding-inline-end: 48px;
        font-size: clamp(1.25rem, 3.4vw, 1.7rem);
    }

    .sgs-request-modal__sub,
    .sgs-request-modal__perks,
    .sgs-request-modal__contact {
        display: none;
    }

    .sgs-request-modal__chip {
        font-size: 0.72rem;
    }

    .sgs-request-modal__body {
        padding: 24px clamp(20px, 4vw, 30px) clamp(24px, 4vw, 32px);
    }

    .sgs-request-modal__title {
        padding-inline-end: 0;
    }
}

@media (max-width: 767.98px) {
    .sgs-request-modal__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .sgs-request-modal {
        width: calc(100vw - 24px);
        border-radius: 22px;
    }

    .sgs-request-modal__actions .sgs-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sgs-request-modal[open],
    .sgs-request-modal[open]::backdrop {
        animation: none;
    }

    .sgs-request-modal__close:hover {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Catalog video lightbox
   -------------------------------------------------------------------------- */

.sgs-video-modal {
    width: min(1000px, calc(100vw - clamp(20px, 4vw, 64px)));
    max-width: 1000px;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: clamp(18px, 2vw, 30px);
    background: transparent;
    overflow: visible;
}

.sgs-video-modal::backdrop {
    background: rgba(4, 24, 44, 0.72);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.sgs-video-modal__panel {
    position: relative;
    border-radius: inherit;
    background: #041a2c;
    box-shadow: 0 36px 90px rgba(3, 22, 43, 0.5);
    overflow: hidden;
}

.sgs-video-modal__frame {
    aspect-ratio: 16 / 9;
    background: #041a2c;
}

.sgs-video-modal__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.sgs-video-modal__close {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sgs-primary);
    cursor: pointer;
    transition: background-color var(--sgs-dur-fast) var(--sgs-ease), transform var(--sgs-dur-fast) var(--sgs-ease);
}

.sgs-video-modal__close:hover {
    background: var(--sgs-white);
    transform: scale(1.05);
}

.sgs-video-modal__close svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 767.98px) {
    .sgs-filterbar__selects,
    .sgs-filterbar__tools {
        width: 100%;
        margin-inline-start: 0;
    }

    .sgs-filterbar__select {
        flex: 1 1 min(100%, 11rem);
    }

    .sgs-gallery-arrow {
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sgs-gallery-strip {
        scroll-behavior: auto;
    }

    .sgs-gallery-arrow {
        transition: none;
    }
    .sgs-gallery-thumb__play,
    .sgs-video-modal__close {
        transition: none;
    }

    .sgs-gallery-thumb--video:hover .sgs-gallery-thumb__play,
    .sgs-video-modal__close:hover {
        transform: none;
    }

    .sgs-gallery-thumb--video:hover .sgs-gallery-thumb__play {
        transform: translate(-50%, -50%);
    }
}

/* --------------------------------------------------------------------------
   Partner detail gallery (site.partners.show)
   Fixed frame + `contain` keeps the whole picture visible. From 768px up the
   arrows are real grid columns on both sides of the frame, so they can never
   cover the photograph; on phones they are hidden and the gallery is driven by
   swipe / arrow keys. Logical properties only => RTL mirrors the columns by
   itself (only the chevrons are flipped, in rtl.css).
   -------------------------------------------------------------------------- */

.sgs-partner-gallery {
    max-width: 1180px;
    margin-inline: auto;
}

.sgs-partner-gallery__stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(10px, 1.4vw, 24px);
    border-radius: clamp(18px, 2vw, 30px);
    /* The gallery is swipeable: keep the vertical page scroll and pinch-zoom,
       but never let the browser claim a one-finger horizontal drag (it would
       fire `pointercancel` and the swipe would be swallowed). */
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sgs-partner-gallery__stage:focus-visible {
    outline: 3px solid var(--sgs-primary);
    outline-offset: 6px;
}

.sgs-partner-gallery__slide {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

.sgs-partner-gallery__slide[hidden] {
    display: none;
}

.sgs-partner-gallery__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Full width of its column at every window size: the arrows stay glued to
       the picture (no `vh` cap, which used to shrink the frame and let the
       arrows drift 50-100px away on short screens). */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(8, 71, 109, 0.1);
    border-radius: clamp(18px, 2vw, 30px);
    background: #eef2f6;
}

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

.sgs-partner-gallery__caption {
    margin-block: clamp(14px, 1.6vw, 22px) 0;
    color: var(--sgs-primary);
    font-weight: 600;
    font-size: clamp(1rem, 1.3vw, 1.35rem);
    line-height: 1.4;
    text-align: center;
}

.sgs-partner-gallery__caption[hidden] {
    display: none;
}

.sgs-partner-gallery__meta {
    display: flex;
    justify-content: center;
    margin-block-start: 10px;
}

.sgs-partner-gallery__counter {
    color: rgba(8, 71, 109, 0.65);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.sgs-partner-gallery__arrow {
    grid-row: 1;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(44px, 4.2vw, 56px);
    height: clamp(44px, 4.2vw, 56px);
    padding: 0;
    border: 1px solid rgba(8, 71, 109, 0.24);
    border-radius: 50%;
    background: var(--sgs-white);
    color: var(--sgs-primary);
    box-shadow: 0 8px 22px rgba(6, 40, 67, 0.1);
    cursor: pointer;
    transition: background-color var(--sgs-dur-fast) var(--sgs-ease),
        border-color var(--sgs-dur-fast) var(--sgs-ease),
        color var(--sgs-dur-fast) var(--sgs-ease),
        transform var(--sgs-dur-fast) var(--sgs-ease);
}

.sgs-partner-gallery__arrow--prev {
    grid-column: 1;
}

.sgs-partner-gallery__arrow--next {
    grid-column: 3;
}

.sgs-partner-gallery__arrow:hover,
.sgs-partner-gallery__arrow:focus-visible {
    border-color: var(--sgs-primary);
    background: var(--sgs-primary);
    color: var(--sgs-white);
    transform: scale(1.06);
}

.sgs-partner-gallery__arrow:focus-visible {
    outline: 3px solid var(--sgs-primary);
    outline-offset: 3px;
}

.sgs-partner-gallery__arrow svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 767.98px) {
    .sgs-partner-gallery__stage {
        display: block;
    }

    .sgs-partner-gallery__slide {
        grid-column: auto;
        grid-row: auto;
    }

    /* Phones navigate by swipe (initPartnerGallery); arrows would sit on the
       picture, so they are not rendered at all. */
    .sgs-partner-gallery__arrow {
        display: none;
    }

    .sgs-partner-gallery__frame {
        width: min(100%, calc(70vh * 4 / 3));
        aspect-ratio: 4 / 3;
        max-height: 70vh;
    }

    .sgs-partner-gallery__arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* Phones in landscape: plenty of width but almost no height, so the 4/3 frame
   with the 70vh cap used to shrink the picture to a third of the screen. */
@media (max-width: 767.98px) and (orientation: landscape) {
    .sgs-partner-gallery__frame {
        width: 100%;
        aspect-ratio: 16 / 9;
        max-height: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sgs-partner-gallery__arrow {
        transition: none;
    }

    .sgs-partner-gallery__arrow:hover,
    .sgs-partner-gallery__arrow:focus-visible {
        transform: none;
    }
}
