.ghm-cpc-section,
.ghm-cpc-section * {
    box-sizing: border-box;
}

.ghm-cpc-section {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 56px 20px 74px;
    overflow: hidden;
    background: transparent;
}

.ghm-cpc-section__inner {
    width: min(100%, var(--ghm-cpc-max-width, 1500px));
    max-width: var(--ghm-cpc-max-width, 1500px);
    margin: 0 auto;
}

.ghm-cpc-section__header {
    margin: 0 auto 26px;
    text-align: center;
}

.ghm-cpc-section__title {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 11px;
    color: #151922;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 1.7vw, 30px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: .01em;
    text-align: center;
}

.ghm-cpc-section__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 112px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 46, 86, 0), rgba(255, 46, 86, .72), rgba(255, 46, 86, 0));
    box-shadow: 0 0 12px rgba(255, 46, 86, .2);
    transform: translateX(-50%);
}

.ghm-cpc-section__subtitle {
    max-width: 680px;
    margin: 9px auto 0;
    color: #7b8494;
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
}

.ghm-cpc-carousel {
    position: relative;
    width: min(100%, var(--ghm-cpc-carousel-width, 1500px));
    max-width: var(--ghm-cpc-carousel-width, 1500px);
    margin: 0 auto;
    padding: 2px 96px 0;
    --ghm-cpc-current-slides: var(--ghm-cpc-slides-desktop, 3);
}

.ghm-cpc-carousel__viewport {
    width: min(100%, calc(var(--ghm-cpc-viewport-width, 928px) + 32px));
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 16px 18px;
    overflow: hidden;
}

.ghm-cpc-carousel__track {
    display: flex;
    align-items: flex-start;
    gap: var(--ghm-cpc-gap, 44px);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.ghm-cpc-slide {
    flex: 0 0 var(--ghm-cpc-image-width, 280px);
    width: var(--ghm-cpc-image-width, 280px);
    max-width: 100%;
    margin: 0;
}

.ghm-cpc-slide__media {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12), 0 4px 12px rgba(15, 23, 42, .06);
    transform: translateZ(0);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.ghm-cpc-slide__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 38%);
}

.ghm-cpc-slide__media img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 0;
    border-radius: 20px;
    box-shadow: none;
    object-fit: contain;
    transform: translateZ(0);
    transition: transform .38s ease, filter .38s ease;
}

.ghm-cpc-slide:hover .ghm-cpc-slide__media,
.ghm-cpc-slide:focus-within .ghm-cpc-slide__media {
    border-color: rgba(255, 46, 86, .14);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16), 0 8px 18px rgba(255, 46, 86, .08);
    transform: translateY(-5px);
}

.ghm-cpc-slide:hover .ghm-cpc-slide__media img,
.ghm-cpc-slide:focus-within .ghm-cpc-slide__media img {
    filter: brightness(1.025) contrast(1.015);
    transform: scale(1.018);
}

button.ghm-cpc-carousel__arrow,
.ghm-cpc-carousel__arrow {
    position: absolute;
    top: calc(50% - 6px);
    z-index: 4;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(15, 23, 42, .1) !important;
    border-radius: 999px !important;
    color: #1f2937 !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .14) !important;
    cursor: pointer;
    opacity: .92;
    transform: translateY(-50%);
    transition: opacity .25s ease, transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.ghm-cpc-carousel__arrow span {
    display: block;
    color: inherit;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: .8;
    text-shadow: none;
    transform: translateY(-1px);
}

.ghm-cpc-carousel__arrow--prev {
    left: 18px;
    left: max(18px, calc(50% - var(--ghm-cpc-viewport-half, 464px) - 74px));
}

.ghm-cpc-carousel__arrow--next {
    right: 18px;
    right: max(18px, calc(50% - var(--ghm-cpc-viewport-half, 464px) - 74px));
}

.ghm-cpc-section:not(.is-scrollable) .ghm-cpc-carousel__arrow {
    opacity: 0;
    pointer-events: none;
}

.ghm-cpc-carousel__arrow:hover,
.ghm-cpc-carousel__arrow:focus-visible {
    color: #ffffff !important;
    background: #111827 !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .22) !important;
    opacity: 1;
    outline: none;
    transform: translateY(-50%) scale(1.06);
}

.ghm-cpc-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 12px;
    margin-top: 10px;
}

