:root {
            /* Размеры и отступы карточек для 1 экрана */
            --card-width: 180px;
            --card-margin: -50px;
            
            /* Смещения от естественной Flex-позиции в центр группы (для мобильных) */
            --offset-c1: 195px;
            --offset-c2: 65px;
            --offset-c3: -65px;
            --offset-c4: -195px;

            /* Переменные для секции направлений */
            --text: #111111;
            --muted: #5F6368;
            --panel-bg: #F6F6F6;
            --card-bg: #FFFFFF;
            --lime: #9ce154;
            --radius-lg: 36px;
            --radius-md: 22px;
        }
        @media (min-width: 768px) {
            :root {
                --card-width: 280px;
                --card-margin: -90px;
                
                /* Смещения для десктопа */
                --offset-c1: 285px;
                --offset-c2: 95px;
                --offset-c3: -95px;
                --offset-c4: -285px;
            }
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Inter', sans-serif;
            background-color: #FFFFFF;
            margin: 0;
             
            min-height: 100vh;
            box-sizing: border-box;
        }

        medweb-header { display: contents; }
        medweb-footer { display: block; }
        

        /* --- 1 ЭКРАН: Главный серый контейнер --- */
        .hero-container {
            background-color: #f7f7f7;
            border-radius: 28px;
            margin: 16px;
            height: calc(100vh - 32px);
            min-height: 680px;
            max-height: 860px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
            display: flex;
            flex-direction: column;
        }
        @media (min-width: 768px) { .hero-container { height: calc(100vh - 48px); margin: 24px; } }

        .tab-island {
            background-color: #FFFFFF;
            border-radius: 0 0 24px 24px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease;
        }
        .tab-island::before, .tab-island::after {
            content: ''; position: absolute; top: 0; width: 24px; height: 24px; pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .tab-island::before { left: -24px; background: radial-gradient(circle at 0% 100%, transparent 23.5px, #FFFFFF 24px); }
        .tab-island::after { right: -24px; background: radial-gradient(circle at 100% 100%, transparent 23.5px, #FFFFFF 24px); }

        /* Scrolled state for header */
        #main-header {
            z-index: 1000;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }
        .site-logo-wordmark__med { color: #222222; }
        .site-logo-wordmark__web { color: #9ce154; }
        .site-logo-wordmark__med,
        .site-logo-wordmark__web { transition: color 180ms ease; }
        @media (hover: hover) and (pointer: fine) {
            .site-header__brand:hover .site-logo-wordmark__med { color: #9ce154; }
            .site-header__brand:hover .site-logo-wordmark__web { color: #222222; }
        }
        @media (max-width: 1023px) {
            #main-header.site-header {
                display: flex !important;
                align-items: start;
                justify-content: space-between;
            }
            .site-header__actions { display: contents !important; }
        }
        #main-header.scrolled {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 32px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.08);
            border: 1px solid rgba(255,255,255,0.4);
            padding-top: 4px;
            padding-bottom: 4px;
        }
        #main-header.scrolled .tab-island {
            background-color: transparent !important;
        }
        #main-header.scrolled .tab-island::before,
        #main-header.scrolled .tab-island::after {
            opacity: 0;
        }

        .tab-island-bottom {
            background-color: #FFFFFF; border-radius: 22px 22px 0 0; position: relative; cursor: pointer; transition: opacity 0.2s ease;
        }
        .tab-island-bottom:hover { opacity: 0.8; }
        .tab-island-bottom::before, .tab-island-bottom::after {
            content: ''; position: absolute; bottom: 0; width: 22px; height: 22px; pointer-events: none;
        }
        .tab-island-bottom::before { left: -22px; background: radial-gradient(circle at 0% 0%, transparent 21.5px, #FFFFFF 22px); }
        .tab-island-bottom::after { right: -22px; background: radial-gradient(circle at 100% 0%, transparent 21.5px, #FFFFFF 22px); }

        .section-tab {
            --section-tab-color: #ffffff;
            background-color: var(--section-tab-color);
        }
        .section-tab--soft {
            --section-tab-color: #f4f4f4;
        }
        .section-tab.tab-island::before {
            background: radial-gradient(circle at 0% 100%, transparent 23.5px, var(--section-tab-color) 24px);
        }
        .section-tab.tab-island::after {
            background: radial-gradient(circle at 100% 100%, transparent 23.5px, var(--section-tab-color) 24px);
        }
        .section-tab.tab-island-bottom::before {
            background: radial-gradient(circle at 0% 0%, transparent 21.5px, var(--section-tab-color) 22px);
        }
        .section-tab.tab-island-bottom::after {
            background: radial-gradient(circle at 100% 0%, transparent 21.5px, var(--section-tab-color) 22px);
        }

        .pricing-section > .section-tab.tab-island-bottom {
            --section-tab-color: rgb(250 250 250 / var(--tw-bg-opacity, 1));
        }

        /* --- БАЗОВЫЕ ПОШАГОВЫЕ АНИМАЦИИ --- */
        .anim-header-el { opacity: 1; transform: translateY(0); animation: slideDownFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
        @keyframes slideDownFade { 0% { opacity: 0; transform: translateY(-30px); } 100% { opacity: 1; transform: translateY(0); } }
        
        .anim-el { opacity: 1; transform: translateY(0); animation: slideUpFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
        @keyframes slideUpFade { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }

        .anim-el-bottom { opacity: 1; transform: translate(-50%, 0); animation: slideUpFadeCenter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
        @keyframes slideUpFadeCenter { 0% { opacity: 0; transform: translate(-50%, 30px); } 100% { opacity: 1; transform: translate(-50%, 0); } }

        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
        .animate-blink { animation: blink 1s step-end infinite; }

        /* --- ХОРЕОГРАФИЯ КАРТОЧЕК --- */
        .hero-photo-scene {
            position: relative; display: flex; align-items: center; justify-content: center;
            width: 100%; max-width: 1000px; height: 240px; margin: 0 auto;
            pointer-events: none; animation: enablePointer 0s forwards; animation-delay: 2.2s;
        }
        @media (min-width: 768px) { .hero-photo-scene { height: 360px; } }
        @keyframes enablePointer { to { pointer-events: auto; } }

        .hero-photo-card {
            position: relative; width: var(--card-width); height: var(--card-width); flex-shrink: 0;
            border-radius: 28px; overflow: hidden; transform-origin: right center;
            margin-left: var(--card-margin); transform: perspective(800px) translateX(0) rotateY(35deg) translateZ(0px);
            box-shadow: -15px 10px 24px rgba(0,0,0,0.12);
        }
        .hero-photo-card:first-child { margin-left: 0; }
        @media (min-width: 768px) { .hero-photo-card { border-radius: 40px; } }
        .hero-photo-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

        /* Десктопные анимации */
        .hero-photo-card:nth-child(4) { z-index: 40; animation: card4FlyInAndRight 1.6s cubic-bezier(0.34, 1.1, 0.64, 1) backwards; animation-delay: 0.3s; }
        @keyframes card4FlyInAndRight {
            0% { opacity: 0; transform: perspective(800px) translateY(180px) translateX(var(--offset-c4)) rotateY(0deg) rotateZ(-12deg) scale(0.9); box-shadow: 0 0 0 rgba(0,0,0,0); }
            10% { opacity: 1; }
            40% { transform: perspective(800px) translateY(0px) translateX(var(--offset-c4)) rotateY(0deg) rotateZ(0deg) scale(1); box-shadow: -15px 10px 24px rgba(0,0,0,0.12); }
            50% { transform: perspective(800px) translateY(0px) translateX(var(--offset-c4)) rotateY(0deg) rotateZ(0deg) scale(1); }
            100% { transform: perspective(800px) translateY(0px) translateX(0) rotateY(35deg) rotateZ(0deg) scale(1); }
        }

        .hero-photo-card:nth-child(1) { z-index: 10; animation: card1FanOut 1.6s cubic-bezier(0.34, 1.1, 0.64, 1) backwards; animation-delay: 0.3s; }
        .hero-photo-card:nth-child(2) { z-index: 20; animation: card2FanOut 1.6s cubic-bezier(0.34, 1.1, 0.64, 1) backwards; animation-delay: 0.3s; }
        .hero-photo-card:nth-child(3) { z-index: 30; animation: card3FanOut 1.6s cubic-bezier(0.34, 1.1, 0.64, 1) backwards; animation-delay: 0.3s; }

        @keyframes card1FanOut {
            0%, 48% { opacity: 0; transform: perspective(800px) translateY(0px) translateX(var(--offset-c1)) rotateY(0deg) scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
            49% { opacity: 1; }
            100% { opacity: 1; transform: perspective(800px) translateY(0px) translateX(0) rotateY(35deg) scale(1); box-shadow: -15px 10px 24px rgba(0,0,0,0.12); }
        }
        @keyframes card2FanOut {
            0%, 48% { opacity: 0; transform: perspective(800px) translateY(0px) translateX(var(--offset-c2)) rotateY(0deg) scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
            49% { opacity: 1; }
            100% { opacity: 1; transform: perspective(800px) translateY(0px) translateX(0) rotateY(35deg) scale(1); box-shadow: -15px 10px 24px rgba(0,0,0,0.12); }
        }
        @keyframes card3FanOut {
            0%, 48% { opacity: 0; transform: perspective(800px) translateY(0px) translateX(var(--offset-c3)) rotateY(0deg) scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
            49% { opacity: 1; }
            100% { opacity: 1; transform: perspective(800px) translateY(0px) translateX(0) rotateY(35deg) scale(1); box-shadow: -15px 10px 24px rgba(0,0,0,0.12); }
        }

        /* ПЕРЕЗАПИСЬ АНИМАЦИИ КАРТОЧЕК ДЛЯ МОБИЛЬНЫХ (3 КАРТОЧКИ, ВЕЕР В СТОРОНЫ) */
        @media (max-width: 767px) {
            .hero-photo-scene {
                height: 250px;
            }
            .hero-photo-card {
                position: absolute !important;
                left: 50% !important;
                top: 50% !important;
                margin-top: calc(var(--card-width) / -2) !important;
                margin-left: calc(var(--card-width) / -2) !important;
                transform-origin: center center !important;
            }
            /* Скрываем 4-ю картинку */
            .hero-photo-card:nth-child(4) { display: none !important; }
            
            /* Новые анимации расстановки - логика как на десктопе, но 2D */
            .hero-photo-card:nth-child(1) {
                z-index: 10;
                animation: mobileCard1 1.6s cubic-bezier(0.34, 1.1, 0.64, 1) both !important;
                animation-delay: 0.3s !important;
            }
            .hero-photo-card:nth-child(2) {
                z-index: 30; /* Центральная картинка поверх всех */
                animation: mobileCard2 1.6s cubic-bezier(0.34, 1.1, 0.64, 1) both !important;
                animation-delay: 0.3s !important;
            }
            .hero-photo-card:nth-child(3) {
                z-index: 20;
                animation: mobileCard3 1.6s cubic-bezier(0.34, 1.1, 0.64, 1) both !important;
                animation-delay: 0.3s !important;
            }

            @keyframes mobileCard1 {
                0%, 48% { opacity: 0; transform: translateY(0px) translateX(var(--offset-c1)) scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
                49% { opacity: 1; }
                100% { opacity: 1; transform: translateX(-70%) scale(0.85); box-shadow: -8px 10px 20px rgba(0,0,0,0.1); }
            }
            @keyframes mobileCard2 {
                0%, 48% { opacity: 0; transform: translateY(0px) translateX(var(--offset-c2)) scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
                49% { opacity: 1; }
                100% { opacity: 1; transform: translateX(0) scale(1.05); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
            }
            @keyframes mobileCard3 {
                0%, 48% { opacity: 0; transform: translateY(0px) translateX(var(--offset-c3)) scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
                49% { opacity: 1; }
                100% { opacity: 1; transform: translateX(70%) scale(0.85); box-shadow: 8px 10px 20px rgba(0,0,0,0.1); }
            }

            .hero-photo-tag { display: none !important; }
        }

        .anim-tag { opacity: 1; transform: translateZ(40px) scale(1); animation: tagPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
        @keyframes tagPopIn { 0% { opacity: 0; transform: translateZ(40px) scale(0.5); } 100% { opacity: 1; transform: translateZ(40px) scale(1); } }

        .hero-photo-card { transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; }
        .hero-photo-scene.is-interacting .hero-photo-card { transition: transform 150ms ease-out; }

        .hero-photo-tag {
            position: absolute; z-index: 100; padding: 6px 14px; border-radius: 999px;
            font-size: 11px; font-weight: 500; letter-spacing: -0.2px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08); pointer-events: none; color: #fff;
        }
        @media (min-width: 768px) { .hero-photo-tag { padding: 8px 18px; font-size: 14px; } }

        .btn-lime { background-color: #9ce154; color: #FFF; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
        .btn-lime:hover { background-color: #9ce154; transform: scale(1.04); }

        /* --- Модальные окна --- */
        .modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px);
            z-index: 9999; display: flex; align-items: center; justify-content: center;
            opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
        }
        .modal-overlay.active { opacity: 1; pointer-events: auto; }
        .modal-content {
            background-color: #fff; padding: 32px; border-radius: 32px; width: 90%; max-width: 400px;
            transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
            position: relative; box-shadow: 0 24px 50px rgba(0,0,0,0.1);
        }
        .modal-overlay.active .modal-content { transform: translateY(0); }

        #mobileMenuOverlay {
            align-items: flex-start;
            justify-content: center;
            padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
            background: rgba(17, 17, 17, 0.34);
            backdrop-filter: blur(8px);
        }
        #mobileMenuOverlay .mobile-menu__panel {
            display: flex;
            width: min(390px, calc(100vw - 16px));
            max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
            padding: 18px;
            flex-direction: column;
            gap: 20px;
            overflow-y: auto;
            border-radius: 30px;
            background: rgba(255, 255, 255, 0.96);
            box-shadow: 0 28px 70px rgba(17, 17, 17, 0.18);
        }
        .mobile-menu__top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
        }
        .mobile-menu__contacts {
            display: grid;
            gap: 10px;
            min-width: 0;
        }
        .mobile-menu__phone {
            color: #171717;
            font-size: 18px;
            font-weight: 800;
            line-height: 1.2;
        }
        .mobile-menu__socials {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .mobile-menu__socials a {
            display: inline-flex;
            width: 38px;
            height: 38px;
            align-items: center;
            justify-content: center;
            color: #171717;
            background: #f4f4f2;
            border-radius: 50%;
        }
        .mobile-menu__socials span { font-size: 10px; font-weight: 800; }
        .mobile-menu__close {
            width: 50px;
            height: 50px;
            flex: 0 0 50px;
            color: #fff !important;
            border-radius: 999px;
            font-size: 18px;
        }
        .mobile-menu__nav {
            display: grid;
            gap: 2px;
            padding: 18px;
            color: #171717;
            border-radius: 26px;
            background: #fff;
            box-shadow: 0 18px 46px rgba(17, 17, 17, 0.08);
        }
        .mobile-menu__nav strong {
            display: block;
            margin-bottom: 12px;
            text-align: center;
            color: #1f2420;
            font-size: 18px;
            line-height: 1.2;
        }
        .mobile-menu__nav a {
            display: flex;
            min-height: 48px;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            color: #171717;
            border-radius: 16px;
            font-size: 16px;
            font-weight: 800;
            line-height: 1.2;
        }
        .mobile-menu__nav a i {
            flex: 0 0 auto;
            color: #171717;
            font-size: 12px;
        }
        .mobile-menu__audit {
            display: flex;
            width: 100%;
            min-height: 52px;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            color: #fff !important;
            font-size: 14px;
            font-weight: 800;
        }
        .modal-close {
            position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
            background: #f0f0f0; border-radius: 50%; border: none; font-size: 16px;
            cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center;
            transition: background 0.2s;
        }
        .modal-close:hover { background: #e0e0e0; }

        .pricing-modal-content {
            max-height: min(860px, calc(100dvh - 32px));
            overflow-y: auto !important;
            overscroll-behavior: contain;
        }

        .pricing-contact-form {
            display: grid;
            gap: 14px;
        }

        .pricing-contact-form > label:not(.pricing-contact-form__consent) {
            display: grid;
            gap: 7px;
        }

        .pricing-contact-form > label > span {
            color: #333;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.25;
        }

        .pricing-contact-form input[type='text'],
        .pricing-contact-form textarea {
            width: 100%;
            min-height: 50px;
            padding: 13px 16px;
            color: #171717;
            font: inherit;
            font-size: 14px;
            line-height: 1.4;
            background: #f7f7f7;
            border: 1px solid #e8e8e8;
            border-radius: 16px;
            outline: none;
            transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
        }

        .pricing-contact-form textarea {
            min-height: 76px;
            resize: vertical;
        }

        .pricing-contact-form input[type='text']:focus,
        .pricing-contact-form textarea:focus {
            background: #fff;
            border-color: #9ce154;
            box-shadow: 0 0 0 3px rgba(156, 225, 84, 0.2);
        }

        .pricing-contact-form__consent {
            position: relative;
            display: flex;
            align-items: flex-start;
            gap: 9px;
            min-height: 44px;
            padding: 7px 0;
            color: #444;
            cursor: pointer;
        }

        .pricing-contact-form__consent input {
            position: absolute;
            opacity: 0;
        }

        .pricing-contact-form__consent > span {
            display: grid;
            place-items: center;
            width: 20px;
            height: 20px;
            flex: 0 0 20px;
            border: 1px solid #d0d0d0;
            border-radius: 50%;
        }

        .pricing-contact-form__consent input:checked + span {
            background: #9ce154;
            border-color: #9ce154;
        }

        .pricing-contact-form__consent input:checked + span::after {
            content: '';
            width: 7px;
            height: 4px;
            border-bottom: 2px solid #fff;
            border-left: 2px solid #fff;
            transform: translateY(-1px) rotate(-45deg);
        }

        .pricing-contact-form__consent input:focus-visible + span {
            outline: 3px solid rgba(156, 225, 84, 0.28);
            outline-offset: 2px;
        }

        .pricing-contact-form__consent b {
            font-size: 12px;
            line-height: 1.4;
        }

        .pricing-contact-form__status {
            margin: 0;
            padding: 10px 12px;
            color: #a42d2d;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.35;
            background: #fff0f0;
            border-radius: 12px;
        }

        .pricing-contact-form__status.is-success {
            color: #2f6419;
            background: rgba(156, 225, 84, 0.16);
        }

        .pricing-contact-form > button {
            width: 100%;
            min-height: 52px;
            padding: 12px 24px;
            color: #fff;
            font: inherit;
            font-size: 14px;
            font-weight: 800;
            background: #9ce154;
            border: 0;
            border-radius: 999px;
            cursor: pointer;
            transition: background-color 180ms ease, opacity 180ms ease, transform 120ms ease;
        }

        .pricing-contact-form > button:hover { background: #8ccf4b; }
        .pricing-contact-form > button:active { transform: scale(0.97); }
        .pricing-contact-form > button:disabled { cursor: wait; opacity: 0.55; }

        /* ========================================= */
        /* --- 2 ЭКРАН: СЕКЦИЯ НАПРАВЛЕНИЙ (BENTO) --- */
        /* ========================================= */
        .directions-section { width: 100%; }

        .directions-panel {
            max-width: 1840px; margin: 24px auto; padding: 78px 64px 72px;
            border-radius: var(--radius-lg); overflow: hidden; background: transparent;
        }

        /* --- DESKTOP HEADER --- */
        .directions-header-desktop { text-align: center; margin-bottom: 72px; }
        .directions-header-desktop h2 {
            font-size: clamp(36px, 4vw, 56px); line-height: 0.98; font-weight: 800;
            letter-spacing: -0.045em; color: var(--text); margin: 0 0 22px;
        }
        .directions-header-desktop p {
            max-width: 620px; margin: 0 auto; font-size: 16px; line-height: 1.45;
            font-weight: 500; color: var(--muted);
        }

        /* --- DESKTOP BENTO GRID --- */
        .directions-grid-desktop {
            max-width: 1480px; margin: 0 auto;
            display: grid;
            /* 5 колонок, 3 ряда */
            grid-template-columns: repeat(5, 1fr);
            grid-template-rows: 220px 220px 230px; 
            gap: 18px;
        }

        /* ОБЩИЕ СТИЛИ КАРТОЧЕК */
        .direction-card {
            border-radius: var(--radius-md); background: var(--card-bg);
            border: 1px solid rgba(0, 0, 0, 0.045); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.045);
            overflow: hidden; position: relative; padding: 28px;
            display: flex; flex-direction: column; cursor: pointer; text-decoration: none; color: inherit;
            transition: transform 220ms ease, box-shadow 220ms ease, opacity 600ms ease;
        }
        
        /* Ховер-эффект ТОЛЬКО для активных карточек (исключаем stats и system) */
        .direction-card:not(.card-stats):not(.card-system):hover { 
            transform: translateY(-4px); 
            box-shadow: 0 20px 44px rgba(0, 0, 0, 0.07); 
        }
        .direction-card:not(.card-stats):not(.card-system):hover .card-icon-btn { 
            transform: scale(1.1) rotate(8deg) translate(2px, -2px); 
        }
        
        /* ОТКЛЮЧЕНИЕ ХОВЕРА И КЛИКА ДЛЯ СТАТИСТИКИ И СХЕМЫ */
        .direction-card.card-stats, 
        .direction-card.card-system {
            cursor: default !important;
        }
        
        .card-title { font-size: 22px; line-height: 1.1; font-weight: 750; letter-spacing: -0.03em; margin: 0 0 18px; z-index: 2; position: relative; }
        .card-desc { font-size: 15px; line-height: 1.45; color: #303030; margin: 0; z-index: 2; position: relative; white-space: pre-line; }
        
        /* Иконка направления */
        .card-icon-btn {
            position: absolute; top: 26px; right: 24px; width: 32px; height: 32px; border-radius: 50%;
            background: var(--lime); display: flex; align-items: center; justify-content: center;
            color: #fff; font-size: 14px; transition: transform 220ms ease; z-index: 2;
        }
        
        .card-img-bg { position: absolute; pointer-events: none; z-index: 0; }

        /* Фейд-градиент для светлых картинок */
        .card-fade-top::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0; height: 60%;
            background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0) 100%);
            z-index: 1; pointer-events: none; border-radius: var(--radius-md) var(--radius-md) 0 0;
        }

        /* ИНДИВИДУАЛЬНЫЕ КАРТОЧКИ (DESKTOP) */
        .card-med { grid-column: 1; grid-row: 1; }
        .bg-plus-icon { position: absolute; right: 15px; bottom: 7px; font-size: 92px; color: transparent; -webkit-text-stroke: 8px rgba(110, 135, 170, 0.22); line-height: 1; font-weight: 300; }

        .card-stomatolog { grid-column: 2; grid-row: 1 / span 2; }
        .card-stomatolog .card-img-bg { left: 0; right: 0; bottom: -35px; height: 140%; width: 100%; object-fit: cover; object-position: center bottom; }

        /* СПЕЦ КАРТОЧКА СТАТИСТИКИ - ВЫСТУПАЕТ ВНИЗ НА 40PX */
        .card-stats {
            grid-column: 3 / span 2; grid-row: 1;
            padding: 32px 36px; justify-content: center; z-index: 10;
            /* Выступаем за пределы ячейки вниз на 40px */
            height: calc(100% + 90px);
        }
        .stats-kicker { font-size: 13px; color: var(--muted); font-weight: 500; margin: 0; }
        .stats-number { font-size: clamp(80px, 7vw, 145px); line-height: 0.85; font-weight: 400; letter-spacing: -0.08em; color: #050505; margin: 12px 0 18px; }
        .stats-subtitle { font-size: 22px; color: #6d7178; letter-spacing: -0.025em; margin: 0; }
        .stats-pill {
            display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
            border: 1px solid rgba(0,0,0,.08); background: #ffffff; font-size: 14px; font-weight: 600; width: max-content; margin-top: 28px;
        }
        .pill-dot { width: 16px; height: 16px; background: var(--lime); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #FFF; }

        .card-gyno { grid-column: 5; grid-row: 1 / span 2; }
        .card-gyno .card-img-bg { left: 0; right: 0; bottom: -50px; width: 100%; height: 110%; object-fit: contain; object-position: right bottom; border-radius: 0 0 22px 0; }

        .card-vet { grid-column: 1; grid-row: 2 / span 2; background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%); }
        .card-vet .card-img-bg { bottom: 0; left: 0; width: 100%; height: 62%; object-fit: cover; object-position: center bottom; }

        .card-uzi { grid-column: 2; grid-row: 3; }
        .card-uzi .card-img-bg { right: 16px; bottom: 16px; width: 54%; height: 55%; object-fit: contain; }

        /* КАРТОЧКИ ПОД СТАТИСТИКОЙ (Укорочены и смещены вниз на 40px, чтобы компенсировать выступ статистики) */
        .card-diag { grid-column: 3; grid-row: 2 / span 2; margin-top: 90px; height: calc(100% - 90px); }
        .card-diag .card-img-bg { left: 0; right: 0; bottom: -30px; width: 100%; height: auto; object-fit: cover; object-position: center bottom; }

        /* ИСПРАВЛЕННАЯ СИСТЕМНАЯ КАРТОЧКА */
        .card-system { grid-column: 4; grid-row: 2 / span 2; background: #f1f7ff; padding: 0; align-items: center; justify-content: center; margin-top: 90px; height: calc(100% - 90px); cursor: default; }
        .system-circle-wrap { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transform: scale(0.9); }
        .system-center-dot { width: 46px; height: 44px; background: var(--lime); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 300; z-index: 10; color: #FFF; }
        .system-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(61, 115, 180, 0.18); }
        /* Кольца уменьшены для лучшей вместимости текста */
        .ring-1 { width: 90px; height: 90px; }
        .ring-2 { width: 200px; height: 200px; }
        /* Метки адаптированы под многострочный текст */
        .system-pill { 
            position: absolute; background: #fff; padding: 6px 8px; border-radius: 12px; 
            font-size: 10px; font-weight: 600; color: #3d73b4; box-shadow: 0 4px 12px rgba(0,0,0,0.03); 
            white-space: normal; text-align: center; max-width: 85px; line-height: 1.2; z-index: 20;
        }
        .sp-1 { top: 13%; left: 50%; transform: translateX(-50%); }
        .sp-2 { top: 32%; right: 3%; }
        .sp-3 { bottom: 14%; left: 50%; transform: translateX(-50%); }
        .sp-4 { bottom: 32%; left: 0%; }
        .sp-5 { top: 32%; left: 2%; }
        .sp-6 { bottom: 32%; right: 2%; }

        .card-kosmo { grid-column: 5; grid-row: 3; }
        .card-kosmo .card-img-bg { right: 0; bottom: 0; width: 70%; height: 65%; object-fit: cover; }

        .card-analiz { grid-column: 5; grid-row: 4; }
        .card-analiz .card-img-bg { right: 0; bottom: 0; width: 62%; height: 65%; object-fit: cover; }

        /* ========================================= */
        /* --- МОБИЛЬНАЯ ВЕРСИЯ СЕКЦИИ НАПРАВЛЕНИЙ --- */
        /* ========================================= */
        
        @media (max-width: 1024px) {
            .directions-grid-desktop { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; grid-auto-rows: minmax(260px, auto); }
            .direction-card { grid-column: span 1 !important; grid-row: span 1 !important; height: 100% !important; margin-top: 0 !important; }
            .card-stats { grid-column: span 2 !important; height: auto !important; }
            .card-stomatolog, .card-vet, .card-diag, .card-system { grid-row: span 2 !important; }
        }

        @media (max-width: 767px) {
            .directions-panel { padding: 40px 16px 32px 16px; border-radius: 24px; background: transparent; }
            .directions-header-desktop { margin-bottom: 32px; }
            .directions-header-desktop h2 { font-size: 32px; line-height: 1.1; margin-bottom: 12px; }
            .directions-header-desktop p { font-size: 15px; }
            
            .directions-grid-desktop {
                grid-template-columns: 1fr 1fr; /* 2 колонки на мобилке (компактно) */
                gap: 12px;
                margin-top: 0;
            }
            .direction-card { padding: 20px; min-height: 200px; border-radius: 18px; }
            .card-title { font-size: 18px; margin-bottom: 10px; }
            .card-desc { font-size: 13px; }
            .card-icon-btn { top: 16px; right: 16px; width: 28px; height: 28px; font-size: 12px; }
            
            /* Большие карточки на всю ширину */
            .card-stats { grid-column: span 2 !important; padding: 24px 20px; }
            .stats-number { font-size: 72px; margin: 8px 0 12px; }
            .stats-pill { font-size: 12px; padding: 10px 14px; margin-top: 16px; }
            
            .card-stomatolog, .card-vet { grid-column: span 2 !important; min-height: 280px; }
            
            /* Специфичные правки картинок на мобильном */
            .card-med .bg-plus-icon { font-size: 60px; right: 16px; bottom: 16px; }
            .card-uzi .card-img-bg { width: 65%; right: 10px; bottom: 10px; }
            .card-kosmo .card-img-bg { width: 80%; }
            .card-analiz .card-img-bg { width: 75%; }
            .card-diag .card-img-bg { height: 50%; }
            
            .card-system { grid-column: span 2 !important; min-height: 280px; }
            .system-circle-wrap { transform: scale(0.8); }
        }

        /* ========================================= */
        /* --- ПОРТФОЛИО --- */
        /* ========================================= */
        .folder-part {
            background-color: var(--folder-color);
        }
        .inverse-corner-portfolio {
            width: 24px;
            height: 24px;
            background: transparent;
            overflow: hidden;
            /* absolute is added via tailwind classes in HTML */
        }
        .inverse-corner-portfolio::before {
            content: '';
            position: absolute;
            top: -24px;
            right: -24px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            box-shadow: -24px 24px 0 0 var(--folder-color);
        }
        .portfolio-card {
            --folder-color: #F4F3ED; /* Light beige/off-white folder color */
            will-change: transform, filter;
            transition: box-shadow 0.3s ease;
            transform-origin: top center;
            position: sticky;
            background-color: var(--folder-color);
            top: calc(50vh - 260px);
            margin-bottom: 3vh;
        }
        @media (min-width: 768px) {
            .portfolio-card {
                top: calc(50vh - 285px);
                margin-bottom: 4vh;
            }
        }
        .portfolio-card:last-child {
            margin-bottom: 25vh; /* Даем последней карточке повисеть перед следующим блоком */
        }
        .portfolio-card:hover .card-arrow {
            transform: scale(1.1);
            background-color: var(--lime);
            color: #fff;
        }
        .portfolio-card:hover .card-img {
            transform: scale(1.02);
        }
/* ==========================================
   НОВОЕ ПОРТФОЛИО (СЛАЙДЕР)
   ========================================== */

.slider-card {
    display: block;
    width: 60vw;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 36px;
    overflow: hidden;
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    padding: 8px;
    scroll-snap-align: center;
    will-change: transform;
    background-color: #F4F3ED;
    transform-origin: center;
    user-select: none;
}

header{top: 1.4rem!important;}

@media (min-width: 768px) {
    .slider-card {
        width: 448px;
        border-radius: 48px;
        padding: 12px;
    }
}

#about, #approach{margin: 0 24px}

#about,
#portfolio-slider,
#approach,
#process,
#pricing,
#audit,
#faq-section {
    scroll-margin-top: 96px;
}

@media (min-width: 1024px) {
    .about-card--pills > .flex.flex-col.gap-3 {
        width: min(100%, 220px);
        margin-inline: auto;
    }
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.faq-card {
    min-width: 0;
}

.site-footer {
    width: 100%;
    border-radius: 32px 32px 0 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .site-footer {
        border-radius: 48px 48px 0 0;
    }
}

.section-subtitle {
    font-size: 15px !important;
}

.pricing-primary-head {
    align-items: flex-start !important;
}

.slider-card__subtitle {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    color: #171717;
}

.max-w-2xl{max-width: 52rem!important;}

/* ========================================== */
/* FREE AUDIT CONFIGURATOR */
/* ========================================== */

@media (max-width: 767px) {
    #about {
        margin-inline: 16px;
        padding-block: 48px;
    }

    #about > .max-w-\[1200px\] {
        padding-inline: 12px;
    }

    .about-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .about-column:nth-child(1) {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px !important;
    }

    .about-column:nth-child(2) {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 12px !important;
    }

    .about-column:nth-child(3),
    .about-column:nth-child(4) {
        grid-column: span 1;
        gap: 12px !important;
    }

    .about-card {
        min-width: 0;
        border-radius: 18px !important;
    }

    .about-card--portrait {
        min-height: 285px !important;
    }

    .about-card--contacts {
        width: 100%;
    }

    .about-card--contacts .medweb-about-social-link,
    .about-card--contacts .flex.items-center.gap-1 > a {
        font-size: 1.3rem !important;
    }

    .about-card--strategy {
        min-height: 180px !important;
        padding: 10px !important;
    }

    .about-card--strategy > div {
        border-radius: 14px !important;
        padding: 14px !important;
    }

    .about-card--strategy .w-8 {
        width: 26px !important;
        height: 26px !important;
    }

    .about-card--pills {
        min-height: 180px !important;
        padding: 12px !important;
    }

    .about-card--pills > .flex.flex-col.gap-3 {
        width: min(100%, 132px);
        margin-inline: auto;
    }

    .about-card--pills .flex.items-center {
        width: 100%;
    }

    .about-card--pills .flex.items-center > div:not(.w-6) {
        display: flex;
        width: 100%;
        padding: 8px;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.15;
    }

    .about-card--pills .w-6 {
        display: none;
    }

    .about-card--pills .ml-2 {
        margin-left: 0 !important;
    }

    .about-card--legal {
        min-height: 190px !important;
        padding: 16px !important;
    }

    .about-card--legal p {
        margin-top: 16px !important;
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    .about-card--experience {
        min-height: 190px !important;
        padding: 16px !important;
    }

    .about-card--experience .text-\[72px\] {
        font-size: 46px !important;
    }

    .about-card--value {
        min-height: 132px !important;
        padding: 18px !important;
    }

    .about-card--value > .mt-auto > div:last-child {
        text-align: left !important;
    }

    .about-card--system {
        min-height: 230px !important;
    }

    .about-card--system .system-circle-wrap {
        transform: scale(0.8);
    }

    .faq-section {
        padding-block: 72px;
    }

    .faq-section h2 {
        margin-bottom: 28px !important;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #portfolio-slider {
        padding-top: 88px !important;
        padding-bottom: 48px !important;
    }

    #portfolio-slider > .max-w-\[1200px\] {
        margin-bottom: 24px !important;
    }

    #portfolio-slider h2 {
        font-size: 30px !important;
        line-height: 1.14 !important;
    }

    #portfolio-slider .slider-track {
        gap: 16px !important;
        padding: 8px 32px 32px !important;
        scroll-padding-inline: 32px;
    }

    #portfolio-slider .slider-card {
        width: calc(100vw - 64px);
        max-width: 340px;
        aspect-ratio: 1 / 1;
        padding: 6px;
        border-radius: 30px;
    }

    .slider-card__folder-content {
        width: calc(100% - 64px);
        padding: 14px 4px 12px 16px;
        gap: 4px;
    }

    .slider-card__subtitle {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.25;
        color: #171717;
    }

    .slider-card__folder-desc {
        padding: 0 4px 0 0;
        font-size: 12px;
        line-height: 1.45;
    }

    .faq-card {
        border-radius: 18px !important;
    }

    .faq-card button {
        padding: 16px !important;
        align-items: center !important;
    }

    .faq-card button span {
        font-size: 14px !important;
        line-height: 1.25;
    }

    .faq-card button i {
        flex: 0 0 auto;
        font-size: 16px !important;
        margin-top: 2px;
    }

    .faq-card > div {
        padding-inline: 16px !important;
    }

    .faq-card > div p {
        font-size: 12px !important;
        line-height: 1.45;
    }

    .mobile-card-slider {
        display: flex !important;
        width: 100%;
        max-width: none;
        gap: 12px !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }

    .mobile-card-slider::-webkit-scrollbar {
        display: none;
    }

    .mobile-card-slider > * {
        flex: 0 0 calc(100% - 44px);
        min-width: 0;
        scroll-snap-align: start;
        scroll-snap-stop: normal;
    }

    #approach .mobile-card-slider {
        padding-right: 28px;
        padding-bottom: 32px;
    }

    .approach-card:hover,
    .approach-card:active {
        transform: none !important;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02) !important;
    }

    .work-process-section .mobile-card-slider {
        margin-inline: -16px;
        width: calc(100% + 32px);
        padding-inline: 16px 28px;
    }

    .pricing-secondary-set { order: 2; }
    .pricing-primary-card { order: 1; }

    .pricing-primary-head {
        flex-wrap: nowrap !important;
    }

    .pricing-primary-head > :first-child {
        white-space: nowrap;
    }

    .pricing-primary-head > :last-child {
        padding-inline: 12px;
        letter-spacing: 0.08em;
    }
}

@media (hover: hover) and (pointer: fine) {
    .approach-card:hover .approach-card__icon {
        color: #fff;
    }
}

#audit {
    position: relative;
    z-index: 110;
    isolation: isolate;
    overflow-x: hidden;
    scroll-margin-top: 16px;
}

#audit,
#audit *,
#audit *::before,
#audit *::after {
    box-sizing: border-box;
}

legend span{color: #9ce154}
.audit-field__label span{color: #9ce154}

.audit-workspace {
    width: 100%;
    min-width: 0;
    min-height: 730px;
    padding: 0;
    background: transparent;
    perspective: 1000px;
    scrollbar-gutter: stable;
}

#audit-quiz-container,
.audit-step {
    width: 100%;
    min-width: 0;
    min-height: 610px;
}

#pricingModalTitle{font-size: 1.4rem;}

.audit-step {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.audit-step.is-entering,
.audit-success.is-entering {
    animation: audit-step-in 240ms cubic-bezier(0.23, 1, 0.32, 1) both;
    will-change: opacity, transform;
}

.audit-step.is-leaving,
.audit-success.is-leaving {
    pointer-events: none;
    animation: audit-step-out 120ms cubic-bezier(0.77, 0, 0.175, 1) both;
    will-change: opacity, transform;
}

.audit-step__header,
.audit-step__body,
.audit-navigation,
.audit-options,
.audit-option,
.audit-option__copy,
.audit-contact-grid,
.audit-contact-methods,
.audit-contact-methods > div,
.audit-dynamic-slot {
    min-width: 0;
}

.audit-step__header {
    padding-bottom: 24px;
}

.audit-step__header h3,
.audit-success h3 {
    margin: 0;
    color: #171717;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.audit-step__header > p {
    margin: 8px 0 0;
    color: #737373;
    font-size: 14px;
    line-height: 1.45;
    text-wrap: pretty;
}

.audit-progress {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.audit-progress__label {
    color: #737373;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.audit-progress__bars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    overflow: hidden;
    background: #f0f1f2;
    border-radius: 999px;
}

.audit-progress__bars span {
    display: block;
    width: 100%;
    height: 6px;
    background: transparent;
}

.audit-progress__bars span.is-active {
    background: var(--lime);
}

.audit-step__body {
    align-self: stretch;
}

.audit-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.audit-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    min-height: 72px;
    padding: 16px 18px;
    overflow-wrap: break-word;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}

.audit-options--paths .audit-option {
    min-height: 88px;
}

.audit-options--tasks .audit-option {
    min-height: 68px;
    padding-block: 14px;
}

.audit-option:hover {
    border-color: #cfcfcf;
}

.audit-option:active {
    transform: scale(0.985);
}

.audit-option--checkbox {
    transition-property: border-color, background-color, box-shadow;
}

.audit-option--checkbox:active {
    transform: none;
}

.audit-option.is-selected {
    background: rgba(156, 225, 84, 0.055);
    border-color: var(--lime);
}

.audit-option__input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.audit-option__copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding-right: 12px;
}

.audit-option__title {
    color: #171717;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

.audit-option__description {
    color: #777;
    font-size: 13px;
    line-height: 1.4;
}

.audit-option__control {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
}

.audit-option input[type='checkbox'] + .audit-option__copy + .audit-option__control {
    border-radius: 6px;
}

.audit-option.is-selected .audit-option__control {
    background: var(--lime);
    border-color: var(--lime);
}

.audit-option.is-selected .audit-option__control::after {
    content: '';
    width: 7px;
    height: 4px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

.audit-dynamic-slot {
    min-height: 92px;
    padding-top: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
}

.audit-dynamic-slot.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.audit-dynamic-slot--project {
    min-height: 0;
    padding-top: 0;
}

.audit-dynamic-slot--project.is-visible {
    min-height: 90px;
    padding-top: 14px;
}

.audit-dynamic-slot--tasks {
    min-height: 0;
    padding-top: 10px;
}

.audit-dynamic-slot--tasks.is-reserved {
    min-height: 76px;
}

.audit-dynamic-slot--contact {
    min-height: 96px;
    padding-top: 18px;
}

.audit-dynamic-slot--contact:not(.is-visible) {
    min-height: 0 !important;
    padding-top: 0 !important;
}

.audit-step--contacts {
    min-height: 540px;
}

.audit-extra-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.audit-extra-stack > :only-child,
.audit-extra-stack .audit-note {
    grid-column: 1 / -1;
}

.audit-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.audit-field__label,
.audit-contact-methods legend {
    color: #333;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.audit-field input,
.audit-field textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 54px;
    padding: 15px 18px;
    color: #171717;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 17px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.audit-field__input-shell {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 54px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 17px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.audit-field__input-shell:focus-within {
    border-color: var(--lime);
    box-shadow: 0 0 0 3px rgba(156, 225, 84, 0.2);
}

.audit-field__prefix {
    flex: 0 0 auto;
    padding-left: 18px;
    color: #737373;
    font-size: 14px;
    line-height: 1.4;
    user-select: none;
}

.audit-field--website .audit-field__input-shell input {
    min-height: 52px;
    padding-left: 0;
    border: 0;
    border-radius: 0;
}

.audit-field--website .audit-field__input-shell input:focus {
    box-shadow: none;
}

.audit-field textarea {
    min-height: 76px;
    resize: vertical;
}

.audit-field input:focus,
.audit-field textarea:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 3px rgba(156, 225, 84, 0.2);
}

.audit-field input::placeholder,
.audit-field textarea::placeholder {
    color: #a0a0a0;
}

.audit-note,
.audit-submit-error {
    margin: 0;
    padding: 11px 13px;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    background: #f1f1f1;
    border-radius: 12px;
}

.audit-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 0;
    color: #333;
    cursor: pointer;
}

.audit-checkbox input {
    position: absolute;
    opacity: 0;
}

.audit-checkbox > span {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
}

.audit-cards-viewport{padding: 40px 60px 70px 60px!important;}

.audit-checkbox input:checked + span {
    background: var(--lime);
    border-color: var(--lime);
}

.audit-checkbox input:checked + span::after {
    content: '';
    width: 7px;
    height: 4px;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

.audit-checkbox input:focus-visible + span {
    outline: 3px solid rgba(156, 225, 84, 0.28);
    outline-offset: 2px;
}

.audit-checkbox b {
    font-weight: 500;
    color: #6c757d !important;
    font-size: 11px;
}

.audit-checkbox--branches {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin-top: 22px;
    padding-block: 0;
}

.audit-checkbox--consent a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.audit-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.audit-contact-grid .audit-field__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.audit-contact-methods {
    padding: 0;
    margin: 20px 0 0;
    border: 0;
}

.audit-contact-methods legend {
    margin-bottom: 7px;
}

.audit-contact-methods > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0;
    background: transparent;
    border-radius: 16px;
}

.audit-contact-methods label {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.audit-contact-methods input {
    position: absolute;
    opacity: 0;
}

.audit-contact-methods label > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px;
    overflow-wrap: break-word;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    background: #f4f4f4;
    border: 1px solid transparent;
    border-radius: 14px;
}

.audit-contact-methods label.is-selected > span {
    color: #111;
    background: #fff;
    border-color: #ececec;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.055);
}

.audit-contact-methods label > span i {
    color: #9a9a9a;
    font-size: 14px;
    transition: color 180ms ease;
}

.audit-contact-methods label.is-selected > span i {
    color: var(--lime);
}

.audit-contact-methods input:focus-visible + span {
    outline: 3px solid rgba(156, 225, 84, 0.28);
}

.audit-submit-error {
    margin-top: 8px;
    color: #a42d2d;
    background: #fff0f0;
}

.audit-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 80px;
    padding-top: 22px;
}

.audit-button {
    min-height: 48px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease, transform 120ms ease, box-shadow 180ms ease;
}

.audit-button:active:not(:disabled) {
    transform: scale(0.97);
}

.audit-button:focus-visible {
    outline: 3px solid rgba(156, 225, 84, 0.35);
    outline-offset: 3px;
}

.audit-button--next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    background: var(--lime);
    box-shadow: 0 8px 20px rgba(156, 225, 84, 0.22);
}

.audit-button--next:hover:not(:disabled) {
    background: #8ccf4b;
}

.audit-entry-button {
    color: #fff !important;
}

.audit-button--back {
    justify-self: start;
    padding-left: 0;
    color: #666;
    background: transparent;
}

.audit-button--back:hover {
    color: #111;
}

.audit-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
    box-shadow: none;
}

.audit-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(17, 17, 17, 0.25);
    border-top-color: #111;
    border-radius: 50%;
    animation: audit-spin 700ms linear infinite;
}

.audit-success {
    display: flex;
    min-height: 656px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    text-align: center;
}

.audit-success__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 22px;
    color: #111;
    font-size: 26px;
    background: rgba(156, 225, 84, 0.22);
    border-radius: 50%;
}

.audit-success .audit-progress__label {
    margin-bottom: 12px;
}

.audit-success p {
    max-width: 440px;
    margin: 14px auto 26px;
    color: #666;
    font-size: 15px;
    line-height: 1.55;
    text-wrap: pretty;
}

@keyframes audit-step-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes audit-step-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-3px); }
}

@keyframes audit-spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .audit-workspace {
        min-height: 752px;
        padding: 0;
    }

    #audit-quiz-container,
    .audit-step,
    .audit-success {
        min-height: 672px;
    }

    .audit-step--contacts {
        min-height: 560px;
    }
}

@media (min-width: 768px) {
    .audit-workspace {
        min-height: 650px;
    }

    #audit-quiz-container,
    .audit-step,
    .audit-success,
    .audit-step--contacts {
        min-height: 568px;
    }
}

@media (max-width: 767px) {
    header{top: 0.9rem !important;}

    #audit {
        scroll-margin-top: 0;
        padding-top: 0;
        padding-bottom: 50px;
    }

    .audit-workspace {
        min-height: 0;
        padding: 0;
        scroll-margin-top: 86px;
        perspective: none;
    }

    .audit-cards-viewport {
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        touch-action: pan-y;
    }

    .audit-card.is-future {
        visibility: hidden;
        opacity: 0 !important;
    }

    .audit-card.is-past {
        max-height: 100%;
        overflow: hidden;
    }

    #audit-quiz-container,
    .audit-step,
    .audit-success {
        min-height: 0;
    }

    .audit-step__header {
        padding-bottom: 18px;
    }

    .audit-step__header h3,
    .audit-success h3 {
        font-size: 21px;
    }

    .audit-progress {
        margin-bottom: 15px;
    }

    .audit-options:not(.audit-options--tasks),
    .audit-contact-grid,
    .audit-extra-stack {
        grid-template-columns: minmax(0, 1fr);
    }

    .audit-options--tasks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .audit-option,
    .audit-options--paths .audit-option,
    .audit-options--tasks .audit-option {
        min-height: 68px;
        padding: 13px 14px;
    }

    .audit-options--tasks .audit-option {
        align-items: flex-start;
        min-height: 104px;
        padding: 12px 10px;
        border-radius: 17px;
    }

    .audit-options--tasks .audit-option__copy {
        gap: 3px;
        padding-right: 5px;
    }

    .audit-options--tasks .audit-option__title {
        font-size: 13px;
        line-height: 1.28;
    }

    .audit-options--tasks .audit-option__description {
        font-size: 11px;
        line-height: 1.28;
    }

    .audit-options--tasks .audit-option__control {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .audit-dynamic-slot,
    .audit-dynamic-slot--contact {
        min-height: 78px;
    }

    .audit-step[data-audit-step='1'] .audit-dynamic-slot.is-visible {
        min-height: 112px;
        padding-bottom: 16px;
    }

    .audit-dynamic-slot--project:not(.is-visible) {
        min-height: 0;
        padding-top: 0;
    }

    .audit-dynamic-slot--project.is-visible {
        min-height: 90px;
    }

    .audit-dynamic-slot--contact {
        min-height: 96px;
    }

    .audit-dynamic-slot--tasks.is-reserved {
        min-height: 78px;
    }

    .audit-dynamic-slot--tasks:not(.is-reserved) {
        min-height: 0;
    }

    .audit-navigation {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
        gap: 10px;
        min-height: 74px;
        padding-top: 18px;
    }

    .audit-navigation .audit-button {
        width: 100%;
        padding-inline: 14px;
    }

    .audit-button--back {
        padding-left: 14px;
        background: #ededed;
    }

    .audit-contact-methods label > span {
        padding-inline: 4px;
        font-size: 11px;
    }

    .audit-success {
        padding-block: 64px;
    }

    .pricing-modal-content {
        max-height: calc(100dvh - 24px);
        border-radius: 28px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .audit-step,
    .audit-success,
    .audit-spinner {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
    }

    .audit-dynamic-slot,
    .audit-option,
    .audit-button {
        transition-duration: 1ms !important;
    }
}

.slider-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 28px;
    background-color: #F4F3ED;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

@media (min-width: 768px) {
    .slider-card__inner {
        border-radius: 36px;
    }
}

.slider-card__bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #111111;
}

.slider-card__gradient {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.1), transparent);
}

