.pic,
.pic * {
    box-sizing: border-box;
}

.pic {
    --pic-primary: #302967;
    --pic-dark: #17133f;
    --pic-orange: #ff7738;
    --pic-orange-dark: #e85f25;
    --pic-muted: #777386;
    --pic-border: #e8e6ef;
    --pic-white: #ffffff;

    position: relative;
    width: 100%;
    margin: 0;
    padding: 95px clamp(24px, 4vw, 72px) 100px;
    overflow: hidden;
    color: var(--pic-dark);
    background:
        radial-gradient(circle at 8% 15%, rgba(255,119,56,.09), transparent 25%),
        radial-gradient(circle at 92% 85%, rgba(48,41,103,.08), transparent 27%),
        #fff;
}

.pic__inner {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.pic__heading {
    margin-bottom: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .6fr);
    align-items: end;
    gap: 45px;
}

.pic__badge {
    width: fit-content;
    margin-bottom: 14px;
    padding: 8px 14px;
    border: 1px solid rgba(255,119,56,.19);
    border-radius: 999px;
    color: var(--pic-orange-dark);
    background: rgba(255,119,56,.08);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 800;
}

.pic__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pic-orange);
    box-shadow: 0 0 0 5px rgba(255,119,56,.13);
}

.pic__title {
    max-width: 790px;
    margin: 0;
    color: var(--pic-dark);
    font-size: clamp(34px, 3.4vw, 54px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -1px;
}

.pic__title span {
    color: var(--pic-orange);
}

.pic__description {
    max-width: 550px;
    margin: 0;
    color: var(--pic-muted);
    font-size: 16px;
    line-height: 1.9;
}

.pic__carousel {
    position: relative;
    width: 100%;
    padding-inline: 72px;
}

.pic__viewport {
    width: 100%;
    overflow: hidden;
}

.pic__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 54px) / 4);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 12px 0 18px;
}

.pic__track::-webkit-scrollbar {
    display: none;
}

.pic__card {
    position: relative;
    min-width: 0;
    scroll-snap-align: start;
    border: 1px solid var(--pic-border);
    border-radius: 22px;
    background: var(--pic-white);
    box-shadow: 0 14px 38px rgba(31,25,82,.07);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.pic__card:hover {
    border-color: rgba(48,41,103,.2);
    box-shadow: 0 24px 55px rgba(31,25,82,.14);
    transform: translateY(-6px);
}

.pic__image-link {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.pic__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .35s ease;
}

.pic__card:hover .pic__image {
    transform: scale(1.04);
}

.pic__socials {
    position: absolute;
    left: 50%;
    top: calc(50% - 12px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 9px;
    transform: translate(-50%, -50%);
}

.pic__social {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    background: rgba(23,19,63,.48);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pic__social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.pic__content {
    padding: 18px 18px 20px;
    text-align: center;
}

.pic__name {
    margin: 0 0 6px;
    color: var(--pic-dark);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.45;
}

.pic__name a {
    color: inherit;
    text-decoration: none;
}

.pic__meta {
    color: var(--pic-muted);
    font-size: 12px;
    font-weight: 700;
}

.pic__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--pic-border);
    border-radius: 14px;
    color: var(--pic-primary);
    background: #fff;
    box-shadow: 0 10px 24px rgba(31,25,82,.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.pic__arrow:hover {
    color: #fff;
    border-color: var(--pic-primary);
    background: var(--pic-primary);
    transform: translateY(-50%) scale(1.04);
}

.pic__arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pic__arrow--right {
    right: 8px;
}

.pic__arrow--left {
    left: 8px;
}

.pic__arrow:disabled {
    opacity: .35;
    cursor: default;
}

@media (max-width: 1180px) {
    .pic {
        padding: 80px 24px 85px;
    }

    .pic__track {
        grid-auto-columns: calc((100% - 36px) / 3);
    }
}

@media (max-width: 800px) {
    .pic {
        padding: 65px 18px 70px;
    }

    .pic__heading {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .pic__badge,
    .pic__title,
    .pic__description {
        margin-inline: auto;
    }

    .pic__carousel {
        padding-inline: 58px;
    }

    .pic__track {
        grid-auto-columns: calc((100% - 18px) / 2);
    }

    .pic__arrow {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 600px) {
    .pic {
        padding: 55px 12px 60px;
    }

    .pic__title {
        font-size: 31px;
        line-height: 1.35;
    }

    .pic__description {
        font-size: 14px;
        line-height: 1.85;
    }

    .pic__carousel {
        padding-inline: 52px;
    }

    .pic__track {
        grid-auto-columns: 100%;
        gap: 12px;
        padding-bottom: 12px;
    }

    .pic__arrow {
        width: 42px;
        height: 42px;
    }

    .pic__arrow--right {
        right: 0;
    }

    .pic__arrow--left {
        left: 0;
    }

    .pic__card {
        border-radius: 18px;
    }
}

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

    .pic *,
    .pic *::before,
    .pic *::after {
        transition: none !important;
    }
}
