/* ========== ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ ========== */
        @import "./tokens.css";

        @font-face {
            font-family: "Oktyabrina Script";
            src: url("/main/fonts/oktyabrina-script.ttf") format("truetype");
            font-weight: 400;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: "Proxima Nova";
            src: url("/main/fonts/ofont.ru_Proxima%20Nova.ttf") format("truetype");
            font-weight: 400;
            font-style: normal;
            font-display: swap;
        }

        @font-face {
            font-family: "Helvetica Neue";
            src: url("/main/fonts/HelveticaNeue-Bold.otf") format("opentype");
            font-weight: 700;
            font-style: normal;
            font-display: swap;
        }

        /* ========== БАЗА ========== */
        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        html {
            scroll-behavior: smooth;
            -webkit-font-smoothing: antialiased;
        }
        body {
        
            font-family: var(--font-sans);
            background-color: var(--bg);
            color: var(--foreground);
            line-height: 1.6;
            padding-top: 80px;
        }
        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding-left: 2rem;
            padding-right: 2rem;
        }
        .section-padding {
            padding: clamp(3rem, 10vh, 6rem) 0;
        }
        section[id] {
            scroll-margin-top: 80px;
        }

        /* ========== ТИПОГРАФИКА ========== */
        h1,
        h2,
        h3 {
            font-weight: 500;
            letter-spacing: -0.02em;
            line-height: 1.1;
        }
        h1 {
            font-size: clamp(2.5rem, 8vw, 5rem);
        }
        h2 {
            font-size: clamp(2rem, 5vw, 3.5rem);
        }
        h3 {
            font-size: 1.5rem;
        }
        .text-muted {
            color: var(--muted);
        }
        .text-mono {
            font-family: var(--font-mono);
            font-weight: 400;
        }
        .brand-script {
            font-family: var(--font-script);
            font-weight: 400;
            letter-spacing: 0;
        }

        /* ========== КНОПКИ ========== */
        .btn {
            display: inline-block;
            font-family: var(--font-sans);
            font-weight: 500;
            font-size: 1rem;
            padding: 0.7rem 1.8rem;
            border-radius: var(--radius-btn);
            border: 1px solid transparent;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            text-align: center;
        }
        .btn-primary {
            background-color: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }
        .btn-primary:hover {
            background-color: var(--primary-dark);
            border-color: var(--primary-dark);
            transform: translateY(-2px);
        }
        .btn-outline {
            background-color: #fff;
            color: var(--foreground);
            border-color: #fff;
        }
        .btn-outline:hover {
            background-color: rgba(255, 255, 255, 0.85);
            border-color: rgba(255, 255, 255, 0.85);
            transform: translateY(-2px);
        }

        /* ========== НАВБАР ========== */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 100;
            overflow: visible;
            background-color: rgba(246, 246, 244, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }
        .navbar .container,
        .navbar-container {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 1.25rem;
            width: 100%;
            max-width: 1280px;
            height: 80px;
            padding-top: 0;
            padding-bottom: 0;
        }
        .navbar-social {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        .navbar-social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            color: var(--muted);
            text-decoration: none;
            transition: color 0.2s ease, background-color 0.2s ease;
        }
        .navbar-social-icon {
            display: block;
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }
        .navbar-social-icon--max-img {
            object-fit: contain;
            filter: brightness(0) saturate(100%);
            opacity: 0.55;
            transition: opacity 0.2s ease, filter 0.2s ease;
        }
        .navbar-social-link:hover .navbar-social-icon--max-img {
            opacity: 1;
            filter: brightness(0) saturate(100%) invert(48%) sepia(37%) saturate(1015%) hue-rotate(182deg) brightness(93%) contrast(89%);
        }
        .navbar-social-link:hover {
            color: var(--primary);
            background-color: var(--primary-tint);
        }
        .navbar-logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            height: 100%;
            flex-shrink: 0;
            overflow: visible;
            margin-left: -180px;
        }
        .navbar-logo img {
            height: 104px;
            width: auto;
            display: block;
            transition: opacity 0.2s ease;
        }
        .navbar-logo:hover img {
            opacity: 0.85;
        }
        .navbar-menu {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 1rem;
            height: 80px;
            padding: 0 12px;
            list-style: none;
            margin: 0;
        }
        .navbar-menu-social {
            display: flex;
            align-items: center;
            flex-shrink: 0;
            margin-right: 0.25rem;
        }
        .navbar-menu a {
            font-family: var(--font-mono);
            font-size: 0.85rem;
            color: var(--muted);
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .navbar-menu a:hover {
            color: var(--foreground);
        }
        .navbar-menu a.btn-primary,
        .navbar-auth .btn-primary {
            color: #fff;
        }
        .navbar-menu a.btn-primary:hover,
        .navbar-auth .btn-primary:hover {
            color: #fff;
        }
        .navbar-cta {
            background: transparent;
            color: #000;
            border: 2px solid var(--primary);
        }
        .navbar-menu a.navbar-cta {
            color: #000;
        }
        .navbar-cta:hover,
        .navbar-menu a.navbar-cta:hover {
            background: var(--primary-tint);
            color: #000;
            border-color: var(--primary-dark);
            transform: translateY(-2px);
        }
        .burger-checkbox {
            display: none;
        }
        .burger-icon {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 4px;
        }
        .burger-icon span {
            display: block;
            width: 26px;
            height: 2px;
            background-color: var(--foreground);
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        /* ========== HERO ========== */
        .hero {
            position: relative;
            z-index: 1;
            min-height: 90vh;
            display: flex;
            align-items: flex-end;
            background: #fff;
            overflow: hidden;
            --hero-side-height: min(75vh, 680px);
            --hero-side-inset: clamp(0.75rem, 2vw, 1.5rem);
            --hero-wave-height: clamp(5.5rem, 13vw, 10rem);
            --hero-wave-gap: clamp(1rem, 2.5vw, 2rem);
        }
        #hero.section-padding {
            padding-top: clamp(7.6rem, 21.25vh, 15.18rem);
            padding-bottom: calc(var(--hero-wave-gap) + var(--hero-wave-height));
        }
        .hero::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: var(--hero-wave-height);
            z-index: 2;
            pointer-events: none;
            background:
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='wf' x1='0' y1='0' x2='0' y2='72' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0%25' stop-color='%23f3f8fd'/%3E%3Cstop offset='6%25' stop-color='%23f3f8fd'/%3E%3Cstop offset='100%25' stop-color='%23ffffff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23wf)' d='M0,36 C320,72 520,8 720,36 C920,64 1120,8 1440,36 L1440,72 L0,72 Z'/%3E%3Cpath fill='none' stroke='%238ecbf3' stroke-width='1.5' opacity='0.9' d='M0,36 C320,72 520,8 720,36 C920,64 1120,8 1440,36'/%3E%3C/svg%3E")
                    center bottom / 100% 100% no-repeat;
            -webkit-mask-image: linear-gradient(
                to bottom,
                #000 0%,
                rgba(0, 0, 0, 0.98) 8%,
                rgba(0, 0, 0, 0.9) 20%,
                rgba(0, 0, 0, 0.78) 34%,
                rgba(0, 0, 0, 0.62) 48%,
                rgba(0, 0, 0, 0.46) 62%,
                rgba(0, 0, 0, 0.3) 76%,
                rgba(0, 0, 0, 0.16) 88%,
                rgba(0, 0, 0, 0.06) 96%,
                transparent 100%
            );
            mask-image: linear-gradient(
                to bottom,
                #000 0%,
                rgba(0, 0, 0, 0.98) 8%,
                rgba(0, 0, 0, 0.9) 20%,
                rgba(0, 0, 0, 0.78) 34%,
                rgba(0, 0, 0, 0.62) 48%,
                rgba(0, 0, 0, 0.46) 62%,
                rgba(0, 0, 0, 0.3) 76%,
                rgba(0, 0, 0, 0.16) 88%,
                rgba(0, 0, 0, 0.06) 96%,
                transparent 100%
            );
            -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
        }
        .hero-bg-fill {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }
        .hero-top-copy {
            position: absolute;
            top: clamp(1.25rem, 4vh, 3rem);
            left: 0;
            width: 100%;
            z-index: 2;
            pointer-events: none;
            padding: 0 clamp(1rem, 3vw, 2rem);
            display: flex;
            justify-content: center;
            opacity: 0;
            transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
        }
        .hero-top-copy--active {
            opacity: 1;
        }
        .hero-top-copy__stage {
            position: relative;
            display: inline-block;
            max-width: 100%;
        }
        .hero-top-copy__text {
            margin: 0;
            text-align: center;
            font-family: "Helvetica Neue", var(--font-sans);
            color: #000;
            font-weight: 700;
            line-height: 1.08;
            letter-spacing: 0.02em;
            font-size: clamp(2.1rem, 5.5vw, 4.7rem);
            opacity: 0;
            transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1);
        }
        .hero-top-copy--revealed .hero-top-copy__text {
            opacity: 1;
        }
        .hero-text-reveal-canvas {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            image-rendering: pixelated;
            transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1);
        }
        .hero-text-reveal-canvas--fade-out {
            opacity: 0;
        }
        .hero-text-reveal-canvas--sharp {
            image-rendering: auto;
        }
        .hero-top-copy--revealed .hero-text-reveal-canvas {
            display: none;
        }
        .hero-layout {
            position: relative;
            z-index: 3;
            display: grid;
            grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
            column-gap: clamp(0.25rem, 1.2vw, 0.75rem);
            align-items: end;
            width: 100%;
            min-height: min(80vh, 760px);
            --hero-motion-duration: 900ms;
            --hero-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
            --hero-side-scale-base: 0.85;
            --hero-side-left-settled-scale: 0.86;
            --hero-center-settled-scale: 1.24;
            --hero-side-right-settled-scale: calc(var(--hero-side-scale-base) * 1.3 / 1.1);
            --hero-side-lift-y: calc(var(--hero-side-height) * -0.0206);
            --hero-side-grid-lift-y: calc(var(--hero-side-height) * -0.1029);
            --hero-center-grid-drop-y: calc(var(--hero-side-height) * 0.0441 + 40px);
            --hero-center-grid-shift-x: -88px;
            --hero-side-left-bias-x: calc(var(--hero-side-height) * 0.035 + 100px);
            --hero-side-left-bias-y: calc(var(--hero-side-height) * -0.048);
            --hero-side-right-shift-x: calc(var(--hero-side-height) * -0.0294);
            --hero-side-right-bias-y: calc(var(--hero-side-height) * 0.0206);
        }
        .hero-panel--center {
            align-items: flex-end;
        }
        .hero-layout--phase-focus .hero-panel--center,
        .hero-layout--phase-settled .hero-panel--center,
        .hero-layout--settled .hero-panel--center {
            z-index: 4;
        }
        .hero-puzzle-host {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-height: var(--hero-side-height);
            transform: scale(1);
            transform-origin: center center;
            transition:
                transform var(--hero-motion-duration, 900ms) var(--hero-motion-ease, cubic-bezier(0.22, 1, 0.36, 1)),
                opacity 700ms cubic-bezier(0.25, 0.1, 0.25, 1),
                filter 700ms cubic-bezier(0.25, 0.1, 0.25, 1),
                min-height 600ms var(--hero-motion-ease, cubic-bezier(0.22, 1, 0.36, 1));
            will-change: transform, opacity, filter;
        }
        .hero-panel--center .hero-puzzle-host,
        .hero-panel--left .hero-puzzle-host,
        .hero-panel--right .hero-puzzle-host {
            transform-origin: center bottom;
        }
        .hero-panel--center .hero-puzzle-host {
            transform: translateX(var(--hero-center-grid-shift-x, 0px));
            --hero-center-fade-start: 72%;
            -webkit-mask-image: linear-gradient(
                to bottom,
                #000 0%,
                #000 var(--hero-center-fade-start),
                rgba(0, 0, 0, 0.88) calc(var(--hero-center-fade-start) + 6%),
                rgba(0, 0, 0, 0.52) calc(var(--hero-center-fade-start) + 14%),
                rgba(0, 0, 0, 0.18) calc(var(--hero-center-fade-start) + 22%),
                transparent 100%
            );
            mask-image: linear-gradient(
                to bottom,
                #000 0%,
                #000 var(--hero-center-fade-start),
                rgba(0, 0, 0, 0.88) calc(var(--hero-center-fade-start) + 6%),
                rgba(0, 0, 0, 0.52) calc(var(--hero-center-fade-start) + 14%),
                rgba(0, 0, 0, 0.18) calc(var(--hero-center-fade-start) + 22%),
                transparent 100%
            );
            -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
        }
        .hero-panel {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            padding: clamp(0.75rem, 2vw, 1.5rem);
            position: relative;
            z-index: 1;
        }
        .hero-layout--focus-center .hero-panel--center .hero-puzzle-host {
            transform: translate(
                    var(--hero-center-grid-shift-x, 0px),
                    var(--hero-center-grid-drop-y, 0px)
                )
                scale(var(--hero-center-settled-scale, 1.12));
        }
        .hero-layout--focus-left .hero-panel--left .hero-puzzle-host {
            transform: translate(
                    var(--hero-side-left-bias-x, 0px),
                    calc(
                        var(--hero-side-lift-y, 0px)
                        + var(--hero-side-grid-lift-y, 0px)
                        + var(--hero-side-left-bias-y, 0px)
                    )
                )
                scale(var(--hero-side-left-settled-scale))
                rotate(-4deg);
        }
        .hero-layout--focus-right .hero-panel--right .hero-puzzle-host {
            transform: scale(var(--hero-side-right-settled-scale));
        }
        .hero-layout--settled .hero-panel--center .hero-puzzle-host {
            transform: translate(
                    var(--hero-center-grid-shift-x, 0px),
                    var(--hero-center-grid-drop-y, 0px)
                )
                scale(var(--hero-center-settled-scale, 1.12));
        }
        .hero-layout--settled .hero-panel--left .hero-puzzle-host {
            transform: translate(
                    var(--hero-side-left-bias-x, 0px),
                    calc(
                        var(--hero-side-lift-y, 0px)
                        + var(--hero-side-grid-lift-y, 0px)
                        + var(--hero-side-left-bias-y, 0px)
                    )
                )
                scale(var(--hero-side-left-settled-scale))
                rotate(-4deg);
        }
        .hero-layout--settled .hero-panel--right .hero-puzzle-host {
            transform: scale(var(--hero-side-right-settled-scale));
        }
        .hero:has(.hero-layout--phase-focus),
        .hero:has(.hero-layout--phase-settled) {
            overflow: visible;
        }
        html.hero-puzzle-pending .hero-panel-image,
        .hero-puzzle-host:has(.hero-reveal-canvas) .hero-panel-image {
            position: absolute;
            width: 0;
            height: 0;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            overflow: hidden;
        }
        html.hero-puzzle-pending .hero-puzzle-host {
            min-height: min(52vh, 480px);
        }
        html.hero-puzzle-pending .hero-tablet-host:not(.hero-tablet-host--reveal-active) .hero-tablet-mockup,
        .hero-tablet-host:not(.hero-tablet-host--reveal-active) .hero-tablet-mockup {
            opacity: 0;
            visibility: hidden;
        }
        .hero-tablet-host.hero-tablet-host--reveal-active .hero-tablet-mockup {
            opacity: 1;
            visibility: visible;
            transition: opacity 240ms ease;
        }
        .hero-tablet-host .hero-panel-image {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            overflow: hidden !important;
            position: absolute !important;
        }
        .hero-tablet-host .hero-tablet-screen-slot:not(.hero-media-slot--playing) .hero-slideshow {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none;
        }
        .hero-tablet-host:not(.hero-tablet-host--layers-priming):not(.hero-tablet-host--layers-active) .hero-tablet-frame {
            opacity: 0;
        }
        .hero-tablet-host--layers-priming .hero-tablet-frame,
        .hero-tablet-host--layers-active .hero-tablet-frame {
            opacity: 1;
        }
        .hero-tablet-mockup > .hero-reveal-canvas {
            position: absolute;
            inset: 0;
            z-index: 3;
            width: 100% !important;
            height: 100% !important;
            max-width: none;
            max-height: none;
            background: transparent;
        }
        @media (prefers-reduced-motion: no-preference) {
            .hero-tablet-mockup > .hero-reveal-canvas {
                transition: opacity 180ms ease;
            }
        }
        .hero-tablet-host:not(.hero-tablet-host--layers-active) .hero-tablet-mockup > .hero-reveal-canvas {
            opacity: 1 !important;
        }
        .hero-tablet-host--layers-active .hero-tablet-mockup > .hero-reveal-canvas {
            opacity: 0 !important;
            pointer-events: none;
        }
        .hero-panel-image {
            display: block;
            width: 100%;
            max-height: var(--hero-side-height);
            object-fit: contain;
            object-position: center;
        }
        .hero-device-cta {
            position: absolute;
            left: calc(var(--hero-device-cta-left, 50%) + 30px);
            top: var(--hero-device-cta-top, 41.5%);
            z-index: 6;
            transform: translate(-50%, -50%);
            padding: 0.38rem 0.95rem;
            font-size: clamp(0.62rem, 0.85vw, 0.78rem);
            line-height: 1.2;
            white-space: nowrap;
            background: transparent;
            color: #000;
            border: 1.5px solid var(--primary);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition:
                opacity 0.55s ease,
                visibility 0.55s ease,
                background-color 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
        }
        .hero-device-cta.hero-device-cta--visible {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        .hero-device-cta.hero-device-cta--visible:hover {
            background: var(--primary-tint);
            color: #000;
            border-color: var(--primary-dark);
            transform: translate(-50%, calc(-50% - 2px));
        }
        .hero-reveal-canvas {
            display: block;
            width: auto;
            height: auto;
            max-width: 100%;
            max-height: var(--hero-side-height);
            image-rendering: pixelated;
        }
        .hero-reveal-canvas--sharp {
            image-rendering: auto;
        }
        .hero-puzzle-host--native-sharp .hero-reveal-canvas {
            display: none !important;
        }
        .hero-puzzle-host--native-sharp .hero-panel-image {
            position: relative !important;
            width: 100% !important;
            height: auto !important;
            max-height: var(--hero-side-height);
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: none;
            overflow: visible !important;
        }
        .hero-media-slot {
            position: relative;
            flex-shrink: 0;
            max-width: 100%;
            max-height: var(--hero-side-height);
        }
        .hero-tablet-mockup {
            position: relative;
            display: inline-block;
            max-width: 100%;
            line-height: 0;
            overflow: hidden;
            --hero-tablet-screen-offset-x: 0.906%;
            --hero-tablet-screen-offset-y: -0.579%;
        }
        .hero-tablet-frame {
            display: block;
            width: auto;
            max-width: 100%;
            max-height: var(--hero-side-height);
            height: auto;
            position: relative;
            z-index: 2;
            pointer-events: none;
        }
        .hero-tablet-screen-slot {
            position: absolute;
            inset: 0;
            z-index: 1;
            overflow: hidden;
            max-width: none;
            max-height: none;
            background: transparent;
        }
        .hero-tablet-screen-inner {
            position: absolute;
            inset: 0;
            transform: translate(
                var(--hero-tablet-screen-offset-x, 0),
                var(--hero-tablet-screen-offset-y, 0)
            );
        }
        .hero-tablet-screen-slot .hero-slideshow-window {
            border: none;
            border-radius: 0;
            box-shadow: none;
            overflow: hidden;
        }
        .hero-tablet-screen-slot .hero-slideshow-slide {
            object-fit: fill;
            object-position: center;
        }
        .hero-tablet-host .hero-slideshow-track {
            position: relative;
            display: block;
            height: 100%;
            transform: none !important;
            transition: none;
        }
        .hero-tablet-host .hero-slideshow-slide {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            flex: none;
            opacity: 0;
            transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }
        .hero-tablet-host .hero-slideshow-slide.is-active {
            opacity: 1;
            pointer-events: auto;
        }
        html.hero-puzzle-pending .hero-tablet-host {
            min-height: min(52vh, 480px);
        }
        @media (min-width: 769px) {
            .hero-panel--left {
                align-items: flex-end;
                justify-content: flex-end;
                padding-left: var(--hero-side-inset);
                padding-right: clamp(0.25rem, 0.8vw, 0.5rem);
            }
            .hero-panel--center {
                justify-content: flex-start;
                padding-left: clamp(0.25rem, 0.8vw, 0.5rem);
                padding-right: var(--hero-side-inset);
            }
            .hero-panel--right {
                overflow: visible;
                justify-content: flex-end;
                align-items: flex-end;
                padding-right: var(--hero-side-inset);
            }
            .hero-layout--focus-right .hero-panel--right .hero-puzzle-host,
            .hero-layout--settled .hero-panel--right .hero-puzzle-host {
                transform: translate(
                        var(--hero-side-right-shift-x, 0px),
                        calc(
                            var(--hero-side-lift-y, 0px)
                            + var(--hero-side-right-bias-y, 0px)
                            + var(--hero-side-grid-lift-y, 0px)
                        )
                    )
                    scale(var(--hero-side-right-settled-scale));
            }
        }
        .hero-slideshow {
            position: absolute;
            inset: 0;
            z-index: 2;
        }
        .hero-slideshow-window {
            width: 100%;
            height: 100%;
            overflow: hidden;
            border: none;
            border-radius: clamp(1.1rem, 2.2vw, 1.75rem);
            background: transparent;
            box-shadow:
                0 18px 40px rgba(13, 153, 255, 0.14),
                inset 0 0 0 2px rgba(13, 153, 255, 0.28),
                inset 0 0 0 1px rgba(255, 255, 255, 0.85);
            backface-visibility: hidden;
        }
        .hero-slideshow-track {
            display: flex;
            height: 100%;
            will-change: transform;
        }
        .hero-slideshow-slide {
            flex: 0 0 100%;
            width: 100%;
            height: 100%;
            display: block;
            object-fit: contain;
            object-position: center;
            background: transparent;
        }
        html.hero-puzzle-pending .hero-slideshow,
        .hero-media-slot:not(.hero-media-slot--ready):not(.hero-media-slot--playing) .hero-slideshow {
            visibility: hidden;
            pointer-events: none;
        }
        .hero-media-slot--ready .hero-slideshow,
        .hero-media-slot--playing .hero-slideshow {
            visibility: visible;
        }
        .hero-media-slot--playing .hero-reveal-canvas {
            opacity: 0;
            pointer-events: none;
        }
        .hero-media-slot .hero-reveal-canvas {
            position: relative;
            z-index: 1;
            transition: opacity 120ms ease;
        }
        .hero-panel--right .hero-media-slot .hero-reveal-canvas,
        .hero-panel--right .hero-slideshow-window {
            clip-path: inset(
                var(--hero-slide-clip-top, 0px)
                var(--hero-slide-clip-right, 0px)
                var(--hero-slide-clip-bottom, 0px)
                var(--hero-slide-clip-left, 0px)
                round clamp(1.1rem, 2.2vw, 1.75rem)
            );
        }
        .hero-panel--right .hero-media-slot .hero-reveal-canvas {
            border-radius: clamp(1.1rem, 2.2vw, 1.75rem);
        }
        @media (max-width: 768px) {
            .hero {
                align-items: flex-start;
                min-height: auto;
                overflow: hidden;
                --hero-wave-height: clamp(2rem, 5.5vw, 2.75rem);
                --hero-wave-gap: clamp(0.5rem, 1.5vw, 0.875rem);
            }
            .hero:has(.hero-layout--phase-focus),
            .hero:has(.hero-layout--phase-settled) {
                overflow: hidden;
            }
            .hero::after {
                -webkit-mask-image: none;
                mask-image: none;
                background:
                    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath fill='%23f3f8fd' d='M0,40 C240,68 480,20 720,40 C960,60 1200,20 1440,40 L1440,72 L0,72 Z'/%3E%3Cpath fill='none' stroke='%238ecbf3' stroke-width='1.25' opacity='0.75' d='M0,40 C240,68 480,20 720,40 C960,60 1200,20 1440,40'/%3E%3C/svg%3E")
                        center bottom / 100% 100% no-repeat;
            }
            #hero.section-padding {
                padding-top: clamp(6.07rem, 18.22vh, 10.63rem);
                padding-bottom: calc(var(--hero-wave-gap) + var(--hero-wave-height));
            }
            .hero-top-copy {
                top: clamp(0.9rem, 2.8vh, 1.8rem);
            }
            .hero-top-copy__text {
                font-size: clamp(1.55rem, 7.5vw, 2.55rem);
                line-height: 1.12;
            }
            .hero-layout {
                grid-template-columns: 1fr;
                grid-auto-flow: row;
                align-items: center;
                justify-items: center;
                gap: 1.25rem;
                min-height: auto;
                --hero-center-grid-shift-x: 0px;
                --hero-center-grid-drop-y: 0px;
            }
            .hero-panel {
                width: 100%;
                justify-content: center;
                align-items: center;
                padding-left: clamp(0.75rem, 3vw, 1.25rem);
                padding-right: clamp(0.75rem, 3vw, 1.25rem);
            }
            .hero-panel--center {
                order: 1;
                align-items: center;
                justify-content: center;
            }
            .hero-panel--left {
                order: 2;
            }
            .hero-panel--right {
                order: 3;
            }
            .hero-panel--center .hero-puzzle-host {
                transform: none;
                margin-inline: auto;
            }
            .hero-puzzle-host,
            .hero-reveal-canvas,
            .hero-panel-image {
                max-height: min(42vh, 320px);
            }
            .hero-panel--center .hero-puzzle-host,
            .hero-panel--center .hero-reveal-canvas,
            .hero-panel--center .hero-panel-image {
                max-height: min(46vh, 360px);
            }
            .hero-media-slot {
                max-height: min(42vh, 320px);
            }
            html.hero-puzzle-pending .hero-puzzle-host {
                min-height: min(32vh, 240px);
            }
            .hero-layout--focus-center .hero-panel--center .hero-puzzle-host,
            .hero-layout--settled .hero-panel--center .hero-puzzle-host {
                transform: translate(0, 0) scale(1.03);
            }
            .hero-layout--focus-left .hero-panel--left .hero-puzzle-host,
            .hero-layout--focus-right .hero-panel--right .hero-puzzle-host,
            .hero-layout--settled .hero-panel--left .hero-puzzle-host,
            .hero-layout--settled .hero-panel--right .hero-puzzle-host {
                transform: scale(0.96);
            }
        }
        @media (prefers-reduced-motion: reduce) {
            html.hero-puzzle-pending .hero-puzzle-host {
                min-height: 0;
            }
            .hero-puzzle-host {
                transition: none;
                will-change: auto;
            }
            .hero-reveal-canvas {
                display: none;
            }
            .hero-top-copy {
                opacity: 1;
                transition: none;
            }
            .hero-top-copy__text {
                opacity: 1;
                transition: none;
            }
            .hero-text-reveal-canvas {
                display: none;
            }
        }

        /* ========== БЛОК С ЗАГОЛОВКОМ, ИЗОБРАЖЕНИЕМ И ВЫЕЗЖАЮЩИМ ТЕКСТОМ ========== */
        .expand-block {
            background-color: var(--bg);
            border-bottom: 1px solid var(--card-border);
            overflow: hidden;
        }
        .expand-block .container {
            padding-top: 1.5rem;
            padding-bottom: 1.5rem;
        }
        .expand-block .section-title {
            text-align: center;
            margin-bottom: 0.5rem;
        }
        .expand-block .section-subtitle {
            text-align: center;
            color: var(--muted);
            max-width: 600px;
            margin: 0 auto 2.5rem;
            font-size: 1.1rem;
            line-height: 1.6;
        }
        .expand-content {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 320px;
            overflow: visible;
        }
        .image-wrapper {
            flex-shrink: 0;
            width: 55%;
            max-width: 650px;
            border-radius: var(--radius-card);
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            background: #fff;
            z-index: 2;
            transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
            transform: scale(1);
        }
        .image-wrapper img {
            width: 100%;
            height: auto;
            display: block;
        }
        /* Боковые панели — ширина 22%, сдвинуты наружу */
        .side-panel {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 22%;
            max-width: 280px;
            padding: 1.5rem;
            z-index: 1;
            opacity: 0;
            transition: opacity 0.6s ease 0.2s,
                transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
            background: transparent;
            pointer-events: none;
        }
        .side-panel.left {
            left: -2rem;
            transform: translateY(-50%) translateX(-120%);
            text-align: right;
        }
        .side-panel.right {
            right: -2rem;
            transform: translateY(-50%) translateX(120%);
            text-align: left;
        }
        .side-panel p {
            margin: 0;
            font-size: 1rem;
            line-height: 1.6;
            color: var(--muted);
        }
        .side-panel p strong {
            display: block;
            color: var(--primary);
            margin-bottom: 0.3rem;
        }

        /* Состояние expanded */
        .expand-content.expanded .image-wrapper {
            transform: scale(1.08);
            width: 60%;
        }
        .expand-content.expanded .side-panel {
            opacity: 1;
            transform: translateY(-50%) translateX(0);
            pointer-events: auto;
        }

        /* ========== АДАПТИВ ДЛЯ ПЛАНШЕТОВ ========== */
        @media (max-width: 1024px) and (min-width: 769px) {
            .image-wrapper {
                width: 60%;
                max-width: 500px;
            }
            .side-panel {
                width: 22%;
                max-width: 220px;
                left: -1rem;
                right: -1rem;
            }
        }

        /* ========== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ========== */
        @media (max-width: 768px) {
            .expand-block .section-subtitle {
                margin-bottom: 1.5rem;
                font-size: 1rem;
            }
            .expand-content {
                flex-wrap: wrap;
                min-height: auto;
                padding: 0 0.5rem;
            }
            .image-wrapper {
                width: 100% !important;
                max-width: 100%;
                transform: none !important;
                margin: 1rem 0;
                order: 1;
            }
            .side-panel {
                position: static;
                transform: none !important;
                width: 100% !important;
                max-width: 100%;
                opacity: 1 !important;
                padding: 0.5rem 1rem;
                text-align: center !important;
                order: 2;
                pointer-events: auto;
                left: auto !important;
                right: auto !important;
            }
            .side-panel.left {
                order: 0;
            }
            .side-panel.right {
                order: 3;
            }
            .side-panel p {
                font-size: 0.95rem;
            }
        }

        /* ========== КАРТОЧКИ ========== */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }
        .card {
            background-color: var(--card);
            border: 1px solid var(--card-border);
            border-radius: var(--radius-card);
            padding: 2rem;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
            will-change: transform;
            display: flex;
            flex-direction: column;
        }
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(74, 140, 217, 0.08);
        }
        .card-icon {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-icon);
            background-color: var(--primary-tint);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.2rem;
            color: var(--primary);
            flex-shrink: 0;
        }
        .card-icon svg {
            width: 28px;
            height: 28px;
            stroke: currentColor;
            stroke-width: 1.5;
            fill: none;
        }
        .card h3 {
            margin-bottom: 0.6rem;
        }
        .card p {
            color: var(--muted);
            line-height: 1.5;
            font-size: 0.95rem;
            flex: 1;
        }

        /* ===== СПЕЦИАЛЬНЫЕ ПРАВИЛА ДЛЯ КАРТОЧЕК С GIF ===== */
        .card-with-gif {
            padding: 0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .card-with-gif .card-gif-wrapper {
            margin: 0;
            border-radius: 0;
            background: none;
            box-shadow: none;
            flex-shrink: 0;
            overflow: hidden;
        }
        .card-with-gif .card-gif-wrapper img {
            display: block;
            width: 100%;
            height: auto;
        }
        .card-with-gif .card-body {
            padding: 1.5rem;
            flex: 1;
        }
        .card-with-gif .card-icon {
            margin-bottom: 1rem;
        }

        /* ========== БЕГУЩАЯ СТРОКА ========== */
        .marquee-section {
            background-color: var(--primary-tint);
            padding: 2rem 0;
            overflow: hidden;
            position: relative;
        }
        .marquee-track {
            display: flex;
            width: max-content;
            animation: marqueeScroll 30s linear infinite;
            will-change: transform;
        }
        .marquee-track .logo-item {
            flex-shrink: 0;
            padding: 0 3rem;
            font-family: var(--font-mono);
            font-weight: 500;
            font-size: 1.3rem;
            letter-spacing: 0.06em;
            color: var(--muted);
            white-space: nowrap;
            opacity: 0.6;
            transition: opacity 0.3s ease;
        }
        .marquee-track .logo-item:hover {
            opacity: 1;
        }
        @keyframes marqueeScroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }

        /* ========== CTA ========== */
        .cta-section {
            text-align: center;
        }
        .cta-section h2 {
            max-width: 700px;
            margin: 0 auto 1.5rem;
        }
        .cta-section p {
            max-width: 560px;
            margin: 0 auto 2rem;
            color: var(--muted);
            font-size: 1.1rem;
        }

        /* ========== ФУТЕР ========== */
        .footer {
            background-color: var(--footer-bg);
            color: rgba(255, 255, 255, 0.6);
            padding: 3rem 0;
            margin-top: 2rem;
        }
        .footer .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1.5rem;
        }
        .footer a {
            color: rgba(255, 255, 255, 0.5);
            text-decoration: none;
            font-family: var(--font-mono);
            font-size: 0.85rem;
            transition: color 0.2s ease;
        }
        .footer a:hover {
            color: #fff;
        }
        .footer .footer-logo {
            display: flex;
            align-items: center;
            text-decoration: none;
        }
        .footer .footer-logo img {
            height: 32px;
            width: auto;
            display: block;
            filter: brightness(0) invert(1);
            transition: opacity 0.2s ease;
        }
        .footer .footer-logo:hover img {
            opacity: 0.8;
        }

        /* ========== FADE-UP ========== */
        .fade-up {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.7s ease, transform 0.7s ease;
            will-change: opacity, transform;
        }
        .fade-up.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .card:nth-child(1) {
            transition-delay: 0.05s;
        }
        .card:nth-child(2) {
            transition-delay: 0.12s;
        }
        .card:nth-child(3) {
            transition-delay: 0.19s;
        }
        .card:nth-child(4) {
            transition-delay: 0.26s;
        }
        .card:nth-child(5) {
            transition-delay: 0.33s;
        }
        .card:nth-child(6) {
            transition-delay: 0.40s;
        }

        .scramble-target {
            font-family: var(--font-mono);
            font-weight: 500;
        }

        /* ========== ОБЩАЯ АДАПТИВНОСТЬ ========== */
        @media (max-width: 1024px) and (min-width: 769px) {
            .cards-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 768px) {
            body {
                padding-top: 68px;
            }
            .navbar {
                display: flex;
                align-items: center;
                min-height: 68px;
                padding-right: 12px;
            }
            .navbar .container,
            .navbar-container {
                flex: 1;
                min-width: 0;
                height: 68px;
                gap: 0.75rem;
            }
            .navbar-social {
                height: auto;
            }
            .navbar-menu-social {
                position: static;
                height: auto;
                width: 100%;
                justify-content: center;
                margin-right: 0;
                padding-top: 0;
                margin-top: 0;
                border-top: none;
            }
            .navbar-menu-social .navbar-social {
                justify-content: center;
                gap: 0.75rem;
            }
            .navbar-social-link {
                width: 40px;
                height: 40px;
            }
            .navbar-social-icon {
                width: 20px;
                height: 20px;
            }
            .navbar-logo img {
                height: clamp(72px, 28vw, 88px);
            }
            .navbar-logo {
                margin-left: -132px;
            }
            .burger-icon {
                display: flex;
                position: static;
                z-index: 3;
                align-items: center;
                justify-content: center;
                height: 68px;
                flex-shrink: 0;
                margin-left: 0;
            }
            .navbar-menu {
                position: absolute;
                top: 68px;
                left: 0;
                right: 0;
                width: 100%;
                height: auto;
                margin-left: 0;
                padding-right: 0;
                background: rgba(246, 246, 244, 0.96);
                backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
                flex-direction: column;
                padding: 2rem 1.5rem;
                gap: 1.5rem;
                transform: scaleY(0);
                transform-origin: top center;
                opacity: 0;
                transition: transform 0.35s ease, opacity 0.35s ease;
                border-bottom: 1px solid rgba(0, 0, 0, 0.05);
                pointer-events: none;
            }
            .burger-checkbox:checked~.navbar-menu {
                transform: scaleY(1);
                opacity: 1;
                pointer-events: auto;
            }
            .burger-checkbox:checked~.burger-icon span:nth-child(1) {
                transform: rotate(45deg) translate(5px, 5px);
            }
            .burger-checkbox:checked~.burger-icon span:nth-child(2) {
                opacity: 0;
            }
            .burger-checkbox:checked~.burger-icon span:nth-child(3) {
                transform: rotate(-45deg) translate(5px, -5px);
            }
            .navbar-auth {
                flex-direction: column;
                width: 100%;
            }
            .navbar-auth .btn {
                width: 100%;
                text-align: center;
            }
            .cards-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            .container {
                padding-left: 1.5rem;
                padding-right: 1.5rem;
            }
            .marquee-track .logo-item {
                padding: 0 1.5rem;
                font-size: 1rem;
            }
            .footer .container {
                flex-direction: column;
                text-align: center;
            }
            .footer .footer-logo img {
                height: 28px;
            }
            .navbar {
                backdrop-filter: blur(6px);
                -webkit-backdrop-filter: blur(6px);
            }
            .card-gif-wrapper {
                margin-top: 0;
                border-radius: 0;
            }
            .card-with-gif .card-body {
                padding: 1.25rem;
            }
        }
        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* ========== БЛОК: СХЕМА РАБОТЫ ========== */
        .steps-section {
            background-color: var(--bg);
            border-bottom: 1px solid var(--card-border);
        }

        .steps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 4rem;
            counter-reset: step-counter;
            position: relative;
        }

        .step-card {
            background-color: var(--card);
            border: 2px solid rgba(74, 140, 217, 0.2);
            border-radius: var(--radius-card);
            padding: 2.5rem 2rem;
            transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
            position: relative;
            counter-increment: step-counter;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            opacity: 0;
            transform: translateX(40px) scale(0.95);
            animation: stepAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        /* ===== КРУГЛАЯ ОБЕРТКА ДЛЯ ИЗОБРАЖЕНИЯ ===== */
        .step-image-wrapper {
            width: 110px;
            height: 110px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
            margin-bottom: 1.25rem;
            /* Убрали border и box-shadow с синим цветом */
            border: none;
            box-shadow: none;
            transition: transform 0.3s ease;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
        }

        .step-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
            display: block;
        }

        .step-card:hover .step-image-wrapper {
            transform: scale(1.05);
        }

        /* Убираем ::before для карточек с изображением */
        .step-card:has(.step-image-wrapper)::before {
            display: none;
        }

        /* Для остальных карточек ::before остаётся (теперь их нет, все 4 шага с изображениями) */
        .step-card:not(:has(.step-image-wrapper))::before {
            content: "0" counter(step-counter);
            font-family: var(--font-mono);
            font-weight: 500;
            font-size: 1.25rem;
            color: var(--primary);
            background: rgba(74, 140, 217, 0.1);
            display: inline-block;
            padding: 0.3rem 0.9rem;
            border-radius: 40px;
            margin-bottom: 1.25rem;
            align-self: center;
            letter-spacing: 0.02em;
        }

        /* Фаза 1: появление */
        .step-card:nth-child(1) {
            animation-delay: 0.1s;
            transform: translateX(0) scale(1);
            opacity: 1;
        }
        .step-card:nth-child(2) {
            animation-delay: 0.4s;
        }
        .step-card:nth-child(3) {
            animation-delay: 0.7s;
        }
        .step-card:nth-child(4) {
            animation-delay: 1.0s;
        }

        @keyframes stepAppear {
            0% {
                opacity: 0;
                transform: translateX(40px) scale(0.95);
            }
            100% {
                opacity: 1;
                transform: translateX(0) scale(1);
            }
        }

        /* Фаза 2: шахматный порядок */
        .step-card:nth-child(1) {
            animation: stepAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
                       stepChessUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.7s forwards;
        }
        .step-card:nth-child(2) {
            animation: stepAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards,
                       stepChessDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.7s forwards;
        }
        .step-card:nth-child(3) {
            animation: stepAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards,
                       stepChessUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s forwards;
        }
        .step-card:nth-child(4) {
            animation: stepAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.0s forwards,
                       stepChessDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.1s forwards;
        }

        @keyframes stepChessUp {
            0% { transform: translateY(0); }
            100% { transform: translateY(-20px); }
        }

        @keyframes stepChessDown {
            0% { transform: translateY(0); }
            100% { transform: translateY(20px); }
        }

        .step-card:hover {
            box-shadow: 0 12px 30px rgba(74, 140, 217, 0.06);
        }

        .step-card h3 {
            margin-bottom: 0.6rem;
            font-size: 1.3rem;
        }

        .step-card p {
            color: var(--muted);
            line-height: 1.5;
            font-size: 0.95rem;
            flex: 1;
        }

        /* Стрелочки между карточками (десктоп) */
        @media (min-width: 992px) {
            .step-card:not(:last-child)::after {
                content: "→";
                position: absolute;
                right: -1.5rem;
                top: 50%;
                transform: translateY(-50%);
                font-size: 1.6rem;
                color: var(--primary);
                opacity: 0.5;
                font-weight: 300;
                pointer-events: none;
                z-index: 5;
            }
        }

        /* Мобильная адаптация */
        @media (max-width: 768px) {
            .steps-grid {
                gap: 1.5rem;
                margin-top: 2.5rem;
            }
            .step-card {
                padding: 1.75rem 1.25rem;
                transform: translateX(0) scale(1);
                animation: stepAppearMobile 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            }
            .step-card:nth-child(1) {
                animation-delay: 0.1s;
                opacity: 1;
                transform: translateY(0) scale(1);
            }
            .step-card:nth-child(2) {
                animation-delay: 0.3s;
            }
            .step-card:nth-child(3) {
                animation-delay: 0.5s;
            }
            .step-card:nth-child(4) {
                animation-delay: 0.7s;
            }

            .step-card:nth-child(1),
            .step-card:nth-child(2),
            .step-card:nth-child(3),
            .step-card:nth-child(4) {
                animation: stepAppearMobile 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            }
            .step-card:nth-child(1) { animation-delay: 0.1s; }
            .step-card:nth-child(2) { animation-delay: 0.3s; }
            .step-card:nth-child(3) { animation-delay: 0.5s; }
            .step-card:nth-child(4) { animation-delay: 0.7s; }

            @keyframes stepAppearMobile {
                0% {
                    opacity: 0;
                    transform: translateY(30px) scale(0.95);
                }
                100% {
                    opacity: 1;
                    transform: translateY(0) scale(1);
                }
            }

            .step-image-wrapper {
                width: 85px;
                height: 85px;
                margin-bottom: 1rem;
                padding: 8px;
            }

            .step-card:not(:has(.step-image-wrapper))::before {
                font-size: 1rem;
                padding: 0.2rem 0.8rem;
            }
            .step-card h3 {
                font-size: 1.15rem;
            }
            .step-card:not(:last-child)::after {
                content: "↓";
                position: static;
                transform: none;
                text-align: center;
                display: block;
                margin: 0.5rem 0 -0.25rem;
                font-size: 1.4rem;
                color: var(--primary);
                opacity: 0.4;
            }
            .step-card:has(.step-image-wrapper)::after {
                display: none !important;
            }
        }

        /* ================================================================ */
        /* ====== НОВЫЙ БЛОК: ВОРОНКА ПРОЦЕССА (УДАЛЁН, ОСТАВЛЕН ТОЛЬКО СЛОГАН) ====== */
        /* ================================================================ */
        .funnel-section {
            background: linear-gradient(180deg, var(--bg) 0%, #FFFFFF 100%);
            border-top: 1px solid var(--card-border);
            border-bottom: 1px solid var(--card-border);
            padding: clamp(3rem, 10vh, 6rem) 0;
            position: relative;
            overflow: hidden;
        }

        .funnel-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(74, 140, 217, 0.05) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }

        .funnel-header {
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
            z-index: 2;
        }

        .funnel-header h2 {
            margin-bottom: 0.75rem;
        }

        .funnel-header .subtitle {
            color: var(--muted);
            font-size: 1.15rem;
            max-width: 640px;
            margin: 0 auto;
            line-height: 1.7;
        }

        /* ====== ФИНАЛЬНЫЙ СЛОГАН ====== */
        .funnel-final-slogan {
            text-align: center;
            padding: 2.5rem 2rem;
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
            border-radius: var(--radius-card);
            position: relative;
            z-index: 2;
            overflow: hidden;
            max-width: 900px;
            margin: 0 auto;
            box-shadow: 0 12px 40px rgba(74, 140, 217, 0.22);
        }

        .funnel-final-slogan::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
            pointer-events: none;
        }

        .funnel-final-slogan p {
            font-size: clamp(1.2rem, 2.5vw, 1.8rem);
            font-weight: 500;
            color: #FFFFFF;
            line-height: 1.5;
            position: relative;
            z-index: 1;
            letter-spacing: -0.02em;
        }

        .funnel-final-slogan p span {
            color: var(--primary-accent);
        }

        /* ====== АДАПТИВ ВОРОНКИ ====== */
        @media (max-width: 768px) {
            .funnel-header {
                margin-bottom: 2rem;
            }
            .funnel-header .subtitle {
                font-size: 1rem;
            }
            .funnel-final-slogan {
                padding: 1.75rem 1.25rem;
            }
            .funnel-final-slogan p {
                font-size: 1.1rem;
            }
        }

        @media (max-width: 480px) {
            .funnel-final-slogan {
                padding: 1.25rem 1rem;
            }
            .funnel-final-slogan p {
                font-size: 1rem;
            }
        }