.slider-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 700ms;
}

.slider-card:hover .slider-card__img {
    transform: scale(1.03);
}

.slider-card__header {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 20;
    text-align: right;
    color: #ffffff;
    max-width: 70%;
}

@media (min-width: 768px) {
    .slider-card__header {
        top: 32px;
        right: 32px;
    }
}

.slider-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));
}

@media (min-width: 768px) {
    .slider-card__title {
        font-size: 24px;
    }
}

.slider-card__folder {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 42%;
    z-index: 20;
    pointer-events: none;
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-card__folder::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 21;
    background: #F4F3ED;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    clip-path: polygon(0 0, calc(55% - 21px) 0, 55% 25%, 100% 25%, 100% 100%, 0 100%);
}

@media (min-width: 768px) {
    .slider-card__folder::before {
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }
}

/* Ховер папки только если слайдер не прокручивается */
.slider-track:not(.is-scrolling) .slider-card:hover .slider-card__folder {
    transform: translateY(100%);
}





.slider-card__folder-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70%;
    height: 100%;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    pointer-events: auto;
    z-index: 30;
}

@media (min-width: 768px) {
    .slider-card__folder-content {
        width: 65%;
        padding: 24px 24px 16px 24px;
    }
}

.slider-card__folder-desc {
    font-size: 13px;
    color: #4b5563; /* text-gray-600 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.625;
    padding-right: 8px;
    padding-top: 4px;
}

