.contall-ws {
    --contall-blue: #0077b8;
    --contall-blue-dark: #004f78;
    --contall-ink: #073d5a;
    --contall-border: rgba(7, 61, 90, .34);
    --contall-gap: clamp(18px, 2.2vw, 34px);
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: clamp(64px, 7vw, 112px) 0 clamp(54px, 7vw, 104px);
    color: var(--contall-ink);
}

.contall-ws *,
.contall-ws *::before,
.contall-ws *::after {
    box-sizing: border-box;
}

.contall-ws__inner {
    width: min(100%, 1540px);
    margin-inline: auto;
    padding-inline: clamp(24px, 5vw, 82px);
}

.contall-ws__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(32px, 4vw, 58px);
    color: #fff;
}

.contall-ws__heading {
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: clamp(32px, 3.6vw, 58px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.contall-ws__controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.contall-ws__counter {
    min-width: 76px;
    margin-right: 12px;
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.contall-ws__arrow {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0 0 4px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, opacity .2s ease, transform .2s ease;
}

.contall-ws__arrow:hover:not(:disabled),
.contall-ws__arrow:focus-visible {
    background: #fff;
    color: var(--contall-blue);
    transform: translateY(-2px);
}

.contall-ws__arrow:focus-visible,
.contall-ws__card:focus-visible,
.contall-ws__track:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.contall-ws__arrow:disabled {
    opacity: .38;
    cursor: default;
}

.contall-ws__viewport {
    overflow: visible;
}

.contall-ws__track {
    display: flex;
    gap: var(--contall-gap);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 1px 22px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
}

.contall-ws__track::-webkit-scrollbar {
    display: none;
}

.contall-ws__slide {
    flex: 0 0 calc(78% - var(--contall-gap));
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.contall-ws__card {
    display: block;
    height: 100%;
    border: 1px solid var(--contall-border);
    background: #fff;
    color: var(--contall-ink);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 47, 76, .09);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.contall-ws__card:hover,
.contall-ws__card:focus-visible {
    border-color: var(--contall-blue-dark);
    box-shadow: 0 16px 38px rgba(0, 47, 76, .14);
}

.contall-ws__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 6;
    background: #dbe9f0;
}

.contall-ws__image,
.contall-ws__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transform-origin: center center;
}

.contall-ws__slide.is-active .contall-ws__image {
    animation: contall-ws-zoom 8s ease-out forwards;
}

@keyframes contall-ws-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.055); }
}

.contall-ws__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 230px;
    padding: clamp(24px, 3vw, 42px);
}

.contall-ws__category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 18px;
    padding: 5px 15px;
    border-radius: 999px;
    background: var(--contall-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.contall-ws__title {
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: clamp(25px, 2.1vw, 36px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.contall-ws__excerpt {
    width: 100%;
    min-height: 1.55em;
    margin: 14px 0 10px;
    overflow: hidden;
    color: #294f63;
    font-size: 16px;
    line-height: 1.55;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .28s ease, transform .28s ease;
}

.contall-ws__card:hover .contall-ws__excerpt,
.contall-ws__card:focus-visible .contall-ws__excerpt,
.contall-ws__card:focus-within .contall-ws__excerpt {
    opacity: 1;
    transform: translateY(0);
}

.contall-ws__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: var(--contall-blue);
    font-size: 17px;
    font-weight: 600;
}

.contall-ws__cta span {
    transition: transform .2s ease;
}

.contall-ws__card:hover .contall-ws__cta span,
.contall-ws__card:focus-visible .contall-ws__cta span {
    transform: translate(3px, -3px);
}

.contall-ws__progress {
    position: relative;
    height: 2px;
    margin-top: clamp(14px, 2vw, 28px);
    overflow: hidden;
    background: rgba(0, 79, 120, .14);
}

.contall-ws__progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--contall-blue);
    transform: scaleX(var(--contall-ws-progress, .2));
    transform-origin: left center;
    transition: transform .35s ease;
}

@media (max-width: 1024px) {
    .contall-ws__slide {
        flex-basis: 84%;
    }

    .contall-ws__media {
        aspect-ratio: 16 / 7.5;
    }
}

@media (max-width: 767px) {
    .contall-ws {
        padding: 54px 0 62px;
    }

    .contall-ws__inner {
        padding-inline: 20px;
    }

    .contall-ws__header {
        align-items: flex-end;
        margin-bottom: 28px;
    }

    .contall-ws__heading {
        font-size: clamp(30px, 9vw, 42px);
    }

    .contall-ws__counter {
        min-width: 58px;
        margin-right: 0;
        font-size: 15px;
    }

    .contall-ws__arrow {
        display: none;
    }

    .contall-ws__slide {
        flex-basis: 89%;
    }

    .contall-ws__media {
        aspect-ratio: 4 / 3;
    }

    .contall-ws__content {
        min-height: 270px;
        padding: 24px 22px 27px;
    }

    .contall-ws__title {
        font-size: 25px;
    }

    .contall-ws__excerpt {
        display: -webkit-box;
        min-height: 3em;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contall-ws__track {
        scroll-behavior: auto;
    }

    .contall-ws__slide.is-active .contall-ws__image {
        animation: none;
    }

    .contall-ws__arrow,
    .contall-ws__card,
    .contall-ws__excerpt,
    .contall-ws__cta span,
    .contall-ws__progress-bar {
        transition: none;
    }
}