/* ========== ИЗВЛЕЧЁННЫЕ INLINE-СТИЛИ ========== */
.btn-sm {
    padding: 0.5rem 1.4rem;
    font-size: 0.85rem;
}
.btn-lg {
    font-size: 1.1rem;
    padding: 0.9rem 2.8rem;
}
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.section-intro--mb {
    margin-bottom: 0.5rem;
}
.section-label {
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 0.5rem;
}
.section-subtitle-centered {
    text-align: center;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 3.5rem;
    font-size: 1.1rem;
}
.footer-copy {
    font-size: 0.85rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
}
.navbar-auth {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ========== БЛОК: ВЫГОДЫ ========== */
.benefits-section {
    position: relative;
    z-index: 0;
    isolation: isolate;
    background-color: #fff;
    border-bottom: 1px solid var(--card-border);
    overflow: hidden;
}
.benefits-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Совпадает с paintBlueZonesMeasured в hero-bg-fill.js (center 1/3 белый) */
    background:
        linear-gradient(
            90deg,
            rgba(13, 153, 255, 1) 0%,
            rgba(13, 153, 255, 0.78) 26%,
            rgba(13, 153, 255, 0.42) 52%,
            rgba(13, 153, 255, 0.12) 78%,
            rgba(13, 153, 255, 0) 100%
        ) 0 0 / 33.333% 100% no-repeat,
        linear-gradient(
            90deg,
            rgba(13, 153, 255, 0) 0%,
            rgba(13, 153, 255, 0.12) 22%,
            rgba(13, 153, 255, 0.42) 48%,
            rgba(13, 153, 255, 0.78) 74%,
            rgba(13, 153, 255, 1) 100%
        ) 100% 0 / 33.333% 100% no-repeat;
}
.benefits-section > .container {
    position: relative;
    z-index: 1;
}
.benefits-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    line-height: 1.1;
}
.benefits-title-line {
    display: block;
}
.benefits-title-line--sm {
    font-size: 0.45em;
    line-height: 1;
}
.benefits-title-brand {
    display: block;
    font-size: clamp(2.2rem, 5.5vw, 3.75rem);
    line-height: 1;
}
.benefits-section-hint {
    margin: 0.75rem auto 0;
    max-width: 34ch;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--muted);
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.benefits-section-hint.is-dismissed {
    opacity: 0;
    transform: translateY(-4px);
}
.benefits-grid {
    --benefits-closed-height: 124px;
    --benefits-flip-duration: 0.65s;
    --benefits-flip-ease: cubic-bezier(0.34, 1.2, 0.64, 1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}
.benefits-card-wrap {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: inherit;
    font: inherit;
    color: inherit;
    position: relative;
    z-index: 1;
    align-self: start;
    perspective: 1400px;
    -webkit-perspective: 1400px;
    transition: z-index 0s linear var(--benefits-flip-duration);
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}
.benefits-card-wrap:focus {
    outline: none;
}
.benefits-card-wrap:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}
.benefits-card-wrap.is-active {
    z-index: 20;
    transition: z-index 0s linear 0s;
}
@media (hover: hover) {
    .benefits-card-wrap:not(.is-active):hover .benefits-card-inner {
        transform: rotateX(4deg) rotateY(-4deg) scale(1.01);
    }
}
.benefits-card-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    min-height: var(--benefits-closed-height);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform: rotateY(0deg) scale(1);
    transform-origin: center center;
    transition:
        transform var(--benefits-flip-duration) var(--benefits-flip-ease),
        height var(--benefits-flip-duration) var(--benefits-flip-ease);
}
.benefits-card-wrap.is-active .benefits-card-inner {
    transform: rotateY(180deg);
}
.benefits-card-face {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--benefits-closed-height);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    background-color: var(--card);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.benefits-card-face--front {
    transform: rotateY(0deg);
    position: relative;
    overflow: hidden;
}
.benefits-card-hint {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    background: linear-gradient(145deg, var(--primary-tint) 0%, rgba(102, 163, 230, 0.22) 100%);
    border: 1px solid rgba(74, 140, 217, 0.28);
    border-left: none;
    border-top: none;
    box-shadow: 2px 2px 10px rgba(74, 140, 217, 0.14);
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
    z-index: 2;
}
.benefits-card-hint svg {
    display: block;
    width: 15px;
    height: 15px;
    margin: 0;
    flex-shrink: 0;
}
.benefits-card-hint svg path {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.benefits-card-hint svg path:first-child {
    stroke: var(--primary-light);
}
.benefits-card-hint svg path:last-child {
    stroke: var(--primary-dark);
}
@media (hover: hover) {
    .benefits-card-wrap:not(.is-active):hover .benefits-card-hint svg path:first-child {
        stroke: var(--primary);
    }
    .benefits-card-wrap:not(.is-active):hover .benefits-card-hint svg path:last-child {
        stroke: var(--primary-dark);
    }
}
@keyframes benefits-hint-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}
@media (hover: hover) {
    .benefits-card-wrap:not(.is-active):hover .benefits-card-hint {
        animation: benefits-hint-pulse 1.1s ease-in-out infinite;
    }
}
.benefits-card-face--back {
    transform: rotateY(180deg) translateZ(1px);
    background-color: var(--primary);
    border-color: var(--primary-dark);
    overflow: hidden;
}
.benefits-card-wrap.is-active .benefits-card-face--back {
    opacity: 1;
}
.benefits-card-wrap.is-active .benefits-card-hint {
    opacity: 0;
    transform: scale(0.9);
}
.benefits-card-wrap:not(.is-active):hover .benefits-card-face--front {
    border-color: rgba(74, 140, 217, 0.35);
    box-shadow: 0 12px 30px rgba(74, 140, 217, 0.1);
}
.benefits-card-wrap.is-active .benefits-card-face {
    box-shadow: 0 16px 40px rgba(58, 118, 190, 0.32);
    border-color: var(--primary-dark);
}
.benefits-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.1rem 1rem;
    text-align: center;
}
.benefits-card-content p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--foreground);
}
.benefits-card-content ul {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}
.benefits-card-content li {
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 500;
    color: var(--muted);
}
.benefits-card-content li::before {
    content: "- ";
    color: var(--primary);
}
.benefits-card-content--back {
    align-items: flex-start;
    text-align: left;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.benefits-card-content--back::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.benefits-card-content--back p {
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 500;
    color: #fff;
}
.benefits-card-content--back p + p {
    margin-top: 0.75rem;
}
.benefits-card-content--back p strong {
    color: #fff;
    font-weight: 700;
}
.benefits-card-content--back ul {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
    width: 100%;
}
.benefits-card-content--back li {
    font-size: 0.92rem;
    line-height: 1.5;
    font-weight: 500;
    color: #fff;
    text-align: left;
}
.benefits-card-content--back li + li {
    margin-top: 0.35rem;
}
.benefits-card-content--back li::before {
    content: "• ";
    color: #fff;
    font-weight: 700;
}
@media (max-width: 768px) {
    .benefits-grid {
        --benefits-flip-duration: 0.22s;
        --benefits-flip-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    .benefits-card-wrap {
        perspective: none;
        -webkit-perspective: none;
    }
    .benefits-card-inner {
        transform: none !important;
        transform-style: flat;
        -webkit-transform-style: flat;
        transition: none;
        overflow: visible;
    }
    .benefits-card-wrap.is-active {
        touch-action: pan-y;
    }
    .benefits-card-face {
        grid-area: 1 / 1;
        backface-visibility: visible;
        -webkit-backface-visibility: visible;
        transition: opacity var(--benefits-flip-duration) var(--benefits-flip-ease);
    }
    .benefits-card-face--front {
        transform: none;
        opacity: 1;
        z-index: 1;
    }
    .benefits-card-face--back {
        transform: none;
        opacity: 0;
        z-index: 0;
        pointer-events: none;
    }
    .benefits-card-wrap.is-active .benefits-card-face--front {
        opacity: 0;
        visibility: hidden;
        z-index: 0;
        pointer-events: none;
    }
    .benefits-card-wrap.is-active .benefits-card-face--back {
        opacity: 1;
        visibility: visible;
        z-index: 1;
        pointer-events: auto;
    }
    .benefits-card-wrap.is-active .benefits-card-face {
        box-shadow: 0 8px 24px rgba(58, 118, 190, 0.28);
    }
    .benefits-card-face--back,
    .benefits-card-wrap.is-active .benefits-card-face--back {
        overflow: visible;
    }
    .benefits-card-content--back {
        height: auto;
        overflow: visible;
        overscroll-behavior: auto;
    }
}
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .benefits-section-hint {
        font-size: 0.9rem;
        margin-top: 0.6rem;
    }
    .benefits-grid {
        --benefits-closed-height: 116px;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .benefits-card-hint {
        width: 26px;
        height: 26px;
        left: 0;
        top: 0;
    }
    .benefits-card-hint svg {
        width: 14px;
        height: 14px;
    }
    .benefits-card-inner,
    .benefits-card-face {
        min-height: 120px;
    }
    .benefits-card-content {
        padding: 1rem 0.9rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .benefits-grid {
        --benefits-flip-duration: 0.01ms;
    }
    .benefits-card-hint {
        animation: none !important;
    }
    .benefits-card-wrap,
    .benefits-card-inner,
    .benefits-card-face {
        transition-duration: 0.01ms;
    }
}

/* ========== БЛОК: НАШИ КЛИЕНТЫ ========== */
.clients-section {
    --clients-blue: #6eb8f2;
    --clients-blue-accent: #1c9fff;
    --clients-blue-dark: #4a7fab;
    --clients-blue-tint: #f4f9fd;
    --clients-blue-soft: rgba(110, 184, 242, 0.14);
    --clients-blue-faint: rgba(110, 184, 242, 0.06);
    --clients-blue-muted: rgba(110, 184, 242, 0.45);
    --clients-blue-border: rgba(110, 184, 242, 0.22);
    --clients-blue-shadow: rgba(110, 184, 242, 0.12);
    --clients-blue-corner: rgba(110, 184, 242, 0.22);
    --clients-blue-tab: #9ccff8;
    --clients-blue-tab-border: rgba(110, 184, 242, 0.28);
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 251, 255, 0.96) 36%, #f3f7fb 100%);
    border-bottom: 1px solid var(--card-border);
}
.clients-section .section-label {
    color: var(--clients-blue-dark);
}
.clients-section .container {
    position: relative;
    z-index: 1;
}
.clients-section-subtitle {
    margin: 0.85rem auto 0;
    max-width: 34ch;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.45;
}
.clients-trust {
    margin-top: 1.5rem;
}
.clients-trust__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}
.clients-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 84px;
    border: 1px solid var(--card-border);
    border-radius: calc(var(--radius-card) - 6px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(26, 30, 28, 0.05);
    padding: 0.75rem 0.9rem;
}
.clients-stat__value {
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    line-height: 1;
    font-weight: 600;
    color: var(--clients-blue-dark);
}
.clients-stat__label {
    margin-top: 0.2rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.035em;
}
.clients-trust__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #f7fbff 0%, var(--clients-blue-tint) 100%);
    border: 1px solid var(--clients-blue-border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--clients-blue-dark);
    white-space: nowrap;
}
.clients-trust__badge svg {
    width: 0.92rem;
    height: 0.92rem;
    color: var(--clients-blue);
}
.clients-registry-note {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}
.clients-card {
    margin-top: 2rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
    box-shadow: 0 18px 48px rgba(26, 30, 28, 0.08), 0 0 0 1px rgba(26, 30, 28, 0.04);
    overflow: hidden;
}
.clients-tabs {
    padding: 1rem 1rem 0.25rem;
}
.clients-tabs__track {
    --clients-tab-index: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-radius: 999px;
    background: var(--clients-blue-tab);
    border: 1px solid var(--clients-blue-tab-border);
    padding: 0.25rem;
}
.clients-tabs__track::after {
    content: "";
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: calc(0.25rem + var(--clients-tab-index) * (50% - 0.125rem));
    width: calc(50% - 0.25rem);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 18px var(--clients-blue-shadow);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.clients-tab {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 66px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    cursor: pointer;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}
.clients-tab:hover:not(.is-active) {
    color: #fff;
    transform: translateY(-1px);
}
.clients-tab.is-active {
    color: var(--foreground);
}
.clients-tab:focus-visible {
    outline: 2px solid var(--clients-blue);
    outline-offset: 2px;
}
.clients-tab__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
}
.clients-tab__label {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
}
.clients-tab__hint {
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
}
.clients-tab.is-active .clients-tab__hint {
    color: var(--muted);
}
.clients-panels {
    padding: 1.4rem 1rem 1rem;
}
.clients-panel {
    animation: clientsPanelIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.clients-panel[hidden] {
    display: none !important;
}
.clients-panel__body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.75rem;
    align-items: stretch;
    padding: 0.4rem 0.25rem;
}
.clients-panel__text {
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border-radius: calc(var(--radius-card) - 8px);
    background: linear-gradient(90deg, rgba(244, 249, 253, 0.85) 0%, rgba(244, 249, 253, 0) 100%);
}
.clients-panel__lead {
    margin: 0;
    font-size: clamp(1.02rem, 1.9vw, 1.15rem);
    line-height: 1.4;
    font-weight: 600;
    color: var(--clients-blue-dark);
}
.clients-panel__divider {
    width: 92px;
    height: 2px;
    margin: 0.8rem 0 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--clients-blue) 0%, rgba(110, 184, 242, 0.08) 100%);
}
.clients-panel__text p {
    margin: 0;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.65;
    color: var(--foreground);
}
.clients-panel__text p + p {
    margin-top: 0.85rem;
}
.clients-photo-slot {
    min-width: 0;
}
.clients-photo-slot__frame {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: calc(var(--radius-card) - 4px);
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(244, 249, 253, 0.92) 0%, #fff 52%, rgba(251, 252, 255, 0.92) 100%);
    border: 1px solid var(--clients-blue-soft);
    outline: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.clients-photo-slot__frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, var(--clients-blue-faint) 25%, transparent 25%) -8px 0 / 16px 16px,
        linear-gradient(225deg, var(--clients-blue-faint) 25%, transparent 25%) -8px 0 / 16px 16px,
        linear-gradient(315deg, var(--clients-blue-faint) 25%, transparent 25%) 0 0 / 16px 16px,
        linear-gradient(45deg, var(--clients-blue-faint) 25%, transparent 25%) 0 0 / 16px 16px,
        linear-gradient(180deg, rgba(26, 30, 28, 0) 55%, rgba(26, 30, 28, 0.14) 100%);
    pointer-events: none;
}
.clients-photo-slot__frame::after {
    content: "";
    position: absolute;
    inset: 0.6rem;
    border-top: 2px solid var(--clients-blue-corner);
    border-right: 2px solid var(--clients-blue-corner);
    border-bottom: 2px solid rgba(28, 159, 255, 0);
    border-left: 2px solid rgba(28, 159, 255, 0);
    border-radius: calc(var(--radius-card) - 8px);
    pointer-events: none;
}
.clients-photo-slot__frame img,
.clients-photo-slot__frame picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.clients-photo-slot__frame img {
    object-fit: cover;
}
.clients-photo-slot__frame--filled {
    background: #0f1410;
}
.clients-photo-slot__frame--filled::before,
.clients-photo-slot__frame--filled::after {
    display: none;
}
.clients-photo-slot__badge {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(26, 30, 28, 0.64);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.clients-photo-slot__icon {
    position: relative;
    z-index: 1;
    display: flex;
    color: var(--clients-blue-muted);
}
.clients-photo-slot__label {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
@media (hover: hover) and (pointer: fine) {
    .clients-photo-slot__frame:hover {
        transform: scale(1.01);
        box-shadow: 0 24px 56px rgba(26, 30, 28, 0.14), 0 0 0 1px rgba(26, 30, 28, 0.03);
    }
}
@keyframes clientsPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    .clients-section-subtitle {
        margin-top: 0.75rem;
    }
    .clients-trust {
        margin-top: 1.25rem;
    }
    .clients-trust__stats {
        grid-template-columns: 1fr;
    }
    .clients-registry-note {
        margin-top: 1rem;
    }
    .clients-tabs {
        padding: 0.85rem 0.85rem 0;
    }
    .clients-tabs__track {
        grid-template-columns: 1fr;
        border-radius: 1rem;
    }
    .clients-tabs__track::after {
        display: none;
    }
    .clients-tab {
        border-radius: 0.9rem;
    }
    .clients-tab.is-active {
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
    }
    .clients-tab.is-active .clients-tab__hint {
        color: rgba(255, 255, 255, 0.78);
    }
    .clients-panels {
        padding: 1rem 0.85rem 0.85rem;
    }
    .clients-panel__body {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0;
    }
    .clients-panel__text {
        padding: 0.2rem 0;
        background: none;
    }
    .clients-photo-slot__frame {
        min-height: 180px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .clients-tab,
    .clients-panel,
    .clients-photo-slot__frame {
        animation: none;
        transition-duration: 0.01ms;
    }
    .clients-tabs__track::after {
        transition-duration: 0.01ms;
    }
}

/* ========== КАРКАСНЫЕ СЕКЦИИ ========== */
.placeholder-section {
    border-bottom: 1px solid var(--card-border);
}
.placeholder-section--alt {
    background-color: var(--marquee-bg);
}
.placeholder-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3.5rem;
}
.placeholder-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}
.placeholder-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}
.placeholder-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}
.placeholder-slot {
    min-height: 160px;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-card);
    background-color: rgba(255, 255, 255, 0.5);
}
.placeholder-section--alt .placeholder-slot {
    background-color: rgba(255, 255, 255, 0.65);
}
.placeholder-slot--tall {
    min-height: 140px;
}
.placeholder-slot--review {
    min-height: 220px;
}
@media (max-width: 1024px) {
    .placeholder-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .placeholder-grid--4,
    .placeholder-grid--3,
    .placeholder-grid--2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
