:root {
    --autori-accent: #a52c30;
    --autori-accent-dark: #821f23;
    --autori-mint: #7cf7d4;
    --autori-navy: #104166;
    --autori-ink: #17212b;
    --autori-muted: #607080;
    --autori-surface: #ffffff;
    --autori-border: rgba(16, 65, 102, 0.12);
    --autori-shadow: 0 18px 48px rgba(16, 65, 102, 0.12);
}

.autori-preview-page {
    margin: 0;
    padding: clamp(20px, 5vw, 72px);
    background: #eef3f6;
}

.authors-preview-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.authors-carousel {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px);
    border: 1px solid var(--autori-border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 5%, rgba(124, 247, 212, 0.22), transparent 25%),
        linear-gradient(145deg, #fff 0%, #fff8f8 58%, #f5f9fc 100%);
    box-shadow: var(--autori-shadow);
    color: var(--autori-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
   margin-top: 2rem;
}

.authors-carousel::before {
    position: absolute;
    top: 0;
    left: clamp(16px, 4vw, 48px);
    width: 84px;
    height: 4px;
    border-radius: 0 0 999px 999px;
    background: var(--autori-accent);
    content: "";
}

.authors-carousel__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(22px, 3vw, 36px);
}

.authors-carousel__title {
    max-width: 720px;
    margin: 0;
    color: var(--autori-navy);
    font-size: clamp(1.45rem, 2.6vw, 2.25rem);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.authors-carousel__title span {
    color: var(--autori-accent);
}
.authors-carousel__slide{
    min-height: 60px;
}
.authors-carousel__controls {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.authors-carousel__button {
    display: inline-grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--autori-border);
    border-radius: 50%;
    background: var(--autori-surface);
    color: var(--autori-navy);
    box-shadow: 0 6px 18px rgba(16, 65, 102, 0.08);
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.authors-carousel__button:hover {
    border-color: var(--autori-accent);
    background: var(--autori-accent);
    color: #fff;
    transform: translateY(-2px);
}

.authors-carousel__button:focus-visible {
    outline: 3px solid rgba(124, 247, 212, 0.8);
    outline-offset: 3px;
}

.authors-carousel__button:disabled {
    cursor: default;
    opacity: 0.38;
    transform: none;
}

.authors-carousel__button svg {
    width: 20px;
    height: 20px;
}

.authors-carousel__viewport {
    margin: -10px;
    padding: 10px;
    overflow: hidden;
    overscroll-behavior-inline: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    touch-action: pan-y;
}

.authors-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.authors-carousel__track {
    display: grid;
    grid-auto-columns: calc((100% - 40px) / 3);
    grid-auto-flow: column;
    align-items: start;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.authors-carousel__slide {
    min-width: 0;
    scroll-snap-align: start;
}

.author-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    height: auto;
    box-sizing: border-box;
    overflow: hidden;
    padding: 20px 16px 18px;
    border: 1px solid var(--autori-border);
    border-radius: 22px;
    background: var(--autori-surface);
    box-shadow: 0 10px 28px rgba(16, 65, 102, 0.08);
    isolation: isolate;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
    
    min-height: 240px;
}

.author-card:hover {
    border-color: rgba(165, 44, 48, 0.28);
    box-shadow: 0 18px 38px rgba(16, 65, 102, 0.15);
    transform: translateY(-5px);
}

.author-card::after {
    position: absolute;
    top: -46px;
    right: -46px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(124, 247, 212, 0.2);
    content: "";
    pointer-events: none;
}

.author-card__photo {
    position: relative;
    z-index: 1;
    width: 86px;
    height: 99px;
    flex: 0 0 99px;
    object-fit: cover;
    object-position: center top;
    border: 4px solid #fff;
    border-radius: 16px;
    box-shadow:
        0 0 0 1px var(--autori-border),
        0 10px 24px rgba(16, 65, 102, 0.13);
}

.author-card__content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.author-card__name {
    margin: 0 0 7px;
    color: var(--autori-navy);
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.author-card__role {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    color: var(--autori-muted);
    font-size: 0.93rem;
    line-height: 1.45;
}

.author-card__role::before {
    width: 22px;
    height: 3px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--autori-accent);
    content: "";
}

.authors-carousel__status {
    margin: 20px 0 0!important;
    color: var(--autori-muted);
    font-size: 0.82rem;
    text-align: center;
}

@media (max-width: 860px) {
    .authors-carousel__track {
        grid-auto-columns: calc((100% - 20px) / 2);
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .authors-carousel {
        border-radius: 20px;
    }

    .authors-carousel__header {
        align-items: center;
    }

    .authors-carousel__controls {
        gap: 7px;
    }

    .authors-carousel__button {
        width: 42px;
        height: 42px;
    }

    .authors-carousel__track {
        grid-auto-columns: 100%;
        gap: 20px;
    }

    .author-card {
        padding: 18px 14px 16px;
    }
}

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

    .author-card,
    .authors-carousel__button {
        transition: none;
    }
}
