@font-face {
            font-family: 'Akrobat-ExtraLight';
            src: url('https://loader.tim-0fficial.ru/public/media/Darya/Shrift/Akrobat-ExtraLight.woff2') format('woff2');
            font-weight: 200;
            font-style: normal;
            font-display: swap;
        }

        * {
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Montserrat', sans-serif;
        }
        
        html {
            height: -webkit-fill-available;
        }
        
        body {
            margin: 0;
            padding: 0;
            padding-bottom: env(safe-area-inset-bottom);
            background: #fef9f7;
            min-height: 100vh;
            min-height: -webkit-fill-available;
            position: relative;
            overflow-x: hidden;
        }
        

        /* Дополнительная зернистость для стеклянных элементов */
        .glass::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
            opacity: 0.06;
            pointer-events: none;
            border-radius: inherit;
            z-index: 1;
        }

        .brand-font {
            font-family: 'Akrobat-ExtraLight', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            font-weight: 200;
        }
        
        .title-font {
            font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            font-weight: 300;
        }
        
        .click-effect {
            transition: transform 0.1s ease;
            -webkit-tap-highlight-color: transparent;
        }
        
        .click-effect:active {
            transform: scale(0.95);
        }
        
        .click-effect:focus {
            outline: none;
        }
        
        header {
            transition: all 0.3s ease;
            background-color: #fef9f7 !important;
        }
        
        .header-dark {
            background-color: #fef9f7 !important;
            backdrop-filter: none !important;
            border-color: #dfc4c9 !important;
        }
        
        .header-dark .text-white {
            color: #705B4D !important;
            transition: color 0.3s ease;
        }
        
        /* Подчеркивание для навигации */
        header nav a::after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 50%;
            width: 0;
            height: 2px;
            background-color: #dfc4c9;
            transition: width 0.3s ease, left 0.3s ease;
        }
        header nav a:hover::after {
            width: 100%;
            left: 0;
        }
        /* Разделитель между пунктами меню */
        .header-divider {
            width: 1px;
            height: 20px;
            background-color: #dfc4c9;
            margin: 0 10px;
        }

        /* Стеклянный эффект */
        .glass {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid #dfc4c9;
            position: relative;
        }

        /* Анимация появления */
        .reveal-slide {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
        }
        .reveal-slide.revealed {
            opacity: 1;
            transform: translateY(0);
        }

        /* === Анимация появления контента для рекомендаций === */
        .anim-item {
            opacity: 0;
            transform: translateY(40px);
            filter: blur(5px);
            transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 1s ease;
        }

        .anim-active {
            opacity: 1;
            transform: translateY(0);
            filter: blur(0);
        }

        /* === Анимация исчезновения стартового экрана === */
        .fade-exit {
            opacity: 0;
            transform: scale(0.95);
            pointer-events: none;
            transition: all 0.6s ease-in-out;
        }

        /* === Анимации для загрузчика === */
        @keyframes twinkle {
            0%, 100% { opacity: 0.2; transform: scale(0.8); }
            50% { opacity: 1; transform: scale(1.2); }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .animate-twinkle {
            animation: twinkle 3s ease-in-out infinite;
        }

        .animate-float {
            animation: float 6s ease-in-out infinite;
        }

        .animate-spin-slow {
            animation: spin 10s linear infinite;
        }

        .animate-pulse-slow {
            animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }

        /* === Стили для SVG загрузчика === */
        .loader-container {
            position: relative;
            width: 80vmin;
            max-width: 400px;
            height: 80vmin;
            max-height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
        }

        .loader-container svg {
            width: 100%;
            height: 100%;
            overflow: visible;
        }

        .loader-container .ell {
            fill: none;
            stroke-width: 1.5;
            opacity: 0.8;
            filter: drop-shadow(0 0 4px rgba(220, 182, 188, 0.5));
            mix-blend-mode: screen;
        }

        .loader-container .star {
            position: absolute;
            color: #fff;
            opacity: 0;
            animation: twinkle-star var(--duration) ease-in-out infinite;
            filter: blur(0.5px);
        }

        @keyframes twinkle-star {
            0%, 100% { opacity: 0; transform: scale(0.2); }
            50% { opacity: var(--max-opacity); transform: scale(1) rotate(45deg); }
        }

        .loader-container .center-icon {
            position: absolute;
            color: #dcb6bc;
            font-size: 2rem;
            opacity: 0.8;
            filter: drop-shadow(0 0 10px #dcb6bc);
            animation: pulse-icon 3s infinite ease-in-out;
        }

        @keyframes pulse-icon {
            0%, 100% { transform: scale(0.9); opacity: 0.5; }
            50% { transform: scale(1.1); opacity: 1; }
        }

        /* Текстура шума */
        .noise-bg {
            position: relative;
        }
        .noise-bg::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
            opacity: 0.4;
            mix-blend-mode: overlay;
            pointer-events: none;
            z-index: 1;
        }

        /* Скроллбар */
        .custom-scroll::-webkit-scrollbar { width: 4px; }
        .custom-scroll::-webkit-scrollbar-track { background: transparent; }
        .custom-scroll::-webkit-scrollbar-thumb { background-color: rgba(220, 182, 188, 0.5); border-radius: 20px; }

        /* Переключатели режимов */
        .mode-switcher {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid #dfc4c9;
            border-radius: 24px;
            display: flex;
            flex-wrap: nowrap;
            overflow: hidden;
            width: 100%;
        }

        .mode-btn {
            background: transparent;
            color: #705B4D;
            border: none;
            white-space: nowrap;
            font-weight: 500;
            flex: 1;
            min-width: 0;
            border-radius: 20px;
            margin: 2px;
            text-align: center;
        }

        .mode-btn.active {
            background: #DFC4C9;
            color: #FDF9F6;
            font-weight: 600;
        }

        /* Инпуты */
        input[type="text"] {
            background: rgba(255, 255, 255, 1);
            border: 1px solid #dfc4c9;
            border-radius: 20px;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
            color: #705B4D;
        }

        input[type="text"]:focus {
            outline: none;
            border-color: #DFC4C9;
            background: rgba(255, 255, 255, 1);
            box-shadow: 0 0 0 3px rgba(223, 196, 201, 0.1);
        }

        /* Кнопка */
        .btn-calculate {
            background: #DFC4C9;
            color: #FDF9F6;
            border-radius: 24px;
            transition: all 0.3s ease;
        }
        
        .btn-calculate:hover {
            background: #CFA9B4;
        }

        .btn-calculate:active {
            transform: translateY(1px);
        }
        

        /* Компактный стильный переключатель с цветами сайта */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 32px;
            height: 18px;
            margin: 0;
            vertical-align: middle;
            align-self: center;
        }

        /* Скрыть стандартный input */
        .toggle-switch .toggle-input {
            display: none;
        }

        /* Стиль фона переключателя */
        .toggle-switch .toggle-label {
            position: absolute;
            top: 0;
            left: 0;
            width: 32px;
            height: 18px;
            background-color: rgba(223, 196, 201, 0.3);
            border-radius: 18px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            border: 1px solid #dfc4c9;
        }

        /* Стиль круглого ползунка */
        .toggle-switch .toggle-label::before {
            content: "";
            position: absolute;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            top: 1px;
            left: 2px;
            background-color: #fff;
            box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease;
        }

        /* Стиль когда переключатель включен */
        .toggle-switch .toggle-input:checked + .toggle-label {
            background-color: #DFC4C9;
            border-color: #DFC4C9;
        }

        .toggle-switch .toggle-input:checked + .toggle-label::before {
            transform: translateX(14px);
            background-color: #fff;
        }

        /* SVG стили */
        .line-segment {
            stroke: rgba(223, 196, 201, 0.5);
            stroke-width: 2;
            fill: none;
            stroke-dasharray: 0;
            stroke-dashoffset: 0;
            transition: stroke 0.3s;
        }

        .matrix-circle {
            fill: #ffffff;
            stroke: #DFC4C9;
            stroke-width: 2;
            transition: all 0.3s ease;
        }

        .matrix-text {
            fill: #afa59e;
            font-family: 'Lora', serif;
            text-anchor: middle;
            dominant-baseline: middle;
            font-weight: 300;
        }

        /* Карточки точек */
        .point-card {
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 16px;
        }

        /* Стили для интерактивных карточек энергий */
        .energy-card {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            width: 100%;
            margin-bottom: 1rem;
        }

        .energy-card:hover {
            transform: translateY(-2px);
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.25);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        /* Убираем ховер эффекты на мобильных устройствах */
        @media (max-width: 1023px) {
            .energy-card:hover {
                transform: none;
                background: rgba(255, 255, 255, 0.08);
                border-color: rgba(255, 255, 255, 0.15);
                box-shadow: none;
            }
            
            .energy-card:hover::before {
                opacity: 0;
            }
            
            .energy-card:hover .energy-number::before {
                opacity: 0;
            }
        }

        /* Медиа-запросы для нового дизайна карточек */
        @media (max-width: 768px) {
            #keyPointsInfo {
                grid-template-columns: 1fr !important;
                gap: 1.5rem !important;
            }
        }

        .energy-card.active {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-4px);
        }

        .energy-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .energy-card:hover::before {
            opacity: 1;
        }

        .energy-number {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 18px;
            color: white;
            margin: 0 auto 12px;
            position: relative;
            transition: all 0.3s ease;
        }

        .energy-number::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            border-radius: 50%;
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .energy-card:hover .energy-number::before {
            opacity: 1;
        }

        .energy-title {
            font-weight: 600;
            font-size: 14px;
            color: #705B4D;
            margin-bottom: 8px;
            text-align: center;
        }

        .energy-description {
            font-size: 12px;
            color: #AEA49E;
            line-height: 1.4;
            text-align: center;
            margin-bottom: 12px;
        }

        .energy-details {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            margin-top: 8px;
        }

        .energy-card.active .energy-details {
            max-height: 200px;
            padding: 12px;
        }

        .energy-details-content {
            font-size: 11px;
            color: #705B4D;
            line-height: 1.5;
        }

        .energy-icon {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: rgba(223, 196, 201, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: #AEA49E;
            transition: all 0.3s ease;
        }

        .energy-card.active .energy-icon {
            background: rgba(223, 196, 201, 0.4);
            color: #705B4D;
        }

        /* Стрелка для индикации интерактивности */
        .energy-arrow {
            position: absolute;
            bottom: 8px;
            right: 8px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: rgba(223, 196, 201, 0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 8px;
            color: #AEA49E;
            transition: all 0.3s ease;
        }

        .energy-card.active .energy-arrow {
            background: rgba(223, 196, 201, 0.35);
            color: #705B4D;
            transform: rotate(180deg);
        }

        /* Адаптивность для мобильных */
        @media (max-width: 768px) {
            .energy-card {
                border-radius: 16px;
            }

            .energy-number {
                width: 40px;
                height: 40px;
                font-size: 16px;
                margin-bottom: 8px;
            }

            .energy-title {
                font-size: 13px;
                margin-bottom: 6px;
            }

            .energy-description {
                font-size: 11px;
                margin-bottom: 8px;
            }

            .energy-details {
                border-radius: 10px;
            }

            .energy-details-content {
                font-size: 10px;
            }

            .energy-icon {
                width: 16px;
                height: 16px;
                font-size: 8px;
            }

            .energy-arrow {
                width: 14px;
                height: 14px;
                font-size: 7px;
            }
        }

        @media (max-width: 480px) {
            .energy-number {
                width: 36px;
                height: 36px;
                font-size: 14px;
            }

            .energy-title {
                font-size: 12px;
            }

            .energy-description {
                font-size: 10px;
            }

            .energy-arrow {
                width: 12px;
                height: 12px;
                font-size: 6px;
            }
        }

        /* На десктопе карточки раскрыты по умолчанию */
        @media (min-width: 1024px) {
            .energy-card {
                background: rgba(255, 255, 255, 0.12);
            }

            .energy-details {
                max-height: 200px;
                padding: 12px;
            }

            .energy-icon {
                background: rgba(255, 255, 255, 0.3);
                color: #374151;
            }

            /* Скрываем стрелки на десктопе */
            .energy-arrow {
                display: none;
            }
        }

        /* Стили для блока рекомендаций */
        #recommendationsContent {
            transition: all 0.5s ease;
        }

        #recommendationsContent.hidden {
            display: none;
        }

        #getRecommendationsBtn {
            background: rgb(31, 41, 55);
            border: none;
            box-shadow: 0 4px 15px rgba(31, 41, 55, 0.3);
            transition: all 0.3s ease;
        }

        #getRecommendationsBtn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(31, 41, 55, 0.4);
        }

        #getRecommendationsBtn:active {
            transform: translateY(0);
        }

        /* Стили для лоадера */
        #loadingSpinner {
            transition: all 0.3s ease;
        }

        #loadingSpinner.hidden {
            display: none;
        }

        /* Анимация спиннера */
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .animate-spin {
            animation: spin 1s linear infinite;
        }

        /* Анимация точек */
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-10px);
            }
            60% {
                transform: translateY(-5px);
            }
        }

        .animate-bounce {
            animation: bounce 1s infinite;
        }

        /* Плавная анимация прогресс бара */
        #progressBar {
            transition: width 0.3s ease;
        }

        /* Адаптивные стили для рекомендаций */
        @media (min-width: 1024px) {
            #destinyRecommendationsContent .max-w-6xl {
                max-width: 80rem; /* 1280px */
            }
            
            #destinyRecommendationsContent .grid {
                gap: 2rem;
            }
        }
        
        @media (min-width: 1280px) {
            #destinyRecommendationsContent .max-w-6xl {
                max-width: 90rem; /* 1440px */
            }
        }
        
        @media (min-width: 1536px) {
            #destinyRecommendationsContent .max-w-6xl {
                max-width: 100rem; /* 1600px */
            }
        }
        
        /* Улучшенные стили для мобильных устройств */
        @media (max-width: 1023px) {
            #destinyRecommendationsContent .grid {
                gap: 1.5rem;
            }
            
            #destinyRecommendationsContent .bg-white\/30 {
                padding: 1.5rem;
            }
        }

        /* Адаптивные стили для фона - убираем полоски */
        @media (max-width: 1200px) {
            body {
                background-size: cover;
                background-position: center center;
                background-attachment: fixed;
            }
        }
        
        @media (max-width: 768px) {
            body {
                background-size: cover;
                background-position: center center;
                background-attachment: fixed;
            }
        }
        
        @media (max-width: 480px) {
            body {
                background-size: cover;
                background-position: center center;
                background-attachment: fixed;
            }
        }
        
        @media (min-width: 1920px) {
            body {
                background-size: cover;
                background-position: center center;
                background-attachment: fixed;
            }
        }
        
        /* Дополнительные стили для полного покрытия */
        html {
            height: 100%;
        }
        
        body {
            height: 100%;
        }

        /* Адаптивные стили для блока рекомендаций */
        @media (max-width: 768px) {
            #recommendationsContent .glass {
                padding: 1rem;
            }
            
            #recommendationsContent h3 {
                font-size: 1.25rem;
            }
            
            #recommendationsContent h4 {
                font-size: 0.95rem;
            }
            
            #recommendationsContent p, 
            #recommendationsContent li {
                font-size: 0.875rem;
            }
            
            /* Духовное послание на мобильных */
            #recommendationsContent .max-w-2xl {
                max-width: 100%;
                margin: 0 0.5rem;
            }
        }

        @media (max-width: 480px) {
            #recommendationsContent .glass {
                padding: 0.75rem;
            }
            
            #recommendationsContent h3 {
                font-size: 1.1rem;
            }
            
            #recommendationsContent p, 
            #recommendationsContent li {
                font-size: 0.8rem;
            }
            
            /* Духовное послание на маленьких экранах */
            #recommendationsContent .max-w-2xl {
                padding: 1rem;
            }
            
            #recommendationsContent .max-w-2xl h4 {
                font-size: 1rem;
            }
            
            #recommendationsContent .max-w-2xl p {
                font-size: 0.875rem;
            }
        }


        /* Адаптивность SVG */
        .matrix-container {
            width: 100%;
            aspect-ratio: 1;
            position: relative;
            min-height: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
            box-sizing: border-box;
        }

        #matrixSVG {
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 100%;
        }

        /* Специальные стили для матрицы года */
        #yearMatrix {
            width: 100%;
            aspect-ratio: 1;
            position: relative;
            min-height: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
            box-sizing: border-box;
        }

        #yearMatrixSVG {
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 100%;
        }

        /* Стили для матрицы совместимости */
        #compatibilityMatrix {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            min-height: auto;
            max-width: 100%;
            overflow: visible;
            box-sizing: border-box;
            padding: 0.25rem;
        }
        
        #compatibilityMatrix .flex {
            justify-content: center;
            align-items: flex-start;
            max-width: 100%;
            overflow: visible;
            min-height: auto;
            gap: 1rem;
        }
        
        #compatibilityMatrix .aspect-square {
            min-height: 280px;
            max-width: 100%;
            overflow: visible;
            width: 100%;
            aspect-ratio: 0.95 / 1; /* Немного вытянутый контейнер */
        }
        
        #compatibilityMatrix .max-w-2xl {
            max-width: 550px !important;
            min-height: auto;
            aspect-ratio: 0.95 / 1;
        }
        
        /* Ограничения для SVG элементов в матрице совместимости */
        #compatibilityMatrix svg {
            max-width: 100% !important;
            max-height: 100% !important;
            width: 100% !important;
            height: 100% !important;
            overflow: visible !important;
        }
        
        /* ГАРАНТИРОВАННОЕ скрытие всех матриц на всех экранах */
        .matrix-container.hidden {
            display: none !important;
            height: 0 !important;
            min-height: 0 !important;
            max-height: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
            overflow: hidden !important;
        }
        
        #yearMatrix.hidden, #compatibilityMatrix.hidden {
            display: none !important;
            height: 0 !important;
            min-height: 0 !important;
            max-height: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
            overflow: hidden !important;
        }
        
        /* Скрытие SVG элементов внутри скрытых контейнеров */
        .matrix-container.hidden svg,
        #yearMatrix.hidden svg,
        #compatibilityMatrix.hidden svg {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            width: 0 !important;
            height: 0 !important;
            overflow: hidden !important;
        }

        /* Дополнительная секция совместимости */
        #compatibilityExtraSection {
            margin-top: 2rem;
            display: block; /* базовое состояние, далее управляем классом hidden */
            visibility: visible;
            opacity: 1;
            max-width: 100%;
            overflow: visible;
        }
        
        #compatibilityExtraSection.hidden {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            height: 0 !important;
            min-height: 0 !important;
            max-height: 0 !important;
            overflow: hidden !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        /* Гарантируем, что контейнеры совместимости не обрезаются */
        #compatibilityMatrix .aspect-square,
        #compatibilityMatrix .w-full,
        #compatibilityMatrix .flex {
            overflow: visible !important;
        }
        
        /* Стили для стрелок навигации */
        .nav-arrow {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid #dfc4c9;
            color: #705B4D;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .nav-arrow:hover:not(:disabled) {
            background: rgba(255, 255, 255, 1);
            border-color: #DFC4C9;
            color: #DFC4C9;
            transform: scale(1.05);
        }
        
        .nav-arrow:disabled {
            cursor: not-allowed;
            opacity: 0.4;
            color: #C1BBB6;
        }
        
        #compatibilityNav.hidden {
            display: none !important;
        }
        
        /* Плавная анимация смены матриц */
        #compatibilityMainSVG {
            transition: opacity 0.3s ease;
        }
        
        /* Стартовый экран - матрица и поля ввода должны помещаться на экране */
        .matrix-container {
            max-height: 70vh;
            min-height: 300px;
        }
        
        .matrix-panel {
            max-height: 75vh;
        }
        
        /* Стили для контейнера заголовка и переключателя - по краям на всех устройствах */
        .matrix-panel > .header-matrix-container {
            left: 16px !important;
            right: 16px !important;
            width: calc(100% - 32px) !important;
            max-width: calc(100% - 32px) !important;
            transform: none !important;
            justify-content: space-between !important;
            padding: 0 !important;
            box-sizing: border-box !important;
            overflow: hidden !important;
        }
        
        .matrix-panel > .header-matrix-container h2#matrixTitle {
            margin: 0 !important;
            margin-left: 15px !important;
            flex-shrink: 0 !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }
        
        .matrix-panel > .header-matrix-container #prognosticsToggle {
            margin: 0 !important;
            position: relative !important;
            left: -15px !important;
            flex-shrink: 0 !important;
            overflow: visible !important;
        }
        
        @media (min-width: 1025px) {
            .matrix-container {
                max-height: 65vh;
                min-height: 350px;
            }
            
            .matrix-panel {
                max-height: 70vh;
            }
        }
        
        @media (max-width: 768px) {
            .matrix-container {
                max-height: 60vh;
                min-height: 280px;
            }
            
            .matrix-panel {
                max-height: 65vh;
            }
        }
        
        /* Информационная секция */
        #infoSection {
            transition: all 0.3s ease;
        }
        
        #infoSection[style*="display: none"] {
            height: 0 !important;
            min-height: 0 !important;
            max-height: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
            overflow: hidden !important;
            border: none !important;
        }
        
        @media (max-width: 640px) {
            #compatibilityMatrix {
                min-height: auto !important;
                height: auto !important;
                max-height: none !important;
                gap: 1rem !important;
                overflow: visible !important;
                padding: 8px !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
            }
            
            #compatibilityMatrix .flex {
                flex-direction: column !important;
                align-items: center !important;
                gap: 1rem !important;
                width: 100% !important;
                max-width: 100% !important;
                overflow: visible !important;
                min-height: auto !important;
            }
            
            #compatibilityMatrix .w-full {
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
            }
            
            /* Все три матрицы одинакового размера - такого же как матрица судьбы */
            #compatibilityMatrix .aspect-square {
                min-height: 300px !important;
                height: 300px !important;
                max-height: 60vh !important;
                aspect-ratio: 0.95 / 1 !important;
                max-width: 100% !important;
                overflow: visible !important;
                width: 100% !important;
            }
            
            /* Большая матрица совместимости тоже такого же размера */
            #compatibilityMatrix .max-w-2xl {
                max-width: 100% !important;
                width: 100% !important;
                min-height: 300px !important;
                height: 300px !important;
                max-height: 60vh !important;
                aspect-ratio: 0.95 / 1 !important;
            }
            
            /* Ограничение высоты для мобильных */
            .matrix-container {
                max-height: 60vh !important;
            }
            
            /* Убираем все ограничения высоты */
            .matrix-panel {
                min-height: auto !important;
                height: auto !important;
                max-height: none !important;
                overflow: hidden !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
            }
            
            .matrix-container {
                min-height: auto !important;
                height: auto !important;
                max-height: none !important;
                overflow: hidden !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
            }
            
            /* Специальные стили для матрицы совместимости на мобильных */
            #compatibilityMatrix h4 {
                font-size: 0.875rem !important;
                margin-bottom: 0.5rem !important;
                text-align: center !important;
            }
            
            /* Убираем отступы у SVG */
            #compatibilityMatrix svg {
                width: 100% !important;
                height: 100% !important;
                max-width: 100% !important;
                max-height: 100% !important;
            }
        }

        /* Стили для десктопа - вытянутые контейнеры */
        @media (min-width: 1025px) {
            #compatibilityMatrix .aspect-square {
                aspect-ratio: 0.9 / 1 !important;
                height: auto !important;
                min-height: 320px !important;
                max-height: 380px !important;
            }
            
            #compatibilityMatrix .max-w-2xl {
                aspect-ratio: 0.9 / 1 !important;
                height: auto !important;
                min-height: 420px !important;
                max-height: 520px !important;
            }
            
            #compatibilityMatrix {
                gap: 0.5rem !important;
            }
        }

        /* Стили для планшетов */
        @media (max-width: 1024px) and (min-width: 769px) {
            #compatibilityMatrix {
                gap: 1rem;
                min-height: auto;
                padding: 0.5rem;
            }
            
            #compatibilityMatrix .flex {
                min-height: auto;
            }
            
            #compatibilityMatrix .aspect-square {
                min-height: 280px;
            }
            
            #compatibilityMatrix .max-w-2xl {
                max-width: 600px !important;
                min-height: auto;
            }
        }

        /* Стили для очень маленьких экранов */
        @media (max-width: 480px) {
            #compatibilityMatrix {
                gap: 0.75rem !important;
                padding: 6px !important;
            }
            
            #compatibilityMatrix .flex {
                gap: 0.75rem !important;
            }
            
            /* Все три матрицы одинакового размера на маленьких экранах */
            #compatibilityMatrix .aspect-square {
                min-height: 260px !important;
                height: 260px !important;
                max-height: 55vh !important;
                aspect-ratio: 0.95 / 1 !important;
            }
            
            #compatibilityMatrix .max-w-2xl {
                min-height: 260px !important;
                height: 260px !important;
                max-height: 55vh !important;
                aspect-ratio: 0.95 / 1 !important;
            }
            
            #compatibilityMatrix h4 {
                font-size: 0.75rem !important;
                margin-bottom: 0.3rem !important;
            }
            
            .matrix-container {
                max-height: 55vh !important;
            }
        }

        /* Адаптивные стили */
        @media (max-width: 768px) {
            .click-effect {
                -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
                transition: all 0.15s ease;
            }
            
            .click-effect:active {
                transform: scale(0.95);
                opacity: 0.8;
            }
            
            button, .click-effect {
                -webkit-touch-callout: none;
                -webkit-user-select: none;
                -khtml-user-select: none;
                -moz-user-select: none;
                -ms-user-select: none;
                user-select: none;
                touch-action: manipulation;
            }

            /* Переключатели режимов на мобильных */
            .mode-btn {
                padding: 6px 4px !important;
                font-size: 10px !important;
                margin: 1px !important;
                border-radius: 16px !important;
            }

            .mode-btn i {
                font-size: 9px;
            }

            .mode-switcher {
                padding: 2px 4px !important;
                gap: 1px !important;
                flex-wrap: wrap !important;
                justify-content: center !important;
                width: 100%;
                align-items: center !important;
            }

            /* Уменьшенные отступы для прогностики на мобильных */
            #prognosticsToggle {
                margin-top: 2rem !important;
                padding-top: 1rem !important;
            }

            /* Скрыть навигацию на мобильных (кроме навигации в меню профиля) */
            nav {
                display: none !important;
            }
            
            /* Гарантируем, что навигация в меню профиля всегда видна */
            .menu-inner nav,
            .menu-widget nav {
                display: block !important;
            }

            /* Заголовки на мобильных */

            /* Карточки точек */
            .point-card {
                padding: 12px !important;
            }

            .point-card .w-10 {
                width: 2rem !important;
                height: 2rem !important;
            }
        }

        @media (max-width: 480px) {
            /* Еще более компактные стили для маленьких экранов */
            .mode-btn {
                padding: 4px 2px !important;
                font-size: 9px !important;
                margin: 1px !important;
                border-radius: 14px !important;
            }

            .mode-btn i {
                font-size: 8px;
            }

            .mode-switcher {
                padding: 1px 2px !important;
                gap: 1px !important;
            }

            .glass {
                padding: 8px !important;
            }
            
            .matrix-panel {
                padding: 6px !important;
                min-height: auto !important;
                height: auto !important;
                max-height: none !important;
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }

            .matrix-container {
                min-height: auto !important;
                max-height: none !important;
                height: auto !important;
                padding: 2px;
                flex-shrink: 0;
                overflow: hidden;
            }
            
            #matrixTitle {
                margin-bottom: 6px !important;
                font-size: 0.9rem !important;
                flex-shrink: 0;
            }
            
            /* Специальные стили для матрицы судьбы на очень маленьких экранах */
            #destinyMatrix {
                min-height: auto !important;
                max-height: none !important;
                height: auto !important;
                padding: 2px !important;
                margin-bottom: 0 !important;
                flex-shrink: 0;
                overflow: hidden;
            }
            
            /* ПРИНУДИТЕЛЬНО убираем лишнее пространство в плашке на маленьких экранах */
            .matrix-panel {
                padding: 6px 6px 6px 6px !important;
                margin-bottom: 0 !important;
                min-height: auto !important;
                height: auto !important;
                max-height: none !important;
            }
            
            /* Убираем нижние отступы у заголовка */
            #matrixTitle {
                margin-bottom: 6px !important;
                padding-bottom: 0 !important;
            }
            
            /* УБИРАЕМ СКРЫТЫЕ КОНТЕЙНЕРЫ ПОЛНОСТЬЮ на маленьких экранах */
            .matrix-container.hidden {
                display: none !important;
                height: 0 !important;
                min-height: 0 !important;
                max-height: 0 !important;
                padding: 0 !important;
                margin: 0 !important;
                overflow: hidden !important;
            }
            
            #yearMatrix.hidden, #compatibilityMatrix.hidden {
                display: none !important;
                height: 0 !important;
                min-height: 0 !important;
                max-height: 0 !important;
                padding: 0 !important;
                margin: 0 !important;
                overflow: hidden !important;
            }

            /* Сетка ключевых точек на очень маленьких экранах */
            #keyPointsInfo {
                grid-template-columns: 1fr !important;
                gap: 1.5rem !important;
            }
            
            /* Выравнивание кнопки прогностики на очень маленьких экранах */
            .flex.items-center.justify-between {
                align-items: center !important;
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                width: 100% !important;
                min-height: auto !important;
                height: auto !important;
                margin: 0 !important;
                padding: 0 !important;
            }
            
            #prognosticsToggle {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                flex-shrink: 0 !important;
                height: auto !important;
                margin: 0 !important;
                padding: 0 !important;
            }
            
            h2#matrixTitle {
                margin-bottom: 0 !important;
                line-height: 1.2 !important;
                flex: none !important;
                margin-right: 0 !important;
                font-size: 1rem !important;
            }
            
            /* Исправление для очень маленьких экранов */
            .matrix-panel > .header-matrix-container {
                top: 10px !important;
                left: 12px !important;
                right: 8px !important;
                width: calc(100% - 20px) !important;
                max-width: calc(100% - 20px) !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                overflow: visible !important;
            }
            
            .matrix-panel > .header-matrix-container #prognosticsToggle {
                flex-shrink: 1 !important;
                min-width: 0 !important;
                margin-left: -20px !important;
            }
            
            .matrix-panel > .header-matrix-container #prognosticsToggle span {
                font-size: 10px !important;
                white-space: nowrap !important;
            }
            
            /* Уменьшаем размер кнопки прогностики на очень маленьких экранах */
            #prognosticsToggle .toggle-switch {
                width: 28px !important;
                height: 14px !important;
            }
            
            #prognosticsToggle .toggle-label {
                width: 28px !important;
                height: 14px !important;
                border-radius: 14px !important;
            }
            
            #prognosticsToggle .toggle-label::before {
                width: 10px !important;
                height: 10px !important;
                top: 1px !important;
                left: 2px !important;
            }
            
            #prognosticsToggle .toggle-input:checked + .toggle-label::before {
                transform: translateX(14px) !important;
            }
            
            #prognosticsToggle span {
                font-size: 10px !important;
                line-height: 1 !important;
                vertical-align: middle !important;
                margin-bottom: 0 !important;
            }
            
            /* Выравнивание переключателя с текстом на очень маленьких экранах */
            #prognosticsToggle .toggle-switch {
                vertical-align: middle !important;
                align-self: center !important;
                margin-top: 0 !important;
                margin-bottom: 0 !important;
            }
            
            /* ГАРАНТИРОВАННОЕ скрытие кнопки прогностики на очень маленьких экранах */
            #prognosticsToggle.hidden {
                display: none !important;
                visibility: hidden !important;
                opacity: 0 !important;
                width: 0 !important;
                height: 0 !important;
                overflow: hidden !important;
            }
        }

        /* Анимация появления элементов */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .glass {
            animation: fadeInUp 0.6s ease-out;
        }

        /* Убрали все ховер эффекты и сложные стили */

        /* Стили для плашки матрицы */
        .matrix-panel {
            min-height: auto;
            height: auto;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-sizing: border-box;
        }
        
        /* Ограничения для матрицы совместимости */
        #compatibilityMatrix {
            max-width: 100%;
            overflow: hidden;
            box-sizing: border-box;
        }
        
        #compatibilityMatrix .flex {
            max-width: 100%;
            overflow: hidden;
        }
        
        #compatibilityMatrix .w-full {
            max-width: 100%;
            box-sizing: border-box;
        }
        
        /* Стили для маленькой кнопки прогностики */
        #prognosticsToggle {
            align-items: center;
            display: flex;
        }
        
        #prognosticsToggle .toggle-switch {
            width: 30px;
            height: 16px;
        }
        

        #prognosticsToggle .toggle-label {
            width: 30px;
            height: 16px;
            border-radius: 16px;
        }
        
        #prognosticsToggle .toggle-label::before {
            width: 12px;
            height: 12px;
            top: 1px;
            left: 2px;
        }
        
        #prognosticsToggle .toggle-input:checked + .toggle-label::before {
            transform: translateX(14px);
        }
        
        /* Выравнивание кнопки прогностики с заголовком */
        .flex.items-center.justify-between {
            align-items: center !important;
            display: flex !important;
            flex-direction: row !important;
        }
        
        #prognosticsToggle {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }
        
        /* Выравнивание переключателя с текстом */
        #prognosticsToggle .toggle-switch {
            vertical-align: middle !important;
            align-self: center !important;
            margin-top: 0 !important;
            margin-bottom: 0 !important;
        }
        
        #prognosticsToggle span {
            line-height: 1 !important;
            vertical-align: middle !important;
            display: inline-block !important;
            margin-bottom: 0 !important;
        }
        
        /* ГАРАНТИРОВАННОЕ скрытие кнопки прогностики когда она не нужна */
        #prognosticsToggle.hidden {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            width: 0 !important;
            height: 0 !important;
            overflow: hidden !important;
        }
        
        #prognosticsToggle span {
            line-height: 1.2 !important;
            vertical-align: middle !important;
            display: inline-block !important;
        }
        
        h2#matrixTitle {
            margin-bottom: 0 !important;
            line-height: 1.2 !important;
        }
        
        /* Исправление выравнивания кнопок */
        #birthdateError {
            min-height: 0 !important;
            height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            overflow: hidden !important;
        }
        
        #birthdateError:not(:empty) {
            min-height: 16px !important;
            height: auto !important;
            margin-top: 4px !important;
        }

        @media (max-width: 768px) {
            .matrix-panel {
                padding: 8px !important;
                min-height: auto !important;
                height: auto !important;
                max-height: none !important;
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }
            
            .matrix-container {
                min-height: auto !important;
                max-height: none !important;
                height: auto !important;
                padding: 4px;
                margin-bottom: 0;
                flex-shrink: 0;
                overflow: hidden;
            }
            
            #matrixTitle {
                margin-bottom: 8px !important;
                font-size: 1rem !important;
                flex-shrink: 0;
            }
            
            /* Дополнительные стили для SVG */
            #matrixSVG, #yearMatrixSVG {
                max-height: none !important;
                height: auto !important;
            }
            
            /* Специальные стили для матрицы судьбы на мобильных */
            #destinyMatrix {
                min-height: auto !important;
                max-height: none !important;
                height: auto !important;
                padding: 4px !important;
                margin-bottom: 0 !important;
                flex-shrink: 0;
                overflow: hidden;
            }
            
            /* SVG матрицы судьбы */
            #matrixSVG {
                max-height: none !important;
                height: auto !important;
                width: 100% !important;
            }
            
            /* ПРИНУДИТЕЛЬНО убираем лишнее пространство в плашке */
            .matrix-panel {
                padding: 8px 8px 8px 8px !important;
                margin-bottom: 0 !important;
                min-height: auto !important;
                height: auto !important;
                max-height: none !important;
            }
            
            /* Убираем нижние отступы у заголовка */
            #matrixTitle {
                margin-bottom: 8px !important;
                padding-bottom: 0 !important;
            }
            
            /* Исправление выравнивания кнопок на мобильных */
            #birthdateError {
                min-height: 0 !important;
                height: 0 !important;
                margin: 0 !important;
                padding: 0 !important;
                overflow: hidden !important;
            }
            
            #birthdateError:not(:empty) {
                min-height: 16px !important;
                height: auto !important;
                margin-top: 4px !important;
            }
            
            /* Выравнивание кнопки прогностики на мобильных */
            .flex.items-center.justify-between {
                align-items: center !important;
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                width: 100% !important;
                min-height: auto !important;
                height: auto !important;
                margin: 0 !important;
                padding: 0 !important;
            }
            
            #prognosticsToggle {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                flex-shrink: 0 !important;
                height: auto !important;
                margin: 0 !important;
                padding: 0 !important;
            }
            
            h2#matrixTitle {
                margin-bottom: 0 !important;
                line-height: 1.2 !important;
                flex: none !important;
                margin-right: 0 !important;
            }
            
            /* Исправление для мобильных - убираем все отступы у контейнера */
            .matrix-panel > .header-matrix-container {
                top: 10px !important;
                left: 12px !important;
                right: 12px !important;
                width: calc(100% - 24px) !important;
                max-width: calc(100% - 24px) !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                overflow: hidden !important;
                box-sizing: border-box !important;
            }
            
            .matrix-panel > .header-matrix-container h2#matrixTitle {
                max-width: 50% !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }
            
            .matrix-panel > .header-matrix-container #prognosticsToggle {
                flex-shrink: 0 !important;
                min-width: auto !important;
                max-width: 50% !important;
                margin-left: -20px !important;
            }
            
            .matrix-panel > .header-matrix-container #prognosticsToggle span {
                font-size: 10px !important;
                white-space: nowrap !important;
            }
            
            /* Выравнивание переключателя с текстом на мобильных */
            #prognosticsToggle .toggle-switch {
                vertical-align: middle !important;
                align-self: center !important;
                margin-top: 0 !important;
                margin-bottom: 0 !important;
            }
            
            #prognosticsToggle span {
                line-height: 1 !important;
                vertical-align: middle !important;
                display: inline-block !important;
                margin-bottom: 0 !important;
            }
            
            /* ГАРАНТИРОВАННОЕ скрытие кнопки прогностики на мобильных */
            #prognosticsToggle.hidden {
                display: none !important;
                visibility: hidden !important;
                opacity: 0 !important;
                width: 0 !important;
                height: 0 !important;
                overflow: hidden !important;
            }
        }

        /* КРИТИЧЕСКИ ВАЖНЫЕ стили для убирания лишнего пространства */
        @media (max-width: 768px) {
            .glass.matrix-panel {
                padding: 8px !important;
                margin: 0 !important;
                min-height: auto !important;
                height: auto !important;
                max-height: none !important;
                display: block !important;
                overflow: visible !important;
            }
            
            .glass.matrix-panel * {
                margin-bottom: 0 !important;
            }
            
            .glass.matrix-panel #matrixTitle {
                margin-bottom: 8px !important;
                padding-bottom: 0 !important;
            }
            
            .glass.matrix-panel .matrix-container {
                margin-bottom: 0 !important;
                padding-bottom: 0 !important;
            }
            
            /* УБИРАЕМ СКРЫТЫЕ КОНТЕЙНЕРЫ ПОЛНОСТЬЮ */
            .matrix-container.hidden {
                display: none !important;
                height: 0 !important;
                min-height: 0 !important;
                max-height: 0 !important;
                padding: 0 !important;
                margin: 0 !important;
                overflow: hidden !important;
            }
            
            #yearMatrix.hidden, #compatibilityMatrix.hidden {
                display: none !important;
                height: 0 !important;
                min-height: 0 !important;
                max-height: 0 !important;
                padding: 0 !important;
                margin: 0 !important;
                overflow: hidden !important;
            }
        }

        /* Адаптивность для больших экранов */
        @media (min-width: 768px) {
            .mode-btn {
                padding: 8px 12px !important;
                font-size: 13px !important;
            }

            .mode-switcher {
                padding: 4px 8px !important;
                gap: 4px !important;
                flex-wrap: nowrap !important;
            }
        }

        @media (min-width: 1024px) {
            .mode-switcher {
                flex-direction: column !important;
                padding: 8px 12px !important;
                gap: 6px !important;
                align-items: stretch !important;
            }
            
            .mode-btn {
                width: 100% !important;
                padding: 12px 16px !important;
                font-size: 14px !important;
                margin: 0 !important;
                justify-content: flex-start !important;
                text-align: left !important;
            }
            
            .mode-btn i {
                margin-right: 8px !important;
            }
        }

        /* --- Основной контейнер меню --- */
        .menu-widget {
            position: fixed; 
            top: calc(20px + env(safe-area-inset-top));
            left: calc(20px + env(safe-area-inset-left));
            z-index: 1000;
            background-color: rgba(254, 249, 247, 0.95);
            backdrop-filter: blur(10px);
            width: 300px;
            color: #705b4d;
            border-radius: 60px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(112, 91, 77, 0.15);
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            border: 1px solid rgba(214, 207, 203, 0.3);
        }

        /* Состояние открытого меню */
        .menu-widget.active {
            border-radius: 30px;
            width: 320px;
        }

        /* --- Шапка (Лого + Кнопка) --- */
        .menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 20px 12px 12px;
            height: 60px;
            box-sizing: border-box;
        }

        .menu-header-right {
            display: flex;
            align-items: center;
            gap: 0;
        }

        .menu-logo-container {
            display: flex;
            align-items: center;
            gap: 8px;
            z-index: 2;
        }

        .menu-logo-img {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            object-fit: cover;
        }

        .menu-logo {
            font-weight: 700;
            font-size: 20px;
            letter-spacing: -0.5px;
            color: #705b4d;
        }

        /* Стили для кнопки калькулятора с анимацией */
        .calculator-btn,
        .calculator-btn-desktop {
            --duration: 7s;
            --easing: linear;
            --c-color-1: rgba(224, 196, 201, 0.7);
            --c-color-2: rgba(220, 182, 188, 0.8);
            --c-color-3: rgba(224, 196, 201, 0.6);
            --c-color-4: rgba(245, 237, 238, 0.7);
            --c-shadow: rgba(224, 196, 201, 0.5);
            --c-shadow-inset-top: rgba(220, 182, 188, 0.9);
            --c-shadow-inset-bottom: rgba(254, 249, 247, 0.8);
            --c-radial-inner: #e0c4c9;
            --c-radial-outer: #f5edee;
            --c-color: #fff;
            -webkit-tap-highlight-color: transparent;
            -webkit-appearance: none;
            appearance: none;
            outline: none;
            position: relative;
            cursor: pointer;
            border: none;
            display: table;
            border-radius: 24px;
            padding: 0;
            margin: 0;
            text-align: center;
            font-weight: 600;
            font-size: 16px;
            letter-spacing: 0.02em;
            line-height: 1.5;
            color: var(--c-color);
            background: radial-gradient(
                circle,
                var(--c-radial-inner),
                var(--c-radial-outer) 80%
            );
            box-shadow: 0 0 14px var(--c-shadow);
            z-index: 2;
        }

        .calculator-btn {
            height: 40px;
            font-size: 14px;
            margin-right: 8px;
        }

        .calculator-btn-desktop {
            position: fixed;
            top: calc(20px + env(safe-area-inset-top));
            right: calc(20px + env(safe-area-inset-right));
            z-index: 1000;
            height: 60px;
            display: none;
            border-radius: 50px;
            box-shadow: 0 0 14px var(--c-shadow), 0 8px 24px rgba(112, 91, 77, 0.2);
            border: 1px solid rgba(214, 207, 203, 0.3);
        }

        .calculator-btn:before {
            content: "";
            pointer-events: none;
            position: absolute;
            z-index: 3;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            border-radius: 24px;
            box-shadow:
                inset 0 3px 12px var(--c-shadow-inset-top),
                inset 0 -3px 4px var(--c-shadow-inset-bottom);
        }

        .calculator-btn-desktop:before {
            content: "";
            pointer-events: none;
            position: absolute;
            z-index: 3;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            border-radius: 50px;
            box-shadow:
                inset 0 3px 12px var(--c-shadow-inset-top),
                inset 0 -3px 4px var(--c-shadow-inset-bottom);
        }

        .calculator-btn-desktop:hover {
            --duration: 1400ms;
        }

        .calculator-btn .wrapper,
        .calculator-btn-desktop .wrapper {
            -webkit-mask-image: -webkit-radial-gradient(white, black);
            mask-image: radial-gradient(white, black);
            overflow: hidden;
            border-radius: 24px;
            min-width: 132px;
            padding: 12px 0;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .calculator-btn .wrapper {
            min-width: 100px;
            padding: 8px 16px;
            border-radius: 24px;
        }

        .calculator-btn-desktop .wrapper {
            min-width: 140px;
            padding: 0 24px;
            border-radius: 50px;
        }

        .calculator-btn .wrapper span,
        .calculator-btn-desktop .wrapper span {
            display: inline-block;
            position: relative;
            z-index: 1;
        }

        .calculator-btn .wrapper .circle,
        .calculator-btn-desktop .wrapper .circle {
            position: absolute;
            left: 0;
            top: 0;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            filter: blur(var(--blur, 8px));
            background: var(--background, transparent);
            transform: translate(var(--x, 0), var(--y, 0)) translateZ(0);
            animation: var(--animation, none) var(--duration) var(--easing) infinite;
            will-change: transform;
            animation-play-state: running;
        }

        .calculator-btn .wrapper .circle.circle-1,
        .calculator-btn .wrapper .circle.circle-9,
        .calculator-btn .wrapper .circle.circle-10,
        .calculator-btn-desktop .wrapper .circle.circle-1,
        .calculator-btn-desktop .wrapper .circle.circle-9,
        .calculator-btn-desktop .wrapper .circle.circle-10 {
            --background: var(--c-color-4);
        }

        .calculator-btn .wrapper .circle.circle-3,
        .calculator-btn .wrapper .circle.circle-4,
        .calculator-btn-desktop .wrapper .circle.circle-3,
        .calculator-btn-desktop .wrapper .circle.circle-4 {
            --background: var(--c-color-2);
            --blur: 14px;
        }

        .calculator-btn .wrapper .circle.circle-5,
        .calculator-btn .wrapper .circle.circle-6,
        .calculator-btn-desktop .wrapper .circle.circle-5,
        .calculator-btn-desktop .wrapper .circle.circle-6 {
            --background: var(--c-color-3);
            --blur: 16px;
        }

        .calculator-btn .wrapper .circle.circle-2,
        .calculator-btn .wrapper .circle.circle-7,
        .calculator-btn .wrapper .circle.circle-8,
        .calculator-btn .wrapper .circle.circle-11,
        .calculator-btn .wrapper .circle.circle-12,
        .calculator-btn-desktop .wrapper .circle.circle-2,
        .calculator-btn-desktop .wrapper .circle.circle-7,
        .calculator-btn-desktop .wrapper .circle.circle-8,
        .calculator-btn-desktop .wrapper .circle.circle-11,
        .calculator-btn-desktop .wrapper .circle.circle-12 {
            --background: var(--c-color-1);
            --blur: 12px;
        }

        .calculator-btn .wrapper .circle.circle-1,
        .calculator-btn-desktop .wrapper .circle.circle-1 {
            --x: 0;
            --y: -40px;
            --animation: circle-1;
        }

        .calculator-btn .wrapper .circle.circle-2 {
            --x: 60px;
            --y: 8px;
            --animation: circle-2-mobile;
        }
        .calculator-btn-desktop .wrapper .circle.circle-2 {
            --x: 92px;
            --y: 8px;
            --animation: circle-2;
        }

        .calculator-btn .wrapper .circle.circle-3,
        .calculator-btn-desktop .wrapper .circle.circle-3 {
            --x: -12px;
            --y: -12px;
            --animation: circle-3;
        }

        .calculator-btn .wrapper .circle.circle-4,
        .calculator-btn-desktop .wrapper .circle.circle-4 {
            --x: 80px;
            --y: -12px;
            --animation: circle-4;
        }

        .calculator-btn .wrapper .circle.circle-5,
        .calculator-btn-desktop .wrapper .circle.circle-5 {
            --x: 12px;
            --y: -4px;
            --animation: circle-5;
        }

        .calculator-btn .wrapper .circle.circle-6,
        .calculator-btn-desktop .wrapper .circle.circle-6 {
            --x: 56px;
            --y: 16px;
            --animation: circle-6;
        }

        .calculator-btn .wrapper .circle.circle-7,
        .calculator-btn-desktop .wrapper .circle.circle-7 {
            --x: 8px;
            --y: 28px;
            --animation: circle-7;
        }

        .calculator-btn .wrapper .circle.circle-8,
        .calculator-btn-desktop .wrapper .circle.circle-8 {
            --x: 28px;
            --y: -4px;
            --animation: circle-8;
        }

        .calculator-btn .wrapper .circle.circle-9,
        .calculator-btn-desktop .wrapper .circle.circle-9 {
            --x: 20px;
            --y: -12px;
            --animation: circle-9;
        }

        .calculator-btn .wrapper .circle.circle-10,
        .calculator-btn-desktop .wrapper .circle.circle-10 {
            --x: 64px;
            --y: 16px;
            --animation: circle-10;
        }

        .calculator-btn .wrapper .circle.circle-11,
        .calculator-btn-desktop .wrapper .circle.circle-11 {
            --x: 4px;
            --y: 4px;
            --animation: circle-11;
        }

        .calculator-btn .wrapper .circle.circle-12,
        .calculator-btn-desktop .wrapper .circle.circle-12 {
            --blur: 14px;
            --x: 52px;
            --y: 4px;
            --animation: circle-12;
        }

        @keyframes circle-1 {
            33% {
                transform: translate(0px, 16px) translateZ(0);
            }
            66% {
                transform: translate(12px, 64px) translateZ(0);
            }
        }

        @keyframes circle-2 {
            33% {
                transform: translate(80px, -10px) translateZ(0);
            }
            66% {
                transform: translate(72px, -48px) translateZ(0);
            }
        }

        @keyframes circle-3 {
            33% {
                transform: translate(20px, 12px) translateZ(0);
            }
            66% {
                transform: translate(12px, 4px) translateZ(0);
            }
        }

        @keyframes circle-4 {
            33% {
                transform: translate(76px, -12px) translateZ(0);
            }
            66% {
                transform: translate(112px, -8px) translateZ(0);
            }
        }

        @keyframes circle-5 {
            33% {
                transform: translate(84px, 28px) translateZ(0);
            }
            66% {
                transform: translate(40px, -32px) translateZ(0);
            }
        }

        @keyframes circle-6 {
            33% {
                transform: translate(28px, -16px) translateZ(0);
            }
            66% {
                transform: translate(76px, -56px) translateZ(0);
            }
        }

        @keyframes circle-7 {
            33% {
                transform: translate(8px, 28px) translateZ(0);
            }
            66% {
                transform: translate(20px, -60px) translateZ(0);
            }
        }

        @keyframes circle-8 {
            33% {
                transform: translate(32px, -4px) translateZ(0);
            }
            66% {
                transform: translate(56px, -20px) translateZ(0);
            }
        }

        @keyframes circle-9 {
            33% {
                transform: translate(20px, -12px) translateZ(0);
            }
            66% {
                transform: translate(80px, -8px) translateZ(0);
            }
        }

        @keyframes circle-10 {
            33% {
                transform: translate(68px, 20px) translateZ(0);
            }
            66% {
                transform: translate(100px, 28px) translateZ(0);
            }
        }

        @keyframes circle-11 {
            33% {
                transform: translate(4px, 4px) translateZ(0);
            }
            66% {
                transform: translate(68px, 20px) translateZ(0);
            }
        }

        @keyframes circle-12 {
            33% {
                transform: translate(56px, 0px) translateZ(0);
            }
            66% {
                transform: translate(60px, -32px) translateZ(0);
            }
        }

        @keyframes circle-2-mobile {
            33% {
                transform: translate(50px, -10px) translateZ(0);
            }
            66% {
                transform: translate(45px, -30px) translateZ(0);
            }
        }

        /* Адаптация размеров кругов для мобильной кнопки */
        .calculator-btn .wrapper .circle {
            width: 30px;
            height: 30px;
        }

        /* Гарантируем, что анимация всегда работает на мобильных устройствах */
        @media (max-width: 1023px) {
            .calculator-btn {
                --duration: 7s;
            }
            
            .calculator-btn .wrapper .circle {
                animation-play-state: running !important;
            }
            
            .calculator-btn .wrapper .circle.circle-1 {
                animation: circle-1 7s linear infinite !important;
            }
            .calculator-btn .wrapper .circle.circle-2 {
                animation: circle-2-mobile 7s linear infinite !important;
            }
            .calculator-btn .wrapper .circle.circle-3 {
                animation: circle-3 7s linear infinite !important;
            }
            .calculator-btn .wrapper .circle.circle-4 {
                animation: circle-4 7s linear infinite !important;
            }
            .calculator-btn .wrapper .circle.circle-5 {
                animation: circle-5 7s linear infinite !important;
            }
            .calculator-btn .wrapper .circle.circle-6 {
                animation: circle-6 7s linear infinite !important;
            }
            .calculator-btn .wrapper .circle.circle-7 {
                animation: circle-7 7s linear infinite !important;
            }
            .calculator-btn .wrapper .circle.circle-8 {
                animation: circle-8 7s linear infinite !important;
            }
            .calculator-btn .wrapper .circle.circle-9 {
                animation: circle-9 7s linear infinite !important;
            }
            .calculator-btn .wrapper .circle.circle-10 {
                animation: circle-10 7s linear infinite !important;
            }
            .calculator-btn .wrapper .circle.circle-11 {
                animation: circle-11 7s linear infinite !important;
            }
            .calculator-btn .wrapper .circle.circle-12 {
                animation: circle-12 7s linear infinite !important;
            }
        }

        /* Отключаем анимацию только для пользователей с prefers-reduced-motion */
        @media (prefers-reduced-motion: reduce) {
            .calculator-btn .wrapper .circle,
            .calculator-btn-desktop .wrapper .circle {
                animation: none;
            }
        }

        .burger-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2;
            border-radius: 50%;
            transition: background 0.3s;
        }

        .menu-widget.active .burger-btn {
            border: 1px solid rgba(112, 91, 77, 0.2);
        }

        .burger-icon, .close-icon {
            fill: none;
            stroke: #705b4d;
            stroke-width: 2;
            stroke-linecap: round;
            width: 24px;
            height: 24px;
            transition: all 0.3s ease;
            position: absolute;
        }

        .close-icon {
            opacity: 0;
            transform: scale(0.5) rotate(-90deg);
        }

        .menu-widget.active .burger-icon {
            opacity: 0;
            transform: scale(0.5) rotate(90deg);
        }

        .menu-widget.active .close-icon {
            opacity: 1;
            transform: scale(1) rotate(0);
        }

        /* --- Выпадающий контент --- */
        .menu-content-wrapper {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .menu-widget.active .menu-content-wrapper {
            grid-template-rows: 1fr;
        }

        .menu-inner {
            overflow: hidden;
            opacity: 0;
            transition: opacity 0.4s ease;
            transform: translateY(10px); 
        }

        .menu-widget.active .menu-inner {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.1s;
            padding-bottom: 30px;
        }

        .nav-links {
            list-style: none;
            padding: 10px 30px;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .nav-links li {
            display: block;
            margin: 0;
            padding: 0;
        }

        .nav-links a {
            color: #705b4d;
            text-decoration: none;
            font-size: 28px;
            font-weight: 500;
            transition: opacity 0.2s;
            display: block;
            line-height: 1.4;
        }

        .nav-links a:hover {
            opacity: 0.7;
        }

        .socials {
            display: flex;
            gap: 15px;
            padding: 40px 30px 10px;
        }

        .social-icon {
            width: 36px;
            height: 36px;
            background: rgba(112, 91, 77, 0.1);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: background 0.2s;
            text-decoration: none;
        }

        .social-icon:hover {
            background: rgba(112, 91, 77, 0.2);
        }

        .social-icon svg {
            width: 16px;
            height: 16px;
            fill: #705b4d;
        }

        /* Стили для десктопа - показываем картинку */
        @media (min-width: 1024px) {
            .calculator-btn-desktop {
                display: flex;
            }

            .menu-header-right .calculator-btn {
                display: none;
            }
        }

        /* Меню от края до края с отступами на мобильных устройствах и планшетах */
        @media (max-width: 1023px) {
            .menu-widget {
                left: 20px;
                right: 20px;
                width: auto;
                max-width: none;
            }

            .menu-widget.active {
                width: auto;
                left: 20px;
                right: 20px;
            }

            .calculator-btn-desktop {
                display: none;
            }

            .menu-header-right .calculator-btn {
                display: flex;
            }

            .menu-logo {
                display: none;
            }
        }

        /* Стиль плейсхолдера для email в футере */
        #footerEmailInput::placeholder {
            color: #d5c4b7 !important;
            opacity: 0.8;
        }

        /* Стили для копирайта футера на мобильных */
        @media (max-width: 767px) {
            .footer-copyright-block {
                flex-direction: column !important;
                justify-content: center !important;
                align-items: center !important;
                gap: 8px;
            }
            
            .footer-copyright-block p {
                width: 100%;
                text-align: center !important;
            }
        }

        /* Стили для hero блока */
        .hero-section {
            position: relative;
        }

        #hero-title {
            font-size: clamp(48px, 7vw, 72px);
            font-family: 'Lora', serif;
            color: #705b4d;
            font-weight: 400;
            line-height: 1.2;
            margin-bottom: 24px;
        }

        #hero-title .text-primary {
            color: #705b4d;
        }

        #hero-title .text-text-primary {
            color: #705b4d;
        }

        .hero-section p.text-text-secondary {
            color: #d6cfcb;
            font-size: clamp(16px, 2vw, 18px);
            line-height: 1.6;
        }

        .cta-button {
            position: relative;
            display: inline-flex;
            align-items: center;
            background-color: #dcb7bc;
            /* Фиксированная высота важна для ровной анимации круга */
            height: 56px; 
            padding: 0 56px 0 24px; 
            border-radius: 100px;
            text-decoration: none;
            cursor: pointer;
            overflow: hidden;
            transition: transform 0.3s ease;
            width: fit-content;
        }

        .cta-button:active {
            transform: scale(0.96);
        }

        /* Текст */
        .cta-button span {
            position: relative;
            z-index: 3;
            color: white;
            font-size: 18px;
            font-weight: 500;
            transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
        }

        /* Белая подложка (расширяется) */
        .icon-circle {
            position: absolute;
            top: 6px;
            right: 6px;
            bottom: 6px;
            width: 44px; /* Начальная ширина */
            background-color: white;
            border-radius: 100px;
            z-index: 1;
            transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Контейнер для стрелки (чтобы она не дергалась) */
        .arrow-wrapper {
            position: absolute;
            top: 0;
            right: 0;
            width: 56px; /* Равен высоте кнопки для центровки */
            height: 56px;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2; /* Выше подложки */
        }

        /* Сама стрелка */
        .arrow {
            border: solid #1a191f;
            border-width: 0 2px 2px 0;
            display: inline-block;
            padding: 3.5px;
            transform: rotate(-45deg); 
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* --- СОСТОЯНИЕ ПРИ НАВЕДЕНИИ --- */

        /* 1. Белый фон растягивается влево */
        .cta-button:hover .icon-circle {
            width: calc(100% - 12px);
        }

        /* 2. Текст чернеет */
        .cta-button:hover span {
            color: #705b4d;
        }

        /* Отступ для скролла к форме калькулятора */
        #calculator-form {
            scroll-margin-top: 140px;
        }

        @media (max-width: 768px) {
            #calculator-form {
                scroll-margin-top: 120px;
            }
        }

        .avatar:first-child {
            margin-left: 0 !important;
        }

        /* Стили для заголовков как в FAQ секции */
        .faq-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 16px;
            border-radius: 9999px;
            background: #f5edee;
            color: #8b6e73;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 24px;
            font-family: 'Montserrat', sans-serif;
        }

        .faq-badge i {
            font-size: 10px;
        }

        .faq-title {
            font-size: clamp(40px, 6vw, 60px);
            font-family: 'Lora', serif;
            color: #705b4d;
            margin-bottom: 24px;
            line-height: 1.1;
            font-weight: 400;
        }

        .faq-title .italic-accent {
            font-style: italic;
            color: #dcb6bc;
        }

        .faq-description {
            color: #9e9e9e;
            font-size: clamp(16px, 2vw, 18px);
            line-height: 1.6;
            font-family: 'Montserrat', sans-serif;
            max-width: 448px;
            margin: 0 auto;
        }

        @media (max-width: 768px) {
            .hero-section {
                padding: 80px 20px;
                min-height: 100vh;
            }
            
            #hero-title {
                font-size: 2.5rem !important;
                line-height: 1.2 !important;
            }

            .hero-section .inline-image-container {
                height: 40px !important;
                border-radius: 8px !important;
            }

            .hero-section .subtitle {
                font-size: 1rem !important;
                padding: 0 10px !important;
            }

            .hero-section .social-proof {
                display: none !important;
            }
        }

        /* Вкладки */
        .tab-btn {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .tab-btn.active {
            background-color: #ffffff;
            color: #705b4d;
            box-shadow: 0 4px 12px rgba(112, 91, 77, 0.08);
            font-weight: 600;
        }
        .tab-btn:not(.active):hover {
            background-color: rgba(255,255,255, 0.6);
        }

        /* Пол */
        .gender-radio:checked + div {
            background-color: #dcb6bc;
            color: white;
            border-color: #dcb6bc;
        }

        /* Карточки Бенто */
        .bento-card {
            background-color: white;
            border-radius: 2rem;
            padding: 1.5rem;
            border: 1px solid #f2e1e4;
            transition: transform 0.3s ease, border-color 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .bento-card:hover {
            transform: translateY(-2px);
            border-color: #e0c4c9;
            box-shadow: 0 10px 30px rgba(112, 91, 77, 0.05);
        }
        
        .bento-value {
            font-family: 'Lora', serif;
            color: #705b4d;
        }
        
        .bento-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #9e9e9e;
            font-weight: 600;
            margin-top: 4px;
        }

        .circle-badge {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            background-color: #f9f3f4;
            color: #dcb6bc;
            margin-bottom: 0.5rem;
        }

        /* Скрытие стандартной стрелки select для всех браузеров */
        .contact-select {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background-image: none !important;
        }
        
        .contact-select::-ms-expand {
            display: none;
        }
        
        /* Стили для кнопки формы */
        #contactSubmitBtn:disabled {
            opacity: 1;
            cursor: not-allowed !important;
        }
        
        #contactSubmitBtn:not(:disabled) {
            cursor: pointer !important;
        }

        /* Убираем обводку у полей формы при фокусе */
        #contactForm input:focus,
        #contactForm textarea:focus,
        #contactForm select:focus {
            outline: none !important;
            border: none !important;
            box-shadow: none !important;
        }

        #contactForm input,
        #contactForm textarea,
        #contactForm select {
            border: none !important;
            outline: none !important;
        }

        /* Анимация для слова "раскроет" */
        .highlight-italic {
            white-space: nowrap;
            display: inline-block;
        }

        .char-animate {
            display: inline-block;
            opacity: 0;
            filter: blur(8px);
            transform: translateX(0.7em);
            animation: slideLeftBlur 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
            will-change: transform, opacity, filter;
        }

        @keyframes slideLeftBlur {
            to {
                opacity: 1;
                filter: blur(0);
                transform: translateX(0);
            }
        }