.gms-ref-v21,
.gms-ref-v21 * {
    box-sizing: border-box;
}

.gms-ref-v21 {
    --gms-ref-desktop-cols: 4;
    --gms-ref-tablet-cols: 2;
    --gms-ref-gap: 18px;
    --gms-ref-radius: 0px;
    --gms-ref-max: 2400px;
    --gms-ref-side: 12px;
    --gms-ref-pt: 56px;
    --gms-ref-pb: 42px;
    --gms-ref-accent: #0b6f9f;
    --gms-ref-text: #141414;
    --gms-ref-muted: #6b6f76;
    position: relative;
    color: var(--gms-ref-text);
    padding: var(--gms-ref-pt) var(--gms-ref-side) var(--gms-ref-pb);
    background: transparent;
    width: 100%;
    max-width: none;
}

.gms-ref-v21--desktop-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.gms-ref-v21__inner {
    width: min(100%, var(--gms-ref-max));
    margin: 0 auto;
}

.gms-ref-v21--desktop-full .gms-ref-v21__inner {
    width: 100%;
    max-width: none;
}

.gms-ref-v21__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
}

.gms-ref-v21__headline {
    min-width: 0;
}

.gms-ref-v21__eyebrow {
    color: var(--gms-ref-accent);
    font-size: clamp(14px, 0.9vw, 17px);
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.gms-ref-v21__title {
    color: var(--gms-ref-text);
    font-size: clamp(25px, 1.6vw, 34px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 0;
}

.gms-ref-v21__top-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 10px 18px;
    border: 1px solid var(--gms-ref-text);
    border-radius: 9px;
    color: var(--gms-ref-text);
    background: transparent;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    transform: translateY(-2px);
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.gms-ref-v21__top-button:hover,
.gms-ref-v21__top-button:focus-visible {
    background: var(--gms-ref-text);
    color: #fff;
    border-color: var(--gms-ref-text);
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
    outline: none;
}

.gms-ref-v21__slider {
    position: relative;
}

.gms-ref-v21__grid {
    display: grid;
    grid-template-columns: repeat(var(--gms-ref-desktop-cols), minmax(0, 1fr));
    gap: 0 var(--gms-ref-gap);
    align-items: start;
}

.gms-ref-card {
    min-width: 0;
    position: relative;
}

.gms-ref-card__image-link {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: var(--gms-ref-radius);
    background: #101010;
    color: #fff;
    isolation: isolate;
    box-shadow: none;
    text-decoration: none;
}

.gms-ref-card__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform .62s cubic-bezier(.2,.8,.2,1), filter .62s cubic-bezier(.2,.8,.2,1);
}

.gms-ref-card__shine {
    position: absolute;
    inset: -40% auto -40% -65%;
    z-index: 2;
    width: 50%;
    transform: skewX(-22deg) translateX(-25%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    opacity: 0;
    pointer-events: none;
}

.gms-ref-card__image-link:hover .gms-ref-card__image,
.gms-ref-card__image-link:focus-visible .gms-ref-card__image {
    transform: scale(1.045);
    filter: contrast(1.05) saturate(1.04);
}

.gms-ref-card__image-link:hover .gms-ref-card__shine,
.gms-ref-card__image-link:focus-visible .gms-ref-card__shine {
    animation: gms-ref-shine .78s ease forwards;
}

@keyframes gms-ref-shine {
    0% { opacity: 0; transform: skewX(-22deg) translateX(-25%); }
    18% { opacity: 1; }
    100% { opacity: 0; transform: skewX(-22deg) translateX(360%); }
}

.gms-ref-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    padding: 24px;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.02em;
    background:
        radial-gradient(circle at 18% 18%, rgba(11,111,159,.48), transparent 34%),
        linear-gradient(135deg, #0a0d12, #1b1f27 48%, #090a0d);
}

.gms-ref-card__body {
    padding-top: 17px;
}

.gms-ref-card__category {
    color: var(--gms-ref-muted);
    font-size: 14px;
    font-style: italic;
    line-height: 1.35;
    margin-bottom: 24px;
}

.gms-ref-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    color: var(--gms-ref-muted);
    font-size: 14px;
    line-height: 1.35;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color .22s ease, transform .22s ease;
}

.gms-ref-card__link span {
    overflow-wrap: anywhere;
}

.gms-ref-card__link:hover,
.gms-ref-card__link:focus-visible {
    color: var(--gms-ref-accent);
    transform: translateX(2px);
    outline: none;
}

.gms-ref-card__link--static {
    text-decoration: none;
}

.gms-ref-card__external {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: currentColor;
    transform: translateY(-1px);
}

.gms-ref-v21__empty {
    padding: 24px;
    border: 1px dashed rgba(0,0,0,.25);
    border-radius: 14px;
    color: var(--gms-ref-muted);
    background: rgba(0,0,0,.025);
}

.gms-ref-v21__arrow,
.gms-ref-v21__dots {
    display: none;
}

@media (max-width: 1180px) {
    .gms-ref-v21 {
        --gms-ref-side: clamp(18px, 4vw, 48px);
    }

    .gms-ref-v21--desktop-full {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .gms-ref-v21__grid {
        grid-template-columns: repeat(var(--gms-ref-tablet-cols), minmax(0, 1fr));
        row-gap: 34px;
    }
}

@media (max-width: 767px) {
    .gms-ref-v21 {
        --gms-ref-side: 18px;
    }

    .gms-ref-v21__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 20px;
    }

    .gms-ref-v21__eyebrow {
        margin-bottom: 10px;
    }

    .gms-ref-v21__top-button {
        transform: none;
        min-height: 42px;
        width: auto;
    }

    .gms-ref-v21--mobile-slider .gms-ref-v21__slider {
        position: relative;
    }

    .gms-ref-v21--mobile-slider .gms-ref-v21__grid {
        display: flex;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 18px 0;
        margin: 0;
        grid-template-columns: none;
        scrollbar-width: none;
    }

    .gms-ref-v21--mobile-slider .gms-ref-v21__grid::-webkit-scrollbar {
        display: none;
    }

    .gms-ref-v21--mobile-slider .gms-ref-card {
        flex: 0 0 100%;
        scroll-snap-align: start;
        padding: 0;
    }

    .gms-ref-v21--mobile-slider .gms-ref-v21__arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: clamp(94px, 31vw, 168px);
        z-index: 8;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(20,20,20,.14);
        border-radius: 999px;
        background: rgba(255,255,255,.92);
        color: var(--gms-ref-text);
        box-shadow: 0 10px 26px rgba(0,0,0,.18);
        cursor: pointer;
        backdrop-filter: blur(10px);
        transition: transform .22s ease, background-color .22s ease, color .22s ease, opacity .22s ease;
    }

    .gms-ref-v21--mobile-slider .gms-ref-v21__arrow span {
        display: block;
        font-size: 31px;
        line-height: 1;
        transform: translateY(-2px);
    }

    .gms-ref-v21--mobile-slider .gms-ref-v21__arrow--prev {
        left: 8px;
    }

    .gms-ref-v21--mobile-slider .gms-ref-v21__arrow--next {
        right: 8px;
    }

    .gms-ref-v21--mobile-slider .gms-ref-v21__arrow:hover,
    .gms-ref-v21--mobile-slider .gms-ref-v21__arrow:focus-visible {
        background: var(--gms-ref-accent);
        color: #fff;
        transform: scale(1.07);
        outline: none;
    }

    .gms-ref-v21--mobile-slider .gms-ref-v21__arrow:disabled {
        opacity: .35;
        cursor: default;
        pointer-events: none;
    }

    .gms-ref-v21--mobile-slider .gms-ref-v21__dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 2px;
        min-height: 22px;
    }

    .gms-ref-v21__dot {
        display: block;
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(20,20,20,.22);
        cursor: pointer;
        transition: width .24s ease, background-color .24s ease, transform .24s ease;
    }

    .gms-ref-v21__dot.is-active,
    .gms-ref-v21__dot[aria-current="true"] {
        width: 23px;
        background: var(--gms-ref-accent);
        transform: translateY(-1px);
    }

    .gms-ref-v21--mobile-stack .gms-ref-v21__grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .gms-ref-v21--mobile-stack .gms-ref-v21__arrow,
    .gms-ref-v21--mobile-stack .gms-ref-v21__dots {
        display: none;
    }

    .gms-ref-card__body {
        padding-top: 13px;
    }

    .gms-ref-card__category {
        margin-bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gms-ref-v21 *,
    .gms-ref-v21 *::before,
    .gms-ref-v21 *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
