.production-media {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            .production-media-fallback {
                display: none;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            @media (prefers-reduced-motion: reduce) {
                .production-media {
                    display: none;
                }

                .production-media-fallback {
                    display: block;
                }
            }

            .section--stories {
                background: #fff;
                padding: 100px 0;
                overflow: hidden;
            }

            .stories-track {
                overflow-x: auto;
                padding: 40px 0;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                cursor: grab;
                scroll-behavior: smooth;
            }

            .stories-track.no-smooth {
                scroll-behavior: auto !important;
            }

            .stories-track.no-snap {
                scroll-snap-type: none !important;
            }

            .stories-track.is-dragging {
                scroll-snap-type: none;
                cursor: grabbing;
                scroll-behavior: auto;
            }

            .stories-track::-webkit-scrollbar {
                display: none;
            }

            .stories-wrapper {
                display: flex;
                gap: 24px;
                padding: 0 max(20px, calc((100vw - 1200px) / 2));
            }

            .story-card {
                flex: 0 0 440px;
                height: 480px;
                scroll-snap-align: center;
                scroll-snap-stop: always;
                display: flex;
                flex-direction: column;
                user-select: none;
                position: relative;
                /* Stable layout box - NO scale or transitions that affect flow */
            }

            @media (max-width: 1200px) {
                .stories-wrapper {
                    padding: 0 40px;
                }
            }

            @media (max-width: 1024px) {
                .stories-wrapper {
                    padding: 0 40px;
                }

                .story-card {
                    flex: 0 0 380px;
                    height: 440px;
                }
            }

            @media (max-width: 768px) {
                .stories-wrapper {
                    padding: 0 20px;
                    gap: 16px;
                }

                .story-card {
                    flex: 0 0 calc(100vw - 120px);
                    /* Shows neighbors on all mobile screens */
                    min-height: 420px;
                    height: auto;
                }

                .story-card-inner {
                    padding: 24px;
                }

                .story-card .name {
                    font-size: 1.1rem;
                }

                .story-card .text {
                    font-size: 1rem;
                }
            }



            .story-card-inner {
                width: 100%;
                height: 100%;
                border-radius: 32px;
                padding: 48px;
                background: #f9f9fb;
                transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1),
                    opacity 0.5s cubic-bezier(0.2, 1, 0.3, 1),
                    background 0.5s ease,
                    box-shadow 0.5s ease;
                display: flex;
                flex-direction: column;
                border: 1px solid rgba(0, 0, 0, 0.03);
                opacity: 0.7;
                transform: scale(0.97) translateZ(0);
                will-change: transform, opacity;
                backface-visibility: hidden;
            }

            .story-card.active .story-card-inner {
                opacity: 1;
                transform: scale(1.03) translateZ(0);
                background: #ffffff;
                box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
                border-color: rgba(43, 109, 60, 0.08);
            }



            @media (hover: hover) and (pointer: fine) {
                .story-card:hover .story-card-inner {
                    background: #ffffff;
                    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
                    transform: scale(0.985) translateY(-4px) translateZ(0);
                }
                .story-card.active:hover .story-card-inner {
                    transform: scale(1.03) translateY(-4px) translateZ(0);
                }
            }
            @media (prefers-reduced-motion: reduce) {
                .story-card:hover .story-card-inner,
                .story-card.active:hover .story-card-inner {
                    transform: none;
                }
            }

            .story-author-header {
                display: flex;
                align-items: center;
                gap: 16px;
                margin-bottom: 32px;
            }

            .story-avatar {
                width: 64px;
                height: 64px;
                border-radius: 50%;
                object-fit: cover;
                background: #eee;
                border: 2px solid #fff;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            }

            .story-info {
                display: flex;
                flex-direction: column;
            }

            .story-name {
                font-weight: 700;
                font-size: 1.15rem;
                color: #1d1d1f;
            }

            .story-proj {
                font-size: 0.85rem;
                color: #5f6368;
                margin-top: 2px;
            }

            .story-rating {
                display: flex;
                gap: 5px;
                margin-top: 11px;
                font-size: 1.18rem;
                line-height: 1;
                letter-spacing: 0;
            }

            .story-rating__star {
                position: relative;
                display: inline-block;
                color: #d9dee5;
            }

            .story-rating__star::before {
                content: '★';
                position: absolute;
                left: 0;
                top: 0;
                width: var(--fill, 0%);
                overflow: hidden;
                color: #d9a441;
                text-shadow: 0 4px 12px rgba(217, 164, 65, 0.22);
            }

            .story-rating__star.is-active {
                color: #d9a441;
                text-shadow: 0 4px 12px rgba(217, 164, 65, 0.22);
            }

            .story-quote {
                font-size: 1.4rem;
                line-height: 1.4;
                font-weight: 500;
                color: #1d1d1f;
                margin-top: 0;
            }

            .stories-dots {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 12px;
                margin-top: 40px;
            }

            .dot {
                width: 8px;
                height: 8px;
                background: #e5e7eb;
                border-radius: 4px;
                transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                cursor: pointer;
                position: relative;
                overflow: hidden;
            }

            .dot.active {
                width: 32px;
                background: #e5e7eb;
                border-radius: 10px;
            }

            .dot::after {
                content: '';
                position: absolute;
                left: 0;
                top: 0;
                bottom: 0;
                width: 0;
                background: var(--accent-green);
                border-radius: inherit;
                transition: none;
                z-index: 1;
            }

            /* Анимация заполнения только когда автоплей включен */
            .section--stories.autoplay-on .dot.active::after {
                width: 100%;
                transition: width 6s linear;
            }

            .autoplay-toggle {
                width: 32px;
                height: 32px;
                border-radius: 50%;
                background: #f4f5f6;
                border: none;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.3s ease;
                color: #1d1d1f;
                margin-left: 8px;
            }

            .autoplay-toggle:hover {
                background: #e5e7eb;
                transform: scale(1.1);
            }

            .autoplay-toggle svg {
                width: 14px;
                height: 14px;
                fill: currentColor;
            }