@media (min-width: 768px) {
    .slider-card__folder-desc {
        font-size: 14px;
    }
}

.slider-card__metrics {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    margin-top: 16px;
}

.slider-card__metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slider-card__metric-val {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    line-height: 1;
}

@media (min-width: 768px) {
    .slider-card__metric-val {
        font-size: 22px;
    }
}

.slider-card__metric-label {
    font-size: 9px;
    font-weight: 600;
    color: #9ca3af; /* text-gray-400 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .slider-card__metric-label {
        font-size: 10px;
    }
}

.slider-card__btn-wrap {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 30;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .slider-card__btn-wrap {
        bottom: 24px;
        right: 24px;
    }
}

.slider-card__btn {
    width: 40px;
    height: 40px;
    background-color: var(--lime);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(156,225,84,0.3);
    transition: all 0.15s;
    color: #ffffff;
    border: none;
    font-size: 14px;
}

@media (min-width: 768px) {
    .slider-card__btn {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}

.slider-card:hover .slider-card__btn {
    transform: scale(1.1);
    background-color: #8ccf4b;
}


.slider-card__folder-left {
    position: absolute;
    z-index: 22;
    bottom: 0;
    left: 0;
    width: calc(55% - 18px);
    height: 100%;
    background-color: #F4F3ED;
    border-top-left-radius: 16px;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .slider-card__folder-left {
        border-top-left-radius: 24px;
    }
}



.slider-card__folder-slope {
    position: absolute;
    z-index: 22;
    top: 0;
    left: calc(55% - 21px);
    width: 42px;
    height: 100%;
    pointer-events: auto;
    fill: #F4F3ED;
}
.slider-card__folder-slope path {
    display: block; /* ensure path is visible */
}

.slider-card__folder-right {
    position: absolute;
    z-index: 22;
    bottom: 0;
    right: 0;
    width: calc(45% - 18px);
    height: 75%;
    background-color: #F4F3ED;
    border-top-right-radius: 16px;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .slider-card__folder-right {
        border-top-right-radius: 24px;
    }
}

.audit-example-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0 0 24px;
    padding: 12px 20px;
    color: #171717;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    background: #f4f4f4;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, transform 120ms ease;
}