button.ghm-cpc-carousel__dot,
.ghm-cpc-carousel__dot {
    display: block !important;
    width: 7px !important;
    min-width: 7px !important;
    max-width: 7px !important;
    height: 7px !important;
    min-height: 7px !important;
    max-height: 7px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #d3d8df !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px;
    cursor: pointer;
    opacity: 1;
    transition: width .25s ease, background .25s ease, transform .25s ease, opacity .25s ease;
    -webkit-appearance: none;
    appearance: none;
}

button.ghm-cpc-carousel__dot.is-active,
.ghm-cpc-carousel__dot.is-active {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    background: #111827 !important;
    transform: none;
}

.ghm-cpc-carousel__dot:hover,
.ghm-cpc-carousel__dot:focus-visible {
    background: #6b7280 !important;
    outline: none;
}

@media (max-width: 1024px) {
    .ghm-cpc-section {
        padding-top: 44px;
        padding-bottom: 60px;
    }

    .ghm-cpc-carousel {
        padding-left: 64px;
        padding-right: 64px;
        --ghm-cpc-current-slides: var(--ghm-cpc-slides-tablet, 3);
    }

    .ghm-cpc-carousel__viewport {
        width: min(100%, calc(var(--ghm-cpc-viewport-width-tablet, 928px) + 28px));
        padding-left: 14px;
        padding-right: 14px;
    }

    .ghm-cpc-carousel__arrow--prev {
        left: 12px;
        left: max(12px, calc(50% - var(--ghm-cpc-viewport-half-tablet, 464px) - 58px));
    }

    .ghm-cpc-carousel__arrow--next {
        right: 12px;
        right: max(12px, calc(50% - var(--ghm-cpc-viewport-half-tablet, 464px) - 58px));
    }
}

@media (max-width: 767px) {
    .ghm-cpc-section {
        padding: 34px 14px 52px;
    }

    .ghm-cpc-section__header {
        margin-bottom: 20px;
    }

    .ghm-cpc-section__title {
        font-size: clamp(20px, 6vw, 24px);
        line-height: 1.24;
    }

    .ghm-cpc-carousel {
        width: 100%;
        padding-left: 34px;
        padding-right: 34px;
        --ghm-cpc-current-slides: var(--ghm-cpc-slides-mobile, 1);
    }

    .ghm-cpc-carousel__viewport {
        width: min(100%, calc(var(--ghm-cpc-viewport-width-mobile, 280px) + 20px));
        padding: 8px 10px 14px;
    }

    .ghm-cpc-carousel__track {
        gap: min(var(--ghm-cpc-gap, 44px), 22px);
    }

    .ghm-cpc-slide {
        flex-basis: min(var(--ghm-cpc-image-width, 280px), 76vw);
        width: min(var(--ghm-cpc-image-width, 280px), 76vw);
        max-width: 100%;
    }

    .ghm-cpc-slide__media {
        border-radius: 18px;
        box-shadow: 0 16px 34px rgba(15, 23, 42, .13), 0 3px 10px rgba(15, 23, 42, .06);
    }

    .ghm-cpc-slide__media img {
        border-radius: 16px;
    }

    button.ghm-cpc-carousel__arrow,
    .ghm-cpc-carousel__arrow {
        top: 50%;
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
    }

    .ghm-cpc-carousel__arrow span {
        font-size: 27px;
    }

    .ghm-cpc-carousel__arrow--prev {
        left: 0;
    }

    .ghm-cpc-carousel__arrow--next {
        right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ghm-cpc-carousel__track,
    .ghm-cpc-slide__media,
    .ghm-cpc-slide__media img,
    .ghm-cpc-carousel__arrow,
    .ghm-cpc-carousel__dot {
        transition: none !important;
    }
}