.audit-example-button:hover {
    background: #fff;
    border-color: #d9d9d9;
}

.audit-example-button:active {
    transform: scale(0.98);
}

.audit-example-modal__content {
    width: min(1120px, calc(100vw - 32px));
    max-width: none;
    height: min(860px, calc(100dvh - 32px));
    padding: 0;
    overflow: hidden;
    border-radius: 28px;
}

.audit-example-modal__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

/* ========================================== */
/* MARQUEE SECTION */
/* ========================================== */
.marquee-section {
    position: relative;
    overflow: hidden;
    background-color: #FFFFFF;
    padding: 60px 0 20px 0;
}

@media (min-width: 768px) {
    .marquee-section {
        padding: 40px 0 40px 0;
    }
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
    gap: 16px;
    width: 100%;
    margin-bottom: 16px;
    position: relative;
}

@media (min-width: 768px) {
    .marquee-wrapper {
        gap: 24px;
        margin-bottom: 24px;
    }
}

.marquee-track {
    display: flex;
    gap: 16px;
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
}

@media (min-width: 768px) {
    .marquee-track {
        gap: 24px;
    }
}

.marquee-left {
    animation: scroll-left 60s linear infinite;
}

.marquee-right {
    animation: scroll-right 60s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 16px)); }
}

@keyframes scroll-right {
    0% { transform: translateX(calc(-100% - 16px)); }
    100% { transform: translateX(0); }
}

@media (min-width: 768px) {
    @keyframes scroll-left {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-100% - 24px)); }
    }
    @keyframes scroll-right {
        0% { transform: translateX(calc(-100% - 24px)); }
        100% { transform: translateX(0); }
    }
}

.marquee-item {
    display: flex;
    align-items: center;
    background-color: transparent;
    padding: 6px 16px;
    gap: 16px;
}

.marquee-item img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    transform: rotate(-6deg);
}

.marquee-item span {
    font-size: 20px;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .marquee-item {
        padding: 8px 24px;
        gap: 20px;
    }
    .marquee-item img {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    .marquee-item span {
        font-size: 26px;
    }
}
